@elastic/elasticsearch 7.12.0 → 7.13.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.
@@ -0,0 +1,124 @@
1
+ /*
2
+ * Licensed to Elasticsearch B.V. under one or more contributor
3
+ * license agreements. See the NOTICE file distributed with
4
+ * this work for additional information regarding copyright
5
+ * ownership. Elasticsearch B.V. licenses this file to you under
6
+ * the Apache License, Version 2.0 (the "License"); you may
7
+ * not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+
20
+ 'use strict'
21
+
22
+ /* eslint camelcase: 0 */
23
+ /* eslint no-unused-vars: 0 */
24
+
25
+ const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
26
+ const acceptedQuerystring = ['pretty', 'human', 'error_trace', 'source', 'filter_path']
27
+ const snakeCase = { errorTrace: 'error_trace', filterPath: 'filter_path' }
28
+
29
+ function ShutdownApi (transport, ConfigurationError) {
30
+ this.transport = transport
31
+ this[kConfigurationError] = ConfigurationError
32
+ }
33
+
34
+ ShutdownApi.prototype.deleteNode = function shutdownDeleteNodeApi (params, options, callback) {
35
+ ;[params, options, callback] = normalizeArguments(params, options, callback)
36
+
37
+ // check required parameters
38
+ if (params.node_id == null && params.nodeId == null) {
39
+ const err = new this[kConfigurationError]('Missing required parameter: node_id or nodeId')
40
+ return handleError(err, callback)
41
+ }
42
+
43
+ let { method, body, nodeId, node_id, ...querystring } = params
44
+ querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
45
+
46
+ let path = ''
47
+ if (method == null) method = 'DELETE'
48
+ path = '/' + '_nodes' + '/' + encodeURIComponent(node_id || nodeId) + '/' + 'shutdown'
49
+
50
+ // build request object
51
+ const request = {
52
+ method,
53
+ path,
54
+ body: body || '',
55
+ querystring
56
+ }
57
+
58
+ return this.transport.request(request, options, callback)
59
+ }
60
+
61
+ ShutdownApi.prototype.getNode = function shutdownGetNodeApi (params, options, callback) {
62
+ ;[params, options, callback] = normalizeArguments(params, options, callback)
63
+
64
+ let { method, body, nodeId, node_id, ...querystring } = params
65
+ querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
66
+
67
+ let path = ''
68
+ if ((node_id || nodeId) != null) {
69
+ if (method == null) method = 'GET'
70
+ path = '/' + '_nodes' + '/' + encodeURIComponent(node_id || nodeId) + '/' + 'shutdown'
71
+ } else {
72
+ if (method == null) method = 'GET'
73
+ path = '/' + '_nodes' + '/' + 'shutdown'
74
+ }
75
+
76
+ // build request object
77
+ const request = {
78
+ method,
79
+ path,
80
+ body: null,
81
+ querystring
82
+ }
83
+
84
+ return this.transport.request(request, options, callback)
85
+ }
86
+
87
+ ShutdownApi.prototype.putNode = function shutdownPutNodeApi (params, options, callback) {
88
+ ;[params, options, callback] = normalizeArguments(params, options, callback)
89
+
90
+ // check required parameters
91
+ if (params.node_id == null && params.nodeId == null) {
92
+ const err = new this[kConfigurationError]('Missing required parameter: node_id or nodeId')
93
+ return handleError(err, callback)
94
+ }
95
+ if (params.body == null) {
96
+ const err = new this[kConfigurationError]('Missing required parameter: body')
97
+ return handleError(err, callback)
98
+ }
99
+
100
+ let { method, body, nodeId, node_id, ...querystring } = params
101
+ querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
102
+
103
+ let path = ''
104
+ if (method == null) method = 'PUT'
105
+ path = '/' + '_nodes' + '/' + encodeURIComponent(node_id || nodeId) + '/' + 'shutdown'
106
+
107
+ // build request object
108
+ const request = {
109
+ method,
110
+ path,
111
+ body: body || '',
112
+ querystring
113
+ }
114
+
115
+ return this.transport.request(request, options, callback)
116
+ }
117
+
118
+ Object.defineProperties(ShutdownApi.prototype, {
119
+ delete_node: { get () { return this.deleteNode } },
120
+ get_node: { get () { return this.getNode } },
121
+ put_node: { get () { return this.putNode } }
122
+ })
123
+
124
+ module.exports = ShutdownApi
@@ -23,8 +23,8 @@
23
23
  /* eslint no-unused-vars: 0 */
