@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.
Files changed (88) hide show
  1. package/README.md +1 -1
  2. package/api/api/async_search.js +11 -11
  3. package/api/api/autoscaling.js +12 -12
  4. package/api/api/bulk.js +4 -4
  5. package/api/api/cat.js +52 -52
  6. package/api/api/ccr.js +40 -40
  7. package/api/api/clear_scroll.js +2 -2
  8. package/api/api/close_point_in_time.js +2 -2
  9. package/api/api/cluster.js +36 -36
  10. package/api/api/count.js +3 -3
  11. package/api/api/create.js +5 -5
  12. package/api/api/dangling_indices.js +8 -8
  13. package/api/api/delete.js +4 -4
  14. package/api/api/delete_by_query.js +5 -5
  15. package/api/api/delete_by_query_rethrottle.js +4 -4
  16. package/api/api/delete_script.js +3 -3
  17. package/api/api/enrich.js +14 -14
  18. package/api/api/eql.js +41 -10
  19. package/api/api/exists.js +4 -4
  20. package/api/api/exists_source.js +6 -6
  21. package/api/api/explain.js +4 -4
  22. package/api/api/features.js +59 -0
  23. package/api/api/field_caps.js +2 -2
  24. package/api/api/get.js +4 -4
  25. package/api/api/get_script.js +3 -3
  26. package/api/api/get_script_context.js +2 -2
  27. package/api/api/get_script_languages.js +2 -2
  28. package/api/api/get_source.js +4 -4
  29. package/api/api/graph.js +4 -4
  30. package/api/api/ilm.js +26 -26
  31. package/api/api/index.js +4 -4
  32. package/api/api/indices.js +162 -162
  33. package/api/api/info.js +2 -2
  34. package/api/api/ingest.js +14 -14
  35. package/api/api/license.js +14 -14
  36. package/api/api/logstash.js +125 -0
  37. package/api/api/mget.js +4 -4
  38. package/api/api/migration.js +2 -2
  39. package/api/api/ml.js +198 -226
  40. package/api/api/monitoring.js +3 -3
  41. package/api/api/msearch.js +4 -4
  42. package/api/api/msearch_template.js +4 -4
  43. package/api/api/mtermvectors.js +3 -3
  44. package/api/api/nodes.js +10 -10
  45. package/api/api/open_point_in_time.js +2 -2
  46. package/api/api/ping.js +2 -2
  47. package/api/api/put_script.js +5 -5
  48. package/api/api/rank_eval.js +3 -3
  49. package/api/api/reindex.js +3 -3
  50. package/api/api/reindex_rethrottle.js +4 -4
  51. package/api/api/render_search_template.js +2 -2
  52. package/api/api/rollup.js +31 -31
  53. package/api/api/scripts_painless_execute.js +2 -2
  54. package/api/api/scroll.js +2 -2
  55. package/api/api/search.js +5 -5
  56. package/api/api/search_shards.js +2 -2
  57. package/api/api/search_template.js +4 -4
  58. package/api/api/searchable_snapshots.js +14 -14
  59. package/api/api/security.js +85 -85
  60. package/api/api/slm.js +21 -21
  61. package/api/api/snapshot.js +46 -46
  62. package/api/api/sql.js +9 -9
  63. package/api/api/ssl.js +2 -2
  64. package/api/api/tasks.js +7 -7
  65. package/api/api/termvectors.js +3 -3
  66. package/api/api/text_structure.js +65 -0
  67. package/api/api/transform.js +25 -25
  68. package/api/api/update.js +5 -5
  69. package/api/api/update_by_query.js +4 -4
  70. package/api/api/update_by_query_rethrottle.js +4 -4
  71. package/api/api/watcher.js +29 -29
  72. package/api/api/xpack.js +4 -4
  73. package/api/index.js +34 -0
  74. package/api/requestParams.d.ts +43 -18
  75. package/api/utils.js +4 -4
  76. package/free-report-junit.xml +13 -0
  77. package/index.d.ts +64 -8
  78. package/index.js +15 -23
  79. package/lib/Connection.js +2 -2
  80. package/lib/Helpers.d.ts +2 -2
  81. package/lib/Helpers.js +11 -6
  82. package/lib/Serializer.js +8 -6
  83. package/lib/Transport.d.ts +1 -0
  84. package/lib/Transport.js +10 -6
  85. package/lib/pool/BaseConnectionPool.js +3 -3
  86. package/lib/pool/ConnectionPool.js +4 -5
  87. package/package.json +23 -23
  88. 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['name'] == null) {
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
- var { method, body, name, ...querystring } = params
43
+ let { method, body, name, ...querystring } = params
44
44
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
45
45
 
46
- var path = ''
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['index'] == null) {
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['body'] == null) {
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
- var { method, body, index, ...querystring } = params
74
+ let { method, body, index, ...querystring } = params
75
75
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
76
76
 
77
- var path = ''
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['index'] == null) {
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
- var { method, body, index, ...querystring } = params
101
+ let { method, body, index, ...querystring } = params
102
102
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
103
103
 
104
- var path = ''
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['index'] == null) {
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
- var { method, body, index, ...querystring } = params
128
+ let { method, body, index, ...querystring } = params
129
129
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
130
130
 
131
- var path = ''
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['index'] == null) {
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['body'] == null) {
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
- var { method, body, index, ...querystring } = params
159
+ let { method, body, index, ...querystring } = params
160
160
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
161
161
 
162
- var path = ''
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
- var { method, body, name, ...querystring } = params
180
+ let { method, body, name, ...querystring } = params
181
181
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
182
182
 
183
- var path = ''
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['name'] == null) {
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
- var { method, body, name, ...querystring } = params
212
+ let { method, body, name, ...querystring } = params
213
213
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
214
214
 
215
- var path = ''
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['index'] == null) {
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
- var { method, body, index, ...querystring } = params
239
+ let { method, body, index, ...querystring } = params
240
240
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
241
241
 
242
- var path = ''
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['name'] == null) {
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['body'] == null) {
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
- var { method, body, name, ...querystring } = params
270
+ let { method, body, name, ...querystring } = params
271
271
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
272
272
 
273
- var path = ''
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['name'] == null) {
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
- var { method, body, name, ...querystring } = params
297
+ let { method, body, name, ...querystring } = params
298
298
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
299
299
 
300
- var path = ''
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['index'] == null) {
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
- var { method, body, index, ...querystring } = params
324
+ let { method, body, index, ...querystring } = params
325
325
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
326
326
 
327
- var path = ''
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
- var { method, body, ...querystring } = params
345
+ let { method, body, ...querystring } = params
346
346
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
347
347
 
348
- var path = ''
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['index'] == null) {
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
- var { method, body, index, ...querystring } = params
372
+ let { method, body, index, ...querystring } = params
373
373
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
374
374
 
375
- var path = ''
375
+ let path = ''
376
376
  if (method == null) method = 'POST'
377
377
  path = '/' + encodeURIComponent(index) + '/' + '_ccr' + '/' + 'unfollow'
378
378
 
@@ -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
- var { method, body, scrollId, scroll_id, ...querystring } = params
32
+ let { method, body, scrollId, scroll_id, ...querystring } = params
33
33
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
34
34
 
35
- var path = ''
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
- var { method, body, ...querystring } = params
32
+ let { method, body, ...querystring } = params
33
33
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
34
34
 
35
- var path = ''
35
+ let path = ''
36
36
  if (method == null) method = 'DELETE'
37
37
  path = '/' + '_pit'
38
38
 
@@ -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
- var { method, body, ...querystring } = params
37
+ let { method, body, ...querystring } = params
38
38
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
39
39
 
40
- var path = ''
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['name'] == null) {
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
- var { method, body, name, ...querystring } = params
64
+ let { method, body, name, ...querystring } = params
65
65
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
66
66
 
67
- var path = ''
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
- var { method, body, ...querystring } = params
85
+ let { method, body, ...querystring } = params
86
86
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
87
87
 
88
- var path = ''
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['name'] == null) {
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
- var { method, body, name, ...querystring } = params
112
+ let { method, body, name, ...querystring } = params
113
113
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
114
114
 
115
- var path = ''
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
- var { method, body, name, ...querystring } = params
133
+ let { method, body, name, ...querystring } = params
134
134
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
135
135
 
136
- var path = ''
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
- var { method, body, ...querystring } = params
159
+ let { method, body, ...querystring } = params
160
160
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
161
161
 
162
- var path = ''
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
- var { method, body, index, ...querystring } = params
180
+ let { method, body, index, ...querystring } = params
181
181
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
182
182
 
183
- var path = ''
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
- var { method, body, ...querystring } = params
206
+ let { method, body, ...querystring } = params
207
207
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
208
208
 
209
- var path = ''
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
- var { method, body, ...querystring } = params
227
+ let { method, body, ...querystring } = params
228
228
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
229
229
 
230
- var path = ''
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['name'] == null) {
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['body'] == null) {
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
- var { method, body, name, ...querystring } = params
258
+ let { method, body, name, ...querystring } = params
259
259
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
260
260
 
261
- var path = ''
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['body'] == null) {
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
- var { method, body, ...querystring } = params
285
+ let { method, body, ...querystring } = params
286
286
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
287
287
 
288
- var path = ''
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
- var { method, body, ...querystring } = params
306
+ let { method, body, ...querystring } = params
307
307
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
308
308
 
309
- var path = ''
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
- var { method, body, ...querystring } = params
327
+ let { method, body, ...querystring } = params
328
328
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
329
329
 
330
- var path = ''
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['index'] != null && (params['metric'] == null)) {
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
- var { method, body, metric, index, ...querystring } = params
354
+ let { method, body, metric, index, ...querystring } = params
355
355
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
356
356
 
357
- var path = ''
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
- var { method, body, nodeId, node_id, ...querystring } = params
383
+ let { method, body, nodeId, node_id, ...querystring } = params
384
384
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
385
385
 
386
- var path = ''
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['type'] != null && (params['index'] == null)) {
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
- var { method, body, index, type, ...querystring } = params
38
+ let { method, body, index, type, ...querystring } = params
39
39
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
40
40
 
41
- var path = ''
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['id'] == null) {
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['index'] == null) {
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['body'] == null) {
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
- var { method, body, id, index, type, ...querystring } = params
46
+ let { method, body, id, index, type, ...querystring } = params
47
47
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
48
48
 
49
- var path = ''
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['index_uuid'] == null && params['indexUuid'] == null) {
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
- var { method, body, indexUuid, index_uuid, ...querystring } = params
43
+ let { method, body, indexUuid, index_uuid, ...querystring } = params
44
44
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
45
45
 
46
- var path = ''
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['index_uuid'] == null && params['indexUuid'] == null) {
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
- var { method, body, indexUuid, index_uuid, ...querystring } = params
70
+ let { method, body, indexUuid, index_uuid, ...querystring } = params
71
71
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
72
72
 
73
- var path = ''
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
- var { method, body, ...querystring } = params
91
+ let { method, body, ...querystring } = params
92
92
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
93
93
 
94
- var path = ''
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['id'] == null) {
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['index'] == null) {
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
- var { method, body, id, index, type, ...querystring } = params
42
+ let { method, body, id, index, type, ...querystring } = params
43
43
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
44
44
 
45
- var path = ''
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['index'] == null) {
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['body'] == null) {
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['type'] != null && (params['index'] == null)) {
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
- var { method, body, index, type, ...querystring } = params
48
+ let { method, body, index, type, ...querystring } = params
49
49
  querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
50
50
 
51
- var path = ''
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'