Skip to content

Commit 38b2a01

Browse files
committed
Update REST specs and regenerate client
1 parent 88eb560 commit 38b2a01

19 files changed

+175
-25
lines changed

api_generator/rest_specs/cat.ml_datafeeds.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,17 @@
2828
]
2929
},
3030
"params":{
31-
"allow_no_datafeeds":{
31+
"allow_no_match":{
3232
"type":"boolean",
3333
"required":false,
3434
"description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)"
3535
},
36+
"allow_no_datafeeds":{
37+
"type":"boolean",
38+
"required":false,
39+
"description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)",
40+
"deprecated":true
41+
},
3642
"format":{
3743
"type":"string",
3844
"description":"a short version of the Accept header, e.g. json, yaml"

api_generator/rest_specs/cat.ml_jobs.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,17 @@
2828
]
2929
},
3030
"params":{
31-
"allow_no_jobs":{
31+
"allow_no_match":{
3232
"type":"boolean",
3333
"required":false,
3434
"description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)"
3535
},
36+
"allow_no_jobs":{
37+
"type":"boolean",
38+
"required":false,
39+
"description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)",
40+
"deprecated":true
41+
},
3642
"bytes":{
3743
"type":"enum",
3844
"description":"The unit in which to display byte values",

api_generator/rest_specs/clear_scroll.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"clear_scroll":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#_clear_scroll_api",
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html",
55
"description":"Explicitly clears the search context for a scroll."
66
},
77
"stability":"stable",

api_generator/rest_specs/indices.add_block.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"indices.add_block":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-blocks.html",
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/index-modules-blocks.html",
55
"description":"Adds a block to an index."
66
},
77
"stability":"stable",

api_generator/rest_specs/indices.create_data_stream.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"indices.create_data_stream":{
33
"documentation":{
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html",
5-
"description":"Creates or updates a data stream"
5+
"description":"Creates a data stream"
66
},
77
"stability":"stable",
88
"url":{
@@ -22,9 +22,6 @@
2222
]
2323
},
2424
"params":{
25-
},
26-
"body":{
27-
"description":"The data stream definition"
2825
}
2926
}
3027
}

api_generator/rest_specs/indices.resolve_index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"indices.resolve_index":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index.html",
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html",
55
"description":"Returns information about any matching indices, aliases, and data streams"
66
},
77
"stability":"experimental",

api_generator/rest_specs/ml.close_job.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,17 @@
2222
]
2323
},
2424
"params":{
25-
"allow_no_jobs":{
25+
"allow_no_match":{
2626
"type":"boolean",
2727
"required":false,
2828
"description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)"
2929
},
30+
"allow_no_jobs":{
31+
"type":"boolean",
32+
"required":false,
33+
"description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)",
34+
"deprecated":true
35+
},
3036
"force":{
3137
"type":"boolean",
3238
"required":false,

api_generator/rest_specs/ml.get_datafeed_stats.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,16 @@
2828
]
2929
},
3030
"params":{
31-
"allow_no_datafeeds":{
31+
"allow_no_match":{
3232
"type":"boolean",
3333
"required":false,
3434
"description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)"
35+
},
36+
"allow_no_datafeeds":{
37+
"type":"boolean",
38+
"required":false,
39+
"description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)",
40+
"deprecated":true
3541
}
3642
}
3743
}

api_generator/rest_specs/ml.get_datafeeds.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,16 @@
2828
]
2929
},
3030
"params":{
31-
"allow_no_datafeeds":{
31+
"allow_no_match":{
3232
"type":"boolean",
3333
"required":false,
3434
"description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)"
35+
},
36+
"allow_no_datafeeds":{
37+
"type":"boolean",
38+
"required":false,
39+
"description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)",
40+
"deprecated":true
3541
}
3642
}
3743
}

api_generator/rest_specs/ml.get_job_stats.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,16 @@
2828
]
2929
},
3030
"params":{
31-
"allow_no_jobs":{
31+
"allow_no_match":{
3232
"type":"boolean",
3333
"required":false,
3434
"description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)"
35+
},
36+
"allow_no_jobs":{
37+
"type":"boolean",
38+
"required":false,
39+
"description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)",
40+
"deprecated":true
3541
}
3642
}
3743
}

api_generator/rest_specs/ml.get_jobs.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,16 @@
2828
]
2929
},
3030
"params":{
31-
"allow_no_jobs":{
31+
"allow_no_match":{
3232
"type":"boolean",
3333
"required":false,
3434
"description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)"
35+
},
36+
"allow_no_jobs":{
37+
"type":"boolean",
38+
"required":false,
39+
"description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)",
40+
"deprecated":true
3541
}
3642
}
3743
}

