@opensearch-project/opensearch 3.5.1 → 3.6.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 +78 -0
- package/api/OpenSearchApi.js +4 -0
- package/api/_core/bulk.d.ts +1 -1
- package/api/_core/explain.d.ts +1 -1
- package/api/_core/search.d.ts +1 -0
- package/api/_core/search.js +1 -0
- package/api/_core/searchShards.d.ts +5 -0
- package/api/_core/searchShards.js +1 -0
- package/api/_types/_common.aggregations.d.ts +111 -266
- package/api/_types/_common.analysis.d.ts +2 -2
- package/api/_types/_common.d.ts +13 -7
- package/api/_types/_common.mapping.d.ts +1 -1
- package/api/_types/_common.query_dsl.d.ts +10 -6
- package/api/_types/_core.bulk.d.ts +16 -8
- package/api/_types/_core.explain.d.ts +1 -7
- package/api/_types/_core.search.d.ts +23 -7
- package/api/_types/cluster._common.d.ts +2 -0
- package/api/_types/cluster.stats.d.ts +3 -3
- package/api/_types/geospatial._common.d.ts +147 -0
- package/api/_types/index.d.ts +4 -0
- package/api/_types/indices._common.d.ts +6 -3
- package/api/_types/ltr._common.d.ts +54 -0
- package/api/_types/ml._common.d.ts +9 -0
- package/api/_types/neural._common.d.ts +94 -0
- package/api/_types/nodes._common.d.ts +1 -1
- package/api/_types/nodes.stats.d.ts +1 -0
- package/api/_types/search_pipeline._common.d.ts +19 -1
- package/api/_types/security._common.d.ts +6 -6
- package/api/cluster/existsComponentTemplate.js +1 -1
- package/api/cluster/health.d.ts +2 -1
- package/api/flowFramework/create.js +6 -6
- package/api/flowFramework/delete.js +3 -3
- package/api/flowFramework/deprovision.js +3 -3
- package/api/flowFramework/get.js +2 -2
- package/api/flowFramework/getStatus.js +3 -3
- package/api/flowFramework/getSteps.js +2 -2
- package/api/flowFramework/provision.js +2 -2
- package/api/flowFramework/update.js +7 -7
- package/api/geospatial/_api.js +46 -0
- package/api/geospatial/deleteIp2GeoDatasource.d.ts +30 -0
- package/api/geospatial/deleteIp2GeoDatasource.js +49 -0
- package/api/geospatial/geojsonUploadPost.d.ts +30 -0
- package/api/geospatial/geojsonUploadPost.js +49 -0
- package/api/geospatial/geojsonUploadPut.d.ts +30 -0
- package/api/geospatial/geojsonUploadPut.js +49 -0
- package/api/geospatial/getIp2GeoDatasource.d.ts +31 -0
- package/api/geospatial/getIp2GeoDatasource.js +48 -0
- package/api/geospatial/getUploadStats.d.ts +28 -0
- package/api/geospatial/getUploadStats.js +45 -0
- package/api/geospatial/putIp2GeoDatasource.d.ts +32 -0
- package/api/geospatial/putIp2GeoDatasource.js +53 -0
- package/api/geospatial/putIp2GeoDatasourceSettings.d.ts +32 -0
- package/api/geospatial/putIp2GeoDatasourceSettings.js +50 -0
- package/api/index.d.ts +36 -4
- package/api/indices/putSettings.js +1 -1
- package/api/indices/simulateTemplate.js +1 -1
- package/api/ism/addPolicy.js +1 -1
- package/api/ism/changePolicy.js +1 -1
- package/api/ism/existsPolicy.js +1 -1
- package/api/ism/explainPolicy.js +2 -2
- package/api/ism/getPolicies.js +1 -1
- package/api/ism/getPolicy.js +1 -1
- package/api/ism/putPolicies.js +1 -1
- package/api/ism/refreshSearchAnalyzers.js +2 -2
- package/api/ism/removePolicy.js +1 -1
- package/api/ism/retryIndex.js +2 -2
- package/api/ltr/_api.js +24 -0
- package/api/ltr/cacheStats.d.ts +28 -0
- package/api/ltr/cacheStats.js +45 -0
- package/api/ltr/clearCache.d.ts +30 -0
- package/api/ltr/clearCache.js +48 -0
- package/api/ltr/createDefaultStore.d.ts +28 -0
- package/api/ltr/createDefaultStore.js +45 -0
- package/api/ltr/createStore.d.ts +30 -0
- package/api/ltr/createStore.js +49 -0
- package/api/ltr/deleteDefaultStore.d.ts +28 -0
- package/api/ltr/deleteDefaultStore.js +45 -0
- package/api/ltr/deleteStore.d.ts +30 -0
- package/api/ltr/deleteStore.js +49 -0
- package/api/ltr/getStore.d.ts +30 -0
- package/api/ltr/getStore.js +49 -0
- package/api/ltr/listStores.d.ts +28 -0
- package/api/ltr/listStores.js +45 -0
- package/api/ml/getTool.d.ts +1 -1
- package/api/neural/_api.js +26 -0
- package/api/neural/stats.d.ts +33 -0
- package/api/neural/stats.js +52 -0
- package/api/nodes/hotThreads.js +6 -6
- package/api/nodes/info.js +3 -3
- package/api/nodes/reloadSecureSettings.js +1 -1
- package/api/nodes/stats.js +9 -9
- package/api/observability/createObject.js +1 -1
- package/api/observability/deleteObject.js +1 -1
- package/api/observability/deleteObjects.js +2 -2
- package/api/observability/getObject.js +1 -1
- package/api/observability/updateObject.js +2 -2
- package/api/ppl/explain.js +4 -4
- package/api/ppl/getStats.js +3 -3
- package/api/ppl/postStats.js +4 -4
- package/api/ppl/query.js +4 -4
- package/api/query/datasourceDelete.js +2 -2
- package/api/query/datasourceRetrieve.js +2 -2
- package/api/query/datasourcesCreate.js +2 -2
- package/api/query/datasourcesList.js +1 -1
- package/api/query/datasourcesUpdate.js +2 -2
- package/api/rollups/delete.js +2 -2
- package/api/rollups/explain.js +2 -2
- package/api/rollups/get.js +2 -2
- package/api/rollups/put.js +5 -5
- package/api/rollups/start.js +2 -2
- package/api/rollups/stop.js +2 -2
- package/api/sql/close.js +4 -4
- package/api/sql/explain.js +4 -4
- package/api/sql/getStats.js +3 -3
- package/api/sql/postStats.js +4 -4
- package/api/sql/query.js +4 -4
- package/api/sql/settings.js +3 -3
- package/lib/Connection.js +2 -0
- package/lib/aws/shared.js +3 -2
- package/package.json +2 -2
|
@@ -0,0 +1,31 @@
|
|
|
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 Geospatial_Common from '../_types/geospatial._common'
|
|
20
|
+
import * as Global from '../_types/_global'
|
|
21
|
+
|
|
22
|
+
export interface Geospatial_GetIp2GeoDatasource_Request extends Global.Params {
|
|
23
|
+
name?: Common.StringOrStringArray;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface Geospatial_GetIp2GeoDatasource_Response extends ApiResponse {
|
|
27
|
+
body: Geospatial_GetIp2GeoDatasource_ResponseBody;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type Geospatial_GetIp2GeoDatasource_ResponseBody = Geospatial_Common.GetDataSourceResponse
|
|
31
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
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 } = require('../utils');
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Get one or more IP2Geo data sources, defaulting to returning all if no names specified.
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/docs/latest/ingest-pipelines/processors/ip2geo/#sending-a-get-request - geospatial.get_ip2geo_datasource}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Geospatial
|
|
26
|
+
*
|
|
27
|
+
* @param {object} [params]
|
|
28
|
+
* @param {string} [params.name]
|
|
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 getIp2GeoDatasourceFunc(params, options, callback) {
|
|
36
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
37
|
+
|
|
38
|
+
let { body, name, ...querystring } = params;
|
|
39
|
+
name = parsePathParam(name);
|
|
40
|
+
|
|
41
|
+
const path = ['/_plugins/geospatial/ip2geo/datasource', name].filter(c => c != null).join('/');
|
|
42
|
+
const method = 'GET';
|
|
43
|
+
body = body || '';
|
|
44
|
+
|
|
45
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
module.exports = getIp2GeoDatasourceFunc;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 Geospatial_Common from '../_types/geospatial._common'
|
|
19
|
+
import * as Global from '../_types/_global'
|
|
20
|
+
|
|
21
|
+
export type Geospatial_GetUploadStats_Request = Global.Params & Record<string, any>
|
|
22
|
+
|
|
23
|
+
export interface Geospatial_GetUploadStats_Response extends ApiResponse {
|
|
24
|
+
body: Geospatial_GetUploadStats_ResponseBody;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type Geospatial_GetUploadStats_ResponseBody = Geospatial_Common.GeoSpatialUploadStats
|
|
28
|
+
|
|
@@ -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
|
+
'use strict';
|
|
18
|
+
|
|
19
|
+
const { normalizeArguments } = require('../utils');
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves statistics for all geospatial uploads.
|
|
23
|
+
* <br/> See Also: {@link undefined - geospatial.get_upload_stats}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Geospatial
|
|
26
|
+
*
|
|
27
|
+
* @param {object} [params] - (Unused)
|
|
28
|
+
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
29
|
+
* @param {function} [callback] - Callback that handles errors and response
|
|
30
|
+
*
|
|
31
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
32
|
+
*/
|
|
33
|
+
function getUploadStatsFunc(params, options, callback) {
|
|
34
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
35
|
+
|
|
36
|
+
let { body, ...querystring } = params;
|
|
37
|
+
|
|
38
|
+
const path = '/_plugins/geospatial/_upload/stats';
|
|
39
|
+
const method = 'GET';
|
|
40
|
+
body = body || '';
|
|
41
|
+
|
|
42
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
module.exports = getUploadStatsFunc;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 Geospatial_Common from '../_types/geospatial._common'
|
|
20
|
+
import * as Global from '../_types/_global'
|
|
21
|
+
|
|
22
|
+
export interface Geospatial_PutIp2GeoDatasource_Request extends Global.Params {
|
|
23
|
+
body?: Geospatial_Common.PutIP2GeoDataSourceRequest;
|
|
24
|
+
name: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface Geospatial_PutIp2GeoDatasource_Response extends ApiResponse {
|
|
28
|
+
body: Geospatial_PutIp2GeoDatasource_ResponseBody;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type Geospatial_PutIp2GeoDatasource_ResponseBody = Common.AcknowledgedResponseBase
|
|
32
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
* Create a specific IP2Geo data source.
|
|
23
|
+
Default values:
|
|
24
|
+
- `endpoint`: `"https://geoip.maps.opensearch.org/v1/geolite2-city/manifest.json"`
|
|
25
|
+
- `update_interval_in_days`: 3.
|
|
26
|
+
* <br/> See Also: {@link https://docs.opensearch.org/docs/latest/ingest-pipelines/processors/ip2geo/#data-source-options - geospatial.put_ip2geo_datasource}
|
|
27
|
+
*
|
|
28
|
+
* @memberOf API-Geospatial
|
|
29
|
+
*
|
|
30
|
+
* @param {object} params
|
|
31
|
+
* @param {string} params.name
|
|
32
|
+
* @param {object} [params.body]
|
|
33
|
+
*
|
|
34
|
+
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
35
|
+
* @param {function} [callback] - Callback that handles errors and response
|
|
36
|
+
*
|
|
37
|
+
* @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
|
|
38
|
+
*/
|
|
39
|
+
function putIp2GeoDatasourceFunc(params, options, callback) {
|
|
40
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
41
|
+
if (params.name == null) return handleMissingParam('name', this, callback);
|
|
42
|
+
|
|
43
|
+
let { body, name, ...querystring } = params;
|
|
44
|
+
name = parsePathParam(name);
|
|
45
|
+
|
|
46
|
+
const path = '/_plugins/geospatial/ip2geo/datasource/' + name;
|
|
47
|
+
const method = 'PUT';
|
|
48
|
+
body = body || '';
|
|
49
|
+
|
|
50
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
module.exports = putIp2GeoDatasourceFunc;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 Geospatial_Common from '../_types/geospatial._common'
|
|
20
|
+
import * as Global from '../_types/_global'
|
|
21
|
+
|
|
22
|
+
export interface Geospatial_PutIp2GeoDatasourceSettings_Request extends Global.Params {
|
|
23
|
+
body: Geospatial_Common.PutIP2GeoDataSourceRequest;
|
|
24
|
+
name: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface Geospatial_PutIp2GeoDatasourceSettings_Response extends ApiResponse {
|
|
28
|
+
body: Geospatial_PutIp2GeoDatasourceSettings_ResponseBody;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type Geospatial_PutIp2GeoDatasourceSettings_ResponseBody = Common.AcknowledgedResponseBase
|
|
32
|
+
|
|
@@ -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
|
+
* Update a specific IP2Geo data source.
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/docs/latest/ingest-pipelines/processors/ip2geo/#updating-an-ip2geo-data-source - geospatial.put_ip2geo_datasource_settings}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Geospatial
|
|
26
|
+
*
|
|
27
|
+
* @param {object} params
|
|
28
|
+
* @param {string} params.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 putIp2GeoDatasourceSettingsFunc(params, options, callback) {
|
|
37
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
38
|
+
if (params.name == null) return handleMissingParam('name', this, callback);
|
|
39
|
+
if (params.body == null) return handleMissingParam('body', this, callback);
|
|
40
|
+
|
|
41
|
+
let { body, name, ...querystring } = params;
|
|
42
|
+
name = parsePathParam(name);
|
|
43
|
+
|
|
44
|
+
const path = '/_plugins/geospatial/ip2geo/datasource/' + name + '/_settings';
|
|
45
|
+
const method = 'PUT';
|
|
46
|
+
|
|
47
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
module.exports = putIp2GeoDatasourceSettingsFunc;
|
package/api/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ import { GetScript_Request, GetScript_Response, GetScript_ResponseBody } from '.
|
|
|
36
36
|
import { PutScript_Request, PutScript_RequestBody, PutScript_Response, PutScript_ResponseBody } from './_core/putScript';
|
|
37
37
|
import { ScriptsPainlessExecute_Request, ScriptsPainlessExecute_RequestBody, ScriptsPainlessExecute_Response, ScriptsPainlessExecute_ResponseBody } from './_core/scriptsPainlessExecute';
|
|
38
38
|
import { Search_Request, Search_RequestBody, Search_Response, Search_ResponseBody } from './_core/search';
|
|
39
|
-
import { SearchShards_Request, SearchShards_Response, SearchShards_ResponseBody } from './_core/searchShards';
|
|
39
|
+
import { SearchShards_Request, SearchShards_RequestBody, SearchShards_Response, SearchShards_ResponseBody } from './_core/searchShards';
|
|
40
40
|
import { DeletePit_Request, DeletePit_RequestBody, DeletePit_Response, DeletePit_ResponseBody } from './_core/deletePit';
|
|
41
41
|
import { DeleteAllPits_Request, DeleteAllPits_Response, DeleteAllPits_ResponseBody } from './_core/deleteAllPits';
|
|
42
42
|
import { GetAllPits_Request, GetAllPits_Response, GetAllPits_ResponseBody } from './_core/getAllPits';
|
|
@@ -162,6 +162,15 @@ import { Insights_TopQueries_Request, Insights_TopQueries_Response, Insights_Top
|
|
|
162
162
|
import { List_Help_Request, List_Help_Response, List_Help_ResponseBody } from './list/help';
|
|
163
163
|
import { List_Indices_Request, List_Indices_Response, List_Indices_ResponseBody } from './list/indices';
|
|
164
164
|
import { List_Shards_Request, List_Shards_Response, List_Shards_ResponseBody } from './list/shards';
|
|
165
|
+
import { Ltr_DeleteDefaultStore_Request, Ltr_DeleteDefaultStore_Response, Ltr_DeleteDefaultStore_ResponseBody } from './ltr/deleteDefaultStore';
|
|
166
|
+
import { Ltr_ListStores_Request, Ltr_ListStores_Response, Ltr_ListStores_ResponseBody } from './ltr/listStores';
|
|
167
|
+
import { Ltr_CreateDefaultStore_Request, Ltr_CreateDefaultStore_Response, Ltr_CreateDefaultStore_ResponseBody } from './ltr/createDefaultStore';
|
|
168
|
+
import { Ltr_CacheStats_Request, Ltr_CacheStats_Response, Ltr_CacheStats_ResponseBody } from './ltr/cacheStats';
|
|
169
|
+
import { Ltr_ClearCache_Request, Ltr_ClearCache_Response, Ltr_ClearCache_ResponseBody } from './ltr/clearCache';
|
|
170
|
+
import { Ltr_DeleteStore_Request, Ltr_DeleteStore_Response, Ltr_DeleteStore_ResponseBody } from './ltr/deleteStore';
|
|
171
|
+
import { Ltr_GetStore_Request, Ltr_GetStore_Response, Ltr_GetStore_ResponseBody } from './ltr/getStore';
|
|
172
|
+
import { Ltr_CreateStore_Request, Ltr_CreateStore_Response, Ltr_CreateStore_ResponseBody } from './ltr/createStore';
|
|
173
|
+
import { Ltr_Stats_Request, Ltr_Stats_Response, Ltr_Stats_ResponseBody } from './ltr/stats';
|
|
165
174
|
import { Nodes_Info_Request, Nodes_Info_Response, Nodes_Info_ResponseBody } from './nodes/info';
|
|
166
175
|
import { Nodes_HotThreads_Request, Nodes_HotThreads_Response, Nodes_HotThreads_ResponseBody } from './nodes/hotThreads';
|
|
167
176
|
import { Nodes_ReloadSecureSettings_Request, Nodes_ReloadSecureSettings_RequestBody, Nodes_ReloadSecureSettings_Response, Nodes_ReloadSecureSettings_ResponseBody } from './nodes/reloadSecureSettings';
|
|
@@ -275,7 +284,6 @@ import { Knn_TrainModel_Request, Knn_TrainModel_Response, Knn_TrainModel_Respons
|
|
|
275
284
|
import { Knn_DeleteModel_Request, Knn_DeleteModel_Response, Knn_DeleteModel_ResponseBody } from './knn/deleteModel';
|
|
276
285
|
import { Knn_GetModel_Request, Knn_GetModel_Response, Knn_GetModel_ResponseBody } from './knn/getModel';
|
|
277
286
|
import { Knn_Warmup_Request, Knn_Warmup_Response, Knn_Warmup_ResponseBody } from './knn/warmup';
|
|
278
|
-
import { Ltr_Stats_Request, Ltr_Stats_Response, Ltr_Stats_ResponseBody } from './ltr/stats';
|
|
279
287
|
import { Ml_ExecuteAlgorithm_Request, Ml_ExecuteAlgorithm_RequestBody, Ml_ExecuteAlgorithm_Response, Ml_ExecuteAlgorithm_ResponseBody } from './ml/executeAlgorithm';
|
|
280
288
|
import { Ml_Predict_Request, Ml_Predict_RequestBody, Ml_Predict_Response, Ml_Predict_ResponseBody } from './ml/predict';
|
|
281
289
|
import { Ml_TrainPredict_Request, Ml_TrainPredict_RequestBody, Ml_TrainPredict_Response, Ml_TrainPredict_ResponseBody } from './ml/trainPredict';
|
|
@@ -335,6 +343,7 @@ import { Ml_DeleteTask_Request, Ml_DeleteTask_Response, Ml_DeleteTask_ResponseBo
|
|
|
335
343
|
import { Ml_GetTask_Request, Ml_GetTask_Response, Ml_GetTask_ResponseBody } from './ml/getTask';
|
|
336
344
|
import { Ml_GetAllTools_Request, Ml_GetAllTools_Response, Ml_GetAllTools_ResponseBody } from './ml/getAllTools';
|
|
337
345
|
import { Ml_GetTool_Request, Ml_GetTool_Response, Ml_GetTool_ResponseBody } from './ml/getTool';
|
|
346
|
+
import { Neural_Stats_Request, Neural_Stats_Response, Neural_Stats_ResponseBody } from './neural/stats';
|
|
338
347
|
import { Notifications_ListChannels_Request, Notifications_ListChannels_Response, Notifications_ListChannels_ResponseBody } from './notifications/listChannels';
|
|
339
348
|
import { Notifications_DeleteConfigs_Request, Notifications_DeleteConfigs_Response, Notifications_DeleteConfigs_ResponseBody } from './notifications/deleteConfigs';
|
|
340
349
|
import { Notifications_GetConfigs_Request, Notifications_GetConfigs_RequestBody, Notifications_GetConfigs_Response, Notifications_GetConfigs_ResponseBody } from './notifications/getConfigs';
|
|
@@ -399,6 +408,13 @@ import { Transforms_Put_Request, Transforms_Put_Response, Transforms_Put_Respons
|
|
|
399
408
|
import { Transforms_Explain_Request, Transforms_Explain_Response, Transforms_Explain_ResponseBody } from './transforms/explain';
|
|
400
409
|
import { Transforms_Start_Request, Transforms_Start_Response, Transforms_Start_ResponseBody } from './transforms/start';
|
|
401
410
|
import { Transforms_Stop_Request, Transforms_Stop_Response, Transforms_Stop_ResponseBody } from './transforms/stop';
|
|
411
|
+
import { Geospatial_GetUploadStats_Request, Geospatial_GetUploadStats_Response, Geospatial_GetUploadStats_ResponseBody } from './geospatial/getUploadStats';
|
|
412
|
+
import { Geospatial_GeojsonUploadPost_Request, Geospatial_GeojsonUploadPost_Response, Geospatial_GeojsonUploadPost_ResponseBody } from './geospatial/geojsonUploadPost';
|
|
413
|
+
import { Geospatial_GeojsonUploadPut_Request, Geospatial_GeojsonUploadPut_Response, Geospatial_GeojsonUploadPut_ResponseBody } from './geospatial/geojsonUploadPut';
|
|
414
|
+
import { Geospatial_GetIp2GeoDatasource_Request, Geospatial_GetIp2GeoDatasource_Response, Geospatial_GetIp2GeoDatasource_ResponseBody } from './geospatial/getIp2GeoDatasource';
|
|
415
|
+
import { Geospatial_DeleteIp2GeoDatasource_Request, Geospatial_DeleteIp2GeoDatasource_Response, Geospatial_DeleteIp2GeoDatasource_ResponseBody } from './geospatial/deleteIp2GeoDatasource';
|
|
416
|
+
import { Geospatial_PutIp2GeoDatasource_Request, Geospatial_PutIp2GeoDatasource_Response, Geospatial_PutIp2GeoDatasource_ResponseBody } from './geospatial/putIp2GeoDatasource';
|
|
417
|
+
import { Geospatial_PutIp2GeoDatasourceSettings_Request, Geospatial_PutIp2GeoDatasourceSettings_Response, Geospatial_PutIp2GeoDatasourceSettings_ResponseBody } from './geospatial/putIp2GeoDatasourceSettings';
|
|
402
418
|
import { RemoteStore_Restore_Request, RemoteStore_Restore_RequestBody, RemoteStore_Restore_Response, RemoteStore_Restore_ResponseBody } from './remoteStore/restore';
|
|
403
419
|
import { SearchPipeline_Get_Request, SearchPipeline_Get_Response, SearchPipeline_Get_ResponseBody } from './searchPipeline/get';
|
|
404
420
|
import { SearchPipeline_Delete_Request, SearchPipeline_Delete_Response, SearchPipeline_Delete_ResponseBody } from './searchPipeline/delete';
|
|
@@ -445,7 +461,7 @@ export {
|
|
|
445
461
|
PutScript_Request, PutScript_RequestBody, PutScript_Response, PutScript_ResponseBody,
|
|
446
462
|
ScriptsPainlessExecute_Request, ScriptsPainlessExecute_RequestBody, ScriptsPainlessExecute_Response, ScriptsPainlessExecute_ResponseBody,
|
|
447
463
|
Search_Request, Search_RequestBody, Search_Response, Search_ResponseBody,
|
|
448
|
-
SearchShards_Request, SearchShards_Response, SearchShards_ResponseBody,
|
|
464
|
+
SearchShards_Request, SearchShards_RequestBody, SearchShards_Response, SearchShards_ResponseBody,
|
|
449
465
|
DeletePit_Request, DeletePit_RequestBody, DeletePit_Response, DeletePit_ResponseBody,
|
|
450
466
|
DeleteAllPits_Request, DeleteAllPits_Response, DeleteAllPits_ResponseBody,
|
|
451
467
|
GetAllPits_Request, GetAllPits_Response, GetAllPits_ResponseBody,
|
|
@@ -571,6 +587,15 @@ export {
|
|
|
571
587
|
List_Help_Request, List_Help_Response, List_Help_ResponseBody,
|
|
572
588
|
List_Indices_Request, List_Indices_Response, List_Indices_ResponseBody,
|
|
573
589
|
List_Shards_Request, List_Shards_Response, List_Shards_ResponseBody,
|
|
590
|
+
Ltr_DeleteDefaultStore_Request, Ltr_DeleteDefaultStore_Response, Ltr_DeleteDefaultStore_ResponseBody,
|
|
591
|
+
Ltr_ListStores_Request, Ltr_ListStores_Response, Ltr_ListStores_ResponseBody,
|
|
592
|
+
Ltr_CreateDefaultStore_Request, Ltr_CreateDefaultStore_Response, Ltr_CreateDefaultStore_ResponseBody,
|
|
593
|
+
Ltr_CacheStats_Request, Ltr_CacheStats_Response, Ltr_CacheStats_ResponseBody,
|
|
594
|
+
Ltr_ClearCache_Request, Ltr_ClearCache_Response, Ltr_ClearCache_ResponseBody,
|
|
595
|
+
Ltr_DeleteStore_Request, Ltr_DeleteStore_Response, Ltr_DeleteStore_ResponseBody,
|
|
596
|
+
Ltr_GetStore_Request, Ltr_GetStore_Response, Ltr_GetStore_ResponseBody,
|
|
597
|
+
Ltr_CreateStore_Request, Ltr_CreateStore_Response, Ltr_CreateStore_ResponseBody,
|
|
598
|
+
Ltr_Stats_Request, Ltr_Stats_Response, Ltr_Stats_ResponseBody,
|
|
574
599
|
Nodes_Info_Request, Nodes_Info_Response, Nodes_Info_ResponseBody,
|
|
575
600
|
Nodes_HotThreads_Request, Nodes_HotThreads_Response, Nodes_HotThreads_ResponseBody,
|
|
576
601
|
Nodes_ReloadSecureSettings_Request, Nodes_ReloadSecureSettings_RequestBody, Nodes_ReloadSecureSettings_Response, Nodes_ReloadSecureSettings_ResponseBody,
|
|
@@ -684,7 +709,6 @@ export {
|
|
|
684
709
|
Knn_DeleteModel_Request, Knn_DeleteModel_Response, Knn_DeleteModel_ResponseBody,
|
|
685
710
|
Knn_GetModel_Request, Knn_GetModel_Response, Knn_GetModel_ResponseBody,
|
|
686
711
|
Knn_Warmup_Request, Knn_Warmup_Response, Knn_Warmup_ResponseBody,
|
|
687
|
-
Ltr_Stats_Request, Ltr_Stats_Response, Ltr_Stats_ResponseBody,
|
|
688
712
|
Ml_ExecuteAlgorithm_Request, Ml_ExecuteAlgorithm_RequestBody, Ml_ExecuteAlgorithm_Response, Ml_ExecuteAlgorithm_ResponseBody,
|
|
689
713
|
Ml_Predict_Request, Ml_Predict_RequestBody, Ml_Predict_Response, Ml_Predict_ResponseBody,
|
|
690
714
|
Ml_TrainPredict_Request, Ml_TrainPredict_RequestBody, Ml_TrainPredict_Response, Ml_TrainPredict_ResponseBody,
|
|
@@ -744,6 +768,7 @@ export {
|
|
|
744
768
|
Ml_GetTask_Request, Ml_GetTask_Response, Ml_GetTask_ResponseBody,
|
|
745
769
|
Ml_GetAllTools_Request, Ml_GetAllTools_Response, Ml_GetAllTools_ResponseBody,
|
|
746
770
|
Ml_GetTool_Request, Ml_GetTool_Response, Ml_GetTool_ResponseBody,
|
|
771
|
+
Neural_Stats_Request, Neural_Stats_Response, Neural_Stats_ResponseBody,
|
|
747
772
|
Notifications_ListChannels_Request, Notifications_ListChannels_Response, Notifications_ListChannels_ResponseBody,
|
|
748
773
|
Notifications_DeleteConfigs_Request, Notifications_DeleteConfigs_Response, Notifications_DeleteConfigs_ResponseBody,
|
|
749
774
|
Notifications_GetConfigs_Request, Notifications_GetConfigs_RequestBody, Notifications_GetConfigs_Response, Notifications_GetConfigs_ResponseBody,
|
|
@@ -808,6 +833,13 @@ export {
|
|
|
808
833
|
Transforms_Explain_Request, Transforms_Explain_Response, Transforms_Explain_ResponseBody,
|
|
809
834
|
Transforms_Start_Request, Transforms_Start_Response, Transforms_Start_ResponseBody,
|
|
810
835
|
Transforms_Stop_Request, Transforms_Stop_Response, Transforms_Stop_ResponseBody,
|
|
836
|
+
Geospatial_GetUploadStats_Request, Geospatial_GetUploadStats_Response, Geospatial_GetUploadStats_ResponseBody,
|
|
837
|
+
Geospatial_GeojsonUploadPost_Request, Geospatial_GeojsonUploadPost_Response, Geospatial_GeojsonUploadPost_ResponseBody,
|
|
838
|
+
Geospatial_GeojsonUploadPut_Request, Geospatial_GeojsonUploadPut_Response, Geospatial_GeojsonUploadPut_ResponseBody,
|
|
839
|
+
Geospatial_GetIp2GeoDatasource_Request, Geospatial_GetIp2GeoDatasource_Response, Geospatial_GetIp2GeoDatasource_ResponseBody,
|
|
840
|
+
Geospatial_DeleteIp2GeoDatasource_Request, Geospatial_DeleteIp2GeoDatasource_Response, Geospatial_DeleteIp2GeoDatasource_ResponseBody,
|
|
841
|
+
Geospatial_PutIp2GeoDatasource_Request, Geospatial_PutIp2GeoDatasource_Response, Geospatial_PutIp2GeoDatasource_ResponseBody,
|
|
842
|
+
Geospatial_PutIp2GeoDatasourceSettings_Request, Geospatial_PutIp2GeoDatasourceSettings_Response, Geospatial_PutIp2GeoDatasourceSettings_ResponseBody,
|
|
811
843
|
RemoteStore_Restore_Request, RemoteStore_Restore_RequestBody, RemoteStore_Restore_Response, RemoteStore_Restore_ResponseBody,
|
|
812
844
|
SearchPipeline_Get_Request, SearchPipeline_Get_Response, SearchPipeline_Get_ResponseBody,
|
|
813
845
|
SearchPipeline_Delete_Request, SearchPipeline_Delete_Response, SearchPipeline_Delete_ResponseBody,
|
|
@@ -34,7 +34,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
34
34
|
* @param {boolean} [params.preserve_existing=false] - If `true`, existing index settings remain unchanged.
|
|
35
35
|
* @param {string} [params.timeout] - Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
|
|
36
36
|
* @param {string} [params.index] - Comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
|
|
37
|
-
* @param {object} params.body - The
|
|
37
|
+
* @param {object} params.body - The configuration settings for an index.
|
|
38
38
|
*
|
|
39
39
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
40
40
|
* @param {function} [callback] - Callback that handles errors and response
|
|
@@ -30,7 +30,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
30
30
|
* @param {boolean} [params.create=false] - If `true`, the template passed in the body is only used if no existing templates match the same index patterns. If `false`, the simulation uses the template with the highest priority. Note that the template is not permanently added or updated in either case; it is only used for the simulation.
|
|
31
31
|
* @param {string} [params.master_timeout] DEPRECATED - Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.
|
|
32
32
|
* @param {string} [params.name] - Name of the index template to simulate. To test a template configuration before you add it to the cluster, omit this parameter and specify the template configuration in the request body.
|
|
33
|
-
* @param {object} [params.body] -
|
|
33
|
+
* @param {object} [params.body] - The configuration for an index template.
|
|
34
34
|
*
|
|
35
35
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
36
36
|
* @param {function} [callback] - Callback that handles errors and response
|
package/api/ism/addPolicy.js
CHANGED
|
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
25
25
|
* @memberOf API-Ism
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {string} [params.index]
|
|
28
|
+
* @param {string} [params.index]
|
|
29
29
|
* @param {object} [params.body]
|
|
30
30
|
*
|
|
31
31
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
package/api/ism/changePolicy.js
CHANGED
|
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
25
25
|
* @memberOf API-Ism
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {string} [params.index]
|
|
28
|
+
* @param {string} [params.index]
|
|
29
29
|
* @param {object} [params.body]
|
|
30
30
|
*
|
|
31
31
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
package/api/ism/existsPolicy.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* Checks
|
|
22
|
+
* Checks for the existence of a policy.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/im-plugin/ism/api/#get-policy - ism.exists_policy}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Ism
|
package/api/ism/explainPolicy.js
CHANGED
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
const { normalizeArguments, parsePathParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Retrieves the currently applied policy on the specified indexes.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/im-plugin/ism/api/#explain-index - ism.explain_policy}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Ism
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {string} [params.index]
|
|
28
|
+
* @param {string} [params.index]
|
|
29
29
|
* @param {string} [params.body]
|
|
30
30
|
*
|
|
31
31
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
package/api/ism/getPolicies.js
CHANGED
package/api/ism/getPolicy.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Retrieves a specific policy.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/im-plugin/ism/api/#put-policy - ism.get_policy}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Ism
|
package/api/ism/putPolicies.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
const { normalizeArguments, handleMissingParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Creates or updates policies.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/im-plugin/ism/api/#create-policy - ism.put_policies}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Ism
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Refreshes search analyzers in real time.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/im-plugin/refresh-analyzer/ - ism.refresh_search_analyzers}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Ism
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {string} params.index
|
|
28
|
+
* @param {string} params.index
|
|
29
29
|
*
|
|
30
30
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
31
31
|
* @param {function} [callback] - Callback that handles errors and response
|
package/api/ism/removePolicy.js
CHANGED
|
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
25
25
|
* @memberOf API-Ism
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {string} [params.index]
|
|
28
|
+
* @param {string} [params.index]
|
|
29
29
|
*
|
|
30
30
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
31
31
|
* @param {function} [callback] - Callback that handles errors and response
|
package/api/ism/retryIndex.js
CHANGED
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
const { normalizeArguments, parsePathParam } = require('../utils');
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Retries the failed action for an index.
|
|
23
23
|
* <br/> See Also: {@link https://opensearch.org/docs/latest/im-plugin/ism/api/#retry-failed-index - ism.retry_index}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Ism
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {string} [params.index]
|
|
28
|
+
* @param {string} [params.index]
|
|
29
29
|
* @param {object} [params.body]
|
|
30
30
|
*
|
|
31
31
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
package/api/ltr/_api.js
CHANGED
|
@@ -19,8 +19,32 @@
|
|
|
19
19
|
/** @namespace API-Ltr */
|
|
20
20
|
|
|
21
21
|
function LtrApi(bindObj) {
|
|
22
|
+
this.cacheStats = require('./cacheStats').bind(bindObj);
|
|
23
|
+
this.clearCache = require('./clearCache').bind(bindObj);
|
|
24
|
+
this.createDefaultStore = require('./createDefaultStore').bind(bindObj);
|
|
25
|
+
this.createStore = require('./createStore').bind(bindObj);
|
|
26
|
+
this.deleteDefaultStore = require('./deleteDefaultStore').bind(bindObj);
|
|
27
|
+
this.deleteStore = require('./deleteStore').bind(bindObj);
|
|
28
|
+
this.getStore = require('./getStore').bind(bindObj);
|
|
29
|
+
this.listStores = require('./listStores').bind(bindObj);
|
|
22
30
|
this.stats = require('./stats').bind(bindObj);
|
|
23
31
|
|
|
32
|
+
// Deprecated: Use cacheStats instead.
|
|
33
|
+
this.cache_stats = require('./cacheStats').bind(bindObj);
|
|
34
|
+
// Deprecated: Use clearCache instead.
|
|
35
|
+
this.clear_cache = require('./clearCache').bind(bindObj);
|
|
36
|
+
// Deprecated: Use createDefaultStore instead.
|
|
37
|
+
this.create_default_store = require('./createDefaultStore').bind(bindObj);
|
|
38
|
+
// Deprecated: Use createStore instead.
|
|
39
|
+
this.create_store = require('./createStore').bind(bindObj);
|
|
40
|
+
// Deprecated: Use deleteDefaultStore instead.
|
|
41
|
+
this.delete_default_store = require('./deleteDefaultStore').bind(bindObj);
|
|
42
|
+
// Deprecated: Use deleteStore instead.
|
|
43
|
+
this.delete_store = require('./deleteStore').bind(bindObj);
|
|
44
|
+
// Deprecated: Use getStore instead.
|
|
45
|
+
this.get_store = require('./getStore').bind(bindObj);
|
|
46
|
+
// Deprecated: Use listStores instead.
|
|
47
|
+
this.list_stores = require('./listStores').bind(bindObj);
|
|
24
48
|
}
|
|
25
49
|
|
|
26
50
|
module.exports = LtrApi;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 Ltr_Common from '../_types/ltr._common'
|
|
20
|
+
|
|
21
|
+
export type Ltr_CacheStats_Request = Global.Params & Record<string, any>
|
|
22
|
+
|
|
23
|
+
export interface Ltr_CacheStats_Response extends ApiResponse {
|
|
24
|
+
body: Ltr_CacheStats_ResponseBody;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type Ltr_CacheStats_ResponseBody = Ltr_Common.CacheStatsResponse
|
|
28
|
+
|