@opensearch-project/opensearch 3.5.0 → 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/exists.d.ts +4 -2
- package/api/_core/existsSource.d.ts +4 -2
- package/api/_core/explain.d.ts +1 -1
- package/api/_core/ping.d.ts +4 -2
- 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.d.ts +4 -2
- 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/exists.d.ts +4 -2
- package/api/indices/existsAlias.d.ts +4 -2
- package/api/indices/existsIndexTemplate.d.ts +4 -2
- package/api/indices/existsTemplate.d.ts +4 -2
- 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.d.ts +4 -2
- 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
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
|
+
|
|
@@ -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 cache statistics for all feature stores.
|
|
23
|
+
* <br/> See Also: {@link undefined - ltr.cache_stats}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ltr
|
|
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 cacheStatsFunc(params, options, callback) {
|
|
34
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
35
|
+
|
|
36
|
+
let { body, ...querystring } = params;
|
|
37
|
+
|
|
38
|
+
const path = '/_ltr/_cachestats';
|
|
39
|
+
const method = 'GET';
|
|
40
|
+
body = body || '';
|
|
41
|
+
|
|
42
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
module.exports = cacheStatsFunc;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 interface Ltr_ClearCache_Request extends Global.Params {
|
|
22
|
+
store?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface Ltr_ClearCache_Response extends ApiResponse {
|
|
26
|
+
body: Ltr_ClearCache_ResponseBody;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Ltr_ClearCache_ResponseBody = Ltr_Common.AcknowledgedResponse
|
|
30
|
+
|
|
@@ -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
|
+
* Clears the store caches.
|
|
23
|
+
* <br/> See Also: {@link undefined - ltr.clear_cache}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ltr
|
|
26
|
+
*
|
|
27
|
+
* @param {object} [params]
|
|
28
|
+
* @param {string} [params.store] - The name of the feature store for which to clear the cache.
|
|
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 clearCacheFunc(params, options, callback) {
|
|
36
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
37
|
+
|
|
38
|
+
let { body, store, ...querystring } = params;
|
|
39
|
+
store = parsePathParam(store);
|
|
40
|
+
|
|
41
|
+
const path = ['/_ltr', store, '_clearcache'].filter(c => c != null).join('/');
|
|
42
|
+
const method = 'POST';
|
|
43
|
+
body = body || '';
|
|
44
|
+
|
|
45
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
module.exports = clearCacheFunc;
|
|
@@ -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_CreateDefaultStore_Request = Global.Params & Record<string, any>
|
|
22
|
+
|
|
23
|
+
export interface Ltr_CreateDefaultStore_Response extends ApiResponse {
|
|
24
|
+
body: Ltr_CreateDefaultStore_ResponseBody;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type Ltr_CreateDefaultStore_ResponseBody = Ltr_Common.AcknowledgedResponse
|
|
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
|
+
* Creates the default feature store.
|
|
23
|
+
* <br/> See Also: {@link undefined - ltr.create_default_store}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ltr
|
|
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 createDefaultStoreFunc(params, options, callback) {
|
|
34
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
35
|
+
|
|
36
|
+
let { body, ...querystring } = params;
|
|
37
|
+
|
|
38
|
+
const path = '/_ltr';
|
|
39
|
+
const method = 'PUT';
|
|
40
|
+
body = body || '';
|
|
41
|
+
|
|
42
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
module.exports = createDefaultStoreFunc;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 interface Ltr_CreateStore_Request extends Global.Params {
|
|
22
|
+
store: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface Ltr_CreateStore_Response extends ApiResponse {
|
|
26
|
+
body: Ltr_CreateStore_ResponseBody;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Ltr_CreateStore_ResponseBody = Ltr_Common.AcknowledgedResponse
|
|
30
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
* Creates a new feature store with the specified name.
|
|
23
|
+
* <br/> See Also: {@link undefined - ltr.create_store}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ltr
|
|
26
|
+
*
|
|
27
|
+
* @param {object} params
|
|
28
|
+
* @param {string} params.store - The name of the feature store.
|
|
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 createStoreFunc(params, options, callback) {
|
|
36
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
37
|
+
if (params.store == null) return handleMissingParam('store', this, callback);
|
|
38
|
+
|
|
39
|
+
let { body, store, ...querystring } = params;
|
|
40
|
+
store = parsePathParam(store);
|
|
41
|
+
|
|
42
|
+
const path = '/_ltr/' + store;
|
|
43
|
+
const method = 'PUT';
|
|
44
|
+
body = body || '';
|
|
45
|
+
|
|
46
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
module.exports = createStoreFunc;
|
|
@@ -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_DeleteDefaultStore_Request = Global.Params & Record<string, any>
|
|
22
|
+
|
|
23
|
+
export interface Ltr_DeleteDefaultStore_Response extends ApiResponse {
|
|
24
|
+
body: Ltr_DeleteDefaultStore_ResponseBody;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type Ltr_DeleteDefaultStore_ResponseBody = Ltr_Common.AcknowledgedResponse
|
|
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
|
+
* Deletes the default feature store.
|
|
23
|
+
* <br/> See Also: {@link undefined - ltr.delete_default_store}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ltr
|
|
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 deleteDefaultStoreFunc(params, options, callback) {
|
|
34
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
35
|
+
|
|
36
|
+
let { body, ...querystring } = params;
|
|
37
|
+
|
|
38
|
+
const path = '/_ltr';
|
|
39
|
+
const method = 'DELETE';
|
|
40
|
+
body = body || '';
|
|
41
|
+
|
|
42
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
module.exports = deleteDefaultStoreFunc;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 interface Ltr_DeleteStore_Request extends Global.Params {
|
|
22
|
+
store: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface Ltr_DeleteStore_Response extends ApiResponse {
|
|
26
|
+
body: Ltr_DeleteStore_ResponseBody;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Ltr_DeleteStore_ResponseBody = Ltr_Common.AcknowledgedResponse
|
|
30
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
* Deletes a feature store with the specified name.
|
|
23
|
+
* <br/> See Also: {@link undefined - ltr.delete_store}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ltr
|
|
26
|
+
*
|
|
27
|
+
* @param {object} params
|
|
28
|
+
* @param {string} params.store - The name of the feature store.
|
|
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 deleteStoreFunc(params, options, callback) {
|
|
36
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
37
|
+
if (params.store == null) return handleMissingParam('store', this, callback);
|
|
38
|
+
|
|
39
|
+
let { body, store, ...querystring } = params;
|
|
40
|
+
store = parsePathParam(store);
|
|
41
|
+
|
|
42
|
+
const path = '/_ltr/' + store;
|
|
43
|
+
const method = 'DELETE';
|
|
44
|
+
body = body || '';
|
|
45
|
+
|
|
46
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
module.exports = deleteStoreFunc;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 interface Ltr_GetStore_Request extends Global.Params {
|
|
22
|
+
store: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface Ltr_GetStore_Response extends ApiResponse {
|
|
26
|
+
body: Ltr_GetStore_ResponseBody;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Ltr_GetStore_ResponseBody = Ltr_Common.StoreExistsResponse
|
|
30
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
* Checks if a store exists.
|
|
23
|
+
* <br/> See Also: {@link undefined - ltr.get_store}
|
|
24
|
+
*
|
|
25
|
+
* @memberOf API-Ltr
|
|
26
|
+
*
|
|
27
|
+
* @param {object} params
|
|
28
|
+
* @param {string} params.store - The name of the feature store.
|
|
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 getStoreFunc(params, options, callback) {
|
|
36
|
+
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
37
|
+
if (params.store == null) return handleMissingParam('store', this, callback);
|
|
38
|
+
|
|
39
|
+
let { body, store, ...querystring } = params;
|
|
40
|
+
store = parsePathParam(store);
|
|
41
|
+
|
|
42
|
+
const path = '/_ltr/' + store;
|
|
43
|
+
const method = 'GET';
|
|
44
|
+
body = body || '';
|
|
45
|
+
|
|
46
|
+
return this.transport.request({ method, path, querystring, body }, options, callback);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
module.exports = getStoreFunc;
|
|
@@ -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_ListStores_Request = Global.Params & Record<string, any>
|
|
22
|
+
|
|
23
|
+
export interface Ltr_ListStores_Response extends ApiResponse {
|
|
24
|
+
body: Ltr_ListStores_ResponseBody;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type Ltr_ListStores_ResponseBody = Ltr_Common.ListStoresResponse
|
|
28
|
+
|