api_generator/rest_specs/ml.get_overall_buckets.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,14 @@
4747
"type":"string",
4848
"description":"Returns overall buckets with timestamps earlier than this time"
4949
},
50-
"allow_no_jobs":{
50+
"allow_no_match":{
5151
"type":"boolean",
5252
"description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)"
53+
},
54+
"allow_no_jobs":{
55+
"type":"boolean",
56+
"description":"Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)",
57+
"deprecated":true
5358
}
5459
},
5560
"body":{

api_generator/rest_specs/ml.stop_datafeed.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,17 @@
2222
]
2323
},
2424
"params":{
25-
"allow_no_datafeeds":{
25+
"allow_no_match":{
2626
"type":"boolean",
2727
"required":false,
2828
"description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)"
2929
},
30+
"allow_no_datafeeds":{
31+
"type":"boolean",
32+
"required":false,
33+
"description":"Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)",
34+
"deprecated":true
35+
},
3036
"force":{
3137
"type":"boolean",
3238
"required":false,
@@ -37,6 +43,10 @@
3743
"required":false,
3844
"description":"Controls the time to wait until a datafeed has stopped. Default to 20 seconds"
3945
}
46+
},
47+
"body":{
48+
"description":"The URL params optionally sent in the body",
49+
"required":false
4050
}
4151
}
4252
}

api_generator/rest_specs/xpack.info.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
},
2323
"accept_enterprise":{
2424
"type":"boolean",
25-
"description":"Supported for backwards compatibility with 7.x. If this param is used it must be set to true",
26-
"deprecated":true
25+
"description":"If this param is used it must be set to true",
26+
"deprecated":{
27+
"version":"8.0.0",
28+
"description":"Supported for backwards compatibility with 7.x"
29+
}
2730
}
2831
}
2932
}

