@opensearch-project/opensearch 3.0.0-beta.9 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/OpenSearchApi.d.ts +34 -0
- package/api/_core/search.d.ts +1 -1
- package/api/_core/updateByQueryRethrottle.d.ts +1 -0
- package/api/_types/_common.analysis.d.ts +1 -1
- package/api/_types/_common.d.ts +15 -5
- package/api/_types/_global.d.ts +2 -1
- package/api/_types/cluster.stats.d.ts +0 -18
- package/api/_types/indices._common.d.ts +1 -13
- package/api/_types/indices.analyze.d.ts +2 -1
- package/api/_types/indices.shard_stores.d.ts +2 -2
- package/api/_types/indices.stats.d.ts +3 -1
- package/api/_types/ml._common.d.ts +209 -8
- package/api/_types/nodes._common.d.ts +0 -631
- package/api/_types/nodes.info.d.ts +16 -23
- package/api/_types/nodes.reload_secure_settings.d.ts +8 -4
- package/api/_types/nodes.stats.d.ts +634 -4
- package/api/_types/nodes.usage.d.ts +1 -7
- package/api/cat/aliases.js +1 -1
- package/api/cat/allPitSegments.js +6 -6
- package/api/cat/clusterManager.js +1 -1
- package/api/cat/count.js +5 -5
- package/api/cat/fielddata.js +6 -6
- package/api/cat/health.js +5 -5
- package/api/cat/indices.js +14 -14
- package/api/cat/master.js +7 -7
- package/api/cat/nodeattrs.js +7 -7
- package/api/cat/nodes.js +11 -11
- package/api/cat/pendingTasks.js +9 -9
- package/api/cat/pitSegments.js +6 -6
- package/api/cat/plugins.js +8 -8
- package/api/cat/recovery.js +8 -8
- package/api/cat/repositories.js +8 -8
- package/api/cat/segmentReplication.js +18 -17
- package/api/cat/segments.js +8 -8
- package/api/cat/shards.js +10 -10
- package/api/cat/snapshots.js +9 -9
- package/api/cat/tasks.js +8 -8
- package/api/cat/templates.js +8 -8
- package/api/cat/threadPool.js +8 -8
- package/api/cluster/getComponentTemplate.d.ts +1 -0
- package/api/cluster/getComponentTemplate.js +1 -0
- package/api/cluster/reroute.d.ts +1 -2
- package/api/cluster/state.d.ts +1 -1
- package/api/cluster/stats.d.ts +9 -1
- package/api/index.d.ts +16 -0
- package/api/indices/addBlock.d.ts +1 -2
- package/api/indices/clone.d.ts +2 -3
- package/api/indices/close.d.ts +1 -2
- package/api/indices/putTemplate.d.ts +1 -1
- package/api/indices/rollover.d.ts +2 -3
- package/api/indices/shardStores.d.ts +1 -1
- package/api/indices/shrink.d.ts +2 -3
- package/api/indices/split.d.ts +1 -2
- package/api/indices/stats.d.ts +1 -1
- package/api/indices/upgrade.d.ts +3 -2
- package/api/indices/upgrade.js +0 -1
- package/api/ml/_api.js +20 -0
- package/api/ml/createConnector.d.ts +1 -1
- package/api/ml/getConnector.d.ts +30 -0
- package/api/ml/getConnector.js +49 -0
- package/api/ml/predict.d.ts +40 -0
- package/api/ml/predict.js +53 -0
- package/api/ml/searchConnectors.d.ts +36 -0
- package/api/ml/searchConnectors.js +47 -0
- package/api/ml/searchModelGroup.d.ts +36 -0
- package/api/ml/searchModelGroup.js +47 -0
- package/api/ml/searchModels.d.ts +3 -2
- package/api/ml/train.d.ts +37 -0
- package/api/ml/train.js +50 -0
- package/api/ml/trainPredict.d.ts +38 -0
- package/api/ml/trainPredict.js +50 -0
- package/api/ml/updateConnector.d.ts +45 -0
- package/api/ml/updateConnector.js +50 -0
- package/api/ml/updateModelGroup.d.ts +40 -0
- package/api/ml/updateModelGroup.js +50 -0
- package/api/nodes/info.d.ts +5 -1
- package/api/nodes/reloadSecureSettings.d.ts +5 -1
- package/api/nodes/stats.d.ts +5 -1
- package/api/nodes/usage.d.ts +5 -1
- package/api/tasks/cancel.d.ts +1 -1
- package/api/tasks/list.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
'use strict';
|
|
18
|
+
|
|
19
|
+
const { normalizeArguments } = require('../utils');
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Searches for model groups.
|
|
23
|
+
* <br/> See Also: {@link undefined - ml.search_model_group}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ml
|
|
26
|
+
*
|
|
27
|
+
* @param {object} [params]
|
|
28
|
+
* @param {object} [params.body]
|
|
29
|
+
*
|
|
30
|
+
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
31
|
+
* @param {function} [callback] - Callback that handles errors and response
|
|
32
|
+
*
|
|
33
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
34
|
+
*/
|
|
35
|
+
function searchModelGroupFunc(params, options, callback) {
|
|
36
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
37
|
+
|
|
38
|
+
let { body, ...querystring } = params;
|
|
39
|
+
|
|
40
|
+
const path = '/_plugins/_ml/model_groups/_search';
|
|
41
|
+
const method = body ? 'POST' : 'GET';
|
|
42
|
+
body = body || '';
|
|
43
|
+
|
|
44
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
module.exports = searchModelGroupFunc;
|
package/api/ml/searchModels.d.ts
CHANGED
|
@@ -23,8 +23,9 @@ export interface Ml_SearchModels_Request extends Global.Params {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export type Ml_SearchModels_RequestBody = {
|
|
26
|
-
query
|
|
27
|
-
size
|
|
26
|
+
query?: Ml_Common.Query;
|
|
27
|
+
size?: number;
|
|
28
|
+
sort?: Ml_Common.Sort[];
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
export interface Ml_SearchModels_Response extends ApiResponse {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { ApiResponse } from '../../lib/Transport'
|
|
18
|
+
import * as Global from '../_types/_global'
|
|
19
|
+
import * as Ml_Common from '../_types/ml._common'
|
|
20
|
+
|
|
21
|
+
export interface Ml_Train_Request extends Global.Params {
|
|
22
|
+
algorithm_name: string;
|
|
23
|
+
body?: Ml_Train_RequestBody;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type Ml_Train_RequestBody = {
|
|
27
|
+
input_index?: string[];
|
|
28
|
+
input_query?: Ml_Common.InputQuery;
|
|
29
|
+
parameters?: Ml_Common.TrainParameters;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface Ml_Train_Response extends ApiResponse {
|
|
33
|
+
body: Ml_Train_ResponseBody;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type Ml_Train_ResponseBody = Ml_Common.TrainResponse
|
|
37
|
+
|
package/api/ml/train.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
'use strict';
|
|
18
|
+
|
|
19
|
+
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Trains a model synchronously.
|
|
23
|
+
* <br/> See Also: {@link undefined - ml.train}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ml
|
|
26
|
+
*
|
|
27
|
+
* @param {object} params
|
|
28
|
+
* @param {string} params.algorithm_name
|
|
29
|
+
* @param {object} [params.body]
|
|
30
|
+
*
|
|
31
|
+
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
32
|
+
* @param {function} [callback] - Callback that handles errors and response
|
|
33
|
+
*
|
|
34
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
35
|
+
*/
|
|
36
|
+
function trainFunc(params, options, callback) {
|
|
37
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
38
|
+
if (params.algorithm_name == null) return handleMissingParam('algorithm_name', this, callback);
|
|
39
|
+
|
|
40
|
+
let { body, algorithm_name, ...querystring } = params;
|
|
41
|
+
algorithm_name = parsePathParam(algorithm_name);
|
|
42
|
+
|
|
43
|
+
const path = '/_plugins/_ml/_train/' + algorithm_name;
|
|
44
|
+
const method = 'POST';
|
|
45
|
+
body = body || '';
|
|
46
|
+
|
|
47
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
module.exports = trainFunc;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { ApiResponse } from '../../lib/Transport'
|
|
18
|
+
import * as Global from '../_types/_global'
|
|
19
|
+
import * as Ml_Common from '../_types/ml._common'
|
|
20
|
+
|
|
21
|
+
export interface Ml_TrainPredict_Request extends Global.Params {
|
|
22
|
+
algorithm_name: string;
|
|
23
|
+
body?: Ml_TrainPredict_RequestBody;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type Ml_TrainPredict_RequestBody = {
|
|
27
|
+
input_data?: Ml_Common.PredictionResult;
|
|
28
|
+
input_index?: string[];
|
|
29
|
+
input_query?: Ml_Common.InputQuery;
|
|
30
|
+
parameters?: Ml_Common.TrainParameters;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface Ml_TrainPredict_Response extends ApiResponse {
|
|
34
|
+
body: Ml_TrainPredict_ResponseBody;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type Ml_TrainPredict_ResponseBody = Ml_Common.TrainPredictResponse
|
|
38
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
'use strict';
|
|
18
|
+
|
|
19
|
+
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Trains a model and predicts against the same training dataset.
|
|
23
|
+
* <br/> See Also: {@link undefined - ml.train_predict}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ml
|
|
26
|
+
*
|
|
27
|
+
* @param {object} params
|
|
28
|
+
* @param {string} params.algorithm_name
|
|
29
|
+
* @param {object} [params.body]
|
|
30
|
+
*
|
|
31
|
+
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
32
|
+
* @param {function} [callback] - Callback that handles errors and response
|
|
33
|
+
*
|
|
34
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
35
|
+
*/
|
|
36
|
+
function trainPredictFunc(params, options, callback) {
|
|
37
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
38
|
+
if (params.algorithm_name == null) return handleMissingParam('algorithm_name', this, callback);
|
|
39
|
+
|
|
40
|
+
let { body, algorithm_name, ...querystring } = params;
|
|
41
|
+
algorithm_name = parsePathParam(algorithm_name);
|
|
42
|
+
|
|
43
|
+
const path = '/_plugins/_ml/_train_predict/' + algorithm_name;
|
|
44
|
+
const method = 'POST';
|
|
45
|
+
body = body || '';
|
|
46
|
+
|
|
47
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
module.exports = trainPredictFunc;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { ApiResponse } from '../../lib/Transport'
|
|
18
|
+
import * as Common from '../_types/_common'
|
|
19
|
+
import * as Global from '../_types/_global'
|
|
20
|
+
import * as Ml_Common from '../_types/ml._common'
|
|
21
|
+
|
|
22
|
+
export interface Ml_UpdateConnector_Request extends Global.Params {
|
|
23
|
+
body?: Ml_UpdateConnector_RequestBody;
|
|
24
|
+
connector_id: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type Ml_UpdateConnector_RequestBody = {
|
|
28
|
+
access_mode?: 'private' | 'public' | 'restricted';
|
|
29
|
+
actions?: Ml_Common.Action[];
|
|
30
|
+
backend_roles?: string[];
|
|
31
|
+
credential?: Ml_Common.Credential;
|
|
32
|
+
description?: string;
|
|
33
|
+
name?: Common.Name;
|
|
34
|
+
parameters?: Ml_Common.Parameters;
|
|
35
|
+
'parameters.skip_validating_missing_parameters'?: boolean;
|
|
36
|
+
protocol?: 'aws_sigv4' | 'http';
|
|
37
|
+
version?: Common.VersionNumber;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface Ml_UpdateConnector_Response extends ApiResponse {
|
|
41
|
+
body: Ml_UpdateConnector_ResponseBody;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type Ml_UpdateConnector_ResponseBody = Common.WriteResponseBase
|
|
45
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
'use strict';
|
|
18
|
+
|
|
19
|
+
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Updates a standalone connector.
|
|
23
|
+
* <br/> See Also: {@link undefined - ml.update_connector}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ml
|
|
26
|
+
*
|
|
27
|
+
* @param {object} params
|
|
28
|
+
* @param {string} params.connector_id
|
|
29
|
+
* @param {object} [params.body]
|
|
30
|
+
*
|
|
31
|
+
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
32
|
+
* @param {function} [callback] - Callback that handles errors and response
|
|
33
|
+
*
|
|
34
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
35
|
+
*/
|
|
36
|
+
function updateConnectorFunc(params, options, callback) {
|
|
37
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
38
|
+
if (params.connector_id == null) return handleMissingParam('connector_id', this, callback);
|
|
39
|
+
|
|
40
|
+
let { body, connector_id, ...querystring } = params;
|
|
41
|
+
connector_id = parsePathParam(connector_id);
|
|
42
|
+
|
|
43
|
+
const path = '/_plugins/_ml/connectors/' + connector_id;
|
|
44
|
+
const method = 'PUT';
|
|
45
|
+
body = body || '';
|
|
46
|
+
|
|
47
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
module.exports = updateConnectorFunc;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { ApiResponse } from '../../lib/Transport'
|
|
18
|
+
import * as Global from '../_types/_global'
|
|
19
|
+
import * as Ml_Common from '../_types/ml._common'
|
|
20
|
+
|
|
21
|
+
export interface Ml_UpdateModelGroup_Request extends Global.Params {
|
|
22
|
+
body?: Ml_UpdateModelGroup_RequestBody;
|
|
23
|
+
model_group_id: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type Ml_UpdateModelGroup_RequestBody = {
|
|
27
|
+
add_all_backend_roles?: boolean;
|
|
28
|
+
add_backend_roles?: string[];
|
|
29
|
+
backend_roles?: string[];
|
|
30
|
+
description?: string;
|
|
31
|
+
model_access_name?: string;
|
|
32
|
+
name?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface Ml_UpdateModelGroup_Response extends ApiResponse {
|
|
36
|
+
body: Ml_UpdateModelGroup_ResponseBody;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type Ml_UpdateModelGroup_ResponseBody = Ml_Common.UpdateModelGroupResponse
|
|
40
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright OpenSearch Contributors
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*
|
|
5
|
+
* The OpenSearch Contributors require contributions made to
|
|
6
|
+
* this file be licensed under the Apache-2.0 license or a
|
|
7
|
+
* compatible open source license.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* This file was generated from the OpenSearch API Spec. Do NOT edit it
|
|
13
|
+
* manually. If you want to make changes, either update the spec or
|
|
14
|
+
* modify the API generator.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
'use strict';
|
|
18
|
+
|
|
19
|
+
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Updates a model group.
|
|
23
|
+
* <br/> See Also: {@link undefined - ml.update_model_group}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ml
|
|
26
|
+
*
|
|
27
|
+
* @param {object} params
|
|
28
|
+
* @param {string} params.model_group_id
|
|
29
|
+
* @param {object} [params.body]
|
|
30
|
+
*
|
|
31
|
+
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
32
|
+
* @param {function} [callback] - Callback that handles errors and response
|
|
33
|
+
*
|
|
34
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
35
|
+
*/
|
|
36
|
+
function updateModelGroupFunc(params, options, callback) {
|
|
37
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
38
|
+
if (params.model_group_id == null) return handleMissingParam('model_group_id', this, callback);
|
|
39
|
+
|
|
40
|
+
let { body, model_group_id, ...querystring } = params;
|
|
41
|
+
model_group_id = parsePathParam(model_group_id);
|
|
42
|
+
|
|
43
|
+
const path = '/_plugins/_ml/model_groups/' + model_group_id;
|
|
44
|
+
const method = 'PUT';
|
|
45
|
+
body = body || '';
|
|
46
|
+
|
|
47
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
module.exports = updateModelGroupFunc;
|
package/api/nodes/info.d.ts
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import { ApiResponse } from '../../lib/Transport'
|
|
18
18
|
import * as Common from '../_types/_common'
|
|
19
19
|
import * as Global from '../_types/_global'
|
|
20
|
+
import * as Nodes_Common from '../_types/nodes._common'
|
|
20
21
|
import * as Nodes_Info from '../_types/nodes.info'
|
|
21
22
|
|
|
22
23
|
export interface Nodes_Info_Request extends Global.Params {
|
|
@@ -30,5 +31,8 @@ export interface Nodes_Info_Response extends ApiResponse {
|
|
|
30
31
|
body: Nodes_Info_ResponseBody;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
export
|
|
34
|
+
export interface Nodes_Info_ResponseBody extends Nodes_Common.NodesResponseBase {
|
|
35
|
+
cluster_name: Common.Name;
|
|
36
|
+
nodes: Record<string, Nodes_Info.NodeInfo>;
|
|
37
|
+
}
|
|
34
38
|
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import { ApiResponse } from '../../lib/Transport'
|
|
18
18
|
import * as Common from '../_types/_common'
|
|
19
19
|
import * as Global from '../_types/_global'
|
|
20
|
+
import * as Nodes_Common from '../_types/nodes._common'
|
|
20
21
|
import * as Nodes_ReloadSecureSettings from '../_types/nodes.reload_secure_settings'
|
|
21
22
|
|
|
22
23
|
export interface Nodes_ReloadSecureSettings_Request extends Global.Params {
|
|
@@ -33,5 +34,8 @@ export interface Nodes_ReloadSecureSettings_Response extends ApiResponse {
|
|
|
33
34
|
body: Nodes_ReloadSecureSettings_ResponseBody;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
export
|
|
37
|
+
export interface Nodes_ReloadSecureSettings_ResponseBody extends Nodes_Common.NodesResponseBase {
|
|
38
|
+
cluster_name: Common.Name;
|
|
39
|
+
nodes: Record<string, Nodes_ReloadSecureSettings.NodeReloadResult>;
|
|
40
|
+
}
|
|
37
41
|
|
package/api/nodes/stats.d.ts
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import { ApiResponse } from '../../lib/Transport'
|
|
18
18
|
import * as Common from '../_types/_common'
|
|
19
19
|
import * as Global from '../_types/_global'
|
|
20
|
+
import * as Nodes_Common from '../_types/nodes._common'
|
|
20
21
|
import * as Nodes_Stats from '../_types/nodes.stats'
|
|
21
22
|
|
|
22
23
|
export interface Nodes_Stats_Request extends Global.Params {
|
|
@@ -37,5 +38,8 @@ export interface Nodes_Stats_Response extends ApiResponse {
|
|
|
37
38
|
body: Nodes_Stats_ResponseBody;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
export
|
|
41
|
+
export interface Nodes_Stats_ResponseBody extends Nodes_Common.NodesResponseBase {
|
|
42
|
+
cluster_name?: Common.Name;
|
|
43
|
+
nodes: Record<string, Nodes_Stats.Stats>;
|
|
44
|
+
}
|
|
41
45
|
|
package/api/nodes/usage.d.ts
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import { ApiResponse } from '../../lib/Transport'
|
|
18
18
|
import * as Common from '../_types/_common'
|
|
19
19
|
import * as Global from '../_types/_global'
|
|
20
|
+
import * as Nodes_Common from '../_types/nodes._common'
|
|
20
21
|
import * as Nodes_Usage from '../_types/nodes.usage'
|
|
21
22
|
|
|
22
23
|
export interface Nodes_Usage_Request extends Global.Params {
|
|
@@ -29,5 +30,8 @@ export interface Nodes_Usage_Response extends ApiResponse {
|
|
|
29
30
|
body: Nodes_Usage_ResponseBody;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
|
-
export
|
|
33
|
+
export interface Nodes_Usage_ResponseBody extends Nodes_Common.NodesResponseBase {
|
|
34
|
+
cluster_name: Common.Name;
|
|
35
|
+
nodes: Record<string, Nodes_Usage.NodeUsage>;
|
|
36
|
+
}
|
|
33
37
|
|
package/api/tasks/cancel.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import * as Global from '../_types/_global'
|
|
|
20
20
|
import * as Tasks_Common from '../_types/tasks._common'
|
|
21
21
|
|
|
22
22
|
export interface Tasks_Cancel_Request extends Global.Params {
|
|
23
|
-
actions?:
|
|
23
|
+
actions?: Common.StringOrStringArray;
|
|
24
24
|
nodes?: string[];
|
|
25
25
|
parent_task_id?: string;
|
|
26
26
|
task_id?: Common.TaskId;
|
package/api/tasks/list.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import * as Global from '../_types/_global'
|
|
|
20
20
|
import * as Tasks_Common from '../_types/tasks._common'
|
|
21
21
|
|
|
22
22
|
export interface Tasks_List_Request extends Global.Params {
|
|
23
|
-
actions?:
|
|
23
|
+
actions?: Common.StringOrStringArray;
|
|
24
24
|
detailed?: boolean;
|
|
25
25
|
group_by?: Tasks_Common.GroupBy;
|
|
26
26
|
nodes?: string[];
|