Skip to content

Commit b51fb97

Browse files
committed
[es] generate client code
1 parent 221a8fd commit b51fb97

35 files changed

+487
-1756
lines changed

elasticsearch/src/.generated.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ written = [
55
'ccr.rs',
66
'cluster.rs',
77
'dangling_indices.rs',
8-
'data_frame_transform_deprecated.rs',
98
'enrich.rs',
109
'eql.rs',
1110
'graph.rs',

elasticsearch/src/async_search.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ impl<'b> AsyncSearchDeleteParts<'b> {
6666
}
6767
}
6868
}
69-
#[derive(Clone, Debug)]
7069
#[doc = "Builder for the [Async Search Delete API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/async-search.html)\n\nDeletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."]
70+
#[derive(Clone, Debug)]
7171
pub struct AsyncSearchDelete<'a, 'b> {
7272
transport: &'a Transport,
7373
parts: AsyncSearchDeleteParts<'b>,
@@ -184,8 +184,8 @@ impl<'b> AsyncSearchGetParts<'b> {
184184
}
185185
}
186186
}
187-
#[derive(Clone, Debug)]
188187
#[doc = "Builder for the [Async Search Get API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/async-search.html)\n\nRetrieves the results of a previously submitted async search request given its ID."]
188+
#[derive(Clone, Debug)]
189189
pub struct AsyncSearchGet<'a, 'b> {
190190
transport: &'a Transport,
191191
parts: AsyncSearchGetParts<'b>,
@@ -329,8 +329,8 @@ impl<'b> AsyncSearchStatusParts<'b> {
329329
}
330330
}
331331
}
332-
#[derive(Clone, Debug)]
333332
#[doc = "Builder for the [Async Search Status API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/async-search.html)\n\nRetrieves the status of a previously submitted async search request given its ID."]
333+
#[derive(Clone, Debug)]
334334
pub struct AsyncSearchStatus<'a, 'b> {
335335
transport: &'a Transport,
336336
parts: AsyncSearchStatusParts<'b>,
@@ -453,8 +453,8 @@ impl<'b> AsyncSearchSubmitParts<'b> {
453453
}
454454
}
455455
}
456-
#[derive(Clone, Debug)]
457456
#[doc = "Builder for the [Async Search Submit API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/async-search.html)\n\nExecutes a search request asynchronously."]
457+
#[derive(Clone, Debug)]
458458
pub struct AsyncSearchSubmit<'a, 'b, B> {
459459
transport: &'a Transport,
460460
parts: AsyncSearchSubmitParts<'b>,

elasticsearch/src/autoscaling.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
// cargo make generate-api
2525
// -----------------------------------------------
2626

27+
//! Autoscaling APIs
28+
//!
29+
//! The [autoscaling feature](https://www.elastic.co/guide/en/elasticsearch/reference/master/xpack-autoscaling.html)
30+
//! enables an operator to configure tiers of nodes that self-monitor whether or not they need to scale based on an
31+
//! operator-defined policy.
32+
2733
#![allow(unused_imports)]
2834
use crate::{
2935
client::Elasticsearch,
@@ -60,8 +66,8 @@ impl<'b> AutoscalingDeleteAutoscalingPolicyParts<'b> {
6066
}
6167
}
6268
}
63-
#[derive(Clone, Debug)]
6469
#[doc = "Builder for the [Autoscaling Delete Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/autoscaling-delete-autoscaling-policy.html)\n\nDeletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
70+
#[derive(Clone, Debug)]
6571
pub struct AutoscalingDeleteAutoscalingPolicy<'a, 'b> {
6672
transport: &'a Transport,
6773
parts: AutoscalingDeleteAutoscalingPolicyParts<'b>,
@@ -175,8 +181,8 @@ impl AutoscalingGetAutoscalingCapacityParts {
175181
}
176182
}
177183
}
178-
#[derive(Clone, Debug)]
179184
#[doc = "Builder for the [Autoscaling Get Autoscaling Capacity API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/autoscaling-get-autoscaling-capacity.html)\n\nGets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
185+
#[derive(Clone, Debug)]
180186
pub struct AutoscalingGetAutoscalingCapacity<'a, 'b> {
181187
transport: &'a Transport,
182188
parts: AutoscalingGetAutoscalingCapacityParts,
@@ -293,8 +299,8 @@ impl<'b> AutoscalingGetAutoscalingPolicyParts<'b> {
293299
}
294300
}
295301
}
296-
#[derive(Clone, Debug)]
297302
#[doc = "Builder for the [Autoscaling Get Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/autoscaling-get-autoscaling-policy.html)\n\nRetrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
303+
#[derive(Clone, Debug)]
298304
pub struct AutoscalingGetAutoscalingPolicy<'a, 'b> {
299305
transport: &'a Transport,
300306
parts: AutoscalingGetAutoscalingPolicyParts<'b>,
@@ -411,8 +417,8 @@ impl<'b> AutoscalingPutAutoscalingPolicyParts<'b> {
411417
}
412418
}
413419
}
414-
#[derive(Clone, Debug)]
415420
#[doc = "Builder for the [Autoscaling Put Autoscaling Policy API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/autoscaling-put-autoscaling-policy.html)\n\nCreates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."]
421+
#[derive(Clone, Debug)]
416422
pub struct AutoscalingPutAutoscalingPolicy<'a, 'b, B> {
417423
transport: &'a Transport,
418424
parts: AutoscalingPutAutoscalingPolicyParts<'b>,

elasticsearch/src/cat.rs

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ impl<'b> CatAliasesParts<'b> {
160160
}
161161
}
162162
}
163-
#[derive(Clone, Debug)]
164163
#[doc = "Builder for the [Cat Aliases API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-alias.html)\n\nShows information about currently configured aliases to indices including filter and routing infos."]
164+
#[derive(Clone, Debug)]
165165
pub struct CatAliases<'a, 'b> {
166166
transport: &'a Transport,
167167
parts: CatAliasesParts<'b>,
@@ -351,8 +351,8 @@ impl<'b> CatAllocationParts<'b> {
351351
}
352352
}
353353
}
354-
#[derive(Clone, Debug)]
355354
#[doc = "Builder for the [Cat Allocation API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-allocation.html)\n\nProvides a snapshot of how many shards are allocated to each data node and how much disk space they are using."]
355+
#[derive(Clone, Debug)]
356356
pub struct CatAllocation<'a, 'b> {
357357
transport: &'a Transport,
358358
parts: CatAllocationParts<'b>,
@@ -550,8 +550,8 @@ impl<'b> CatCountParts<'b> {
550550
}
551551
}
552552
}
553-
#[derive(Clone, Debug)]
554553
#[doc = "Builder for the [Cat Count API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-count.html)\n\nProvides quick access to the document count of the entire cluster, or individual indices."]
554+
#[derive(Clone, Debug)]
555555
pub struct CatCount<'a, 'b> {
556556
transport: &'a Transport,
557557
parts: CatCountParts<'b>,
@@ -722,8 +722,8 @@ impl<'b> CatFielddataParts<'b> {
722722
}
723723
}
724724
}
725-
#[derive(Clone, Debug)]
726725
#[doc = "Builder for the [Cat Fielddata API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-fielddata.html)\n\nShows how much heap memory is currently being used by fielddata on every data node in the cluster."]
726+
#[derive(Clone, Debug)]
727727
pub struct CatFielddata<'a, 'b> {
728728
transport: &'a Transport,
729729
parts: CatFielddataParts<'b>,
@@ -902,8 +902,8 @@ impl CatHealthParts {
902902
}
903903
}
904904
}
905-
#[derive(Clone, Debug)]
906905
#[doc = "Builder for the [Cat Health API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-health.html)\n\nReturns a concise representation of the cluster health."]
906+
#[derive(Clone, Debug)]
907907
pub struct CatHealth<'a, 'b> {
908908
transport: &'a Transport,
909909
parts: CatHealthParts,
@@ -1081,8 +1081,8 @@ impl CatHelpParts {
10811081
}
10821082
}
10831083
}
1084-
#[derive(Clone, Debug)]
10851084
#[doc = "Builder for the [Cat Help API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat.html)\n\nReturns help for the Cat APIs."]
1085+
#[derive(Clone, Debug)]
10861086
pub struct CatHelp<'a, 'b> {
10871087
transport: &'a Transport,
10881088
parts: CatHelpParts,
@@ -1225,8 +1225,8 @@ impl<'b> CatIndicesParts<'b> {
12251225
}
12261226
}
12271227
}
1228-
#[derive(Clone, Debug)]
12291228
#[doc = "Builder for the [Cat Indices API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-indices.html)\n\nReturns information about indices: number of primaries and replicas, document counts, disk size, ..."]
1229+
#[derive(Clone, Debug)]
12301230
pub struct CatIndices<'a, 'b> {
12311231
transport: &'a Transport,
12321232
parts: CatIndicesParts<'b>,
@@ -1450,8 +1450,8 @@ impl CatMasterParts {
14501450
}
14511451
}
14521452
}
1453-
#[derive(Clone, Debug)]
14541453
#[doc = "Builder for the [Cat Master API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-master.html)\n\nReturns information about the master node."]
1454+
#[derive(Clone, Debug)]
14551455
pub struct CatMaster<'a, 'b> {
14561456
transport: &'a Transport,
14571457
parts: CatMasterParts,
@@ -1638,8 +1638,8 @@ impl<'b> CatMlDataFrameAnalyticsParts<'b> {
16381638
}
16391639
}
16401640
}
1641-
#[derive(Clone, Debug)]
16421641
#[doc = "Builder for the [Cat Ml Data Frame Analytics API](http://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-dfanalytics.html)\n\nGets configuration and usage information about data frame analytics jobs."]
1642+
#[derive(Clone, Debug)]
16431643
pub struct CatMlDataFrameAnalytics<'a, 'b> {
16441644
transport: &'a Transport,
16451645
parts: CatMlDataFrameAnalyticsParts<'b>,
@@ -1836,8 +1836,8 @@ impl<'b> CatMlDatafeedsParts<'b> {
18361836
}
18371837
}
18381838
}
1839-
#[derive(Clone, Debug)]
18401839
#[doc = "Builder for the [Cat Ml Datafeeds API](http://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-datafeeds.html)\n\nGets configuration and usage information about datafeeds."]
1840+
#[derive(Clone, Debug)]
18411841
pub struct CatMlDatafeeds<'a, 'b> {
18421842
transport: &'a Transport,
18431843
parts: CatMlDatafeedsParts<'b>,
@@ -2034,8 +2034,8 @@ impl<'b> CatMlJobsParts<'b> {
20342034
}
20352035
}
20362036
}
2037-
#[derive(Clone, Debug)]
20382037
#[doc = "Builder for the [Cat Ml Jobs API](http://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-anomaly-detectors.html)\n\nGets configuration and usage information about anomaly detection jobs."]
2038+
#[derive(Clone, Debug)]
20392039
pub struct CatMlJobs<'a, 'b> {
20402040
transport: &'a Transport,
20412041
parts: CatMlJobsParts<'b>,
@@ -2241,8 +2241,8 @@ impl<'b> CatMlTrainedModelsParts<'b> {
22412241
}
22422242
}
22432243
}
2244-
#[derive(Clone, Debug)]
22452244
#[doc = "Builder for the [Cat Ml Trained Models API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-trained-model.html)\n\nGets configuration and usage information about inference trained models."]
2245+
#[derive(Clone, Debug)]
22462246
pub struct CatMlTrainedModels<'a, 'b> {
22472247
transport: &'a Transport,
22482248
parts: CatMlTrainedModelsParts<'b>,
@@ -2447,8 +2447,8 @@ impl CatNodeattrsParts {
24472447
}
24482448
}
24492449
}
2450-
#[derive(Clone, Debug)]
24512450
#[doc = "Builder for the [Cat Nodeattrs API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-nodeattrs.html)\n\nReturns information about custom node attributes."]
2451+
#[derive(Clone, Debug)]
24522452
pub struct CatNodeattrs<'a, 'b> {
24532453
transport: &'a Transport,
24542454
parts: CatNodeattrsParts,
@@ -2626,8 +2626,8 @@ impl CatNodesParts {
26262626
}
26272627
}
26282628
}
2629-
#[derive(Clone, Debug)]
26302629
#[doc = "Builder for the [Cat Nodes API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-nodes.html)\n\nReturns basic statistics about performance of cluster nodes."]
2630+
#[derive(Clone, Debug)]
26312631
pub struct CatNodes<'a, 'b> {
26322632
transport: &'a Transport,
26332633
parts: CatNodesParts,
@@ -2823,8 +2823,8 @@ impl CatPendingTasksParts {
28232823
}
28242824
}
28252825
}
2826-
#[derive(Clone, Debug)]
28272826
#[doc = "Builder for the [Cat Pending Tasks API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-pending-tasks.html)\n\nReturns a concise representation of the cluster pending tasks."]
2827+
#[derive(Clone, Debug)]
28282828
pub struct CatPendingTasks<'a, 'b> {
28292829
transport: &'a Transport,
28302830
parts: CatPendingTasksParts,
@@ -3011,8 +3011,8 @@ impl CatPluginsParts {
30113011
}
30123012
}
30133013
}
3014-
#[derive(Clone, Debug)]
30153014
#[doc = "Builder for the [Cat Plugins API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-plugins.html)\n\nReturns information about installed plugins across nodes node."]
3015+
#[derive(Clone, Debug)]
30163016
pub struct CatPlugins<'a, 'b> {
30173017
transport: &'a Transport,
30183018
parts: CatPluginsParts,
@@ -3210,8 +3210,8 @@ impl<'b> CatRecoveryParts<'b> {
32103210
}
32113211
}
32123212
}
3213-
#[derive(Clone, Debug)]
32143213
#[doc = "Builder for the [Cat Recovery API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-recovery.html)\n\nReturns information about index shard recoveries, both on-going completed."]
3214+
#[derive(Clone, Debug)]
32153215
pub struct CatRecovery<'a, 'b> {
32163216
transport: &'a Transport,
32173217
parts: CatRecoveryParts<'b>,
@@ -3417,8 +3417,8 @@ impl CatRepositoriesParts {
34173417
}
34183418
}
34193419
}
3420-
#[derive(Clone, Debug)]
34213420
#[doc = "Builder for the [Cat Repositories API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-repositories.html)\n\nReturns information about snapshot repositories registered in the cluster."]
3421+
#[derive(Clone, Debug)]
34223422
pub struct CatRepositories<'a, 'b> {
34233423
transport: &'a Transport,
34243424
parts: CatRepositoriesParts,
@@ -3607,8 +3607,8 @@ impl<'b> CatSegmentsParts<'b> {
36073607
}
36083608
}
36093609
}
3610-
#[derive(Clone, Debug)]
36113610
#[doc = "Builder for the [Cat Segments API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-segments.html)\n\nProvides low-level information about the segments in the shards of an index."]
3611+
#[derive(Clone, Debug)]
36123612
pub struct CatSegments<'a, 'b> {
36133613
transport: &'a Transport,
36143614
parts: CatSegmentsParts<'b>,
@@ -3788,8 +3788,8 @@ impl<'b> CatShardsParts<'b> {
37883788
}
37893789
}
37903790
}
3791-
#[derive(Clone, Debug)]
37923791
#[doc = "Builder for the [Cat Shards API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-shards.html)\n\nProvides a detailed view of shard allocation on nodes."]
3792+
#[derive(Clone, Debug)]
37933793
pub struct CatShards<'a, 'b> {
37943794
transport: &'a Transport,
37953795
parts: CatShardsParts<'b>,
@@ -3987,8 +3987,8 @@ impl<'b> CatSnapshotsParts<'b> {
39873987
}
39883988
}
39893989
}
3990-
#[derive(Clone, Debug)]
39913990
#[doc = "Builder for the [Cat Snapshots API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-snapshots.html)\n\nReturns all snapshots in a specific repository."]
3991+
#[derive(Clone, Debug)]
39923992
pub struct CatSnapshots<'a, 'b> {
39933993
transport: &'a Transport,
39943994
parts: CatSnapshotsParts<'b>,
@@ -4177,9 +4177,10 @@ impl CatTasksParts {
41774177
}
41784178
}
41794179
}
4180-
#[derive(Clone, Debug)]
41814180
#[doc = "Builder for the [Cat Tasks API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/tasks.html)\n\nReturns information about the tasks currently executing on one or more nodes in the cluster."]
4181+
#[doc = "&nbsp;\n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "]
41824182
#[cfg(feature = "experimental-apis")]
4183+
#[derive(Clone, Debug)]
41834184
pub struct CatTasks<'a, 'b> {
41844185
transport: &'a Transport,
41854186
parts: CatTasksParts,
@@ -4396,8 +4397,8 @@ impl<'b> CatTemplatesParts<'b> {
43964397
}
43974398
}
43984399
}
4399-
#[derive(Clone, Debug)]
44004400
#[doc = "Builder for the [Cat Templates API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-templates.html)\n\nReturns information about existing templates."]
4401+
#[derive(Clone, Debug)]
44014402
pub struct CatTemplates<'a, 'b> {
44024403
transport: &'a Transport,
44034404
parts: CatTemplatesParts<'b>,
@@ -4586,8 +4587,8 @@ impl<'b> CatThreadPoolParts<'b> {
45864587
}
45874588
}
45884589
}
4589-
#[derive(Clone, Debug)]
45904590
#[doc = "Builder for the [Cat Thread Pool API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-thread-pool.html)\n\nReturns cluster-wide thread pool statistics per node.\nBy default the active, queue and rejected statistics are returned for all thread pools."]
4591+
#[derive(Clone, Debug)]
45914592
pub struct CatThreadPool<'a, 'b> {
45924593
transport: &'a Transport,
45934594
parts: CatThreadPoolParts<'b>,
@@ -4784,8 +4785,8 @@ impl<'b> CatTransformsParts<'b> {
47844785
}
47854786
}
47864787
}
4787-
#[derive(Clone, Debug)]
47884788
#[doc = "Builder for the [Cat Transforms API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/cat-transforms.html)\n\nGets configuration and usage information about transforms."]
4789+
#[derive(Clone, Debug)]
47894790
pub struct CatTransforms<'a, 'b> {
47904791
transport: &'a Transport,
47914792
parts: CatTransformsParts<'b>,
@@ -5070,6 +5071,7 @@ impl<'a> Cat<'a> {
50705071
CatSnapshots::new(self.transport(), parts)
50715072
}
50725073
#[doc = "[Cat Tasks API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/tasks.html)\n\nReturns information about the tasks currently executing on one or more nodes in the cluster."]
5074+
#[doc = "&nbsp;\n# Optional, experimental\nThis requires the `experimental-apis` feature. Can have breaking changes in future\nversions or might even be removed entirely.\n "]
50735075
#[cfg(feature = "experimental-apis")]
50745076
pub fn tasks<'b>(&'a self) -> CatTasks<'a, 'b> {
50755077
CatTasks::new(self.transport())

0 commit comments

Comments
 (0)