elasticsearch/src/generated/namespace_clients/cat.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1867,6 +1867,7 @@ pub struct CatMlDatafeeds<'a, 'b> {
18671867
transport: &'a Transport,
18681868
parts: CatMlDatafeedsParts<'b>,
18691869
allow_no_datafeeds: Option<bool>,
1870+
allow_no_match: Option<bool>,
18701871
error_trace: Option<bool>,
18711872
filter_path: Option<&'b [&'b str]>,
18721873
format: Option<&'b str>,
@@ -1892,6 +1893,7 @@ impl<'a, 'b> CatMlDatafeeds<'a, 'b> {
18921893
parts,
18931894
headers,
18941895
allow_no_datafeeds: None,
1896+
allow_no_match: None,
18951897
error_trace: None,
18961898
filter_path: None,
18971899
format: None,
@@ -1911,6 +1913,11 @@ impl<'a, 'b> CatMlDatafeeds<'a, 'b> {
19111913
self.allow_no_datafeeds = Some(allow_no_datafeeds);
19121914
self
19131915
}
1916+
#[doc = "Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)"]
1917+
pub fn allow_no_match(mut self, allow_no_match: bool) -> Self {
1918+
self.allow_no_match = Some(allow_no_match);
1919+
self
1920+
}
19141921
#[doc = "Include the stack trace of returned errors."]
19151922
pub fn error_trace(mut self, error_trace: bool) -> Self {
19161923
self.error_trace = Some(error_trace);
@@ -1988,6 +1995,8 @@ impl<'a, 'b> CatMlDatafeeds<'a, 'b> {
19881995
struct QueryParams<'b> {
19891996
#[serde(rename = "allow_no_datafeeds")]
19901997
allow_no_datafeeds: Option<bool>,
1998+
#[serde(rename = "allow_no_match")]
1999+
allow_no_match: Option<bool>,
19912000
#[serde(rename = "error_trace")]
19922001
error_trace: Option<bool>,
19932002
#[serde(
@@ -2016,6 +2025,7 @@ impl<'a, 'b> CatMlDatafeeds<'a, 'b> {
20162025
}
20172026
let query_params = QueryParams {
20182027
allow_no_datafeeds: self.allow_no_datafeeds,
2028+
allow_no_match: self.allow_no_match,
20192029
error_trace: self.error_trace,
20202030
filter_path: self.filter_path,
20212031
format: self.format,
@@ -2068,6 +2078,7 @@ pub struct CatMlJobs<'a, 'b> {
20682078
transport: &'a Transport,
20692079
parts: CatMlJobsParts<'b>,
20702080
allow_no_jobs: Option<bool>,
2081+
allow_no_match: Option<bool>,
20712082
bytes: Option<Bytes>,
20722083
error_trace: Option<bool>,
20732084
filter_path: Option<&'b [&'b str]>,
@@ -2094,6 +2105,7 @@ impl<'a, 'b> CatMlJobs<'a, 'b> {
20942105
parts,
20952106
headers,
20962107
allow_no_jobs: None,
2108+
allow_no_match: None,
20972109
bytes: None,
20982110
error_trace: None,
20992111
filter_path: None,
@@ -2114,6 +2126,11 @@ impl<'a, 'b> CatMlJobs<'a, 'b> {
21142126
self.allow_no_jobs = Some(allow_no_jobs);
21152127
self
21162128
}
2129+
#[doc = "Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)"]
2130+
pub fn allow_no_match(mut self, allow_no_match: bool) -> Self {
2131+
self.allow_no_match = Some(allow_no_match);
2132+
self
2133+
}
21172134
#[doc = "The unit in which to display byte values"]
21182135
pub fn bytes(mut self, bytes: Bytes) -> Self {
21192136
self.bytes = Some(bytes);
@@ -2196,6 +2213,8 @@ impl<'a, 'b> CatMlJobs<'a, 'b> {
21962213
struct QueryParams<'b> {
21972214
#[serde(rename = "allow_no_jobs")]
21982215
allow_no_jobs: Option<bool>,
2216+
#[serde(rename = "allow_no_match")]
2217+
allow_no_match: Option<bool>,
21992218
#[serde(rename = "bytes")]
22002219
bytes: Option<Bytes>,
22012220
#[serde(rename = "error_trace")]
@@ -2226,6 +2245,7 @@ impl<'a, 'b> CatMlJobs<'a, 'b> {
22262245
}
22272246
let query_params = QueryParams {
22282247
allow_no_jobs: self.allow_no_jobs,
2248+
allow_no_match: self.allow_no_match,
22292249
bytes: self.bytes,
22302250
error_trace: self.error_trace,
22312251
filter_path: self.filter_path,

elasticsearch/src/generated/namespace_clients/indices.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl<'b> IndicesAddBlockParts<'b> {
6666
}
6767
}
6868
#[derive(Clone, Debug)]
69-
#[doc = "Builder for the [Indices Add Block API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/indices-blocks.html)\n\nAdds a block to an index."]
69+
#[doc = "Builder for the [Indices Add Block API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/index-modules-blocks.html)\n\nAdds a block to an index."]
7070
pub struct IndicesAddBlock<'a, 'b, B> {
7171
transport: &'a Transport,
7272
parts: IndicesAddBlockParts<'b>,
@@ -1273,7 +1273,7 @@ impl<'b> IndicesCreateDataStreamParts<'b> {
12731273
}
12741274
}
12751275
#[derive(Clone, Debug)]
1276-
#[doc = "Builder for the [Indices Create Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/data-streams.html)\n\nCreates or updates a data stream"]
1276+
#[doc = "Builder for the [Indices Create Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/data-streams.html)\n\nCreates a data stream"]
12771277
pub struct IndicesCreateDataStream<'a, 'b, B> {
12781278
transport: &'a Transport,
12791279
parts: IndicesCreateDataStreamParts<'b>,
@@ -8649,7 +8649,7 @@ impl<'a> Indices<'a> {
86498649
pub fn transport(&self) -> &Transport {
86508650
self.transport
86518651
}
8652-
#[doc = "[Indices Add Block API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/indices-blocks.html)\n\nAdds a block to an index."]
8652+
#[doc = "[Indices Add Block API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/index-modules-blocks.html)\n\nAdds a block to an index."]
86538653
pub fn add_block<'b>(&'a self, parts: IndicesAddBlockParts<'b>) -> IndicesAddBlock<'a, 'b, ()> {
86548654
IndicesAddBlock::new(self.transport(), parts)
86558655
}
@@ -8676,7 +8676,7 @@ impl<'a> Indices<'a> {
86768676
pub fn create<'b>(&'a self, parts: IndicesCreateParts<'b>) -> IndicesCreate<'a, 'b, ()> {
86778677
IndicesCreate::new(self.transport(), parts)
86788678
}
8679-
#[doc = "[Indices Create Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/data-streams.html)\n\nCreates or updates a data stream"]
8679+
#[doc = "[Indices Create Data Stream API](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/data-streams.html)\n\nCreates a data stream"]
86808680
pub fn create_data_stream<'b>(
86818681
&'a self,
86828682
parts: IndicesCreateDataStreamParts<'b>,

0 commit comments

Comments
 (0)