@elastic/elasticsearch 7.11.0 → 7.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/api/api/async_search.js +11 -11
- package/api/api/autoscaling.js +12 -12
- package/api/api/bulk.js +4 -4
- package/api/api/cat.js +52 -52
- package/api/api/ccr.js +40 -40
- package/api/api/clear_scroll.js +2 -2
- package/api/api/close_point_in_time.js +2 -2
- package/api/api/cluster.js +36 -36
- package/api/api/count.js +3 -3
- package/api/api/create.js +5 -5
- package/api/api/dangling_indices.js +8 -8
- package/api/api/delete.js +4 -4
- package/api/api/delete_by_query.js +5 -5
- package/api/api/delete_by_query_rethrottle.js +4 -4
- package/api/api/delete_script.js +3 -3
- package/api/api/enrich.js +14 -14
- package/api/api/eql.js +41 -10
- package/api/api/exists.js +4 -4
- package/api/api/exists_source.js +6 -6
- package/api/api/explain.js +4 -4
- package/api/api/features.js +59 -0
- package/api/api/field_caps.js +2 -2
- package/api/api/get.js +4 -4
- package/api/api/get_script.js +3 -3
- package/api/api/get_script_context.js +2 -2
- package/api/api/get_script_languages.js +2 -2
- package/api/api/get_source.js +4 -4
- package/api/api/graph.js +4 -4
- package/api/api/ilm.js +26 -26
- package/api/api/index.js +4 -4
- package/api/api/indices.js +162 -162
- package/api/api/info.js +2 -2
- package/api/api/ingest.js +14 -14
- package/api/api/license.js +14 -14
- package/api/api/logstash.js +125 -0
- package/api/api/mget.js +4 -4
- package/api/api/migration.js +2 -2
- package/api/api/ml.js +198 -226
- package/api/api/monitoring.js +3 -3
- package/api/api/msearch.js +4 -4
- package/api/api/msearch_template.js +4 -4
- package/api/api/mtermvectors.js +3 -3
- package/api/api/nodes.js +10 -10
- package/api/api/open_point_in_time.js +2 -2
- package/api/api/ping.js +2 -2
- package/api/api/put_script.js +5 -5
- package/api/api/rank_eval.js +3 -3
- package/api/api/reindex.js +3 -3
- package/api/api/reindex_rethrottle.js +4 -4
- package/api/api/render_search_template.js +2 -2
- package/api/api/rollup.js +31 -31
- package/api/api/scripts_painless_execute.js +2 -2
- package/api/api/scroll.js +2 -2
- package/api/api/search.js +5 -5
- package/api/api/search_shards.js +2 -2
- package/api/api/search_template.js +4 -4
- package/api/api/searchable_snapshots.js +14 -14
- package/api/api/security.js +85 -85
- package/api/api/slm.js +21 -21
- package/api/api/snapshot.js +46 -46
- package/api/api/sql.js +9 -9
- package/api/api/ssl.js +2 -2
- package/api/api/tasks.js +7 -7
- package/api/api/termvectors.js +3 -3
- package/api/api/text_structure.js +65 -0
- package/api/api/transform.js +25 -25
- package/api/api/update.js +5 -5
- package/api/api/update_by_query.js +4 -4
- package/api/api/update_by_query_rethrottle.js +4 -4
- package/api/api/watcher.js +29 -29
- package/api/api/xpack.js +4 -4
- package/api/index.js +34 -0
- package/api/requestParams.d.ts +43 -18
- package/api/utils.js +4 -4
- package/free-report-junit.xml +13 -0
- package/index.d.ts +64 -8
- package/index.js +15 -23
- package/lib/Connection.js +2 -2
- package/lib/Helpers.d.ts +2 -2
- package/lib/Helpers.js +11 -6
- package/lib/Serializer.js +8 -6
- package/lib/Transport.d.ts +1 -0
- package/lib/Transport.js +10 -6
- package/lib/pool/BaseConnectionPool.js +3 -3
- package/lib/pool/ConnectionPool.js +4 -5
- package/package.json +23 -23
- package/api/kibana.d.ts +0 -485
package/api/api/indices.js
CHANGED
|
@@ -35,25 +35,25 @@ IndicesApi.prototype.addBlock = function indicesAddBlockApi (params, options, ca
|
|
|
35
35
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
36
36
|
|
|
37
37
|
// check required parameters
|
|
38
|
-
if (params
|
|
38
|
+
if (params.index == null) {
|
|
39
39
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
40
40
|
return handleError(err, callback)
|
|
41
41
|
}
|
|
42
|
-
if (params
|
|
42
|
+
if (params.block == null) {
|
|
43
43
|
const err = new this[kConfigurationError]('Missing required parameter: block')
|
|
44
44
|
return handleError(err, callback)
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// check required url components
|
|
48
|
-
if (params
|
|
48
|
+
if (params.block != null && (params.index == null)) {
|
|
49
49
|
const err = new this[kConfigurationError]('Missing required parameter of the url: index')
|
|
50
50
|
return handleError(err, callback)
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
let { method, body, index, block, ...querystring } = params
|
|
54
54
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
let path = ''
|
|
57
57
|
if (method == null) method = 'PUT'
|
|
58
58
|
path = '/' + encodeURIComponent(index) + '/' + '_block' + '/' + encodeURIComponent(block)
|
|
59
59
|
|
|
@@ -71,10 +71,10 @@ IndicesApi.prototype.addBlock = function indicesAddBlockApi (params, options, ca
|
|
|
71
71
|
IndicesApi.prototype.analyze = function indicesAnalyzeApi (params, options, callback) {
|
|
72
72
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
let { method, body, index, ...querystring } = params
|
|
75
75
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
let path = ''
|
|
78
78
|
if ((index) != null) {
|
|
79
79
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
80
80
|
path = '/' + encodeURIComponent(index) + '/' + '_analyze'
|
|
@@ -97,10 +97,10 @@ IndicesApi.prototype.analyze = function indicesAnalyzeApi (params, options, call
|
|
|
97
97
|
IndicesApi.prototype.clearCache = function indicesClearCacheApi (params, options, callback) {
|
|
98
98
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
let { method, body, index, ...querystring } = params
|
|
101
101
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
let path = ''
|
|
104
104
|
if ((index) != null) {
|
|
105
105
|
if (method == null) method = 'POST'
|
|
106
106
|
path = '/' + encodeURIComponent(index) + '/' + '_cache' + '/' + 'clear'
|
|
@@ -124,25 +124,25 @@ IndicesApi.prototype.clone = function indicesCloneApi (params, options, callback
|
|
|
124
124
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
125
125
|
|
|
126
126
|
// check required parameters
|
|
127
|
-
if (params
|
|
127
|
+
if (params.index == null) {
|
|
128
128
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
129
129
|
return handleError(err, callback)
|
|
130
130
|
}
|
|
131
|
-
if (params
|
|
131
|
+
if (params.target == null) {
|
|
132
132
|
const err = new this[kConfigurationError]('Missing required parameter: target')
|
|
133
133
|
return handleError(err, callback)
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
// check required url components
|
|
137
|
-
if (params
|
|
137
|
+
if (params.target != null && (params.index == null)) {
|
|
138
138
|
const err = new this[kConfigurationError]('Missing required parameter of the url: index')
|
|
139
139
|
return handleError(err, callback)
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
let { method, body, index, target, ...querystring } = params
|
|
143
143
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
let path = ''
|
|
146
146
|
if (method == null) method = 'PUT'
|
|
147
147
|
path = '/' + encodeURIComponent(index) + '/' + '_clone' + '/' + encodeURIComponent(target)
|
|
148
148
|
|
|
@@ -161,15 +161,15 @@ IndicesApi.prototype.close = function indicesCloseApi (params, options, callback
|
|
|
161
161
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
162
162
|
|
|
163
163
|
// check required parameters
|
|
164
|
-
if (params
|
|
164
|
+
if (params.index == null) {
|
|
165
165
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
166
166
|
return handleError(err, callback)
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
|
|
169
|
+
let { method, body, index, ...querystring } = params
|
|
170
170
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
let path = ''
|
|
173
173
|
if (method == null) method = 'POST'
|
|
174
174
|
path = '/' + encodeURIComponent(index) + '/' + '_close'
|
|
175
175
|
|
|
@@ -188,15 +188,15 @@ IndicesApi.prototype.create = function indicesCreateApi (params, options, callba
|
|
|
188
188
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
189
189
|
|
|
190
190
|
// check required parameters
|
|
191
|
-
if (params
|
|
191
|
+
if (params.index == null) {
|
|
192
192
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
193
193
|
return handleError(err, callback)
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
|
|
196
|
+
let { method, body, index, ...querystring } = params
|
|
197
197
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
198
198
|
|
|
199
|
-
|
|
199
|
+
let path = ''
|
|
200
200
|
if (method == null) method = 'PUT'
|
|
201
201
|
path = '/' + encodeURIComponent(index)
|
|
202
202
|
|
|
@@ -215,15 +215,15 @@ IndicesApi.prototype.delete = function indicesDeleteApi (params, options, callba
|
|
|
215
215
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
216
216
|
|
|
217
217
|
// check required parameters
|
|
218
|
-
if (params
|
|
218
|
+
if (params.index == null) {
|
|
219
219
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
220
220
|
return handleError(err, callback)
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
|
|
223
|
+
let { method, body, index, ...querystring } = params
|
|
224
224
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
225
225
|
|
|
226
|
-
|
|
226
|
+
let path = ''
|
|
227
227
|
if (method == null) method = 'DELETE'
|
|
228
228
|
path = '/' + encodeURIComponent(index)
|
|
229
229
|
|
|
@@ -242,25 +242,25 @@ IndicesApi.prototype.deleteAlias = function indicesDeleteAliasApi (params, optio
|
|
|
242
242
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
243
243
|
|
|
244
244
|
// check required parameters
|
|
245
|
-
if (params
|
|
245
|
+
if (params.index == null) {
|
|
246
246
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
247
247
|
return handleError(err, callback)
|
|
248
248
|
}
|
|
249
|
-
if (params
|
|
249
|
+
if (params.name == null) {
|
|
250
250
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
251
251
|
return handleError(err, callback)
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
// check required url components
|
|
255
|
-
if (params
|
|
255
|
+
if (params.name != null && (params.index == null)) {
|
|
256
256
|
const err = new this[kConfigurationError]('Missing required parameter of the url: index')
|
|
257
257
|
return handleError(err, callback)
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
|
|
260
|
+
let { method, body, index, name, ...querystring } = params
|
|
261
261
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
262
262
|
|
|
263
|
-
|
|
263
|
+
let path = ''
|
|
264
264
|
if ((index) != null && (name) != null) {
|
|
265
265
|
if (method == null) method = 'DELETE'
|
|
266
266
|
path = '/' + encodeURIComponent(index) + '/' + '_alias' + '/' + encodeURIComponent(name)
|
|
@@ -284,15 +284,15 @@ IndicesApi.prototype.deleteIndexTemplate = function indicesDeleteIndexTemplateAp
|
|
|
284
284
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
285
285
|
|
|
286
286
|
// check required parameters
|
|
287
|
-
if (params
|
|
287
|
+
if (params.name == null) {
|
|
288
288
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
289
289
|
return handleError(err, callback)
|
|
290
290
|
}
|
|
291
291
|
|
|
292
|
-
|
|
292
|
+
let { method, body, name, ...querystring } = params
|
|
293
293
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
294
294
|
|
|
295
|
-
|
|
295
|
+
let path = ''
|
|
296
296
|
if (method == null) method = 'DELETE'
|
|
297
297
|
path = '/' + '_index_template' + '/' + encodeURIComponent(name)
|
|
298
298
|
|
|
@@ -311,15 +311,15 @@ IndicesApi.prototype.deleteTemplate = function indicesDeleteTemplateApi (params,
|
|
|
311
311
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
312
312
|
|
|
313
313
|
// check required parameters
|
|
314
|
-
if (params
|
|
314
|
+
if (params.name == null) {
|
|
315
315
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
316
316
|
return handleError(err, callback)
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
|
|
319
|
+
let { method, body, name, ...querystring } = params
|
|
320
320
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
321
321
|
|
|
322
|
-
|
|
322
|
+
let path = ''
|
|
323
323
|
if (method == null) method = 'DELETE'
|
|
324
324
|
path = '/' + '_template' + '/' + encodeURIComponent(name)
|
|
325
325
|
|
|
@@ -338,15 +338,15 @@ IndicesApi.prototype.exists = function indicesExistsApi (params, options, callba
|
|
|
338
338
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
339
339
|
|
|
340
340
|
// check required parameters
|
|
341
|
-
if (params
|
|
341
|
+
if (params.index == null) {
|
|
342
342
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
343
343
|
return handleError(err, callback)
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
|
|
346
|
+
let { method, body, index, ...querystring } = params
|
|
347
347
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
348
348
|
|
|
349
|
-
|
|
349
|
+
let path = ''
|
|
350
350
|
if (method == null) method = 'HEAD'
|
|
351
351
|
path = '/' + encodeURIComponent(index)
|
|
352
352
|
|
|
@@ -365,15 +365,15 @@ IndicesApi.prototype.existsAlias = function indicesExistsAliasApi (params, optio
|
|
|
365
365
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
366
366
|
|
|
367
367
|
// check required parameters
|
|
368
|
-
if (params
|
|
368
|
+
if (params.name == null) {
|
|
369
369
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
370
370
|
return handleError(err, callback)
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
-
|
|
373
|
+
let { method, body, name, index, ...querystring } = params
|
|
374
374
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
375
375
|
|
|
376
|
-
|
|
376
|
+
let path = ''
|
|
377
377
|
if ((index) != null && (name) != null) {
|
|
378
378
|
if (method == null) method = 'HEAD'
|
|
379
379
|
path = '/' + encodeURIComponent(index) + '/' + '_alias' + '/' + encodeURIComponent(name)
|
|
@@ -397,15 +397,15 @@ IndicesApi.prototype.existsIndexTemplate = function indicesExistsIndexTemplateAp
|
|
|
397
397
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
398
398
|
|
|
399
399
|
// check required parameters
|
|
400
|
-
if (params
|
|
400
|
+
if (params.name == null) {
|
|
401
401
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
402
402
|
return handleError(err, callback)
|
|
403
403
|
}
|
|
404
404
|
|
|
405
|
-
|
|
405
|
+
let { method, body, name, ...querystring } = params
|
|
406
406
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
407
407
|
|
|
408
|
-
|
|
408
|
+
let path = ''
|
|
409
409
|
if (method == null) method = 'HEAD'
|
|
410
410
|
path = '/' + '_index_template' + '/' + encodeURIComponent(name)
|
|
411
411
|
|
|
@@ -424,15 +424,15 @@ IndicesApi.prototype.existsTemplate = function indicesExistsTemplateApi (params,
|
|
|
424
424
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
425
425
|
|
|
426
426
|
// check required parameters
|
|
427
|
-
if (params
|
|
427
|
+
if (params.name == null) {
|
|
428
428
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
429
429
|
return handleError(err, callback)
|
|
430
430
|
}
|
|
431
431
|
|
|
432
|
-
|
|
432
|
+
let { method, body, name, ...querystring } = params
|
|
433
433
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
434
434
|
|
|
435
|
-
|
|
435
|
+
let path = ''
|
|
436
436
|
if (method == null) method = 'HEAD'
|
|
437
437
|
path = '/' + '_template' + '/' + encodeURIComponent(name)
|
|
438
438
|
|
|
@@ -451,25 +451,25 @@ IndicesApi.prototype.existsType = function indicesExistsTypeApi (params, options
|
|
|
451
451
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
452
452
|
|
|
453
453
|
// check required parameters
|
|
454
|
-
if (params
|
|
454
|
+
if (params.index == null) {
|
|
455
455
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
456
456
|
return handleError(err, callback)
|
|
457
457
|
}
|
|
458
|
-
if (params
|
|
458
|
+
if (params.type == null) {
|
|
459
459
|
const err = new this[kConfigurationError]('Missing required parameter: type')
|
|
460
460
|
return handleError(err, callback)
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
// check required url components
|
|
464
|
-
if (params
|
|
464
|
+
if (params.type != null && (params.index == null)) {
|
|
465
465
|
const err = new this[kConfigurationError]('Missing required parameter of the url: index')
|
|
466
466
|
return handleError(err, callback)
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
-
|
|
469
|
+
let { method, body, index, type, ...querystring } = params
|
|
470
470
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
471
471
|
|
|
472
|
-
|
|
472
|
+
let path = ''
|
|
473
473
|
if (method == null) method = 'HEAD'
|
|
474
474
|
path = '/' + encodeURIComponent(index) + '/' + '_mapping' + '/' + encodeURIComponent(type)
|
|
475
475
|
|
|
@@ -487,10 +487,10 @@ IndicesApi.prototype.existsType = function indicesExistsTypeApi (params, options
|
|
|
487
487
|
IndicesApi.prototype.flush = function indicesFlushApi (params, options, callback) {
|
|
488
488
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
489
489
|
|
|
490
|
-
|
|
490
|
+
let { method, body, index, ...querystring } = params
|
|
491
491
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
492
492
|
|
|
493
|
-
|
|
493
|
+
let path = ''
|
|
494
494
|
if ((index) != null) {
|
|
495
495
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
496
496
|
path = '/' + encodeURIComponent(index) + '/' + '_flush'
|
|
@@ -513,10 +513,10 @@ IndicesApi.prototype.flush = function indicesFlushApi (params, options, callback
|
|
|
513
513
|
IndicesApi.prototype.flushSynced = function indicesFlushSyncedApi (params, options, callback) {
|
|
514
514
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
515
515
|
|
|
516
|
-
|
|
516
|
+
let { method, body, index, ...querystring } = params
|
|
517
517
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
518
518
|
|
|
519
|
-
|
|
519
|
+
let path = ''
|
|
520
520
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
521
521
|
path = '/' + encodeURIComponent(index) + '/' + '_flush' + '/' + 'synced'
|
|
522
522
|
|
|
@@ -534,10 +534,10 @@ IndicesApi.prototype.flushSynced = function indicesFlushSyncedApi (params, optio
|
|
|
534
534
|
IndicesApi.prototype.forcemerge = function indicesForcemergeApi (params, options, callback) {
|
|
535
535
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
536
536
|
|
|
537
|
-
|
|
537
|
+
let { method, body, index, ...querystring } = params
|
|
538
538
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
539
539
|
|
|
540
|
-
|
|
540
|
+
let path = ''
|
|
541
541
|
if ((index) != null) {
|
|
542
542
|
if (method == null) method = 'POST'
|
|
543
543
|
path = '/' + encodeURIComponent(index) + '/' + '_forcemerge'
|
|
@@ -561,15 +561,15 @@ IndicesApi.prototype.get = function indicesGetApi (params, options, callback) {
|
|
|
561
561
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
562
562
|
|
|
563
563
|
// check required parameters
|
|
564
|
-
if (params
|
|
564
|
+
if (params.index == null) {
|
|
565
565
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
566
566
|
return handleError(err, callback)
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
|
|
569
|
+
let { method, body, index, ...querystring } = params
|
|
570
570
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
571
571
|
|
|
572
|
-
|
|
572
|
+
let path = ''
|
|
573
573
|
if (method == null) method = 'GET'
|
|
574
574
|
path = '/' + encodeURIComponent(index)
|
|
575
575
|
|
|
@@ -587,10 +587,10 @@ IndicesApi.prototype.get = function indicesGetApi (params, options, callback) {
|
|
|
587
587
|
IndicesApi.prototype.getAlias = function indicesGetAliasApi (params, options, callback) {
|
|
588
588
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
589
589
|
|
|
590
|
-
|
|
590
|
+
let { method, body, name, index, ...querystring } = params
|
|
591
591
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
592
592
|
|
|
593
|
-
|
|
593
|
+
let path = ''
|
|
594
594
|
if ((index) != null && (name) != null) {
|
|
595
595
|
if (method == null) method = 'GET'
|
|
596
596
|
path = '/' + encodeURIComponent(index) + '/' + '_alias' + '/' + encodeURIComponent(name)
|
|
@@ -620,15 +620,15 @@ IndicesApi.prototype.getFieldMapping = function indicesGetFieldMappingApi (param
|
|
|
620
620
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
621
621
|
|
|
622
622
|
// check required parameters
|
|
623
|
-
if (params
|
|
623
|
+
if (params.fields == null) {
|
|
624
624
|
const err = new this[kConfigurationError]('Missing required parameter: fields')
|
|
625
625
|
return handleError(err, callback)
|
|
626
626
|
}
|
|
627
627
|
|
|
628
|
-
|
|
628
|
+
let { method, body, fields, index, type, ...querystring } = params
|
|
629
629
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
630
630
|
|
|
631
|
-
|
|
631
|
+
let path = ''
|
|
632
632
|
if ((index) != null && (type) != null && (fields) != null) {
|
|
633
633
|
if (method == null) method = 'GET'
|
|
634
634
|
path = '/' + encodeURIComponent(index) + '/' + '_mapping' + '/' + encodeURIComponent(type) + '/' + 'field' + '/' + encodeURIComponent(fields)
|
|
@@ -657,10 +657,10 @@ IndicesApi.prototype.getFieldMapping = function indicesGetFieldMappingApi (param
|
|
|
657
657
|
IndicesApi.prototype.getIndexTemplate = function indicesGetIndexTemplateApi (params, options, callback) {
|
|
658
658
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
659
659
|
|
|
660
|
-
|
|
660
|
+
let { method, body, name, ...querystring } = params
|
|
661
661
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
662
662
|
|
|
663
|
-
|
|
663
|
+
let path = ''
|
|
664
664
|
if ((name) != null) {
|
|
665
665
|
if (method == null) method = 'GET'
|
|
666
666
|
path = '/' + '_index_template' + '/' + encodeURIComponent(name)
|
|
@@ -683,10 +683,10 @@ IndicesApi.prototype.getIndexTemplate = function indicesGetIndexTemplateApi (par
|
|
|
683
683
|
IndicesApi.prototype.getMapping = function indicesGetMappingApi (params, options, callback) {
|
|
684
684
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
685
685
|
|
|
686
|
-
|
|
686
|
+
let { method, body, index, type, ...querystring } = params
|
|
687
687
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
688
688
|
|
|
689
|
-
|
|
689
|
+
let path = ''
|
|
690
690
|
if ((index) != null && (type) != null) {
|
|
691
691
|
if (method == null) method = 'GET'
|
|
692
692
|
path = '/' + encodeURIComponent(index) + '/' + '_mapping' + '/' + encodeURIComponent(type)
|
|
@@ -715,10 +715,10 @@ IndicesApi.prototype.getMapping = function indicesGetMappingApi (params, options
|
|
|
715
715
|
IndicesApi.prototype.getSettings = function indicesGetSettingsApi (params, options, callback) {
|
|
716
716
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
717
717
|
|
|
718
|
-
|
|
718
|
+
let { method, body, index, name, ...querystring } = params
|
|
719
719
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
720
720
|
|
|
721
|
-
|
|
721
|
+
let path = ''
|
|
722
722
|
if ((index) != null && (name) != null) {
|
|
723
723
|
if (method == null) method = 'GET'
|
|
724
724
|
path = '/' + encodeURIComponent(index) + '/' + '_settings' + '/' + encodeURIComponent(name)
|
|
@@ -747,10 +747,10 @@ IndicesApi.prototype.getSettings = function indicesGetSettingsApi (params, optio
|
|
|
747
747
|
IndicesApi.prototype.getTemplate = function indicesGetTemplateApi (params, options, callback) {
|
|
748
748
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
749
749
|
|
|
750
|
-
|
|
750
|
+
let { method, body, name, ...querystring } = params
|
|
751
751
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
752
752
|
|
|
753
|
-
|
|
753
|
+
let path = ''
|
|
754
754
|
if ((name) != null) {
|
|
755
755
|
if (method == null) method = 'GET'
|
|
756
756
|
path = '/' + '_template' + '/' + encodeURIComponent(name)
|
|
@@ -773,10 +773,10 @@ IndicesApi.prototype.getTemplate = function indicesGetTemplateApi (params, optio
|
|
|
773
773
|
IndicesApi.prototype.getUpgrade = function indicesGetUpgradeApi (params, options, callback) {
|
|
774
774
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
775
775
|
|
|
776
|
-
|
|
776
|
+
let { method, body, index, ...querystring } = params
|
|
777
777
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
778
778
|
|
|
779
|
-
|
|
779
|
+
let path = ''
|
|
780
780
|
if (method == null) method = 'GET'
|
|
781
781
|
path = '/' + encodeURIComponent(index) + '/' + '_upgrade'
|
|
782
782
|
|
|
@@ -795,15 +795,15 @@ IndicesApi.prototype.open = function indicesOpenApi (params, options, callback)
|
|
|
795
795
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
796
796
|
|
|
797
797
|
// check required parameters
|
|
798
|
-
if (params
|
|
798
|
+
if (params.index == null) {
|
|
799
799
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
800
800
|
return handleError(err, callback)
|
|
801
801
|
}
|
|
802
802
|
|
|
803
|
-
|
|
803
|
+
let { method, body, index, ...querystring } = params
|
|
804
804
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
805
805
|
|
|
806
|
-
|
|
806
|
+
let path = ''
|
|
807
807
|
if (method == null) method = 'POST'
|
|
808
808
|
path = '/' + encodeURIComponent(index) + '/' + '_open'
|
|
809
809
|
|
|
@@ -822,25 +822,25 @@ IndicesApi.prototype.putAlias = function indicesPutAliasApi (params, options, ca
|
|
|
822
822
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
823
823
|
|
|
824
824
|
// check required parameters
|
|
825
|
-
if (params
|
|
825
|
+
if (params.index == null) {
|
|
826
826
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
827
827
|
return handleError(err, callback)
|
|
828
828
|
}
|
|
829
|
-
if (params
|
|
829
|
+
if (params.name == null) {
|
|
830
830
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
831
831
|
return handleError(err, callback)
|
|
832
832
|
}
|
|
833
833
|
|
|
834
834
|
// check required url components
|
|
835
|
-
if (params
|
|
835
|
+
if (params.name != null && (params.index == null)) {
|
|
836
836
|
const err = new this[kConfigurationError]('Missing required parameter of the url: index')
|
|
837
837
|
return handleError(err, callback)
|
|
838
838
|
}
|
|
839
839
|
|
|
840
|
-
|
|
840
|
+
let { method, body, index, name, ...querystring } = params
|
|
841
841
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
842
842
|
|
|
843
|
-
|
|
843
|
+
let path = ''
|
|
844
844
|
if ((index) != null && (name) != null) {
|
|
845
845
|
if (method == null) method = 'PUT'
|
|
846
846
|
path = '/' + encodeURIComponent(index) + '/' + '_alias' + '/' + encodeURIComponent(name)
|
|
@@ -864,19 +864,19 @@ IndicesApi.prototype.putIndexTemplate = function indicesPutIndexTemplateApi (par
|
|
|
864
864
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
865
865
|
|
|
866
866
|
// check required parameters
|
|
867
|
-
if (params
|
|
867
|
+
if (params.name == null) {
|
|
868
868
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
869
869
|
return handleError(err, callback)
|
|
870
870
|
}
|
|
871
|
-
if (params
|
|
871
|
+
if (params.body == null) {
|
|
872
872
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
873
873
|
return handleError(err, callback)
|
|
874
874
|
}
|
|
875
875
|
|
|
876
|
-
|
|
876
|
+
let { method, body, name, ...querystring } = params
|
|
877
877
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
878
878
|
|
|
879
|
-
|
|
879
|
+
let path = ''
|
|
880
880
|
if (method == null) method = 'PUT'
|
|
881
881
|
path = '/' + '_index_template' + '/' + encodeURIComponent(name)
|
|
882
882
|
|
|
@@ -895,15 +895,15 @@ IndicesApi.prototype.putMapping = function indicesPutMappingApi (params, options
|
|
|
895
895
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
896
896
|
|
|
897
897
|
// check required parameters
|
|
898
|
-
if (params
|
|
898
|
+
if (params.body == null) {
|
|
899
899
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
900
900
|
return handleError(err, callback)
|
|
901
901
|
}
|
|
902
902
|
|
|
903
|
-
|
|
903
|
+
let { method, body, index, type, ...querystring } = params
|
|
904
904
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
905
905
|
|
|
906
|
-
|
|
906
|
+
let path = ''
|
|
907
907
|
if ((index) != null && (type) != null) {
|
|
908
908
|
if (method == null) method = 'PUT'
|
|
909
909
|
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + '_mapping'
|
|
@@ -945,15 +945,15 @@ IndicesApi.prototype.putSettings = function indicesPutSettingsApi (params, optio
|
|
|
945
945
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
946
946
|
|
|
947
947
|
// check required parameters
|
|
948
|
-
if (params
|
|
948
|
+
if (params.body == null) {
|
|
949
949
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
950
950
|
return handleError(err, callback)
|
|
951
951
|
}
|
|
952
952
|
|
|
953
|
-
|
|
953
|
+
let { method, body, index, ...querystring } = params
|
|
954
954
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
955
955
|
|
|
956
|
-
|
|
956
|
+
let path = ''
|
|
957
957
|
if ((index) != null) {
|
|
958
958
|
if (method == null) method = 'PUT'
|
|
959
959
|
path = '/' + encodeURIComponent(index) + '/' + '_settings'
|
|
@@ -977,19 +977,19 @@ IndicesApi.prototype.putTemplate = function indicesPutTemplateApi (params, optio
|
|
|
977
977
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
978
978
|
|
|
979
979
|
// check required parameters
|
|
980
|
-
if (params
|
|
980
|
+
if (params.name == null) {
|
|
981
981
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
982
982
|
return handleError(err, callback)
|
|
983
983
|
}
|
|
984
|
-
if (params
|
|
984
|
+
if (params.body == null) {
|
|
985
985
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
986
986
|
return handleError(err, callback)
|
|
987
987
|
}
|
|
988
988
|
|
|
989
|
-
|
|
989
|
+
let { method, body, name, ...querystring } = params
|
|
990
990
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
991
991
|
|
|
992
|
-
|
|
992
|
+
let path = ''
|
|
993
993
|
if (method == null) method = 'PUT'
|
|
994
994
|
path = '/' + '_template' + '/' + encodeURIComponent(name)
|
|
995
995
|
|
|
@@ -1007,10 +1007,10 @@ IndicesApi.prototype.putTemplate = function indicesPutTemplateApi (params, optio
|
|
|
1007
1007
|
IndicesApi.prototype.recovery = function indicesRecoveryApi (params, options, callback) {
|
|
1008
1008
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1009
1009
|
|
|
1010
|
-
|
|
1010
|
+
let { method, body, index, ...querystring } = params
|
|
1011
1011
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1012
1012
|
|
|
1013
|
-
|
|
1013
|
+
let path = ''
|
|
1014
1014
|
if ((index) != null) {
|
|
1015
1015
|
if (method == null) method = 'GET'
|
|
1016
1016
|
path = '/' + encodeURIComponent(index) + '/' + '_recovery'
|
|
@@ -1033,10 +1033,10 @@ IndicesApi.prototype.recovery = function indicesRecoveryApi (params, options, ca
|
|
|
1033
1033
|
IndicesApi.prototype.refresh = function indicesRefreshApi (params, options, callback) {
|
|
1034
1034
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1035
1035
|
|
|
1036
|
-
|
|
1036
|
+
let { method, body, index, ...querystring } = params
|
|
1037
1037
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1038
1038
|
|
|
1039
|
-
|
|
1039
|
+
let path = ''
|
|
1040
1040
|
if ((index) != null) {
|
|
1041
1041
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
1042
1042
|
path = '/' + encodeURIComponent(index) + '/' + '_refresh'
|
|
@@ -1060,15 +1060,15 @@ IndicesApi.prototype.resolveIndex = function indicesResolveIndexApi (params, opt
|
|
|
1060
1060
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1061
1061
|
|
|
1062
1062
|
// check required parameters
|
|
1063
|
-
if (params
|
|
1063
|
+
if (params.name == null) {
|
|
1064
1064
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
1065
1065
|
return handleError(err, callback)
|
|
1066
1066
|
}
|
|
1067
1067
|
|
|
1068
|
-
|
|
1068
|
+
let { method, body, name, ...querystring } = params
|
|
1069
1069
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1070
1070
|
|
|
1071
|
-
|
|
1071
|
+
let path = ''
|
|
1072
1072
|
if (method == null) method = 'GET'
|
|
1073
1073
|
path = '/' + '_resolve' + '/' + 'index' + '/' + encodeURIComponent(name)
|
|
1074
1074
|
|
|
@@ -1087,21 +1087,21 @@ IndicesApi.prototype.rollover = function indicesRolloverApi (params, options, ca
|
|
|
1087
1087
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1088
1088
|
|
|
1089
1089
|
// check required parameters
|
|
1090
|
-
if (params
|
|
1090
|
+
if (params.alias == null) {
|
|
1091
1091
|
const err = new this[kConfigurationError]('Missing required parameter: alias')
|
|
1092
1092
|
return handleError(err, callback)
|
|
1093
1093
|
}
|
|
1094
1094
|
|
|
1095
1095
|
// check required url components
|
|
1096
|
-
if ((params
|
|
1096
|
+
if ((params.new_index != null || params.newIndex != null) && (params.alias == null)) {
|
|
1097
1097
|
const err = new this[kConfigurationError]('Missing required parameter of the url: alias')
|
|
1098
1098
|
return handleError(err, callback)
|
|
1099
1099
|
}
|
|
1100
1100
|
|
|
1101
|
-
|
|
1101
|
+
let { method, body, alias, newIndex, new_index, ...querystring } = params
|
|
1102
1102
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1103
1103
|
|
|
1104
|
-
|
|
1104
|
+
let path = ''
|
|
1105
1105
|
if ((alias) != null && (new_index || newIndex) != null) {
|
|
1106
1106
|
if (method == null) method = 'POST'
|
|
1107
1107
|
path = '/' + encodeURIComponent(alias) + '/' + '_rollover' + '/' + encodeURIComponent(new_index || newIndex)
|
|
@@ -1124,10 +1124,10 @@ IndicesApi.prototype.rollover = function indicesRolloverApi (params, options, ca
|
|
|
1124
1124
|
IndicesApi.prototype.segments = function indicesSegmentsApi (params, options, callback) {
|
|
1125
1125
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1126
1126
|
|
|
1127
|
-
|
|
1127
|
+
let { method, body, index, ...querystring } = params
|
|
1128
1128
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1129
1129
|
|
|
1130
|
-
|
|
1130
|
+
let path = ''
|
|
1131
1131
|
if ((index) != null) {
|
|
1132
1132
|
if (method == null) method = 'GET'
|
|
1133
1133
|
path = '/' + encodeURIComponent(index) + '/' + '_segments'
|
|
@@ -1150,10 +1150,10 @@ IndicesApi.prototype.segments = function indicesSegmentsApi (params, options, ca
|
|
|
1150
1150
|
IndicesApi.prototype.shardStores = function indicesShardStoresApi (params, options, callback) {
|
|
1151
1151
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1152
1152
|
|
|
1153
|
-
|
|
1153
|
+
let { method, body, index, ...querystring } = params
|
|
1154
1154
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1155
1155
|
|
|
1156
|
-
|
|
1156
|
+
let path = ''
|
|
1157
1157
|
if ((index) != null) {
|
|
1158
1158
|
if (method == null) method = 'GET'
|
|
1159
1159
|
path = '/' + encodeURIComponent(index) + '/' + '_shard_stores'
|
|
@@ -1177,25 +1177,25 @@ IndicesApi.prototype.shrink = function indicesShrinkApi (params, options, callba
|
|
|
1177
1177
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1178
1178
|
|
|
1179
1179
|
// check required parameters
|
|
1180
|
-
if (params
|
|
1180
|
+
if (params.index == null) {
|
|
1181
1181
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
1182
1182
|
return handleError(err, callback)
|
|
1183
1183
|
}
|
|
1184
|
-
if (params
|
|
1184
|
+
if (params.target == null) {
|
|
1185
1185
|
const err = new this[kConfigurationError]('Missing required parameter: target')
|
|
1186
1186
|
return handleError(err, callback)
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
1189
|
// check required url components
|
|
1190
|
-
if (params
|
|
1190
|
+
if (params.target != null && (params.index == null)) {
|
|
1191
1191
|
const err = new this[kConfigurationError]('Missing required parameter of the url: index')
|
|
1192
1192
|
return handleError(err, callback)
|
|
1193
1193
|
}
|
|
1194
1194
|
|
|
1195
|
-
|
|
1195
|
+
let { method, body, index, target, ...querystring } = params
|
|
1196
1196
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1197
1197
|
|
|
1198
|
-
|
|
1198
|
+
let path = ''
|
|
1199
1199
|
if (method == null) method = 'PUT'
|
|
1200
1200
|
path = '/' + encodeURIComponent(index) + '/' + '_shrink' + '/' + encodeURIComponent(target)
|
|
1201
1201
|
|
|
@@ -1214,15 +1214,15 @@ IndicesApi.prototype.simulateIndexTemplate = function indicesSimulateIndexTempla
|
|
|
1214
1214
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1215
1215
|
|
|
1216
1216
|
// check required parameters
|
|
1217
|
-
if (params
|
|
1217
|
+
if (params.name == null) {
|
|
1218
1218
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
1219
1219
|
return handleError(err, callback)
|
|
1220
1220
|
}
|
|
1221
1221
|
|
|
1222
|
-
|
|
1222
|
+
let { method, body, name, ...querystring } = params
|
|
1223
1223
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1224
1224
|
|
|
1225
|
-
|
|
1225
|
+
let path = ''
|
|
1226
1226
|
if (method == null) method = 'POST'
|
|
1227
1227
|
path = '/' + '_index_template' + '/' + '_simulate_index' + '/' + encodeURIComponent(name)
|
|
1228
1228
|
|
|
@@ -1240,10 +1240,10 @@ IndicesApi.prototype.simulateIndexTemplate = function indicesSimulateIndexTempla
|
|
|
1240
1240
|
IndicesApi.prototype.simulateTemplate = function indicesSimulateTemplateApi (params, options, callback) {
|
|
1241
1241
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1242
1242
|
|
|
1243
|
-
|
|
1243
|
+
let { method, body, name, ...querystring } = params
|
|
1244
1244
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1245
1245
|
|
|
1246
|
-
|
|
1246
|
+
let path = ''
|
|
1247
1247
|
if ((name) != null) {
|
|
1248
1248
|
if (method == null) method = 'POST'
|
|
1249
1249
|
path = '/' + '_index_template' + '/' + '_simulate' + '/' + encodeURIComponent(name)
|
|
@@ -1267,25 +1267,25 @@ IndicesApi.prototype.split = function indicesSplitApi (params, options, callback
|
|
|
1267
1267
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1268
1268
|
|
|
1269
1269
|
// check required parameters
|
|
1270
|
-
if (params
|
|
1270
|
+
if (params.index == null) {
|
|
1271
1271
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
1272
1272
|
return handleError(err, callback)
|
|
1273
1273
|
}
|
|
1274
|
-
if (params
|
|
1274
|
+
if (params.target == null) {
|
|
1275
1275
|
const err = new this[kConfigurationError]('Missing required parameter: target')
|
|
1276
1276
|
return handleError(err, callback)
|
|
1277
1277
|
}
|
|
1278
1278
|
|
|
1279
1279
|
// check required url components
|
|
1280
|
-
if (params
|
|
1280
|
+
if (params.target != null && (params.index == null)) {
|
|
1281
1281
|
const err = new this[kConfigurationError]('Missing required parameter of the url: index')
|
|
1282
1282
|
return handleError(err, callback)
|
|
1283
1283
|
}
|
|
1284
1284
|
|
|
1285
|
-
|
|
1285
|
+
let { method, body, index, target, ...querystring } = params
|
|
1286
1286
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1287
1287
|
|
|
1288
|
-
|
|
1288
|
+
let path = ''
|
|
1289
1289
|
if (method == null) method = 'PUT'
|
|
1290
1290
|
path = '/' + encodeURIComponent(index) + '/' + '_split' + '/' + encodeURIComponent(target)
|
|
1291
1291
|
|
|
@@ -1303,10 +1303,10 @@ IndicesApi.prototype.split = function indicesSplitApi (params, options, callback
|
|
|
1303
1303
|
IndicesApi.prototype.stats = function indicesStatsApi (params, options, callback) {
|
|
1304
1304
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1305
1305
|
|
|
1306
|
-
|
|
1306
|
+
let { method, body, metric, index, ...querystring } = params
|
|
1307
1307
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1308
1308
|
|
|
1309
|
-
|
|
1309
|
+
let path = ''
|
|
1310
1310
|
if ((index) != null && (metric) != null) {
|
|
1311
1311
|
if (method == null) method = 'GET'
|
|
1312
1312
|
path = '/' + encodeURIComponent(index) + '/' + '_stats' + '/' + encodeURIComponent(metric)
|
|
@@ -1336,15 +1336,15 @@ IndicesApi.prototype.updateAliases = function indicesUpdateAliasesApi (params, o
|
|
|
1336
1336
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1337
1337
|
|
|
1338
1338
|
// check required parameters
|
|
1339
|
-
if (params
|
|
1339
|
+
if (params.body == null) {
|
|
1340
1340
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1341
1341
|
return handleError(err, callback)
|
|
1342
1342
|
}
|
|
1343
1343
|
|
|
1344
|
-
|
|
1344
|
+
let { method, body, ...querystring } = params
|
|
1345
1345
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1346
1346
|
|
|
1347
|
-
|
|
1347
|
+
let path = ''
|
|
1348
1348
|
if (method == null) method = 'POST'
|
|
1349
1349
|
path = '/' + '_aliases'
|
|
1350
1350
|
|
|
@@ -1362,10 +1362,10 @@ IndicesApi.prototype.updateAliases = function indicesUpdateAliasesApi (params, o
|
|
|
1362
1362
|
IndicesApi.prototype.upgrade = function indicesUpgradeApi (params, options, callback) {
|
|
1363
1363
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1364
1364
|
|
|
1365
|
-
|
|
1365
|
+
let { method, body, index, ...querystring } = params
|
|
1366
1366
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1367
1367
|
|
|
1368
|
-
|
|
1368
|
+
let path = ''
|
|
1369
1369
|
if (method == null) method = 'POST'
|
|
1370
1370
|
path = '/' + encodeURIComponent(index) + '/' + '_upgrade'
|
|
1371
1371
|
|
|
@@ -1384,15 +1384,15 @@ IndicesApi.prototype.validateQuery = function indicesValidateQueryApi (params, o
|
|
|
1384
1384
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1385
1385
|
|
|
1386
1386
|
// check required url components
|
|
1387
|
-
if (params
|
|
1387
|
+
if (params.type != null && (params.index == null)) {
|
|
1388
1388
|
const err = new this[kConfigurationError]('Missing required parameter of the url: index')
|
|
1389
1389
|
return handleError(err, callback)
|
|
1390
1390
|
}
|
|
1391
1391
|
|
|
1392
|
-
|
|
1392
|
+
let { method, body, index, type, ...querystring } = params
|
|
1393
1393
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1394
1394
|
|
|
1395
|
-
|
|
1395
|
+
let path = ''
|
|
1396
1396
|
if ((index) != null && (type) != null) {
|
|
1397
1397
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
1398
1398
|
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + '_validate' + '/' + 'query'
|
|
@@ -1419,15 +1419,15 @@ IndicesApi.prototype.createDataStream = function indicesCreateDataStreamApi (par
|
|
|
1419
1419
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1420
1420
|
|
|
1421
1421
|
// check required parameters
|
|
1422
|
-
if (params
|
|
1422
|
+
if (params.name == null) {
|
|
1423
1423
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
1424
1424
|
return handleError(err, callback)
|
|
1425
1425
|
}
|
|
1426
1426
|
|
|
1427
|
-
|
|
1427
|
+
let { method, body, name, ...querystring } = params
|
|
1428
1428
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1429
1429
|
|
|
1430
|
-
|
|
1430
|
+
let path = ''
|
|
1431
1431
|
if (method == null) method = 'PUT'
|
|
1432
1432
|
path = '/' + '_data_stream' + '/' + encodeURIComponent(name)
|
|
1433
1433
|
|
|
@@ -1445,10 +1445,10 @@ IndicesApi.prototype.createDataStream = function indicesCreateDataStreamApi (par
|
|
|
1445
1445
|
IndicesApi.prototype.dataStreamsStats = function indicesDataStreamsStatsApi (params, options, callback) {
|
|
1446
1446
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1447
1447
|
|
|
1448
|
-
|
|
1448
|
+
let { method, body, name, ...querystring } = params
|
|
1449
1449
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1450
1450
|
|
|
1451
|
-
|
|
1451
|
+
let path = ''
|
|
1452
1452
|
if ((name) != null) {
|
|
1453
1453
|
if (method == null) method = 'GET'
|
|
1454
1454
|
path = '/' + '_data_stream' + '/' + encodeURIComponent(name) + '/' + '_stats'
|
|
@@ -1472,15 +1472,15 @@ IndicesApi.prototype.deleteDataStream = function indicesDeleteDataStreamApi (par
|
|
|
1472
1472
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1473
1473
|
|
|
1474
1474
|
// check required parameters
|
|
1475
|
-
if (params
|
|
1475
|
+
if (params.name == null) {
|
|
1476
1476
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
1477
1477
|
return handleError(err, callback)
|
|
1478
1478
|
}
|
|
1479
1479
|
|
|
1480
|
-
|
|
1480
|
+
let { method, body, name, ...querystring } = params
|
|
1481
1481
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1482
1482
|
|
|
1483
|
-
|
|
1483
|
+
let path = ''
|
|
1484
1484
|
if (method == null) method = 'DELETE'
|
|
1485
1485
|
path = '/' + '_data_stream' + '/' + encodeURIComponent(name)
|
|
1486
1486
|
|
|
@@ -1499,15 +1499,15 @@ IndicesApi.prototype.freeze = function indicesFreezeApi (params, options, callba
|
|
|
1499
1499
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1500
1500
|
|
|
1501
1501
|
// check required parameters
|
|
1502
|
-
if (params
|
|
1502
|
+
if (params.index == null) {
|
|
1503
1503
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
1504
1504
|
return handleError(err, callback)
|
|
1505
1505
|
}
|
|
1506
1506
|
|
|
1507
|
-
|
|
1507
|
+
let { method, body, index, ...querystring } = params
|
|
1508
1508
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1509
1509
|
|
|
1510
|
-
|
|
1510
|
+
let path = ''
|
|
1511
1511
|
if (method == null) method = 'POST'
|
|
1512
1512
|
path = '/' + encodeURIComponent(index) + '/' + '_freeze'
|
|
1513
1513
|
|
|
@@ -1525,10 +1525,10 @@ IndicesApi.prototype.freeze = function indicesFreezeApi (params, options, callba
|
|
|
1525
1525
|
IndicesApi.prototype.getDataStream = function indicesGetDataStreamApi (params, options, callback) {
|
|
1526
1526
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1527
1527
|
|
|
1528
|
-
|
|
1528
|
+
let { method, body, name, ...querystring } = params
|
|
1529
1529
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1530
1530
|
|
|
1531
|
-
|
|
1531
|
+
let path = ''
|
|
1532
1532
|
if ((name) != null) {
|
|
1533
1533
|
if (method == null) method = 'GET'
|
|
1534
1534
|
path = '/' + '_data_stream' + '/' + encodeURIComponent(name)
|
|
@@ -1552,15 +1552,15 @@ IndicesApi.prototype.migrateToDataStream = function indicesMigrateToDataStreamAp
|
|
|
1552
1552
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1553
1553
|
|
|
1554
1554
|
// check required parameters
|
|
1555
|
-
if (params
|
|
1555
|
+
if (params.name == null) {
|
|
1556
1556
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
1557
1557
|
return handleError(err, callback)
|
|
1558
1558
|
}
|
|
1559
1559
|
|
|
1560
|
-
|
|
1560
|
+
let { method, body, name, ...querystring } = params
|
|
1561
1561
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1562
1562
|
|
|
1563
|
-
|
|
1563
|
+
let path = ''
|
|
1564
1564
|
if (method == null) method = 'POST'
|
|
1565
1565
|
path = '/' + '_data_stream' + '/' + '_migrate' + '/' + encodeURIComponent(name)
|
|
1566
1566
|
|
|
@@ -1579,15 +1579,15 @@ IndicesApi.prototype.promoteDataStream = function indicesPromoteDataStreamApi (p
|
|
|
1579
1579
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1580
1580
|
|
|
1581
1581
|
// check required parameters
|
|
1582
|
-
if (params
|
|
1582
|
+
if (params.name == null) {
|
|
1583
1583
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
1584
1584
|
return handleError(err, callback)
|
|
1585
1585
|
}
|
|
1586
1586
|
|
|
1587
|
-
|
|
1587
|
+
let { method, body, name, ...querystring } = params
|
|
1588
1588
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1589
1589
|
|
|
1590
|
-
|
|
1590
|
+
let path = ''
|
|
1591
1591
|
if (method == null) method = 'POST'
|
|
1592
1592
|
path = '/' + '_data_stream' + '/' + '_promote' + '/' + encodeURIComponent(name)
|
|
1593
1593
|
|
|
@@ -1606,15 +1606,15 @@ IndicesApi.prototype.reloadSearchAnalyzers = function indicesReloadSearchAnalyze
|
|
|
1606
1606
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1607
1607
|
|
|
1608
1608
|
// check required parameters
|
|
1609
|
-
if (params
|
|
1609
|
+
if (params.index == null) {
|
|
1610
1610
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
1611
1611
|
return handleError(err, callback)
|
|
1612
1612
|
}
|
|
1613
1613
|
|
|
1614
|
-
|
|
1614
|
+
let { method, body, index, ...querystring } = params
|
|
1615
1615
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1616
1616
|
|
|
1617
|
-
|
|
1617
|
+
let path = ''
|
|
1618
1618
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
1619
1619
|
path = '/' + encodeURIComponent(index) + '/' + '_reload_search_analyzers'
|
|
1620
1620
|
|
|
@@ -1633,15 +1633,15 @@ IndicesApi.prototype.unfreeze = function indicesUnfreezeApi (params, options, ca
|
|
|
1633
1633
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1634
1634
|
|
|
1635
1635
|
// check required parameters
|
|
1636
|
-
if (params
|
|
1636
|
+
if (params.index == null) {
|
|
1637
1637
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
1638
1638
|
return handleError(err, callback)
|
|
1639
1639
|
}
|
|
1640
1640
|
|
|
1641
|
-
|
|
1641
|
+
let { method, body, index, ...querystring } = params
|
|
1642
1642
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1643
1643
|
|
|
1644
|
-
|
|
1644
|
+
let path = ''
|
|
1645
1645
|
if (method == null) method = 'POST'
|
|
1646
1646
|
path = '/' + encodeURIComponent(index) + '/' + '_unfreeze'
|
|
1647
1647
|
|