Skip to content

Commit 3b6ea09

Browse files
authored
Update rest specs to 7.8 and regenerate client (#124)
This commit runs the api_generator to pull down the latest 7.8 rest specs and regenerate the client to pick up API changes.
1 parent 5132f2d commit 3b6ea09

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

api_generator/rest_specs/xpack.info.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
"categories":{
2020
"type":"list",
2121
"description":"Comma-separated list of info categories. Can be any of: build, license, features"
22+
},
23+
"accept_enterprise":{
24+
"type":"boolean",
25+
"description":"If an enterprise license is installed, return the type and mode as 'enterprise' (default: false)"
2226
}
2327
}
2428
}

elasticsearch/src/generated/namespace_clients/xpack.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ impl XpackInfoParts {
5757
pub struct XpackInfo<'a, 'b> {
5858
transport: &'a Transport,
5959
parts: XpackInfoParts,
60+
accept_enterprise: Option<bool>,
6061
categories: Option<&'b [&'b str]>,
6162
error_trace: Option<bool>,
6263
filter_path: Option<&'b [&'b str]>,
@@ -73,6 +74,7 @@ impl<'a, 'b> XpackInfo<'a, 'b> {
7374
transport,
7475
parts: XpackInfoParts::None,
7576
headers,
77+
accept_enterprise: None,
7678
categories: None,
7779
error_trace: None,
7880
filter_path: None,
@@ -81,6 +83,11 @@ impl<'a, 'b> XpackInfo<'a, 'b> {
8183
source: None,
8284
}
8385
}
86+
#[doc = "If an enterprise license is installed, return the type and mode as 'enterprise' (default: false)"]
87+
pub fn accept_enterprise(mut self, accept_enterprise: bool) -> Self {
88+
self.accept_enterprise = Some(accept_enterprise);
89+
self
90+
}
8491
#[doc = "Comma-separated list of info categories. Can be any of: build, license, features"]
8592
pub fn categories(mut self, categories: &'b [&'b str]) -> Self {
8693
self.categories = Some(categories);
@@ -125,6 +132,8 @@ impl<'a, 'b> XpackInfo<'a, 'b> {
125132
#[serde_with::skip_serializing_none]
126133
#[derive(Serialize)]
127134
struct QueryParams<'b> {
135+
#[serde(rename = "accept_enterprise")]
136+
accept_enterprise: Option<bool>,
128137
#[serde(
129138
rename = "categories",
130139
serialize_with = "crate::client::serialize_coll_qs"
@@ -145,6 +154,7 @@ impl<'a, 'b> XpackInfo<'a, 'b> {
145154
source: Option<&'b str>,
146155
}
147156
let query_params = QueryParams {
157+
accept_enterprise: self.accept_enterprise,
148158
categories: self.categories,
149159
error_trace: self.error_trace,
150160
filter_path: self.filter_path,

0 commit comments

Comments
 (0)