Skip to content

Commit 69c857f

Browse files
Auto-generated API code (#2915)
1 parent e31816c commit 69c857f

File tree

7 files changed

+414
-157
lines changed

7 files changed

+414
-157
lines changed

docs/reference/api-reference.md

Lines changed: 36 additions & 12 deletions
Large diffs are not rendered by default.

src/api/api/cluster.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,16 @@ export default class Cluster {
3838
'cluster.allocation_explain': {
3939
path: [],
4040
body: [
41-
'current_node',
4241
'index',
42+
'shard',
4343
'primary',
44-
'shard'
44+
'current_node'
4545
],
4646
query: [
47+
'index',
48+
'shard',
49+
'primary',
50+
'current_node',
4751
'include_disk_info',
4852
'include_yes_decisions',
4953
'master_timeout'
@@ -222,7 +226,7 @@ export default class Cluster {
222226
}
223227

224228
/**
225-
* Explain the shard allocations. Get explanations for shard allocations in the cluster. For unassigned shards, it provides an explanation for why the shard is unassigned. For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. Refer to the linked documentation for examples of how to troubleshoot allocation issues using this API.
229+
* Explain the shard allocations. Get explanations for shard allocations in the cluster. This API accepts the current_node, index, primary and shard parameters in the request body or in query parameters, but not in both at the same time. For unassigned shards, it provides an explanation for why the shard is unassigned. For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. Refer to the linked documentation for examples of how to troubleshoot allocation issues using this API.
226230
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-allocation-explain | Elasticsearch API documentation}
227231
*/
228232
async allocationExplain (this: That, params?: T.ClusterAllocationExplainRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.ClusterAllocationExplainResponse>

src/api/api/create.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ const acceptedParams: Record<string, { path: string[], body: string[], query: st
3838
'document'
3939
],
4040
query: [
41-
'if_primary_term',
42-
'if_seq_no',
4341
'include_source_on_error',
44-
'op_type',
4542
'pipeline',
4643
'refresh',
4744
'require_alias',

src/api/api/eql.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export default class Eql {
8787
'allow_partial_search_results',
8888
'allow_partial_sequence_results',
8989
'expand_wildcards',
90+
'ccs_minimize_roundtrips',
9091
'ignore_unavailable',
9192
'keep_alive',
9293
'keep_on_completion',

src/api/api/indices.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,10 @@ export default class Indices {
729729
body: [],
730730
query: [
731731
'active_only',
732-
'detailed'
732+
'detailed',
733+
'allow_no_indices',
734+
'expand_wildcards',
735+
'ignore_unavailable'
733736
]
734737
},
735738
'indices.refresh': {

src/api/api/inference.ts

Lines changed: 57 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ export default class Inference {
100100
body: [
101101
'inference_config'
102102
],
103-
query: []
103+
query: [
104+
'timeout'
105+
]
104106
},
105107
'inference.put_alibabacloud': {
106108
path: [
@@ -113,7 +115,9 @@ export default class Inference {
113115
'service_settings',
114116
'task_settings'
115117
],
116-
query: []
118+
query: [
119+
'timeout'
120+
]
117121
},
118122
'inference.put_amazonbedrock': {
119123
path: [
@@ -126,7 +130,9 @@ export default class Inference {
126130
'service_settings',
127131
'task_settings'
128132
],
129-
query: []
133+
query: [
134+
'timeout'
135+
]
130136
},
131137
'inference.put_amazonsagemaker': {
132138
path: [
@@ -147,7 +153,9 @@ export default class Inference {
147153
'service_settings',
148154
'task_settings'
149155
],
150-
query: []
156+
query: [
157+
'timeout'
158+
]
151159
},
152160
'inference.put_azureaistudio': {
153161
path: [
@@ -160,7 +168,9 @@ export default class Inference {
160168
'service_settings',
161169
'task_settings'
162170
],
163-
query: []
171+
query: [
172+
'timeout'
173+
]
164174
},
165175
'inference.put_azureopenai': {
166176
path: [
@@ -173,7 +183,9 @@ export default class Inference {
173183
'service_settings',
174184
'task_settings'
175185
],
176-
query: []
186+
query: [
187+
'timeout'
188+
]
177189
},
178190
'inference.put_cohere': {
179191
path: [
@@ -186,7 +198,9 @@ export default class Inference {
186198
'service_settings',
187199
'task_settings'
188200
],
189-
query: []
201+
query: [
202+
'timeout'
203+
]
190204
},
191205
'inference.put_deepseek': {
192206
path: [
@@ -198,7 +212,9 @@ export default class Inference {
198212
'service',
199213
'service_settings'
200214
],
201-
query: []
215+
query: [
216+
'timeout'
217+
]
202218
},
203219
'inference.put_elasticsearch': {
204220
path: [
@@ -211,7 +227,9 @@ export default class Inference {
211227
'service_settings',
212228
'task_settings'
213229
],
214-
query: []
230+
query: [
231+
'timeout'
232+
]
215233
},
216234
'inference.put_elser': {
217235
path: [
@@ -223,7 +241,9 @@ export default class Inference {
223241
'service',
224242
'service_settings'
225243
],
226-
query: []
244+
query: [
245+
'timeout'
246+
]
227247
},
228248
'inference.put_googleaistudio': {
229249
path: [
@@ -235,7 +255,9 @@ export default class Inference {
235255
'service',
236256
'service_settings'
237257
],
238-
query: []
258+
query: [
259+
'timeout'
260+
]
239261
},
240262
'inference.put_googlevertexai': {
241263
path: [
@@ -248,7 +270,9 @@ export default class Inference {
248270
'service_settings',
249271
'task_settings'
250272
],
251-
query: []
273+
query: [
274+
'timeout'
275+
]
252276
},
253277
'inference.put_hugging_face': {
254278
path: [
@@ -261,7 +285,9 @@ export default class Inference {
261285
'service_settings',
262286
'task_settings'
263287
],
264-
query: []
288+
query: [
289+
'timeout'
290+
]
265291
},
266292
'inference.put_jinaai': {
267293
path: [
@@ -274,7 +300,9 @@ export default class Inference {
274300
'service_settings',
275301
'task_settings'
276302
],
277-
query: []
303+
query: [
304+
'timeout'
305+
]
278306
},
279307
'inference.put_mistral': {
280308
path: [
@@ -286,7 +314,9 @@ export default class Inference {
286314
'service',
287315
'service_settings'
288316
],
289-
query: []
317+
query: [
318+
'timeout'
319+
]
290320
},
291321
'inference.put_openai': {
292322
path: [
@@ -299,7 +329,9 @@ export default class Inference {
299329
'service_settings',
300330
'task_settings'
301331
],
302-
query: []
332+
query: [
333+
'timeout'
334+
]
303335
},
304336
'inference.put_voyageai': {
305337
path: [
@@ -312,7 +344,9 @@ export default class Inference {
312344
'service_settings',
313345
'task_settings'
314346
],
315-
query: []
347+
query: [
348+
'timeout'
349+
]
316350
},
317351
'inference.put_watsonx': {
318352
path: [
@@ -323,7 +357,9 @@ export default class Inference {
323357
'service',
324358
'service_settings'
325359
],
326-
query: []
360+
query: [
361+
'timeout'
362+
]
327363
},
328364
'inference.rerank': {
329365
path: [
@@ -358,7 +394,9 @@ export default class Inference {
358394
'input',
359395
'task_settings'
360396
],
361-
query: []
397+
query: [
398+
'timeout'
399+
]
362400
},
363401
'inference.text_embedding': {
364402
path: [

0 commit comments

Comments
 (0)