24
24
 
25
25
  const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
26
- const acceptedQuerystring = ['master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'wait_for_completion', 'verify', 'ignore_unavailable', 'verbose', 'local']
27
- const snakeCase = { masterTimeout: 'master_timeout', errorTrace: 'error_trace', filterPath: 'filter_path', waitForCompletion: 'wait_for_completion', ignoreUnavailable: 'ignore_unavailable' }
26
+ const acceptedQuerystring = ['master_timeout', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'wait_for_completion', 'verify', 'ignore_unavailable', 'index_details', 'verbose', 'local']
27
+ const snakeCase = { masterTimeout: 'master_timeout', errorTrace: 'error_trace', filterPath: 'filter_path', waitForCompletion: 'wait_for_completion', ignoreUnavailable: 'ignore_unavailable', indexDetails: 'index_details' }
28
28
 
29
29
  function SnapshotApi (transport, ConfigurationError) {
30
30
  this.transport = transport
@@ -51,7 +51,7 @@ TextStructureApi.prototype.findStructure = function textStructureFindStructureAp
51
51
  const request = {
52
52
  method,
53
53
  path,
54
- body: body || '',
54
+ bulkBody: body,
55
55
  querystring
56
56
  }
57
57
 
package/api/index.js CHANGED
@@ -19,9 +19,13 @@
19
19
 
20
20
  'use strict'
21
21
 
22
+ const AsyncSearchApi = require('./api/async_search')
23
+ const AutoscalingApi = require('./api/autoscaling')
22
24
  const bulkApi = require('./api/bulk')
23
25
  const CatApi = require('./api/cat')
26
+ const CcrApi = require('./api/ccr')
24
27
  const clearScrollApi = require('./api/clear_scroll')
28
+ const closePointInTimeApi = require('./api/close_point_in_time')
25
29
  const ClusterApi = require('./api/cluster')
26
30
  const countApi = require('./api/count')
27
31
  const createApi = require('./api/create')
@@ -30,95 +34,95 @@ const deleteApi = require('./api/delete')
30
34
  const deleteByQueryApi = require('./api/delete_by_query')
31
35
  const deleteByQueryRethrottleApi = require('./api/delete_by_query_rethrottle')
32
36
  const deleteScriptApi = require('./api/delete_script')
37
+ const EnrichApi = require('./api/enrich')
38
+ const EqlApi = require('./api/eql')
33
39
  const existsApi = require('./api/exists')
34
40
  const existsSourceApi = require('./api/exists_source')
35
41
  const explainApi = require('./api/explain')
36
42
  const FeaturesApi = require('./api/features')
37
43
  const fieldCapsApi = require('./api/field_caps')
44
+ const FleetApi = require('./api/fleet')
38
45
  const getApi = require('./api/get')
39
46
  const getScriptApi = require('./api/get_script')
40
47
  const getScriptContextApi = require('./api/get_script_context')
41
48
  const getScriptLanguagesApi = require('./api/get_script_languages')
42
49
  const getSourceApi = require('./api/get_source')
50
+ const GraphApi = require('./api/graph')
51
+ const IlmApi = require('./api/ilm')
43
52
  const indexApi = require('./api/index')
44
53
  const IndicesApi = require('./api/indices')
45
54
  const infoApi = require('./api/info')
46
55
  const IngestApi = require('./api/ingest')
56
+ const LicenseApi = require('./api/license')
57
+ const LogstashApi = require('./api/logstash')
47
58
  const mgetApi = require('./api/mget')
59
+ const MigrationApi = require('./api/migration')
60
+ const MlApi = require('./api/ml')
61
+ const MonitoringApi = require('./api/monitoring')
48
62
  const msearchApi = require('./api/msearch')
49
63
  const msearchTemplateApi = require('./api/msearch_template')
50
64
  const mtermvectorsApi = require('./api/mtermvectors')
51
65
  const NodesApi = require('./api/nodes')
66
+ const openPointInTimeApi = require('./api/open_point_in_time')
52
67
  const pingApi = require('./api/ping')
53
68
  const putScriptApi = require('./api/put_script')
54
69
  const rankEvalApi = require('./api/rank_eval')
55
70
  const reindexApi = require('./api/reindex')
56
71
  const reindexRethrottleApi = require('./api/reindex_rethrottle')
57
72
  const renderSearchTemplateApi = require('./api/render_search_template')
73
+ const RollupApi = require('./api/rollup')
58
74
  const scriptsPainlessExecuteApi = require('./api/scripts_painless_execute')
59
75
  const scrollApi = require('./api/scroll')
60
76
  const searchApi = require('./api/search')
61
77
  const searchShardsApi = require('./api/search_shards')
62
78
  const searchTemplateApi = require('./api/search_template')
63
- const SnapshotApi = require('./api/snapshot')
64
- const TasksApi = require('./api/tasks')
65
- const termvectorsApi = require('./api/termvectors')
66
- const updateApi = require('./api/update')
67
- const updateByQueryApi = require('./api/update_by_query')
68
- const updateByQueryRethrottleApi = require('./api/update_by_query_rethrottle')
69
- const AsyncSearchApi = require('./api/async_search')
70
- const AutoscalingApi = require('./api/autoscaling')
71
- const CcrApi = require('./api/ccr')
72
- const closePointInTimeApi = require('./api/close_point_in_time')
73
- const EnrichApi = require('./api/enrich')
74
- const EqlApi = require('./api/eql')
75
- const GraphApi = require('./api/graph')
76
- const IlmApi = require('./api/ilm')
77
- const LicenseApi = require('./api/license')
78
- const LogstashApi = require('./api/logstash')
79
- const MigrationApi = require('./api/migration')
80
- const MlApi = require('./api/ml')
81
- const MonitoringApi = require('./api/monitoring')
82
- const openPointInTimeApi = require('./api/open_point_in_time')
83
- const RollupApi = require('./api/rollup')
84
79
  const SearchableSnapshotsApi = require('./api/searchable_snapshots')
85
80
  const SecurityApi = require('./api/security')
81
+ const ShutdownApi = require('./api/shutdown')
86
82
  const SlmApi = require('./api/slm')
83
+ const SnapshotApi = require('./api/snapshot')
87
84
  const SqlApi = require('./api/sql')
88
85
  const SslApi = require('./api/ssl')
86
+ const TasksApi = require('./api/tasks')
87
+ const termvectorsApi = require('./api/termvectors')
89
88
  const TextStructureApi = require('./api/text_structure')
90
89
  const TransformApi = require('./api/transform')
90
+ const updateApi = require('./api/update')
91
+ const updateByQueryApi = require('./api/update_by_query')
92
+ const updateByQueryRethrottleApi = require('./api/update_by_query_rethrottle')
91
93
  const WatcherApi = require('./api/watcher')
92
94
  const XpackApi = require('./api/xpack')
93
95
 
94
96
  const { kConfigurationError } = require('./utils')
95
- const kCat = Symbol('Cat')
96
- const kCluster = Symbol('Cluster')
97
- const kDanglingIndices = Symbol('DanglingIndices')
98
- const kFeatures = Symbol('Features')
99
- const kIndices = Symbol('Indices')
100
- const kIngest = Symbol('Ingest')
101
- const kNodes = Symbol('Nodes')
102
- const kSnapshot = Symbol('Snapshot')
103
- const kTasks = Symbol('Tasks')
104
97
  const kAsyncSearch = Symbol('AsyncSearch')
105
98
  const kAutoscaling = Symbol('Autoscaling')
99
+ const kCat = Symbol('Cat')
106
100
  const kCcr = Symbol('Ccr')
101
+ const kCluster = Symbol('Cluster')
102
+ const kDanglingIndices = Symbol('DanglingIndices')
107
103
  const kEnrich = Symbol('Enrich')
108
104
  const kEql = Symbol('Eql')
105
+ const kFeatures = Symbol('Features')
106
+ const kFleet = Symbol('Fleet')
109
107
  const kGraph = Symbol('Graph')
110
108
  const kIlm = Symbol('Ilm')
109
+ const kIndices = Symbol('Indices')
110
+ const kIngest = Symbol('Ingest')
111
111
  const kLicense = Symbol('License')
112
112
  const kLogstash = Symbol('Logstash')
113
113
  const kMigration = Symbol('Migration')
114
114
  const kMl = Symbol('Ml')
115
115
  const kMonitoring = Symbol('Monitoring')
116
+ const kNodes = Symbol('Nodes')
116
117
  const kRollup = Symbol('Rollup')
117
118
  const kSearchableSnapshots = Symbol('SearchableSnapshots')
118
119
  const kSecurity = Symbol('Security')
120
+ const kShutdown = Symbol('Shutdown')
119
121
  const kSlm = Symbol('Slm')
122
+ const kSnapshot = Symbol('Snapshot')
120
123
  const kSql = Symbol('Sql')
121
124
  const kSsl = Symbol('Ssl')
125
+ const kTasks = Symbol('Tasks')
122
126
  const kTextStructure = Symbol('TextStructure')
123
127
  const kTransform = Symbol('Transform')
124
128
  const kWatcher = Symbol('Watcher')
@@ -126,33 +130,35 @@ const kXpack = Symbol('Xpack')
126
130
 
127
131
  function ESAPI (opts) {
128
132
  this[kConfigurationError] = opts.ConfigurationError
129
- this[kCat] = null
130
- this[kCluster] = null
131
- this[kDanglingIndices] = null
132
- this[kFeatures] = null
133
- this[kIndices] = null
134
- this[kIngest] = null
135
- this[kNodes] = null
136
- this[kSnapshot] = null
137
- this[kTasks] = null
138
133
  this[kAsyncSearch] = null
139
134
  this[kAutoscaling] = null
135
+ this[kCat] = null
140
136
  this[kCcr] = null
137
+ this[kCluster] = null
138
+ this[kDanglingIndices] = null
141
139
  this[kEnrich] = null
142
140
  this[kEql] = null
141
+ this[kFeatures] = null
142
+ this[kFleet] = null
143
143
  this[kGraph] = null
144
144
  this[kIlm] = null
145
+ this[kIndices] = null
146
+ this[kIngest] = null
145
147
  this[kLicense] = null
146
148
  this[kLogstash] = null
147
149
  this[kMigration] = null
148
150
  this[kMl] = null
149
151
  this[kMonitoring] = null
152
+ this[kNodes] = null
150
153
  this[kRollup] = null
151
154
  this[kSearchableSnapshots] = null
152
155
  this[kSecurity] = null
156
+ this[kShutdown] = null
153
157
  this[kSlm] = null
158
+ this[kSnapshot] = null
154
159
  this[kSql] = null
155
160
  this[kSsl] = null
161
+ this[kTasks] = null
156
162
  this[kTextStructure] = null
157
163
  this[kTransform] = null
158
164
  this[kWatcher] = null
@@ -161,6 +167,7 @@ function ESAPI (opts) {
161
167
 
162
168
  ESAPI.prototype.bulk = bulkApi
163
169
  ESAPI.prototype.clearScroll = clearScrollApi
170
+ ESAPI.prototype.closePointInTime = closePointInTimeApi
164
171
  ESAPI.prototype.count = countApi
165
172
  ESAPI.prototype.create = createApi
166
173
  ESAPI.prototype.delete = deleteApi
@@ -182,6 +189,7 @@ ESAPI.prototype.mget = mgetApi
182
189
  ESAPI.prototype.msearch = msearchApi
183
190
  ESAPI.prototype.msearchTemplate = msearchTemplateApi
184
191
  ESAPI.prototype.mtermvectors = mtermvectorsApi
192
+ ESAPI.prototype.openPointInTime = openPointInTimeApi
185
193
  ESAPI.prototype.ping = pingApi
186
194
  ESAPI.prototype.putScript = putScriptApi
187
195
  ESAPI.prototype.rankEval = rankEvalApi
@@ -197,10 +205,25 @@ ESAPI.prototype.termvectors = termvectorsApi
197
205
  ESAPI.prototype.update = updateApi
198
206
  ESAPI.prototype.updateByQuery = updateByQueryApi
199
207
  ESAPI.prototype.updateByQueryRethrottle = updateByQueryRethrottleApi
200
- ESAPI.prototype.closePointInTime = closePointInTimeApi
201
- ESAPI.prototype.openPointInTime = openPointInTimeApi
202
208
 
203
209
  Object.defineProperties(ESAPI.prototype, {
210
+ asyncSearch: {
211
+ get () {
212
+ if (this[kAsyncSearch] === null) {
213
+ this[kAsyncSearch] = new AsyncSearchApi(this.transport, this[kConfigurationError])
214
+ }
215
+ return this[kAsyncSearch]
216
+ }
217
+ },
218
+ async_search: { get () { return this.asyncSearch } },
219
+ autoscaling: {
220
+ get () {
221
+ if (this[kAutoscaling] === null) {
222
+ this[kAutoscaling] = new AutoscalingApi(this.transport, this[kConfigurationError])
223
+ }
224
+ return this[kAutoscaling]
225
+ }
226
+ },
204
227
  cat: {
205
228
  get () {
206
229
  if (this[kCat] === null) {
@@ -209,7 +232,16 @@ Object.defineProperties(ESAPI.prototype, {
209
232
  return this[kCat]
210
233
  }
211
234
  },
235
+ ccr: {
236
+ get () {
237
+ if (this[kCcr] === null) {
238
+ this[kCcr] = new CcrApi(this.transport, this[kConfigurationError])
239
+ }
240
+ return this[kCcr]
241
+ }
242
+ },
212
243
  clear_scroll: { get () { return this.clearScroll } },
244
+ close_point_in_time: { get () { return this.closePointInTime } },
213
245
  cluster: {
214
246
  get () {
215
247
  if (this[kCluster] === null) {
@@ -230,96 +262,6 @@ Object.defineProperties(ESAPI.prototype, {
230
262
  delete_by_query: { get () { return this.deleteByQuery } },
231
263
  delete_by_query_rethrottle: { get () { return this.deleteByQueryRethrottle } },
232
264
  delete_script: { get () { return this.deleteScript } },
233
- exists_source: { get () { return this.existsSource } },
234
- features: {
235
- get () {
236
- if (this[kFeatures] === null) {
237
- this[kFeatures] = new FeaturesApi(this.transport, this[kConfigurationError])
238
- }
239
- return this[kFeatures]
240
- }
241
- },
242
- field_caps: { get () { return this.fieldCaps } },
243
- get_script: { get () { return this.getScript } },
244
- get_script_context: { get () { return this.getScriptContext } },
245
- get_script_languages: { get () { return this.getScriptLanguages } },
246
- get_source: { get () { return this.getSource } },
247
- indices: {
248
- get () {
249
- if (this[kIndices] === null) {
250
- this[kIndices] = new IndicesApi(this.transport, this[kConfigurationError])
251
- }
252
- return this[kIndices]
253
- }
254
- },
255
- ingest: {
256
- get () {
257
- if (this[kIngest] === null) {
258
- this[kIngest] = new IngestApi(this.transport, this[kConfigurationError])
259
- }
260
- return this[kIngest]
261
- }
262
- },
263
- msearch_template: { get () { return this.msearchTemplate } },
264
- nodes: {
265
- get () {
266
- if (this[kNodes] === null) {
267
- this[kNodes] = new NodesApi(this.transport, this[kConfigurationError])
268
- }
269
- return this[kNodes]
270
- }
271
- },
272
- put_script: { get () { return this.putScript } },
273
- rank_eval: { get () { return this.rankEval } },
274
- reindex_rethrottle: { get () { return this.reindexRethrottle } },
275
- render_search_template: { get () { return this.renderSearchTemplate } },
276
- scripts_painless_execute: { get () { return this.scriptsPainlessExecute } },
277
- search_shards: { get () { return this.searchShards } },
278
- search_template: { get () { return this.searchTemplate } },
279
- snapshot: {
280
- get () {
281
- if (this[kSnapshot] === null) {
282
- this[kSnapshot] = new SnapshotApi(this.transport, this[kConfigurationError])
283
- }
284
- return this[kSnapshot]
285
- }
286
- },
287
- tasks: {
288
- get () {
289
- if (this[kTasks] === null) {
290
- this[kTasks] = new TasksApi(this.transport, this[kConfigurationError])
291
- }
292
- return this[kTasks]
293
- }
294
- },
295
- update_by_query: { get () { return this.updateByQuery } },
296
- update_by_query_rethrottle: { get () { return this.updateByQueryRethrottle } },
297
- asyncSearch: {
298
- get () {
299
- if (this[kAsyncSearch] === null) {
300
- this[kAsyncSearch] = new AsyncSearchApi(this.transport, this[kConfigurationError])
301
- }
302
- return this[kAsyncSearch]
303
- }
304
- },
305
- async_search: { get () { return this.asyncSearch } },
306
- autoscaling: {
307
- get () {
308
- if (this[kAutoscaling] === null) {
309
- this[kAutoscaling] = new AutoscalingApi(this.transport, this[kConfigurationError])
310
- }
311
- return this[kAutoscaling]
312
- }
313
- },
314
- ccr: {
315
- get () {
316
- if (this[kCcr] === null) {
317
- this[kCcr] = new CcrApi(this.transport, this[kConfigurationError])
318
- }
319
- return this[kCcr]
320
- }
321
- },
322
- close_point_in_time: { get () { return this.closePointInTime } },
323
265
  enrich: {
324
266
  get () {
325
267
  if (this[kEnrich] === null) {
@@ -336,6 +278,28 @@ Object.defineProperties(ESAPI.prototype, {
336
278
  return this[kEql]
337
279
  }
338
280
  },
281
+ exists_source: { get () { return this.existsSource } },
282
+ features: {
283
+ get () {
284
+ if (this[kFeatures] === null) {
285
+ this[kFeatures] = new FeaturesApi(this.transport, this[kConfigurationError])
286
+ }
287
+ return this[kFeatures]
288
+ }
289
+ },
290
+ field_caps: { get () { return this.fieldCaps } },
291
+ fleet: {
292
+ get () {
293
+ if (this[kFleet] === null) {
294
+ this[kFleet] = new FleetApi(this.transport, this[kConfigurationError])
295
+ }
296
+ return this[kFleet]
297
+ }
298
+ },
299
+ get_script: { get () { return this.getScript } },
300
+ get_script_context: { get () { return this.getScriptContext } },
301
+ get_script_languages: { get () { return this.getScriptLanguages } },
302
+ get_source: { get () { return this.getSource } },
339
303
  graph: {
340
304
  get () {
341
305
  if (this[kGraph] === null) {
@@ -352,6 +316,22 @@ Object.defineProperties(ESAPI.prototype, {
352
316
  return this[kIlm]
353
317
  }
354
318
  },
319
+ indices: {
320
+ get () {
321
+ if (this[kIndices] === null) {
322
+ this[kIndices] = new IndicesApi(this.transport, this[kConfigurationError])
323
+ }
324
+ return this[kIndices]
325
+ }
326
+ },
327
+ ingest: {
328
+ get () {
329
+ if (this[kIngest] === null) {
330
+ this[kIngest] = new IngestApi(this.transport, this[kConfigurationError])
331
+ }
332
+ return this[kIngest]
333
+ }
334
+ },
355
335
  license: {
356
336
  get () {
357
337
  if (this[kLicense] === null) {
@@ -392,7 +372,20 @@ Object.defineProperties(ESAPI.prototype, {
392
372
  return this[kMonitoring]
393
373
  }
394
374
  },
375
+ msearch_template: { get () { return this.msearchTemplate } },
376
+ nodes: {
377
+ get () {
378
+ if (this[kNodes] === null) {
379
+ this[kNodes] = new NodesApi(this.transport, this[kConfigurationError])
380
+ }
381
+ return this[kNodes]
382
+ }
383
+ },
395
384
  open_point_in_time: { get () { return this.openPointInTime } },
385
+ put_script: { get () { return this.putScript } },
386
+ rank_eval: { get () { return this.rankEval } },
387
+ reindex_rethrottle: { get () { return this.reindexRethrottle } },
388
+ render_search_template: { get () { return this.renderSearchTemplate } },
396
389
  rollup: {
397
390
  get () {
398
391
  if (this[kRollup] === null) {
@@ -401,6 +394,9 @@ Object.defineProperties(ESAPI.prototype, {
401
394
  return this[kRollup]
402
395
  }
403
396
  },
397
+ scripts_painless_execute: { get () { return this.scriptsPainlessExecute } },
398
+ search_shards: { get () { return this.searchShards } },
399
+ search_template: { get () { return this.searchTemplate } },
404
400
  searchableSnapshots: {
405
401
  get () {
406
402
  if (this[kSearchableSnapshots] === null) {
@@ -418,6 +414,14 @@ Object.defineProperties(ESAPI.prototype, {
418
414
  return this[kSecurity]
419
415
  }
420
416
  },
417
+ shutdown: {
418
+ get () {
419
+ if (this[kShutdown] === null) {
420
+ this[kShutdown] = new ShutdownApi(this.transport, this[kConfigurationError])
421
+ }
422
+ return this[kShutdown]
423
+ }
424
+ },
421
425
  slm: {
422
426
  get () {
423
427
  if (this[kSlm] === null) {
@@ -426,6 +430,14 @@ Object.defineProperties(ESAPI.prototype, {
426
430
  return this[kSlm]
427
431
  }
428
432
  },
433
+ snapshot: {
434
+ get () {
435
+ if (this[kSnapshot] === null) {
436
+ this[kSnapshot] = new SnapshotApi(this.transport, this[kConfigurationError])
437
+ }
438
+ return this[kSnapshot]
439
+ }
440
+ },
429
441
  sql: {
430
442
  get () {
431
443
  if (this[kSql] === null) {
@@ -442,6 +454,14 @@ Object.defineProperties(ESAPI.prototype, {
442
454
  return this[kSsl]
443
455
  }
444
456
  },
457
+ tasks: {
458
+ get () {
459
+ if (this[kTasks] === null) {
460
+ this[kTasks] = new TasksApi(this.transport, this[kConfigurationError])
461
+ }
462
+ return this[kTasks]
463
+ }
464
+ },
445
465
  textStructure: {
446
466
  get () {
447
467
  if (this[kTextStructure] === null) {
@@ -459,6 +479,8 @@ Object.defineProperties(ESAPI.prototype, {
459
479
  return this[kTransform]
460
480
  }
461
481
  },
482
+ update_by_query: { get () { return this.updateByQuery } },
483
+ update_by_query_rethrottle: { get () { return this.updateByQueryRethrottle } },
462
484
  watcher: {
463
485
  get () {
464
486
  if (this[kWatcher] === null) {