@@ -57,6 +57,7 @@ impl XpackInfoParts {
57
57
pub struct XpackInfo < ' a , ' b > {
58
58
transport : & ' a Transport ,
59
59
parts : XpackInfoParts ,
60
+ accept_enterprise : Option < bool > ,
60
61
categories : Option < & ' b [ & ' b str ] > ,
61
62
error_trace : Option < bool > ,
62
63
filter_path : Option < & ' b [ & ' b str ] > ,
@@ -73,6 +74,7 @@ impl<'a, 'b> XpackInfo<'a, 'b> {
73
74
transport,
74
75
parts : XpackInfoParts :: None ,
75
76
headers,
77
+ accept_enterprise : None ,
76
78
categories : None ,
77
79
error_trace : None ,
78
80
filter_path : None ,
@@ -81,6 +83,11 @@ impl<'a, 'b> XpackInfo<'a, 'b> {
81
83
source : None ,
82
84
}
83
85
}
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
+ }
84
91
#[ doc = "Comma-separated list of info categories. Can be any of: build, license, features" ]
85
92
pub fn categories ( mut self , categories : & ' b [ & ' b str ] ) -> Self {
86
93
self . categories = Some ( categories) ;
@@ -125,6 +132,8 @@ impl<'a, 'b> XpackInfo<'a, 'b> {
125
132
#[ serde_with:: skip_serializing_none]
126
133
#[ derive( Serialize ) ]
127
134
struct QueryParams < ' b > {
135
+ #[ serde( rename = "accept_enterprise" ) ]
136
+ accept_enterprise : Option < bool > ,
128
137
#[ serde(
129
138
rename = "categories" ,
130
139
serialize_with = "crate::client::serialize_coll_qs"
@@ -145,6 +154,7 @@ impl<'a, 'b> XpackInfo<'a, 'b> {
145
154
source : Option < & ' b str > ,
146
155
}
147
156
let query_params = QueryParams {
157
+ accept_enterprise : self . accept_enterprise ,
148
158
categories : self . categories ,
149
159
error_trace : self . error_trace ,
150
160
filter_path : self . filter_path ,
0 commit comments