@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/ccr.js
CHANGED
|
@@ -35,15 +35,15 @@ CcrApi.prototype.deleteAutoFollowPattern = function ccrDeleteAutoFollowPatternAp
|
|
|
35
35
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
36
36
|
|
|
37
37
|
// check required parameters
|
|
38
|
-
if (params
|
|
38
|
+
if (params.name == null) {
|
|
39
39
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
40
40
|
return handleError(err, callback)
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
let { method, body, name, ...querystring } = params
|
|
44
44
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
let path = ''
|
|
47
47
|
if (method == null) method = 'DELETE'
|
|
48
48
|
path = '/' + '_ccr' + '/' + 'auto_follow' + '/' + encodeURIComponent(name)
|
|
49
49
|
|
|
@@ -62,19 +62,19 @@ CcrApi.prototype.follow = function ccrFollowApi (params, options, callback) {
|
|
|
62
62
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
63
63
|
|
|
64
64
|
// check required parameters
|
|
65
|
-
if (params
|
|
65
|
+
if (params.index == null) {
|
|
66
66
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
67
67
|
return handleError(err, callback)
|
|
68
68
|
}
|
|
69
|
-
if (params
|
|
69
|
+
if (params.body == null) {
|
|
70
70
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
71
71
|
return handleError(err, callback)
|
|
72
72
|
}
|
|
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 (method == null) method = 'PUT'
|
|
79
79
|
path = '/' + encodeURIComponent(index) + '/' + '_ccr' + '/' + 'follow'
|
|
80
80
|
|
|
@@ -93,15 +93,15 @@ CcrApi.prototype.followInfo = function ccrFollowInfoApi (params, options, callba
|
|
|
93
93
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
94
94
|
|
|
95
95
|
// check required parameters
|
|
96
|
-
if (params
|
|
96
|
+
if (params.index == null) {
|
|
97
97
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
98
98
|
return handleError(err, callback)
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
let { method, body, index, ...querystring } = params
|
|
102
102
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
let path = ''
|
|
105
105
|
if (method == null) method = 'GET'
|
|
106
106
|
path = '/' + encodeURIComponent(index) + '/' + '_ccr' + '/' + 'info'
|
|
107
107
|
|
|
@@ -120,15 +120,15 @@ CcrApi.prototype.followStats = function ccrFollowStatsApi (params, options, call
|
|
|
120
120
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
121
121
|
|
|
122
122
|
// check required parameters
|
|
123
|
-
if (params
|
|
123
|
+
if (params.index == null) {
|
|
124
124
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
125
125
|
return handleError(err, callback)
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
let { method, body, index, ...querystring } = params
|
|
129
129
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
let path = ''
|
|
132
132
|
if (method == null) method = 'GET'
|
|
133
133
|
path = '/' + encodeURIComponent(index) + '/' + '_ccr' + '/' + 'stats'
|
|
134
134
|
|
|
@@ -147,19 +147,19 @@ CcrApi.prototype.forgetFollower = function ccrForgetFollowerApi (params, options
|
|
|
147
147
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
148
148
|
|
|
149
149
|
// check required parameters
|
|
150
|
-
if (params
|
|
150
|
+
if (params.index == null) {
|
|
151
151
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
152
152
|
return handleError(err, callback)
|
|
153
153
|
}
|
|
154
|
-
if (params
|
|
154
|
+
if (params.body == null) {
|
|
155
155
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
156
156
|
return handleError(err, callback)
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
|
|
159
|
+
let { method, body, index, ...querystring } = params
|
|
160
160
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
161
161
|
|
|
162
|
-
|
|
162
|
+
let path = ''
|
|
163
163
|
if (method == null) method = 'POST'
|
|
164
164
|
path = '/' + encodeURIComponent(index) + '/' + '_ccr' + '/' + 'forget_follower'
|
|
165
165
|
|
|
@@ -177,10 +177,10 @@ CcrApi.prototype.forgetFollower = function ccrForgetFollowerApi (params, options
|
|
|
177
177
|
CcrApi.prototype.getAutoFollowPattern = function ccrGetAutoFollowPatternApi (params, options, callback) {
|
|
178
178
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
179
179
|
|
|
180
|
-
|
|
180
|
+
let { method, body, name, ...querystring } = params
|
|
181
181
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
182
182
|
|
|
183
|
-
|
|
183
|
+
let path = ''
|
|
184
184
|
if ((name) != null) {
|
|
185
185
|
if (method == null) method = 'GET'
|
|
186
186
|
path = '/' + '_ccr' + '/' + 'auto_follow' + '/' + encodeURIComponent(name)
|
|
@@ -204,15 +204,15 @@ CcrApi.prototype.pauseAutoFollowPattern = function ccrPauseAutoFollowPatternApi
|
|
|
204
204
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
205
205
|
|
|
206
206
|
// check required parameters
|
|
207
|
-
if (params
|
|
207
|
+
if (params.name == null) {
|
|
208
208
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
209
209
|
return handleError(err, callback)
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
|
|
212
|
+
let { method, body, name, ...querystring } = params
|
|
213
213
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
214
214
|
|
|
215
|
-
|
|
215
|
+
let path = ''
|
|
216
216
|
if (method == null) method = 'POST'
|
|
217
217
|
path = '/' + '_ccr' + '/' + 'auto_follow' + '/' + encodeURIComponent(name) + '/' + 'pause'
|
|
218
218
|
|
|
@@ -231,15 +231,15 @@ CcrApi.prototype.pauseFollow = function ccrPauseFollowApi (params, options, call
|
|
|
231
231
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
232
232
|
|
|
233
233
|
// check required parameters
|
|
234
|
-
if (params
|
|
234
|
+
if (params.index == null) {
|
|
235
235
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
236
236
|
return handleError(err, callback)
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
|
|
239
|
+
let { method, body, index, ...querystring } = params
|
|
240
240
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
241
241
|
|
|
242
|
-
|
|
242
|
+
let path = ''
|
|
243
243
|
if (method == null) method = 'POST'
|
|
244
244
|
path = '/' + encodeURIComponent(index) + '/' + '_ccr' + '/' + 'pause_follow'
|
|
245
245
|
|
|
@@ -258,19 +258,19 @@ CcrApi.prototype.putAutoFollowPattern = function ccrPutAutoFollowPatternApi (par
|
|
|
258
258
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
259
259
|
|
|
260
260
|
// check required parameters
|
|
261
|
-
if (params
|
|
261
|
+
if (params.name == null) {
|
|
262
262
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
263
263
|
return handleError(err, callback)
|
|
264
264
|
}
|
|
265
|
-
if (params
|
|
265
|
+
if (params.body == null) {
|
|
266
266
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
267
267
|
return handleError(err, callback)
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
|
|
270
|
+
let { method, body, name, ...querystring } = params
|
|
271
271
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
272
272
|
|
|
273
|
-
|
|
273
|
+
let path = ''
|
|
274
274
|
if (method == null) method = 'PUT'
|
|
275
275
|
path = '/' + '_ccr' + '/' + 'auto_follow' + '/' + encodeURIComponent(name)
|
|
276
276
|
|
|
@@ -289,15 +289,15 @@ CcrApi.prototype.resumeAutoFollowPattern = function ccrResumeAutoFollowPatternAp
|
|
|
289
289
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
290
290
|
|
|
291
291
|
// check required parameters
|
|
292
|
-
if (params
|
|
292
|
+
if (params.name == null) {
|
|
293
293
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
294
294
|
return handleError(err, callback)
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
-
|
|
297
|
+
let { method, body, name, ...querystring } = params
|
|
298
298
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
299
299
|
|
|
300
|
-
|
|
300
|
+
let path = ''
|
|
301
301
|
if (method == null) method = 'POST'
|
|
302
302
|
path = '/' + '_ccr' + '/' + 'auto_follow' + '/' + encodeURIComponent(name) + '/' + 'resume'
|
|
303
303
|
|
|
@@ -316,15 +316,15 @@ CcrApi.prototype.resumeFollow = function ccrResumeFollowApi (params, options, ca
|
|
|
316
316
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
317
317
|
|
|
318
318
|
// check required parameters
|
|
319
|
-
if (params
|
|
319
|
+
if (params.index == null) {
|
|
320
320
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
321
321
|
return handleError(err, callback)
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
-
|
|
324
|
+
let { method, body, index, ...querystring } = params
|
|
325
325
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
326
326
|
|
|
327
|
-
|
|
327
|
+
let path = ''
|
|
328
328
|
if (method == null) method = 'POST'
|
|
329
329
|
path = '/' + encodeURIComponent(index) + '/' + '_ccr' + '/' + 'resume_follow'
|
|
330
330
|
|
|
@@ -342,10 +342,10 @@ CcrApi.prototype.resumeFollow = function ccrResumeFollowApi (params, options, ca
|
|
|
342
342
|
CcrApi.prototype.stats = function ccrStatsApi (params, options, callback) {
|
|
343
343
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
344
344
|
|
|
345
|
-
|
|
345
|
+
let { method, body, ...querystring } = params
|
|
346
346
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
347
347
|
|
|
348
|
-
|
|
348
|
+
let path = ''
|
|
349
349
|
if (method == null) method = 'GET'
|
|
350
350
|
path = '/' + '_ccr' + '/' + 'stats'
|
|
351
351
|
|
|
@@ -364,15 +364,15 @@ CcrApi.prototype.unfollow = function ccrUnfollowApi (params, options, callback)
|
|
|
364
364
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
365
365
|
|
|
366
366
|
// check required parameters
|
|
367
|
-
if (params
|
|
367
|
+
if (params.index == null) {
|
|
368
368
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
369
369
|
return handleError(err, callback)
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
|
|
372
|
+
let { method, body, index, ...querystring } = params
|
|
373
373
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
374
374
|
|
|
375
|
-
|
|
375
|
+
let path = ''
|
|
376
376
|
if (method == null) method = 'POST'
|
|
377
377
|
path = '/' + encodeURIComponent(index) + '/' + '_ccr' + '/' + 'unfollow'
|
|
378
378
|
|
package/api/api/clear_scroll.js
CHANGED
|
@@ -29,10 +29,10 @@ const snakeCase = { errorTrace: 'error_trace', filterPath: 'filter_path' }
|
|
|
29
29
|
function clearScrollApi (params, options, callback) {
|
|
30
30
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
let { method, body, scrollId, scroll_id, ...querystring } = params
|
|
33
33
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
let path = ''
|
|
36
36
|
if ((scroll_id || scrollId) != null) {
|
|
37
37
|
if (method == null) method = 'DELETE'
|
|
38
38
|
path = '/' + '_search' + '/' + 'scroll' + '/' + encodeURIComponent(scroll_id || scrollId)
|
|
@@ -29,10 +29,10 @@ const snakeCase = { errorTrace: 'error_trace', filterPath: 'filter_path' }
|
|
|
29
29
|
function closePointInTimeApi (params, options, callback) {
|
|
30
30
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
let { method, body, ...querystring } = params
|
|
33
33
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
let path = ''
|
|
36
36
|
if (method == null) method = 'DELETE'
|
|
37
37
|
path = '/' + '_pit'
|
|
38
38
|
|
package/api/api/cluster.js
CHANGED
|
@@ -34,10 +34,10 @@ function ClusterApi (transport, ConfigurationError) {
|
|
|
34
34
|
ClusterApi.prototype.allocationExplain = function clusterAllocationExplainApi (params, options, callback) {
|
|
35
35
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
let { method, body, ...querystring } = params
|
|
38
38
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
let path = ''
|
|
41
41
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
42
42
|
path = '/' + '_cluster' + '/' + 'allocation' + '/' + 'explain'
|
|
43
43
|
|
|
@@ -56,15 +56,15 @@ ClusterApi.prototype.deleteComponentTemplate = function clusterDeleteComponentTe
|
|
|
56
56
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
57
57
|
|
|
58
58
|
// check required parameters
|
|
59
|
-
if (params
|
|
59
|
+
if (params.name == null) {
|
|
60
60
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
61
61
|
return handleError(err, callback)
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
let { method, body, name, ...querystring } = params
|
|
65
65
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
let path = ''
|
|
68
68
|
if (method == null) method = 'DELETE'
|
|
69
69
|
path = '/' + '_component_template' + '/' + encodeURIComponent(name)
|
|
70
70
|
|
|
@@ -82,10 +82,10 @@ ClusterApi.prototype.deleteComponentTemplate = function clusterDeleteComponentTe
|
|
|
82
82
|
ClusterApi.prototype.deleteVotingConfigExclusions = function clusterDeleteVotingConfigExclusionsApi (params, options, callback) {
|
|
83
83
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
let { method, body, ...querystring } = params
|
|
86
86
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
let path = ''
|
|
89
89
|
if (method == null) method = 'DELETE'
|
|
90
90
|
path = '/' + '_cluster' + '/' + 'voting_config_exclusions'
|
|
91
91
|
|
|
@@ -104,15 +104,15 @@ ClusterApi.prototype.existsComponentTemplate = function clusterExistsComponentTe
|
|
|
104
104
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
105
105
|
|
|
106
106
|
// check required parameters
|
|
107
|
-
if (params
|
|
107
|
+
if (params.name == null) {
|
|
108
108
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
109
109
|
return handleError(err, callback)
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
let { method, body, name, ...querystring } = params
|
|
113
113
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
let path = ''
|
|
116
116
|
if (method == null) method = 'HEAD'
|
|
117
117
|
path = '/' + '_component_template' + '/' + encodeURIComponent(name)
|
|
118
118
|
|
|
@@ -130,10 +130,10 @@ ClusterApi.prototype.existsComponentTemplate = function clusterExistsComponentTe
|
|
|
130
130
|
ClusterApi.prototype.getComponentTemplate = function clusterGetComponentTemplateApi (params, options, callback) {
|
|
131
131
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
let { method, body, name, ...querystring } = params
|
|
134
134
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
let path = ''
|
|
137
137
|
if ((name) != null) {
|
|
138
138
|
if (method == null) method = 'GET'
|
|
139
139
|
path = '/' + '_component_template' + '/' + encodeURIComponent(name)
|
|
@@ -156,10 +156,10 @@ ClusterApi.prototype.getComponentTemplate = function clusterGetComponentTemplate
|
|
|
156
156
|
ClusterApi.prototype.getSettings = function clusterGetSettingsApi (params, options, callback) {
|
|
157
157
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
158
158
|
|
|
159
|
-
|
|
159
|
+
let { method, body, ...querystring } = params
|
|
160
160
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
161
161
|
|
|
162
|
-
|
|
162
|
+
let path = ''
|
|
163
163
|
if (method == null) method = 'GET'
|
|
164
164
|
path = '/' + '_cluster' + '/' + 'settings'
|
|
165
165
|
|
|
@@ -177,10 +177,10 @@ ClusterApi.prototype.getSettings = function clusterGetSettingsApi (params, optio
|
|
|
177
177
|
ClusterApi.prototype.health = function clusterHealthApi (params, options, callback) {
|
|
178
178
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
179
179
|
|
|
180
|
-
|
|
180
|
+
let { method, body, index, ...querystring } = params
|
|
181
181
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
182
182
|
|
|
183
|
-
|
|
183
|
+
let path = ''
|
|
184
184
|
if ((index) != null) {
|
|
185
185
|
if (method == null) method = 'GET'
|
|
186
186
|
path = '/' + '_cluster' + '/' + 'health' + '/' + encodeURIComponent(index)
|
|
@@ -203,10 +203,10 @@ ClusterApi.prototype.health = function clusterHealthApi (params, options, callba
|
|
|
203
203
|
ClusterApi.prototype.pendingTasks = function clusterPendingTasksApi (params, options, callback) {
|
|
204
204
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
205
205
|
|
|
206
|
-
|
|
206
|
+
let { method, body, ...querystring } = params
|
|
207
207
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
208
208
|
|
|
209
|
-
|
|
209
|
+
let path = ''
|
|
210
210
|
if (method == null) method = 'GET'
|
|
211
211
|
path = '/' + '_cluster' + '/' + 'pending_tasks'
|
|
212
212
|
|
|
@@ -224,10 +224,10 @@ ClusterApi.prototype.pendingTasks = function clusterPendingTasksApi (params, opt
|
|
|
224
224
|
ClusterApi.prototype.postVotingConfigExclusions = function clusterPostVotingConfigExclusionsApi (params, options, callback) {
|
|
225
225
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
226
226
|
|
|
227
|
-
|
|
227
|
+
let { method, body, ...querystring } = params
|
|
228
228
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
229
229
|
|
|
230
|
-
|
|
230
|
+
let path = ''
|
|
231
231
|
if (method == null) method = 'POST'
|
|
232
232
|
path = '/' + '_cluster' + '/' + 'voting_config_exclusions'
|
|
233
233
|
|
|
@@ -246,19 +246,19 @@ ClusterApi.prototype.putComponentTemplate = function clusterPutComponentTemplate
|
|
|
246
246
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
247
247
|
|
|
248
248
|
// check required parameters
|
|
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
|
-
if (params
|
|
253
|
+
if (params.body == null) {
|
|
254
254
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
255
255
|
return handleError(err, callback)
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
|
|
258
|
+
let { method, body, name, ...querystring } = params
|
|
259
259
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
260
260
|
|
|
261
|
-
|
|
261
|
+
let path = ''
|
|
262
262
|
if (method == null) method = 'PUT'
|
|
263
263
|
path = '/' + '_component_template' + '/' + encodeURIComponent(name)
|
|
264
264
|
|
|
@@ -277,15 +277,15 @@ ClusterApi.prototype.putSettings = function clusterPutSettingsApi (params, optio
|
|
|
277
277
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
278
278
|
|
|
279
279
|
// check required parameters
|
|
280
|
-
if (params
|
|
280
|
+
if (params.body == null) {
|
|
281
281
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
282
282
|
return handleError(err, callback)
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
|
|
285
|
+
let { method, body, ...querystring } = params
|
|
286
286
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
287
287
|
|
|
288
|
-
|
|
288
|
+
let path = ''
|
|
289
289
|
if (method == null) method = 'PUT'
|
|
290
290
|
path = '/' + '_cluster' + '/' + 'settings'
|
|
291
291
|
|
|
@@ -303,10 +303,10 @@ ClusterApi.prototype.putSettings = function clusterPutSettingsApi (params, optio
|
|
|
303
303
|
ClusterApi.prototype.remoteInfo = function clusterRemoteInfoApi (params, options, callback) {
|
|
304
304
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
305
305
|
|
|
306
|
-
|
|
306
|
+
let { method, body, ...querystring } = params
|
|
307
307
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
308
308
|
|
|
309
|
-
|
|
309
|
+
let path = ''
|
|
310
310
|
if (method == null) method = 'GET'
|
|
311
311
|
path = '/' + '_remote' + '/' + 'info'
|
|
312
312
|
|
|
@@ -324,10 +324,10 @@ ClusterApi.prototype.remoteInfo = function clusterRemoteInfoApi (params, options
|
|
|
324
324
|
ClusterApi.prototype.reroute = function clusterRerouteApi (params, options, callback) {
|
|
325
325
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
326
326
|
|
|
327
|
-
|
|
327
|
+
let { method, body, ...querystring } = params
|
|
328
328
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
329
329
|
|
|
330
|
-
|
|
330
|
+
let path = ''
|
|
331
331
|
if (method == null) method = 'POST'
|
|
332
332
|
path = '/' + '_cluster' + '/' + 'reroute'
|
|
333
333
|
|
|
@@ -346,15 +346,15 @@ ClusterApi.prototype.state = function clusterStateApi (params, options, callback
|
|
|
346
346
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
347
347
|
|
|
348
348
|
// check required url components
|
|
349
|
-
if (params
|
|
349
|
+
if (params.index != null && (params.metric == null)) {
|
|
350
350
|
const err = new this[kConfigurationError]('Missing required parameter of the url: metric')
|
|
351
351
|
return handleError(err, callback)
|
|
352
352
|
}
|
|
353
353
|
|
|
354
|
-
|
|
354
|
+
let { method, body, metric, index, ...querystring } = params
|
|
355
355
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
356
356
|
|
|
357
|
-
|
|
357
|
+
let path = ''
|
|
358
358
|
if ((metric) != null && (index) != null) {
|
|
359
359
|
if (method == null) method = 'GET'
|
|
360
360
|
path = '/' + '_cluster' + '/' + 'state' + '/' + encodeURIComponent(metric) + '/' + encodeURIComponent(index)
|
|
@@ -380,10 +380,10 @@ ClusterApi.prototype.state = function clusterStateApi (params, options, callback
|
|
|
380
380
|
ClusterApi.prototype.stats = function clusterStatsApi (params, options, callback) {
|
|
381
381
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
382
382
|
|
|
383
|
-
|
|
383
|
+
let { method, body, nodeId, node_id, ...querystring } = params
|
|
384
384
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
385
385
|
|
|
386
|
-
|
|
386
|
+
let path = ''
|
|
387
387
|
if ((node_id || nodeId) != null) {
|
|
388
388
|
if (method == null) method = 'GET'
|
|
389
389
|
path = '/' + '_cluster' + '/' + 'stats' + '/' + 'nodes' + '/' + encodeURIComponent(node_id || nodeId)
|
package/api/api/count.js
CHANGED
|
@@ -30,15 +30,15 @@ function countApi (params, options, callback) {
|
|
|
30
30
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
31
31
|
|
|
32
32
|
// check required url components
|
|
33
|
-
if (params
|
|
33
|
+
if (params.type != null && (params.index == null)) {
|
|
34
34
|
const err = new this[kConfigurationError]('Missing required parameter of the url: index')
|
|
35
35
|
return handleError(err, callback)
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
let { method, body, index, type, ...querystring } = params
|
|
39
39
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
let path = ''
|
|
42
42
|
if ((index) != null && (type) != null) {
|
|
43
43
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
44
44
|
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + '_count'
|
package/api/api/create.js
CHANGED
|
@@ -30,23 +30,23 @@ function createApi (params, options, callback) {
|
|
|
30
30
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
31
31
|
|
|
32
32
|
// check required parameters
|
|
33
|
-
if (params
|
|
33
|
+
if (params.id == null) {
|
|
34
34
|
const err = new this[kConfigurationError]('Missing required parameter: id')
|
|
35
35
|
return handleError(err, callback)
|
|
36
36
|
}
|
|
37
|
-
if (params
|
|
37
|
+
if (params.index == null) {
|
|
38
38
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
39
39
|
return handleError(err, callback)
|
|
40
40
|
}
|
|
41
|
-
if (params
|
|
41
|
+
if (params.body == null) {
|
|
42
42
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
43
43
|
return handleError(err, callback)
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
let { method, body, id, index, type, ...querystring } = params
|
|
47
47
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
let path = ''
|
|
50
50
|
if ((index) != null && (type) != null && (id) != null) {
|
|
51
51
|
if (method == null) method = 'PUT'
|
|
52
52
|
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id) + '/' + '_create'
|
|
@@ -35,15 +35,15 @@ DanglingIndicesApi.prototype.deleteDanglingIndex = function danglingIndicesDelet
|
|
|
35
35
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
36
36
|
|
|
37
37
|
// check required parameters
|
|
38
|
-
if (params
|
|
38
|
+
if (params.index_uuid == null && params.indexUuid == null) {
|
|
39
39
|
const err = new this[kConfigurationError]('Missing required parameter: index_uuid or indexUuid')
|
|
40
40
|
return handleError(err, callback)
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
let { method, body, indexUuid, index_uuid, ...querystring } = params
|
|
44
44
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
let path = ''
|
|
47
47
|
if (method == null) method = 'DELETE'
|
|
48
48
|
path = '/' + '_dangling' + '/' + encodeURIComponent(index_uuid || indexUuid)
|
|
49
49
|
|
|
@@ -62,15 +62,15 @@ DanglingIndicesApi.prototype.importDanglingIndex = function danglingIndicesImpor
|
|
|
62
62
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
63
63
|
|
|
64
64
|
// check required parameters
|
|
65
|
-
if (params
|
|
65
|
+
if (params.index_uuid == null && params.indexUuid == null) {
|
|
66
66
|
const err = new this[kConfigurationError]('Missing required parameter: index_uuid or indexUuid')
|
|
67
67
|
return handleError(err, callback)
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
let { method, body, indexUuid, index_uuid, ...querystring } = params
|
|
71
71
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
let path = ''
|
|
74
74
|
if (method == null) method = 'POST'
|
|
75
75
|
path = '/' + '_dangling' + '/' + encodeURIComponent(index_uuid || indexUuid)
|
|
76
76
|
|
|
@@ -88,10 +88,10 @@ DanglingIndicesApi.prototype.importDanglingIndex = function danglingIndicesImpor
|
|
|
88
88
|
DanglingIndicesApi.prototype.listDanglingIndices = function danglingIndicesListDanglingIndicesApi (params, options, callback) {
|
|
89
89
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
let { method, body, ...querystring } = params
|
|
92
92
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
let path = ''
|
|
95
95
|
if (method == null) method = 'GET'
|
|
96
96
|
path = '/' + '_dangling'
|
|
97
97
|
|
package/api/api/delete.js
CHANGED
|
@@ -30,19 +30,19 @@ function deleteApi (params, options, callback) {
|
|
|
30
30
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
31
31
|
|
|
32
32
|
// check required parameters
|
|
33
|
-
if (params
|
|
33
|
+
if (params.id == null) {
|
|
34
34
|
const err = new this[kConfigurationError]('Missing required parameter: id')
|
|
35
35
|
return handleError(err, callback)
|
|
36
36
|
}
|
|
37
|
-
if (params
|
|
37
|
+
if (params.index == null) {
|
|
38
38
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
39
39
|
return handleError(err, callback)
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
let { method, body, id, index, type, ...querystring } = params
|
|
43
43
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
let path = ''
|
|
46
46
|
if ((index) != null && (type) != null && (id) != null) {
|
|
47
47
|
if (method == null) method = 'DELETE'
|
|
48
48
|
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + encodeURIComponent(id)
|
|
@@ -30,25 +30,25 @@ function deleteByQueryApi (params, options, callback) {
|
|
|
30
30
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
31
31
|
|
|
32
32
|
// check required parameters
|
|
33
|
-
if (params
|
|
33
|
+
if (params.index == null) {
|
|
34
34
|
const err = new this[kConfigurationError]('Missing required parameter: index')
|
|
35
35
|
return handleError(err, callback)
|
|
36
36
|
}
|
|
37
|
-
if (params
|
|
37
|
+
if (params.body == null) {
|
|
38
38
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
39
39
|
return handleError(err, callback)
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
// check required url components
|
|
43
|
-
if (params
|
|
43
|
+
if (params.type != null && (params.index == null)) {
|
|
44
44
|
const err = new this[kConfigurationError]('Missing required parameter of the url: index')
|
|
45
45
|
return handleError(err, callback)
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
let { method, body, index, type, ...querystring } = params
|
|
49
49
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
let path = ''
|
|
52
52
|
if ((index) != null && (type) != null) {
|
|
53
53
|
if (method == null) method = 'POST'
|
|
54
54
|
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + '_delete_by_query'
|