@elastic/elasticsearch 7.11.0 → 7.14.1
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 +4 -2
- 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 +127 -127
- 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 +81 -0
- package/api/api/field_caps.js +2 -2
- package/api/api/fleet.js +65 -0
- 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 +50 -28
- package/api/api/index.js +4 -4
- package/api/api/indices.js +381 -381
- package/api/api/info.js +2 -2
- package/api/api/ingest.js +37 -15
- 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 +338 -208
- 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 +12 -12
- 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 +42 -15
- package/api/api/security.js +464 -86
- package/api/api/shutdown.js +124 -0
- package/api/api/slm.js +21 -21
- package/api/api/snapshot.js +76 -48
- package/api/api/sql.js +96 -12
- package/api/api/ssl.js +2 -2
- package/api/api/tasks.js +7 -7
- package/api/api/terms_enum.js +56 -0
- 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 +179 -120
- package/api/new.d.ts +1584 -0
- package/api/requestParams.d.ts +203 -7
- package/api/types.d.ts +15455 -0
- package/api/utils.js +4 -4
- package/free-report-junit.xml +3410 -0
- package/index.d.ts +326 -23
- package/index.js +28 -36
- package/lib/Connection.js +6 -4
- package/lib/Helpers.d.ts +4 -2
- package/lib/Helpers.js +31 -17
- package/lib/Serializer.d.ts +5 -0
- package/lib/Serializer.js +17 -6
- package/lib/Transport.d.ts +4 -2
- package/lib/Transport.js +194 -79
- package/lib/errors.d.ts +7 -0
- package/lib/errors.js +26 -2
- package/lib/pool/BaseConnectionPool.js +3 -3
- package/lib/pool/ConnectionPool.js +4 -5
- package/lib/pool/index.d.ts +5 -0
- package/package.json +26 -26
- package/api/kibana.d.ts +0 -485
package/api/api/ml.js
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/* eslint no-unused-vars: 0 */
|
|
24
24
|
|
|
25
25
|
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
|
|
26
|
-
const acceptedQuerystring = ['allow_no_match', 'allow_no_jobs', 'force', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'requests_per_second', 'allow_no_forecasts', 'wait_for_completion', 'lines_to_sample', 'line_merge_size_limit', 'charset', 'format', 'has_header_row', 'column_names', 'delimiter', 'quote', 'should_trim_fields', 'grok_pattern', 'timestamp_field', 'timestamp_format', 'explain', 'calc_interim', 'start', 'end', 'advance_time', 'skip_time', 'duration', 'expires_in', 'max_model_memory', 'expand', 'exclude_interim', 'from', 'size', 'anomaly_score', 'sort', 'desc', 'job_id', 'partition_field_value', 'exclude_generated', 'verbose', 'allow_no_datafeeds', 'influencer_score', 'top_n', 'bucket_span', 'overall_score', 'record_score', 'include', 'include_model_definition', 'decompress_definition', 'tags', 'reset_start', 'reset_end', 'ignore_unavailable', 'allow_no_indices', 'ignore_throttled', 'expand_wildcards', 'delete_intervening_results', 'enabled']
|
|
26
|
+
const acceptedQuerystring = ['allow_no_match', 'allow_no_jobs', 'force', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'requests_per_second', 'allow_no_forecasts', 'wait_for_completion', 'lines_to_sample', 'line_merge_size_limit', 'charset', 'format', 'has_header_row', 'column_names', 'delimiter', 'quote', 'should_trim_fields', 'grok_pattern', 'timestamp_field', 'timestamp_format', 'explain', 'calc_interim', 'start', 'end', 'advance_time', 'skip_time', 'duration', 'expires_in', 'max_model_memory', 'expand', 'exclude_interim', 'from', 'size', 'anomaly_score', 'sort', 'desc', 'job_id', 'partition_field_value', 'exclude_generated', 'verbose', 'allow_no_datafeeds', 'influencer_score', 'top_n', 'bucket_span', 'overall_score', 'record_score', 'include', 'include_model_definition', 'decompress_definition', 'tags', 'reset_start', 'reset_end', 'ignore_unavailable', 'allow_no_indices', 'ignore_throttled', 'expand_wildcards', 'reassign', 'delete_intervening_results', 'enabled']
|
|
27
27
|
const snakeCase = { allowNoMatch: 'allow_no_match', allowNoJobs: 'allow_no_jobs', errorTrace: 'error_trace', filterPath: 'filter_path', requestsPerSecond: 'requests_per_second', allowNoForecasts: 'allow_no_forecasts', waitForCompletion: 'wait_for_completion', linesToSample: 'lines_to_sample', lineMergeSizeLimit: 'line_merge_size_limit', hasHeaderRow: 'has_header_row', columnNames: 'column_names', shouldTrimFields: 'should_trim_fields', grokPattern: 'grok_pattern', timestampField: 'timestamp_field', timestampFormat: 'timestamp_format', calcInterim: 'calc_interim', advanceTime: 'advance_time', skipTime: 'skip_time', expiresIn: 'expires_in', maxModelMemory: 'max_model_memory', excludeInterim: 'exclude_interim', anomalyScore: 'anomaly_score', jobId: 'job_id', partitionFieldValue: 'partition_field_value', excludeGenerated: 'exclude_generated', allowNoDatafeeds: 'allow_no_datafeeds', influencerScore: 'influencer_score', topN: 'top_n', bucketSpan: 'bucket_span', overallScore: 'overall_score', recordScore: 'record_score', includeModelDefinition: 'include_model_definition', decompressDefinition: 'decompress_definition', resetStart: 'reset_start', resetEnd: 'reset_end', ignoreUnavailable: 'ignore_unavailable', allowNoIndices: 'allow_no_indices', ignoreThrottled: 'ignore_throttled', expandWildcards: 'expand_wildcards', deleteInterveningResults: 'delete_intervening_results' }
|
|
28
28
|
|
|
29
29
|
function MlApi (transport, ConfigurationError) {
|
|
@@ -35,15 +35,15 @@ MlApi.prototype.closeJob = function mlCloseJobApi (params, options, callback) {
|
|
|
35
35
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
36
36
|
|
|
37
37
|
// check required parameters
|
|
38
|
-
if (params
|
|
38
|
+
if (params.job_id == null && params.jobId == null) {
|
|
39
39
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
40
40
|
return handleError(err, callback)
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
let { method, body, jobId, job_id, ...querystring } = params
|
|
44
44
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
let path = ''
|
|
47
47
|
if (method == null) method = 'POST'
|
|
48
48
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_close'
|
|
49
49
|
|
|
@@ -62,15 +62,15 @@ MlApi.prototype.deleteCalendar = function mlDeleteCalendarApi (params, options,
|
|
|
62
62
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
63
63
|
|
|
64
64
|
// check required parameters
|
|
65
|
-
if (params
|
|
65
|
+
if (params.calendar_id == null && params.calendarId == null) {
|
|
66
66
|
const err = new this[kConfigurationError]('Missing required parameter: calendar_id or calendarId')
|
|
67
67
|
return handleError(err, callback)
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
let { method, body, calendarId, calendar_id, ...querystring } = params
|
|
71
71
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
let path = ''
|
|
74
74
|
if (method == null) method = 'DELETE'
|
|
75
75
|
path = '/' + '_ml' + '/' + 'calendars' + '/' + encodeURIComponent(calendar_id || calendarId)
|
|
76
76
|
|
|
@@ -89,25 +89,25 @@ MlApi.prototype.deleteCalendarEvent = function mlDeleteCalendarEventApi (params,
|
|
|
89
89
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
90
90
|
|
|
91
91
|
// check required parameters
|
|
92
|
-
if (params
|
|
92
|
+
if (params.calendar_id == null && params.calendarId == null) {
|
|
93
93
|
const err = new this[kConfigurationError]('Missing required parameter: calendar_id or calendarId')
|
|
94
94
|
return handleError(err, callback)
|
|
95
95
|
}
|
|
96
|
-
if (params
|
|
96
|
+
if (params.event_id == null && params.eventId == null) {
|
|
97
97
|
const err = new this[kConfigurationError]('Missing required parameter: event_id or eventId')
|
|
98
98
|
return handleError(err, callback)
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
// check required url components
|
|
102
|
-
if ((params
|
|
102
|
+
if ((params.event_id != null || params.eventId != null) && ((params.calendar_id == null && params.calendarId == null))) {
|
|
103
103
|
const err = new this[kConfigurationError]('Missing required parameter of the url: calendar_id')
|
|
104
104
|
return handleError(err, callback)
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
let { method, body, calendarId, calendar_id, eventId, event_id, ...querystring } = params
|
|
108
108
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
let path = ''
|
|
111
111
|
if (method == null) method = 'DELETE'
|
|
112
112
|
path = '/' + '_ml' + '/' + 'calendars' + '/' + encodeURIComponent(calendar_id || calendarId) + '/' + 'events' + '/' + encodeURIComponent(event_id || eventId)
|
|
113
113
|
|
|
@@ -126,25 +126,25 @@ MlApi.prototype.deleteCalendarJob = function mlDeleteCalendarJobApi (params, opt
|
|
|
126
126
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
127
127
|
|
|
128
128
|
// check required parameters
|
|
129
|
-
if (params
|
|
129
|
+
if (params.calendar_id == null && params.calendarId == null) {
|
|
130
130
|
const err = new this[kConfigurationError]('Missing required parameter: calendar_id or calendarId')
|
|
131
131
|
return handleError(err, callback)
|
|
132
132
|
}
|
|
133
|
-
if (params
|
|
133
|
+
if (params.job_id == null && params.jobId == null) {
|
|
134
134
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
135
135
|
return handleError(err, callback)
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
// check required url components
|
|
139
|
-
if ((params
|
|
139
|
+
if ((params.job_id != null || params.jobId != null) && ((params.calendar_id == null && params.calendarId == null))) {
|
|
140
140
|
const err = new this[kConfigurationError]('Missing required parameter of the url: calendar_id')
|
|
141
141
|
return handleError(err, callback)
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
let { method, body, calendarId, calendar_id, jobId, job_id, ...querystring } = params
|
|
145
145
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
let path = ''
|
|
148
148
|
if (method == null) method = 'DELETE'
|
|
149
149
|
path = '/' + '_ml' + '/' + 'calendars' + '/' + encodeURIComponent(calendar_id || calendarId) + '/' + 'jobs' + '/' + encodeURIComponent(job_id || jobId)
|
|
150
150
|
|
|
@@ -163,15 +163,15 @@ MlApi.prototype.deleteDataFrameAnalytics = function mlDeleteDataFrameAnalyticsAp
|
|
|
163
163
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
164
164
|
|
|
165
165
|
// check required parameters
|
|
166
|
-
if (params
|
|
166
|
+
if (params.id == null) {
|
|
167
167
|
const err = new this[kConfigurationError]('Missing required parameter: id')
|
|
168
168
|
return handleError(err, callback)
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
|
|
171
|
+
let { method, body, id, ...querystring } = params
|
|
172
172
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
173
173
|
|
|
174
|
-
|
|
174
|
+
let path = ''
|
|
175
175
|
if (method == null) method = 'DELETE'
|
|
176
176
|
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id)
|
|
177
177
|
|
|
@@ -190,15 +190,15 @@ MlApi.prototype.deleteDatafeed = function mlDeleteDatafeedApi (params, options,
|
|
|
190
190
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
191
191
|
|
|
192
192
|
// check required parameters
|
|
193
|
-
if (params
|
|
193
|
+
if (params.datafeed_id == null && params.datafeedId == null) {
|
|
194
194
|
const err = new this[kConfigurationError]('Missing required parameter: datafeed_id or datafeedId')
|
|
195
195
|
return handleError(err, callback)
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
|
|
198
|
+
let { method, body, datafeedId, datafeed_id, ...querystring } = params
|
|
199
199
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
200
200
|
|
|
201
|
-
|
|
201
|
+
let path = ''
|
|
202
202
|
if (method == null) method = 'DELETE'
|
|
203
203
|
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId)
|
|
204
204
|
|
|
@@ -216,10 +216,10 @@ MlApi.prototype.deleteDatafeed = function mlDeleteDatafeedApi (params, options,
|
|
|
216
216
|
MlApi.prototype.deleteExpiredData = function mlDeleteExpiredDataApi (params, options, callback) {
|
|
217
217
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
218
218
|
|
|
219
|
-
|
|
219
|
+
let { method, body, jobId, job_id, ...querystring } = params
|
|
220
220
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
221
221
|
|
|
222
|
-
|
|
222
|
+
let path = ''
|
|
223
223
|
if ((job_id || jobId) != null) {
|
|
224
224
|
if (method == null) method = 'DELETE'
|
|
225
225
|
path = '/' + '_ml' + '/' + '_delete_expired_data' + '/' + encodeURIComponent(job_id || jobId)
|
|
@@ -243,15 +243,15 @@ MlApi.prototype.deleteFilter = function mlDeleteFilterApi (params, options, call
|
|
|
243
243
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
244
244
|
|
|
245
245
|
// check required parameters
|
|
246
|
-
if (params
|
|
246
|
+
if (params.filter_id == null && params.filterId == null) {
|
|
247
247
|
const err = new this[kConfigurationError]('Missing required parameter: filter_id or filterId')
|
|
248
248
|
return handleError(err, callback)
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
|
|
251
|
+
let { method, body, filterId, filter_id, ...querystring } = params
|
|
252
252
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
253
253
|
|
|
254
|
-
|
|
254
|
+
let path = ''
|
|
255
255
|
if (method == null) method = 'DELETE'
|
|
256
256
|
path = '/' + '_ml' + '/' + 'filters' + '/' + encodeURIComponent(filter_id || filterId)
|
|
257
257
|
|
|
@@ -270,21 +270,21 @@ MlApi.prototype.deleteForecast = function mlDeleteForecastApi (params, options,
|
|
|
270
270
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
271
271
|
|
|
272
272
|
// check required parameters
|
|
273
|
-
if (params
|
|
273
|
+
if (params.job_id == null && params.jobId == null) {
|
|
274
274
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
275
275
|
return handleError(err, callback)
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
// check required url components
|
|
279
|
-
if ((params
|
|
279
|
+
if ((params.forecast_id != null || params.forecastId != null) && ((params.job_id == null && params.jobId == null))) {
|
|
280
280
|
const err = new this[kConfigurationError]('Missing required parameter of the url: job_id')
|
|
281
281
|
return handleError(err, callback)
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
|
|
284
|
+
let { method, body, jobId, job_id, forecastId, forecast_id, ...querystring } = params
|
|
285
285
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
286
286
|
|
|
287
|
-
|
|
287
|
+
let path = ''
|
|
288
288
|
if ((job_id || jobId) != null && (forecast_id || forecastId) != null) {
|
|
289
289
|
if (method == null) method = 'DELETE'
|
|
290
290
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_forecast' + '/' + encodeURIComponent(forecast_id || forecastId)
|
|
@@ -308,15 +308,15 @@ MlApi.prototype.deleteJob = function mlDeleteJobApi (params, options, callback)
|
|
|
308
308
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
309
309
|
|
|
310
310
|
// check required parameters
|
|
311
|
-
if (params
|
|
311
|
+
if (params.job_id == null && params.jobId == null) {
|
|
312
312
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
313
313
|
return handleError(err, callback)
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
|
|
316
|
+
let { method, body, jobId, job_id, ...querystring } = params
|
|
317
317
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
318
318
|
|
|
319
|
-
|
|
319
|
+
let path = ''
|
|
320
320
|
if (method == null) method = 'DELETE'
|
|
321
321
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId)
|
|
322
322
|
|
|
@@ -335,25 +335,25 @@ MlApi.prototype.deleteModelSnapshot = function mlDeleteModelSnapshotApi (params,
|
|
|
335
335
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
336
336
|
|
|
337
337
|
// check required parameters
|
|
338
|
-
if (params
|
|
338
|
+
if (params.job_id == null && params.jobId == null) {
|
|
339
339
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
340
340
|
return handleError(err, callback)
|
|
341
341
|
}
|
|
342
|
-
if (params
|
|
342
|
+
if (params.snapshot_id == null && params.snapshotId == null) {
|
|
343
343
|
const err = new this[kConfigurationError]('Missing required parameter: snapshot_id or snapshotId')
|
|
344
344
|
return handleError(err, callback)
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
// check required url components
|
|
348
|
-
if ((params
|
|
348
|
+
if ((params.snapshot_id != null || params.snapshotId != null) && ((params.job_id == null && params.jobId == null))) {
|
|
349
349
|
const err = new this[kConfigurationError]('Missing required parameter of the url: job_id')
|
|
350
350
|
return handleError(err, callback)
|
|
351
351
|
}
|
|
352
352
|
|
|
353
|
-
|
|
353
|
+
let { method, body, jobId, job_id, snapshotId, snapshot_id, ...querystring } = params
|
|
354
354
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
355
355
|
|
|
356
|
-
|
|
356
|
+
let path = ''
|
|
357
357
|
if (method == null) method = 'DELETE'
|
|
358
358
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'model_snapshots' + '/' + encodeURIComponent(snapshot_id || snapshotId)
|
|
359
359
|
|
|
@@ -372,15 +372,15 @@ MlApi.prototype.deleteTrainedModel = function mlDeleteTrainedModelApi (params, o
|
|
|
372
372
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
373
373
|
|
|
374
374
|
// check required parameters
|
|
375
|
-
if (params
|
|
375
|
+
if (params.model_id == null && params.modelId == null) {
|
|
376
376
|
const err = new this[kConfigurationError]('Missing required parameter: model_id or modelId')
|
|
377
377
|
return handleError(err, callback)
|
|
378
378
|
}
|
|
379
379
|
|
|
380
|
-
|
|
380
|
+
let { method, body, modelId, model_id, ...querystring } = params
|
|
381
381
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
382
382
|
|
|
383
|
-
|
|
383
|
+
let path = ''
|
|
384
384
|
if (method == null) method = 'DELETE'
|
|
385
385
|
path = '/' + '_ml' + '/' + 'trained_models' + '/' + encodeURIComponent(model_id || modelId)
|
|
386
386
|
|
|
@@ -395,19 +395,56 @@ MlApi.prototype.deleteTrainedModel = function mlDeleteTrainedModelApi (params, o
|
|
|
395
395
|
return this.transport.request(request, options, callback)
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
+
MlApi.prototype.deleteTrainedModelAlias = function mlDeleteTrainedModelAliasApi (params, options, callback) {
|
|
399
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
400
|
+
|
|
401
|
+
// check required parameters
|
|
402
|
+
if (params.model_alias == null && params.modelAlias == null) {
|
|
403
|
+
const err = new this[kConfigurationError]('Missing required parameter: model_alias or modelAlias')
|
|
404
|
+
return handleError(err, callback)
|
|
405
|
+
}
|
|
406
|
+
if (params.model_id == null && params.modelId == null) {
|
|
407
|
+
const err = new this[kConfigurationError]('Missing required parameter: model_id or modelId')
|
|
408
|
+
return handleError(err, callback)
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// check required url components
|
|
412
|
+
if ((params.model_alias != null || params.modelAlias != null) && ((params.model_id == null && params.modelId == null))) {
|
|
413
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: model_id')
|
|
414
|
+
return handleError(err, callback)
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
let { method, body, modelAlias, model_alias, modelId, model_id, ...querystring } = params
|
|
418
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
419
|
+
|
|
420
|
+
let path = ''
|
|
421
|
+
if (method == null) method = 'DELETE'
|
|
422
|
+
path = '/' + '_ml' + '/' + 'trained_models' + '/' + encodeURIComponent(model_id || modelId) + '/' + 'model_aliases' + '/' + encodeURIComponent(model_alias || modelAlias)
|
|
423
|
+
|
|
424
|
+
// build request object
|
|
425
|
+
const request = {
|
|
426
|
+
method,
|
|
427
|
+
path,
|
|
428
|
+
body: body || '',
|
|
429
|
+
querystring
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
return this.transport.request(request, options, callback)
|
|
433
|
+
}
|
|
434
|
+
|
|
398
435
|
MlApi.prototype.estimateModelMemory = function mlEstimateModelMemoryApi (params, options, callback) {
|
|
399
436
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
400
437
|
|
|
401
438
|
// check required parameters
|
|
402
|
-
if (params
|
|
439
|
+
if (params.body == null) {
|
|
403
440
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
404
441
|
return handleError(err, callback)
|
|
405
442
|
}
|
|
406
443
|
|
|
407
|
-
|
|
444
|
+
let { method, body, ...querystring } = params
|
|
408
445
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
409
446
|
|
|
410
|
-
|
|
447
|
+
let path = ''
|
|
411
448
|
if (method == null) method = 'POST'
|
|
412
449
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + '_estimate_model_memory'
|
|
413
450
|
|
|
@@ -426,15 +463,15 @@ MlApi.prototype.evaluateDataFrame = function mlEvaluateDataFrameApi (params, opt
|
|
|
426
463
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
427
464
|
|
|
428
465
|
// check required parameters
|
|
429
|
-
if (params
|
|
466
|
+
if (params.body == null) {
|
|
430
467
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
431
468
|
return handleError(err, callback)
|
|
432
469
|
}
|
|
433
470
|
|
|
434
|
-
|
|
471
|
+
let { method, body, ...querystring } = params
|
|
435
472
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
436
473
|
|
|
437
|
-
|
|
474
|
+
let path = ''
|
|
438
475
|
if (method == null) method = 'POST'
|
|
439
476
|
path = '/' + '_ml' + '/' + 'data_frame' + '/' + '_evaluate'
|
|
440
477
|
|
|
@@ -452,10 +489,10 @@ MlApi.prototype.evaluateDataFrame = function mlEvaluateDataFrameApi (params, opt
|
|
|
452
489
|
MlApi.prototype.explainDataFrameAnalytics = function mlExplainDataFrameAnalyticsApi (params, options, callback) {
|
|
453
490
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
454
491
|
|
|
455
|
-
|
|
492
|
+
let { method, body, id, ...querystring } = params
|
|
456
493
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
457
494
|
|
|
458
|
-
|
|
495
|
+
let path = ''
|
|
459
496
|
if ((id) != null) {
|
|
460
497
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
461
498
|
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id) + '/' + '_explain'
|
|
@@ -479,15 +516,15 @@ MlApi.prototype.findFileStructure = function mlFindFileStructureApi (params, opt
|
|
|
479
516
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
480
517
|
|
|
481
518
|
// check required parameters
|
|
482
|
-
if (params
|
|
519
|
+
if (params.body == null) {
|
|
483
520
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
484
521
|
return handleError(err, callback)
|
|
485
522
|
}
|
|
486
523
|
|
|
487
|
-
|
|
524
|
+
let { method, body, ...querystring } = params
|
|
488
525
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
489
526
|
|
|
490
|
-
|
|
527
|
+
let path = ''
|
|
491
528
|
if (method == null) method = 'POST'
|
|
492
529
|
path = '/' + '_ml' + '/' + 'find_file_structure'
|
|
493
530
|
|
|
@@ -506,15 +543,15 @@ MlApi.prototype.flushJob = function mlFlushJobApi (params, options, callback) {
|
|
|
506
543
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
507
544
|
|
|
508
545
|
// check required parameters
|
|
509
|
-
if (params
|
|
546
|
+
if (params.job_id == null && params.jobId == null) {
|
|
510
547
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
511
548
|
return handleError(err, callback)
|
|
512
549
|
}
|
|
513
550
|
|
|
514
|
-
|
|
551
|
+
let { method, body, jobId, job_id, ...querystring } = params
|
|
515
552
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
516
553
|
|
|
517
|
-
|
|
554
|
+
let path = ''
|
|
518
555
|
if (method == null) method = 'POST'
|
|
519
556
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_flush'
|
|
520
557
|
|
|
@@ -533,15 +570,15 @@ MlApi.prototype.forecast = function mlForecastApi (params, options, callback) {
|
|
|
533
570
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
534
571
|
|
|
535
572
|
// check required parameters
|
|
536
|
-
if (params
|
|
573
|
+
if (params.job_id == null && params.jobId == null) {
|
|
537
574
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
538
575
|
return handleError(err, callback)
|
|
539
576
|
}
|
|
540
577
|
|
|
541
|
-
|
|
578
|
+
let { method, body, jobId, job_id, ...querystring } = params
|
|
542
579
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
543
580
|
|
|
544
|
-
|
|
581
|
+
let path = ''
|
|
545
582
|
if (method == null) method = 'POST'
|
|
546
583
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_forecast'
|
|
547
584
|
|
|
@@ -560,21 +597,21 @@ MlApi.prototype.getBuckets = function mlGetBucketsApi (params, options, callback
|
|
|
560
597
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
561
598
|
|
|
562
599
|
// check required parameters
|
|
563
|
-
if (params
|
|
600
|
+
if (params.job_id == null && params.jobId == null) {
|
|
564
601
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
565
602
|
return handleError(err, callback)
|
|
566
603
|
}
|
|
567
604
|
|
|
568
605
|
// check required url components
|
|
569
|
-
if (params
|
|
606
|
+
if (params.timestamp != null && ((params.job_id == null && params.jobId == null))) {
|
|
570
607
|
const err = new this[kConfigurationError]('Missing required parameter of the url: job_id')
|
|
571
608
|
return handleError(err, callback)
|
|
572
609
|
}
|
|
573
610
|
|
|
574
|
-
|
|
611
|
+
let { method, body, jobId, job_id, timestamp, ...querystring } = params
|
|
575
612
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
576
613
|
|
|
577
|
-
|
|
614
|
+
let path = ''
|
|
578
615
|
if ((job_id || jobId) != null && (timestamp) != null) {
|
|
579
616
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
580
617
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'results' + '/' + 'buckets' + '/' + encodeURIComponent(timestamp)
|
|
@@ -598,15 +635,15 @@ MlApi.prototype.getCalendarEvents = function mlGetCalendarEventsApi (params, opt
|
|
|
598
635
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
599
636
|
|
|
600
637
|
// check required parameters
|
|
601
|
-
if (params
|
|
638
|
+
if (params.calendar_id == null && params.calendarId == null) {
|
|
602
639
|
const err = new this[kConfigurationError]('Missing required parameter: calendar_id or calendarId')
|
|
603
640
|
return handleError(err, callback)
|
|
604
641
|
}
|
|
605
642
|
|
|
606
|
-
|
|
643
|
+
let { method, body, calendarId, calendar_id, ...querystring } = params
|
|
607
644
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
608
645
|
|
|
609
|
-
|
|
646
|
+
let path = ''
|
|
610
647
|
if (method == null) method = 'GET'
|
|
611
648
|
path = '/' + '_ml' + '/' + 'calendars' + '/' + encodeURIComponent(calendar_id || calendarId) + '/' + 'events'
|
|
612
649
|
|
|
@@ -624,10 +661,10 @@ MlApi.prototype.getCalendarEvents = function mlGetCalendarEventsApi (params, opt
|
|
|
624
661
|
MlApi.prototype.getCalendars = function mlGetCalendarsApi (params, options, callback) {
|
|
625
662
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
626
663
|
|
|
627
|
-
|
|
664
|
+
let { method, body, calendarId, calendar_id, ...querystring } = params
|
|
628
665
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
629
666
|
|
|
630
|
-
|
|
667
|
+
let path = ''
|
|
631
668
|
if ((calendar_id || calendarId) != null) {
|
|
632
669
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
633
670
|
path = '/' + '_ml' + '/' + 'calendars' + '/' + encodeURIComponent(calendar_id || calendarId)
|
|
@@ -651,21 +688,21 @@ MlApi.prototype.getCategories = function mlGetCategoriesApi (params, options, ca
|
|
|
651
688
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
652
689
|
|
|
653
690
|
// check required parameters
|
|
654
|
-
if (params
|
|
691
|
+
if (params.job_id == null && params.jobId == null) {
|
|
655
692
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
656
693
|
return handleError(err, callback)
|
|
657
694
|
}
|
|
658
695
|
|
|
659
696
|
// check required url components
|
|
660
|
-
if ((params
|
|
697
|
+
if ((params.category_id != null || params.categoryId != null) && ((params.job_id == null && params.jobId == null))) {
|
|
661
698
|
const err = new this[kConfigurationError]('Missing required parameter of the url: job_id')
|
|
662
699
|
return handleError(err, callback)
|
|
663
700
|
}
|
|
664
701
|
|
|
665
|
-
|
|
702
|
+
let { method, body, jobId, job_id, categoryId, category_id, ...querystring } = params
|
|
666
703
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
667
704
|
|
|
668
|
-
|
|
705
|
+
let path = ''
|
|
669
706
|
if ((job_id || jobId) != null && (category_id || categoryId) != null) {
|
|
670
707
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
671
708
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'results' + '/' + 'categories' + '/' + encodeURIComponent(category_id || categoryId)
|
|
@@ -688,10 +725,10 @@ MlApi.prototype.getCategories = function mlGetCategoriesApi (params, options, ca
|
|
|
688
725
|
MlApi.prototype.getDataFrameAnalytics = function mlGetDataFrameAnalyticsApi (params, options, callback) {
|
|
689
726
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
690
727
|
|
|
691
|
-
|
|
728
|
+
let { method, body, id, ...querystring } = params
|
|
692
729
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
693
730
|
|
|
694
|
-
|
|
731
|
+
let path = ''
|
|
695
732
|
if ((id) != null) {
|
|
696
733
|
if (method == null) method = 'GET'
|
|
697
734
|
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id)
|
|
@@ -714,10 +751,10 @@ MlApi.prototype.getDataFrameAnalytics = function mlGetDataFrameAnalyticsApi (par
|
|
|
714
751
|
MlApi.prototype.getDataFrameAnalyticsStats = function mlGetDataFrameAnalyticsStatsApi (params, options, callback) {
|
|
715
752
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
716
753
|
|
|
717
|
-
|
|
754
|
+
let { method, body, id, ...querystring } = params
|
|
718
755
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
719
756
|
|
|
720
|
-
|
|
757
|
+
let path = ''
|
|
721
758
|
if ((id) != null) {
|
|
722
759
|
if (method == null) method = 'GET'
|
|
723
760
|
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id) + '/' + '_stats'
|
|
@@ -740,10 +777,10 @@ MlApi.prototype.getDataFrameAnalyticsStats = function mlGetDataFrameAnalyticsSta
|
|
|
740
777
|
MlApi.prototype.getDatafeedStats = function mlGetDatafeedStatsApi (params, options, callback) {
|
|
741
778
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
742
779
|
|
|
743
|
-
|
|
780
|
+
let { method, body, datafeedId, datafeed_id, ...querystring } = params
|
|
744
781
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
745
782
|
|
|
746
|
-
|
|
783
|
+
let path = ''
|
|
747
784
|
if ((datafeed_id || datafeedId) != null) {
|
|
748
785
|
if (method == null) method = 'GET'
|
|
749
786
|
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId) + '/' + '_stats'
|
|
@@ -766,10 +803,10 @@ MlApi.prototype.getDatafeedStats = function mlGetDatafeedStatsApi (params, optio
|
|
|
766
803
|
MlApi.prototype.getDatafeeds = function mlGetDatafeedsApi (params, options, callback) {
|
|
767
804
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
768
805
|
|
|
769
|
-
|
|
806
|
+
let { method, body, datafeedId, datafeed_id, ...querystring } = params
|
|
770
807
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
771
808
|
|
|
772
|
-
|
|
809
|
+
let path = ''
|
|
773
810
|
if ((datafeed_id || datafeedId) != null) {
|
|
774
811
|
if (method == null) method = 'GET'
|
|
775
812
|
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId)
|
|
@@ -792,10 +829,10 @@ MlApi.prototype.getDatafeeds = function mlGetDatafeedsApi (params, options, call
|
|
|
792
829
|
MlApi.prototype.getFilters = function mlGetFiltersApi (params, options, callback) {
|
|
793
830
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
794
831
|
|
|
795
|
-
|
|
832
|
+
let { method, body, filterId, filter_id, ...querystring } = params
|
|
796
833
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
797
834
|
|
|
798
|
-
|
|
835
|
+
let path = ''
|
|
799
836
|
if ((filter_id || filterId) != null) {
|
|
800
837
|
if (method == null) method = 'GET'
|
|
801
838
|
path = '/' + '_ml' + '/' + 'filters' + '/' + encodeURIComponent(filter_id || filterId)
|
|
@@ -819,15 +856,15 @@ MlApi.prototype.getInfluencers = function mlGetInfluencersApi (params, options,
|
|
|
819
856
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
820
857
|
|
|
821
858
|
// check required parameters
|
|
822
|
-
if (params
|
|
859
|
+
if (params.job_id == null && params.jobId == null) {
|
|
823
860
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
824
861
|
return handleError(err, callback)
|
|
825
862
|
}
|
|
826
863
|
|
|
827
|
-
|
|
864
|
+
let { method, body, jobId, job_id, ...querystring } = params
|
|
828
865
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
829
866
|
|
|
830
|
-
|
|
867
|
+
let path = ''
|
|
831
868
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
832
869
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'results' + '/' + 'influencers'
|
|
833
870
|
|
|
@@ -845,10 +882,10 @@ MlApi.prototype.getInfluencers = function mlGetInfluencersApi (params, options,
|
|
|
845
882
|
MlApi.prototype.getJobStats = function mlGetJobStatsApi (params, options, callback) {
|
|
846
883
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
847
884
|
|
|
848
|
-
|
|
885
|
+
let { method, body, jobId, job_id, ...querystring } = params
|
|
849
886
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
850
887
|
|
|
851
|
-
|
|
888
|
+
let path = ''
|
|
852
889
|
if ((job_id || jobId) != null) {
|
|
853
890
|
if (method == null) method = 'GET'
|
|
854
891
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_stats'
|
|
@@ -871,10 +908,10 @@ MlApi.prototype.getJobStats = function mlGetJobStatsApi (params, options, callba
|
|
|
871
908
|
MlApi.prototype.getJobs = function mlGetJobsApi (params, options, callback) {
|
|
872
909
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
873
910
|
|
|
874
|
-
|
|
911
|
+
let { method, body, jobId, job_id, ...querystring } = params
|
|
875
912
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
876
913
|
|
|
877
|
-
|
|
914
|
+
let path = ''
|
|
878
915
|
if ((job_id || jobId) != null) {
|
|
879
916
|
if (method == null) method = 'GET'
|
|
880
917
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId)
|
|
@@ -898,21 +935,21 @@ MlApi.prototype.getModelSnapshots = function mlGetModelSnapshotsApi (params, opt
|
|
|
898
935
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
899
936
|
|
|
900
937
|
// check required parameters
|
|
901
|
-
if (params
|
|
938
|
+
if (params.job_id == null && params.jobId == null) {
|
|
902
939
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
903
940
|
return handleError(err, callback)
|
|
904
941
|
}
|
|
905
942
|
|
|
906
943
|
// check required url components
|
|
907
|
-
if ((params
|
|
944
|
+
if ((params.snapshot_id != null || params.snapshotId != null) && ((params.job_id == null && params.jobId == null))) {
|
|
908
945
|
const err = new this[kConfigurationError]('Missing required parameter of the url: job_id')
|
|
909
946
|
return handleError(err, callback)
|
|
910
947
|
}
|
|
911
948
|
|
|
912
|
-
|
|
949
|
+
let { method, body, jobId, job_id, snapshotId, snapshot_id, ...querystring } = params
|
|
913
950
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
914
951
|
|
|
915
|
-
|
|
952
|
+
let path = ''
|
|
916
953
|
if ((job_id || jobId) != null && (snapshot_id || snapshotId) != null) {
|
|
917
954
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
918
955
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'model_snapshots' + '/' + encodeURIComponent(snapshot_id || snapshotId)
|
|
@@ -936,15 +973,15 @@ MlApi.prototype.getOverallBuckets = function mlGetOverallBucketsApi (params, opt
|
|
|
936
973
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
937
974
|
|
|
938
975
|
// check required parameters
|
|
939
|
-
if (params
|
|
976
|
+
if (params.job_id == null && params.jobId == null) {
|
|
940
977
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
941
978
|
return handleError(err, callback)
|
|
942
979
|
}
|
|
943
980
|
|
|
944
|
-
|
|
981
|
+
let { method, body, jobId, job_id, ...querystring } = params
|
|
945
982
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
946
983
|
|
|
947
|
-
|
|
984
|
+
let path = ''
|
|
948
985
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
949
986
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'results' + '/' + 'overall_buckets'
|
|
950
987
|
|
|
@@ -963,15 +1000,15 @@ MlApi.prototype.getRecords = function mlGetRecordsApi (params, options, callback
|
|
|
963
1000
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
964
1001
|
|
|
965
1002
|
// check required parameters
|
|
966
|
-
if (params
|
|
1003
|
+
if (params.job_id == null && params.jobId == null) {
|
|
967
1004
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
968
1005
|
return handleError(err, callback)
|
|
969
1006
|
}
|
|
970
1007
|
|
|
971
|
-
|
|
1008
|
+
let { method, body, jobId, job_id, ...querystring } = params
|
|
972
1009
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
973
1010
|
|
|
974
|
-
|
|
1011
|
+
let path = ''
|
|
975
1012
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
976
1013
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'results' + '/' + 'records'
|
|
977
1014
|
|
|
@@ -989,10 +1026,10 @@ MlApi.prototype.getRecords = function mlGetRecordsApi (params, options, callback
|
|
|
989
1026
|
MlApi.prototype.getTrainedModels = function mlGetTrainedModelsApi (params, options, callback) {
|
|
990
1027
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
991
1028
|
|
|
992
|
-
|
|
1029
|
+
let { method, body, modelId, model_id, ...querystring } = params
|
|
993
1030
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
994
1031
|
|
|
995
|
-
|
|
1032
|
+
let path = ''
|
|
996
1033
|
if ((model_id || modelId) != null) {
|
|
997
1034
|
if (method == null) method = 'GET'
|
|
998
1035
|
path = '/' + '_ml' + '/' + 'trained_models' + '/' + encodeURIComponent(model_id || modelId)
|
|
@@ -1015,10 +1052,10 @@ MlApi.prototype.getTrainedModels = function mlGetTrainedModelsApi (params, optio
|
|
|
1015
1052
|
MlApi.prototype.getTrainedModelsStats = function mlGetTrainedModelsStatsApi (params, options, callback) {
|
|
1016
1053
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1017
1054
|
|
|
1018
|
-
|
|
1055
|
+
let { method, body, modelId, model_id, ...querystring } = params
|
|
1019
1056
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1020
1057
|
|
|
1021
|
-
|
|
1058
|
+
let path = ''
|
|
1022
1059
|
if ((model_id || modelId) != null) {
|
|
1023
1060
|
if (method == null) method = 'GET'
|
|
1024
1061
|
path = '/' + '_ml' + '/' + 'trained_models' + '/' + encodeURIComponent(model_id || modelId) + '/' + '_stats'
|
|
@@ -1041,10 +1078,10 @@ MlApi.prototype.getTrainedModelsStats = function mlGetTrainedModelsStatsApi (par
|
|
|
1041
1078
|
MlApi.prototype.info = function mlInfoApi (params, options, callback) {
|
|
1042
1079
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1043
1080
|
|
|
1044
|
-
|
|
1081
|
+
let { method, body, ...querystring } = params
|
|
1045
1082
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1046
1083
|
|
|
1047
|
-
|
|
1084
|
+
let path = ''
|
|
1048
1085
|
if (method == null) method = 'GET'
|
|
1049
1086
|
path = '/' + '_ml' + '/' + 'info'
|
|
1050
1087
|
|
|
@@ -1063,15 +1100,15 @@ MlApi.prototype.openJob = function mlOpenJobApi (params, options, callback) {
|
|
|
1063
1100
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1064
1101
|
|
|
1065
1102
|
// check required parameters
|
|
1066
|
-
if (params
|
|
1103
|
+
if (params.job_id == null && params.jobId == null) {
|
|
1067
1104
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
1068
1105
|
return handleError(err, callback)
|
|
1069
1106
|
}
|
|
1070
1107
|
|
|
1071
|
-
|
|
1108
|
+
let { method, body, jobId, job_id, ...querystring } = params
|
|
1072
1109
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1073
1110
|
|
|
1074
|
-
|
|
1111
|
+
let path = ''
|
|
1075
1112
|
if (method == null) method = 'POST'
|
|
1076
1113
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_open'
|
|
1077
1114
|
|
|
@@ -1090,19 +1127,19 @@ MlApi.prototype.postCalendarEvents = function mlPostCalendarEventsApi (params, o
|
|
|
1090
1127
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1091
1128
|
|
|
1092
1129
|
// check required parameters
|
|
1093
|
-
if (params
|
|
1130
|
+
if (params.calendar_id == null && params.calendarId == null) {
|
|
1094
1131
|
const err = new this[kConfigurationError]('Missing required parameter: calendar_id or calendarId')
|
|
1095
1132
|
return handleError(err, callback)
|
|
1096
1133
|
}
|
|
1097
|
-
if (params
|
|
1134
|
+
if (params.body == null) {
|
|
1098
1135
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1099
1136
|
return handleError(err, callback)
|
|
1100
1137
|
}
|
|
1101
1138
|
|
|
1102
|
-
|
|
1139
|
+
let { method, body, calendarId, calendar_id, ...querystring } = params
|
|
1103
1140
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1104
1141
|
|
|
1105
|
-
|
|
1142
|
+
let path = ''
|
|
1106
1143
|
if (method == null) method = 'POST'
|
|
1107
1144
|
path = '/' + '_ml' + '/' + 'calendars' + '/' + encodeURIComponent(calendar_id || calendarId) + '/' + 'events'
|
|
1108
1145
|
|
|
@@ -1121,19 +1158,19 @@ MlApi.prototype.postData = function mlPostDataApi (params, options, callback) {
|
|
|
1121
1158
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1122
1159
|
|
|
1123
1160
|
// check required parameters
|
|
1124
|
-
if (params
|
|
1161
|
+
if (params.job_id == null && params.jobId == null) {
|
|
1125
1162
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
1126
1163
|
return handleError(err, callback)
|
|
1127
1164
|
}
|
|
1128
|
-
if (params
|
|
1165
|
+
if (params.body == null) {
|
|
1129
1166
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1130
1167
|
return handleError(err, callback)
|
|
1131
1168
|
}
|
|
1132
1169
|
|
|
1133
|
-
|
|
1170
|
+
let { method, body, jobId, job_id, ...querystring } = params
|
|
1134
1171
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1135
1172
|
|
|
1136
|
-
|
|
1173
|
+
let path = ''
|
|
1137
1174
|
if (method == null) method = 'POST'
|
|
1138
1175
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_data'
|
|
1139
1176
|
|
|
@@ -1141,34 +1178,59 @@ MlApi.prototype.postData = function mlPostDataApi (params, options, callback) {
|
|
|
1141
1178
|
const request = {
|
|
1142
1179
|
method,
|
|
1143
1180
|
path,
|
|
1144
|
-
|
|
1181
|
+
bulkBody: body,
|
|
1145
1182
|
querystring
|
|
1146
1183
|
}
|
|
1147
1184
|
|
|
1148
1185
|
return this.transport.request(request, options, callback)
|
|
1149
1186
|
}
|
|
1150
1187
|
|
|
1151
|
-
MlApi.prototype.
|
|
1188
|
+
MlApi.prototype.previewDataFrameAnalytics = function mlPreviewDataFrameAnalyticsApi (params, options, callback) {
|
|
1152
1189
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1153
1190
|
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1191
|
+
let { method, body, id, ...querystring } = params
|
|
1192
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1193
|
+
|
|
1194
|
+
let path = ''
|
|
1195
|
+
if ((id) != null) {
|
|
1196
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
1197
|
+
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id) + '/' + '_preview'
|
|
1198
|
+
} else {
|
|
1199
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
1200
|
+
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + '_preview'
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
// build request object
|
|
1204
|
+
const request = {
|
|
1205
|
+
method,
|
|
1206
|
+
path,
|
|
1207
|
+
body: body || '',
|
|
1208
|
+
querystring
|
|
1158
1209
|
}
|
|
1159
1210
|
|
|
1160
|
-
|
|
1211
|
+
return this.transport.request(request, options, callback)
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
MlApi.prototype.previewDatafeed = function mlPreviewDatafeedApi (params, options, callback) {
|
|
1215
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1216
|
+
|
|
1217
|
+
let { method, body, datafeedId, datafeed_id, ...querystring } = params
|
|
1161
1218
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1162
1219
|
|
|
1163
|
-
|
|
1164
|
-
if (
|
|
1165
|
-
|
|
1220
|
+
let path = ''
|
|
1221
|
+
if ((datafeed_id || datafeedId) != null) {
|
|
1222
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
1223
|
+
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId) + '/' + '_preview'
|
|
1224
|
+
} else {
|
|
1225
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
1226
|
+
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + '_preview'
|
|
1227
|
+
}
|
|
1166
1228
|
|
|
1167
1229
|
// build request object
|
|
1168
1230
|
const request = {
|
|
1169
1231
|
method,
|
|
1170
1232
|
path,
|
|
1171
|
-
body:
|
|
1233
|
+
body: body || '',
|
|
1172
1234
|
querystring
|
|
1173
1235
|
}
|
|
1174
1236
|
|
|
@@ -1179,15 +1241,15 @@ MlApi.prototype.putCalendar = function mlPutCalendarApi (params, options, callba
|
|
|
1179
1241
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1180
1242
|
|
|
1181
1243
|
// check required parameters
|
|
1182
|
-
if (params
|
|
1244
|
+
if (params.calendar_id == null && params.calendarId == null) {
|
|
1183
1245
|
const err = new this[kConfigurationError]('Missing required parameter: calendar_id or calendarId')
|
|
1184
1246
|
return handleError(err, callback)
|
|
1185
1247
|
}
|
|
1186
1248
|
|
|
1187
|
-
|
|
1249
|
+
let { method, body, calendarId, calendar_id, ...querystring } = params
|
|
1188
1250
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1189
1251
|
|
|
1190
|
-
|
|
1252
|
+
let path = ''
|
|
1191
1253
|
if (method == null) method = 'PUT'
|
|
1192
1254
|
path = '/' + '_ml' + '/' + 'calendars' + '/' + encodeURIComponent(calendar_id || calendarId)
|
|
1193
1255
|
|
|
@@ -1206,25 +1268,25 @@ MlApi.prototype.putCalendarJob = function mlPutCalendarJobApi (params, options,
|
|
|
1206
1268
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1207
1269
|
|
|
1208
1270
|
// check required parameters
|
|
1209
|
-
if (params
|
|
1271
|
+
if (params.calendar_id == null && params.calendarId == null) {
|
|
1210
1272
|
const err = new this[kConfigurationError]('Missing required parameter: calendar_id or calendarId')
|
|
1211
1273
|
return handleError(err, callback)
|
|
1212
1274
|
}
|
|
1213
|
-
if (params
|
|
1275
|
+
if (params.job_id == null && params.jobId == null) {
|
|
1214
1276
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
1215
1277
|
return handleError(err, callback)
|
|
1216
1278
|
}
|
|
1217
1279
|
|
|
1218
1280
|
// check required url components
|
|
1219
|
-
if ((params
|
|
1281
|
+
if ((params.job_id != null || params.jobId != null) && ((params.calendar_id == null && params.calendarId == null))) {
|
|
1220
1282
|
const err = new this[kConfigurationError]('Missing required parameter of the url: calendar_id')
|
|
1221
1283
|
return handleError(err, callback)
|
|
1222
1284
|
}
|
|
1223
1285
|
|
|
1224
|
-
|
|
1286
|
+
let { method, body, calendarId, calendar_id, jobId, job_id, ...querystring } = params
|
|
1225
1287
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1226
1288
|
|
|
1227
|
-
|
|
1289
|
+
let path = ''
|
|
1228
1290
|
if (method == null) method = 'PUT'
|
|
1229
1291
|
path = '/' + '_ml' + '/' + 'calendars' + '/' + encodeURIComponent(calendar_id || calendarId) + '/' + 'jobs' + '/' + encodeURIComponent(job_id || jobId)
|
|
1230
1292
|
|
|
@@ -1243,19 +1305,19 @@ MlApi.prototype.putDataFrameAnalytics = function mlPutDataFrameAnalyticsApi (par
|
|
|
1243
1305
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1244
1306
|
|
|
1245
1307
|
// check required parameters
|
|
1246
|
-
if (params
|
|
1308
|
+
if (params.id == null) {
|
|
1247
1309
|
const err = new this[kConfigurationError]('Missing required parameter: id')
|
|
1248
1310
|
return handleError(err, callback)
|
|
1249
1311
|
}
|
|
1250
|
-
if (params
|
|
1312
|
+
if (params.body == null) {
|
|
1251
1313
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1252
1314
|
return handleError(err, callback)
|
|
1253
1315
|
}
|
|
1254
1316
|
|
|
1255
|
-
|
|
1317
|
+
let { method, body, id, ...querystring } = params
|
|
1256
1318
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1257
1319
|
|
|
1258
|
-
|
|
1320
|
+
let path = ''
|
|
1259
1321
|
if (method == null) method = 'PUT'
|
|
1260
1322
|
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id)
|
|
1261
1323
|
|
|
@@ -1274,19 +1336,19 @@ MlApi.prototype.putDatafeed = function mlPutDatafeedApi (params, options, callba
|
|
|
1274
1336
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1275
1337
|
|
|
1276
1338
|
// check required parameters
|
|
1277
|
-
if (params
|
|
1339
|
+
if (params.datafeed_id == null && params.datafeedId == null) {
|
|
1278
1340
|
const err = new this[kConfigurationError]('Missing required parameter: datafeed_id or datafeedId')
|
|
1279
1341
|
return handleError(err, callback)
|
|
1280
1342
|
}
|
|
1281
|
-
if (params
|
|
1343
|
+
if (params.body == null) {
|
|
1282
1344
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1283
1345
|
return handleError(err, callback)
|
|
1284
1346
|
}
|
|
1285
1347
|
|
|
1286
|
-
|
|
1348
|
+
let { method, body, datafeedId, datafeed_id, ...querystring } = params
|
|
1287
1349
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1288
1350
|
|
|
1289
|
-
|
|
1351
|
+
let path = ''
|
|
1290
1352
|
if (method == null) method = 'PUT'
|
|
1291
1353
|
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId)
|
|
1292
1354
|
|
|
@@ -1305,19 +1367,19 @@ MlApi.prototype.putFilter = function mlPutFilterApi (params, options, callback)
|
|
|
1305
1367
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1306
1368
|
|
|
1307
1369
|
// check required parameters
|
|
1308
|
-
if (params
|
|
1370
|
+
if (params.filter_id == null && params.filterId == null) {
|
|
1309
1371
|
const err = new this[kConfigurationError]('Missing required parameter: filter_id or filterId')
|
|
1310
1372
|
return handleError(err, callback)
|
|
1311
1373
|
}
|
|
1312
|
-
if (params
|
|
1374
|
+
if (params.body == null) {
|
|
1313
1375
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1314
1376
|
return handleError(err, callback)
|
|
1315
1377
|
}
|
|
1316
1378
|
|
|
1317
|
-
|
|
1379
|
+
let { method, body, filterId, filter_id, ...querystring } = params
|
|
1318
1380
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1319
1381
|
|
|
1320
|
-
|
|
1382
|
+
let path = ''
|
|
1321
1383
|
if (method == null) method = 'PUT'
|
|
1322
1384
|
path = '/' + '_ml' + '/' + 'filters' + '/' + encodeURIComponent(filter_id || filterId)
|
|
1323
1385
|
|
|
@@ -1336,19 +1398,19 @@ MlApi.prototype.putJob = function mlPutJobApi (params, options, callback) {
|
|
|
1336
1398
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1337
1399
|
|
|
1338
1400
|
// check required parameters
|
|
1339
|
-
if (params
|
|
1401
|
+
if (params.job_id == null && params.jobId == null) {
|
|
1340
1402
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
1341
1403
|
return handleError(err, callback)
|
|
1342
1404
|
}
|
|
1343
|
-
if (params
|
|
1405
|
+
if (params.body == null) {
|
|
1344
1406
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1345
1407
|
return handleError(err, callback)
|
|
1346
1408
|
}
|
|
1347
1409
|
|
|
1348
|
-
|
|
1410
|
+
let { method, body, jobId, job_id, ...querystring } = params
|
|
1349
1411
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1350
1412
|
|
|
1351
|
-
|
|
1413
|
+
let path = ''
|
|
1352
1414
|
if (method == null) method = 'PUT'
|
|
1353
1415
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId)
|
|
1354
1416
|
|
|
@@ -1367,19 +1429,19 @@ MlApi.prototype.putTrainedModel = function mlPutTrainedModelApi (params, options
|
|
|
1367
1429
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1368
1430
|
|
|
1369
1431
|
// check required parameters
|
|
1370
|
-
if (params
|
|
1432
|
+
if (params.model_id == null && params.modelId == null) {
|
|
1371
1433
|
const err = new this[kConfigurationError]('Missing required parameter: model_id or modelId')
|
|
1372
1434
|
return handleError(err, callback)
|
|
1373
1435
|
}
|
|
1374
|
-
if (params
|
|
1436
|
+
if (params.body == null) {
|
|
1375
1437
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1376
1438
|
return handleError(err, callback)
|
|
1377
1439
|
}
|
|
1378
1440
|
|
|
1379
|
-
|
|
1441
|
+
let { method, body, modelId, model_id, ...querystring } = params
|
|
1380
1442
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1381
1443
|
|
|
1382
|
-
|
|
1444
|
+
let path = ''
|
|
1383
1445
|
if (method == null) method = 'PUT'
|
|
1384
1446
|
path = '/' + '_ml' + '/' + 'trained_models' + '/' + encodeURIComponent(model_id || modelId)
|
|
1385
1447
|
|
|
@@ -1394,29 +1456,93 @@ MlApi.prototype.putTrainedModel = function mlPutTrainedModelApi (params, options
|
|
|
1394
1456
|
return this.transport.request(request, options, callback)
|
|
1395
1457
|
}
|
|
1396
1458
|
|
|
1459
|
+
MlApi.prototype.putTrainedModelAlias = function mlPutTrainedModelAliasApi (params, options, callback) {
|
|
1460
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1461
|
+
|
|
1462
|
+
// check required parameters
|
|
1463
|
+
if (params.model_alias == null && params.modelAlias == null) {
|
|
1464
|
+
const err = new this[kConfigurationError]('Missing required parameter: model_alias or modelAlias')
|
|
1465
|
+
return handleError(err, callback)
|
|
1466
|
+
}
|
|
1467
|
+
if (params.model_id == null && params.modelId == null) {
|
|
1468
|
+
const err = new this[kConfigurationError]('Missing required parameter: model_id or modelId')
|
|
1469
|
+
return handleError(err, callback)
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
// check required url components
|
|
1473
|
+
if ((params.model_alias != null || params.modelAlias != null) && ((params.model_id == null && params.modelId == null))) {
|
|
1474
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: model_id')
|
|
1475
|
+
return handleError(err, callback)
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
let { method, body, modelAlias, model_alias, modelId, model_id, ...querystring } = params
|
|
1479
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1480
|
+
|
|
1481
|
+
let path = ''
|
|
1482
|
+
if (method == null) method = 'PUT'
|
|
1483
|
+
path = '/' + '_ml' + '/' + 'trained_models' + '/' + encodeURIComponent(model_id || modelId) + '/' + 'model_aliases' + '/' + encodeURIComponent(model_alias || modelAlias)
|
|
1484
|
+
|
|
1485
|
+
// build request object
|
|
1486
|
+
const request = {
|
|
1487
|
+
method,
|
|
1488
|
+
path,
|
|
1489
|
+
body: body || '',
|
|
1490
|
+
querystring
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
return this.transport.request(request, options, callback)
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
MlApi.prototype.resetJob = function mlResetJobApi (params, options, callback) {
|
|
1497
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1498
|
+
|
|
1499
|
+
// check required parameters
|
|
1500
|
+
if (params.job_id == null && params.jobId == null) {
|
|
1501
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
1502
|
+
return handleError(err, callback)
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
let { method, body, jobId, job_id, ...querystring } = params
|
|
1506
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1507
|
+
|
|
1508
|
+
let path = ''
|
|
1509
|
+
if (method == null) method = 'POST'
|
|
1510
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_reset'
|
|
1511
|
+
|
|
1512
|
+
// build request object
|
|
1513
|
+
const request = {
|
|
1514
|
+
method,
|
|
1515
|
+
path,
|
|
1516
|
+
body: body || '',
|
|
1517
|
+
querystring
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
return this.transport.request(request, options, callback)
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1397
1523
|
MlApi.prototype.revertModelSnapshot = function mlRevertModelSnapshotApi (params, options, callback) {
|
|
1398
1524
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1399
1525
|
|
|
1400
1526
|
// check required parameters
|
|
1401
|
-
if (params
|
|
1527
|
+
if (params.job_id == null && params.jobId == null) {
|
|
1402
1528
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
1403
1529
|
return handleError(err, callback)
|
|
1404
1530
|
}
|
|
1405
|
-
if (params
|
|
1531
|
+
if (params.snapshot_id == null && params.snapshotId == null) {
|
|
1406
1532
|
const err = new this[kConfigurationError]('Missing required parameter: snapshot_id or snapshotId')
|
|
1407
1533
|
return handleError(err, callback)
|
|
1408
1534
|
}
|
|
1409
1535
|
|
|
1410
1536
|
// check required url components
|
|
1411
|
-
if ((params
|
|
1537
|
+
if ((params.snapshot_id != null || params.snapshotId != null) && ((params.job_id == null && params.jobId == null))) {
|
|
1412
1538
|
const err = new this[kConfigurationError]('Missing required parameter of the url: job_id')
|
|
1413
1539
|
return handleError(err, callback)
|
|
1414
1540
|
}
|
|
1415
1541
|
|
|
1416
|
-
|
|
1542
|
+
let { method, body, jobId, job_id, snapshotId, snapshot_id, ...querystring } = params
|
|
1417
1543
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1418
1544
|
|
|
1419
|
-
|
|
1545
|
+
let path = ''
|
|
1420
1546
|
if (method == null) method = 'POST'
|
|
1421
1547
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'model_snapshots' + '/' + encodeURIComponent(snapshot_id || snapshotId) + '/' + '_revert'
|
|
1422
1548
|
|
|
@@ -1434,10 +1560,10 @@ MlApi.prototype.revertModelSnapshot = function mlRevertModelSnapshotApi (params,
|
|
|
1434
1560
|
MlApi.prototype.setUpgradeMode = function mlSetUpgradeModeApi (params, options, callback) {
|
|
1435
1561
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1436
1562
|
|
|
1437
|
-
|
|
1563
|
+
let { method, body, ...querystring } = params
|
|
1438
1564
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1439
1565
|
|
|
1440
|
-
|
|
1566
|
+
let path = ''
|
|
1441
1567
|
if (method == null) method = 'POST'
|
|
1442
1568
|
path = '/' + '_ml' + '/' + 'set_upgrade_mode'
|
|
1443
1569
|
|
|
@@ -1456,15 +1582,15 @@ MlApi.prototype.startDataFrameAnalytics = function mlStartDataFrameAnalyticsApi
|
|
|
1456
1582
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1457
1583
|
|
|
1458
1584
|
// check required parameters
|
|
1459
|
-
if (params
|
|
1585
|
+
if (params.id == null) {
|
|
1460
1586
|
const err = new this[kConfigurationError]('Missing required parameter: id')
|
|
1461
1587
|
return handleError(err, callback)
|
|
1462
1588
|
}
|
|
1463
1589
|
|
|
1464
|
-
|
|
1590
|
+
let { method, body, id, ...querystring } = params
|
|
1465
1591
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1466
1592
|
|
|
1467
|
-
|
|
1593
|
+
let path = ''
|
|
1468
1594
|
if (method == null) method = 'POST'
|
|
1469
1595
|
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id) + '/' + '_start'
|
|
1470
1596
|
|
|
@@ -1483,15 +1609,15 @@ MlApi.prototype.startDatafeed = function mlStartDatafeedApi (params, options, ca
|
|
|
1483
1609
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1484
1610
|
|
|
1485
1611
|
// check required parameters
|
|
1486
|
-
if (params
|
|
1612
|
+
if (params.datafeed_id == null && params.datafeedId == null) {
|
|
1487
1613
|
const err = new this[kConfigurationError]('Missing required parameter: datafeed_id or datafeedId')
|
|
1488
1614
|
return handleError(err, callback)
|
|
1489
1615
|
}
|
|
1490
1616
|
|
|
1491
|
-
|
|
1617
|
+
let { method, body, datafeedId, datafeed_id, ...querystring } = params
|
|
1492
1618
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1493
1619
|
|
|
1494
|
-
|
|
1620
|
+
let path = ''
|
|
1495
1621
|
if (method == null) method = 'POST'
|
|
1496
1622
|
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId) + '/' + '_start'
|
|
1497
1623
|
|
|
@@ -1510,15 +1636,15 @@ MlApi.prototype.stopDataFrameAnalytics = function mlStopDataFrameAnalyticsApi (p
|
|
|
1510
1636
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1511
1637
|
|
|
1512
1638
|
// check required parameters
|
|
1513
|
-
if (params
|
|
1639
|
+
if (params.id == null) {
|
|
1514
1640
|
const err = new this[kConfigurationError]('Missing required parameter: id')
|
|
1515
1641
|
return handleError(err, callback)
|
|
1516
1642
|
}
|
|
1517
1643
|
|
|
1518
|
-
|
|
1644
|
+
let { method, body, id, ...querystring } = params
|
|
1519
1645
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1520
1646
|
|
|
1521
|
-
|
|
1647
|
+
let path = ''
|
|
1522
1648
|
if (method == null) method = 'POST'
|
|
1523
1649
|
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id) + '/' + '_stop'
|
|
1524
1650
|
|
|
@@ -1537,15 +1663,15 @@ MlApi.prototype.stopDatafeed = function mlStopDatafeedApi (params, options, call
|
|
|
1537
1663
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1538
1664
|
|
|
1539
1665
|
// check required parameters
|
|
1540
|
-
if (params
|
|
1666
|
+
if (params.datafeed_id == null && params.datafeedId == null) {
|
|
1541
1667
|
const err = new this[kConfigurationError]('Missing required parameter: datafeed_id or datafeedId')
|
|
1542
1668
|
return handleError(err, callback)
|
|
1543
1669
|
}
|
|
1544
1670
|
|
|
1545
|
-
|
|
1671
|
+
let { method, body, datafeedId, datafeed_id, ...querystring } = params
|
|
1546
1672
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1547
1673
|
|
|
1548
|
-
|
|
1674
|
+
let path = ''
|
|
1549
1675
|
if (method == null) method = 'POST'
|
|
1550
1676
|
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId) + '/' + '_stop'
|
|
1551
1677
|
|
|
@@ -1564,19 +1690,19 @@ MlApi.prototype.updateDataFrameAnalytics = function mlUpdateDataFrameAnalyticsAp
|
|
|
1564
1690
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1565
1691
|
|
|
1566
1692
|
// check required parameters
|
|
1567
|
-
if (params
|
|
1693
|
+
if (params.id == null) {
|
|
1568
1694
|
const err = new this[kConfigurationError]('Missing required parameter: id')
|
|
1569
1695
|
return handleError(err, callback)
|
|
1570
1696
|
}
|
|
1571
|
-
if (params
|
|
1697
|
+
if (params.body == null) {
|
|
1572
1698
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1573
1699
|
return handleError(err, callback)
|
|
1574
1700
|
}
|
|
1575
1701
|
|
|
1576
|
-
|
|
1702
|
+
let { method, body, id, ...querystring } = params
|
|
1577
1703
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1578
1704
|
|
|
1579
|
-
|
|
1705
|
+
let path = ''
|
|
1580
1706
|
if (method == null) method = 'POST'
|
|
1581
1707
|
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id) + '/' + '_update'
|
|
1582
1708
|
|
|
@@ -1595,19 +1721,19 @@ MlApi.prototype.updateDatafeed = function mlUpdateDatafeedApi (params, options,
|
|
|
1595
1721
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1596
1722
|
|
|
1597
1723
|
// check required parameters
|
|
1598
|
-
if (params
|
|
1724
|
+
if (params.datafeed_id == null && params.datafeedId == null) {
|
|
1599
1725
|
const err = new this[kConfigurationError]('Missing required parameter: datafeed_id or datafeedId')
|
|
1600
1726
|
return handleError(err, callback)
|
|
1601
1727
|
}
|
|
1602
|
-
if (params
|
|
1728
|
+
if (params.body == null) {
|
|
1603
1729
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1604
1730
|
return handleError(err, callback)
|
|
1605
1731
|
}
|
|
1606
1732
|
|
|
1607
|
-
|
|
1733
|
+
let { method, body, datafeedId, datafeed_id, ...querystring } = params
|
|
1608
1734
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1609
1735
|
|
|
1610
|
-
|
|
1736
|
+
let path = ''
|
|
1611
1737
|
if (method == null) method = 'POST'
|
|
1612
1738
|
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId) + '/' + '_update'
|
|
1613
1739
|
|
|
@@ -1626,19 +1752,19 @@ MlApi.prototype.updateFilter = function mlUpdateFilterApi (params, options, call
|
|
|
1626
1752
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1627
1753
|
|
|
1628
1754
|
// check required parameters
|
|
1629
|
-
if (params
|
|
1755
|
+
if (params.filter_id == null && params.filterId == null) {
|
|
1630
1756
|
const err = new this[kConfigurationError]('Missing required parameter: filter_id or filterId')
|
|
1631
1757
|
return handleError(err, callback)
|
|
1632
1758
|
}
|
|
1633
|
-
if (params
|
|
1759
|
+
if (params.body == null) {
|
|
1634
1760
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1635
1761
|
return handleError(err, callback)
|
|
1636
1762
|
}
|
|
1637
1763
|
|
|
1638
|
-
|
|
1764
|
+
let { method, body, filterId, filter_id, ...querystring } = params
|
|
1639
1765
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1640
1766
|
|
|
1641
|
-
|
|
1767
|
+
let path = ''
|
|
1642
1768
|
if (method == null) method = 'POST'
|
|
1643
1769
|
path = '/' + '_ml' + '/' + 'filters' + '/' + encodeURIComponent(filter_id || filterId) + '/' + '_update'
|
|
1644
1770
|
|
|
@@ -1657,19 +1783,19 @@ MlApi.prototype.updateJob = function mlUpdateJobApi (params, options, callback)
|
|
|
1657
1783
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1658
1784
|
|
|
1659
1785
|
// check required parameters
|
|
1660
|
-
if (params
|
|
1786
|
+
if (params.job_id == null && params.jobId == null) {
|
|
1661
1787
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
1662
1788
|
return handleError(err, callback)
|
|
1663
1789
|
}
|
|
1664
|
-
if (params
|
|
1790
|
+
if (params.body == null) {
|
|
1665
1791
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1666
1792
|
return handleError(err, callback)
|
|
1667
1793
|
}
|
|
1668
1794
|
|
|
1669
|
-
|
|
1795
|
+
let { method, body, jobId, job_id, ...querystring } = params
|
|
1670
1796
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1671
1797
|
|
|
1672
|
-
|
|
1798
|
+
let path = ''
|
|
1673
1799
|
if (method == null) method = 'POST'
|
|
1674
1800
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_update'
|
|
1675
1801
|
|
|
@@ -1688,29 +1814,29 @@ MlApi.prototype.updateModelSnapshot = function mlUpdateModelSnapshotApi (params,
|
|
|
1688
1814
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1689
1815
|
|
|
1690
1816
|
// check required parameters
|
|
1691
|
-
if (params
|
|
1817
|
+
if (params.job_id == null && params.jobId == null) {
|
|
1692
1818
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
1693
1819
|
return handleError(err, callback)
|
|
1694
1820
|
}
|
|
1695
|
-
if (params
|
|
1821
|
+
if (params.snapshot_id == null && params.snapshotId == null) {
|
|
1696
1822
|
const err = new this[kConfigurationError]('Missing required parameter: snapshot_id or snapshotId')
|
|
1697
1823
|
return handleError(err, callback)
|
|
1698
1824
|
}
|
|
1699
|
-
if (params
|
|
1825
|
+
if (params.body == null) {
|
|
1700
1826
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1701
1827
|
return handleError(err, callback)
|
|
1702
1828
|
}
|
|
1703
1829
|
|
|
1704
1830
|
// check required url components
|
|
1705
|
-
if ((params
|
|
1831
|
+
if ((params.snapshot_id != null || params.snapshotId != null) && ((params.job_id == null && params.jobId == null))) {
|
|
1706
1832
|
const err = new this[kConfigurationError]('Missing required parameter of the url: job_id')
|
|
1707
1833
|
return handleError(err, callback)
|
|
1708
1834
|
}
|
|
1709
1835
|
|
|
1710
|
-
|
|
1836
|
+
let { method, body, jobId, job_id, snapshotId, snapshot_id, ...querystring } = params
|
|
1711
1837
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1712
1838
|
|
|
1713
|
-
|
|
1839
|
+
let path = ''
|
|
1714
1840
|
if (method == null) method = 'POST'
|
|
1715
1841
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'model_snapshots' + '/' + encodeURIComponent(snapshot_id || snapshotId) + '/' + '_update'
|
|
1716
1842
|
|
|
@@ -1729,25 +1855,25 @@ MlApi.prototype.upgradeJobSnapshot = function mlUpgradeJobSnapshotApi (params, o
|
|
|
1729
1855
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1730
1856
|
|
|
1731
1857
|
// check required parameters
|
|
1732
|
-
if (params
|
|
1858
|
+
if (params.job_id == null && params.jobId == null) {
|
|
1733
1859
|
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
1734
1860
|
return handleError(err, callback)
|
|
1735
1861
|
}
|
|
1736
|
-
if (params
|
|
1862
|
+
if (params.snapshot_id == null && params.snapshotId == null) {
|
|
1737
1863
|
const err = new this[kConfigurationError]('Missing required parameter: snapshot_id or snapshotId')
|
|
1738
1864
|
return handleError(err, callback)
|
|
1739
1865
|
}
|
|
1740
1866
|
|
|
1741
1867
|
// check required url components
|
|
1742
|
-
if ((params
|
|
1868
|
+
if ((params.snapshot_id != null || params.snapshotId != null) && ((params.job_id == null && params.jobId == null))) {
|
|
1743
1869
|
const err = new this[kConfigurationError]('Missing required parameter of the url: job_id')
|
|
1744
1870
|
return handleError(err, callback)
|
|
1745
1871
|
}
|
|
1746
1872
|
|
|
1747
|
-
|
|
1873
|
+
let { method, body, jobId, job_id, snapshotId, snapshot_id, ...querystring } = params
|
|
1748
1874
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1749
1875
|
|
|
1750
|
-
|
|
1876
|
+
let path = ''
|
|
1751
1877
|
if (method == null) method = 'POST'
|
|
1752
1878
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'model_snapshots' + '/' + encodeURIComponent(snapshot_id || snapshotId) + '/' + '_upgrade'
|
|
1753
1879
|
|
|
@@ -1766,15 +1892,15 @@ MlApi.prototype.validate = function mlValidateApi (params, options, callback) {
|
|
|
1766
1892
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1767
1893
|
|
|
1768
1894
|
// check required parameters
|
|
1769
|
-
if (params
|
|
1895
|
+
if (params.body == null) {
|
|
1770
1896
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1771
1897
|
return handleError(err, callback)
|
|
1772
1898
|
}
|
|
1773
1899
|
|
|
1774
|
-
|
|
1900
|
+
let { method, body, ...querystring } = params
|
|
1775
1901
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1776
1902
|
|
|
1777
|
-
|
|
1903
|
+
let path = ''
|
|
1778
1904
|
if (method == null) method = 'POST'
|
|
1779
1905
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + '_validate'
|
|
1780
1906
|
|
|
@@ -1793,15 +1919,15 @@ MlApi.prototype.validateDetector = function mlValidateDetectorApi (params, optio
|
|
|
1793
1919
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1794
1920
|
|
|
1795
1921
|
// check required parameters
|
|
1796
|
-
if (params
|
|
1922
|
+
if (params.body == null) {
|
|
1797
1923
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1798
1924
|
return handleError(err, callback)
|
|
1799
1925
|
}
|
|
1800
1926
|
|
|
1801
|
-
|
|
1927
|
+
let { method, body, ...querystring } = params
|
|
1802
1928
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1803
1929
|
|
|
1804
|
-
|
|
1930
|
+
let path = ''
|
|
1805
1931
|
if (method == null) method = 'POST'
|
|
1806
1932
|
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + '_validate' + '/' + 'detector'
|
|
1807
1933
|
|
|
@@ -1829,6 +1955,7 @@ Object.defineProperties(MlApi.prototype, {
|
|
|
1829
1955
|
delete_job: { get () { return this.deleteJob } },
|
|
1830
1956
|
delete_model_snapshot: { get () { return this.deleteModelSnapshot } },
|
|
1831
1957
|
delete_trained_model: { get () { return this.deleteTrainedModel } },
|
|
1958
|
+
delete_trained_model_alias: { get () { return this.deleteTrainedModelAlias } },
|
|
1832
1959
|
estimate_model_memory: { get () { return this.estimateModelMemory } },
|
|
1833
1960
|
evaluate_data_frame: { get () { return this.evaluateDataFrame } },
|
|
1834
1961
|
explain_data_frame_analytics: { get () { return this.explainDataFrameAnalytics } },
|
|
@@ -1854,6 +1981,7 @@ Object.defineProperties(MlApi.prototype, {
|
|
|
1854
1981
|
open_job: { get () { return this.openJob } },
|
|
1855
1982
|
post_calendar_events: { get () { return this.postCalendarEvents } },
|
|
1856
1983
|
post_data: { get () { return this.postData } },
|
|
1984
|
+
preview_data_frame_analytics: { get () { return this.previewDataFrameAnalytics } },
|
|
1857
1985
|
preview_datafeed: { get () { return this.previewDatafeed } },
|
|
1858
1986
|
put_calendar: { get () { return this.putCalendar } },
|
|
1859
1987
|
put_calendar_job: { get () { return this.putCalendarJob } },
|
|
@@ -1862,6 +1990,8 @@ Object.defineProperties(MlApi.prototype, {
|
|
|
1862
1990
|
put_filter: { get () { return this.putFilter } },
|
|
1863
1991
|
put_job: { get () { return this.putJob } },
|
|
1864
1992
|
put_trained_model: { get () { return this.putTrainedModel } },
|
|
1993
|
+
put_trained_model_alias: { get () { return this.putTrainedModelAlias } },
|
|
1994
|
+
reset_job: { get () { return this.resetJob } },
|
|
1865
1995
|
revert_model_snapshot: { get () { return this.revertModelSnapshot } },
|
|
1866
1996
|
set_upgrade_mode: { get () { return this.setUpgradeMode } },
|
|
1867
1997
|
start_data_frame_analytics: { get () { return this.startDataFrameAnalytics } },
|