@opensearch-project/opensearch 3.4.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/api/OpenSearchApi.d.ts +8 -0
  2. package/api/OpenSearchApi.js +2 -0
  3. package/api/_core/exists.d.ts +1 -1
  4. package/api/_core/existsSource.d.ts +1 -1
  5. package/api/_core/ping.d.ts +1 -1
  6. package/api/_types/_common.aggregations.d.ts +143 -71
  7. package/api/_types/_common.d.ts +2 -1
  8. package/api/_types/_common.mapping.d.ts +1 -0
  9. package/api/_types/_common.query_dsl.d.ts +11 -2
  10. package/api/_types/_core.explain.d.ts +2 -2
  11. package/api/_types/cluster.stats.d.ts +1 -0
  12. package/api/_types/flow_framework.common.d.ts +12 -16
  13. package/api/_types/index.d.ts +2 -0
  14. package/api/_types/indices._common.d.ts +1 -0
  15. package/api/_types/insights._common.d.ts +4 -0
  16. package/api/_types/knn._common.d.ts +8 -7
  17. package/api/_types/ltr._common.d.ts +55 -0
  18. package/api/_types/nodes.info.d.ts +2 -2
  19. package/api/_types/nodes.stats.d.ts +22 -13
  20. package/api/_types/security._common.d.ts +5 -0
  21. package/api/_types/snapshot._common.d.ts +38 -38
  22. package/api/cluster/allocationExplain.js +1 -1
  23. package/api/cluster/deleteComponentTemplate.js +3 -3
  24. package/api/cluster/existsComponentTemplate.d.ts +1 -1
  25. package/api/cluster/existsComponentTemplate.js +2 -2
  26. package/api/cluster/getComponentTemplate.js +3 -3
  27. package/api/cluster/getSettings.js +4 -4
  28. package/api/cluster/health.js +4 -4
  29. package/api/cluster/pendingTasks.js +2 -2
  30. package/api/cluster/postVotingConfigExclusions.js +2 -2
  31. package/api/cluster/putComponentTemplate.js +4 -4
  32. package/api/cluster/putDecommissionAwareness.js +1 -1
  33. package/api/cluster/putSettings.js +4 -4
  34. package/api/cluster/putWeightedRouting.js +1 -1
  35. package/api/cluster/reroute.js +4 -4
  36. package/api/cluster/state.js +4 -4
  37. package/api/cluster/stats.js +2 -2
  38. package/api/flowFramework/delete.d.ts +2 -1
  39. package/api/index.d.ts +2 -0
  40. package/api/indices/exists.d.ts +1 -1
  41. package/api/indices/existsAlias.d.ts +1 -1
  42. package/api/indices/existsIndexTemplate.d.ts +1 -1
  43. package/api/indices/existsTemplate.d.ts +1 -1
  44. package/api/ingest/deletePipeline.js +4 -4
  45. package/api/ingest/getPipeline.js +3 -3
  46. package/api/ingest/processorGrok.js +2 -2
  47. package/api/ingest/putPipeline.js +5 -5
  48. package/api/ingest/simulate.js +3 -3
  49. package/api/ism/existsPolicy.d.ts +1 -1
  50. package/api/knn/searchModels.d.ts +4 -4
  51. package/api/ltr/_api.js +26 -0
  52. package/api/ltr/stats.d.ts +33 -0
  53. package/api/ltr/stats.js +51 -0
  54. package/api/replication/autofollowStats.js +1 -1
  55. package/api/replication/createReplicationRule.js +1 -1
  56. package/api/replication/followerStats.js +1 -1
  57. package/api/replication/leaderStats.js +1 -1
  58. package/api/replication/pause.js +2 -2
  59. package/api/replication/resume.js +1 -1
  60. package/api/replication/start.js +2 -2
  61. package/api/replication/status.js +2 -2
  62. package/api/replication/stop.js +2 -2
  63. package/api/replication/updateSettings.js +2 -2
  64. package/api/sm/createPolicy.js +1 -1
  65. package/api/sm/deletePolicy.js +1 -1
  66. package/api/sm/explainPolicy.js +1 -1
  67. package/api/sm/getPolicies.js +5 -5
  68. package/api/sm/getPolicy.js +1 -1
  69. package/api/sm/startPolicy.js +1 -1
  70. package/api/sm/stopPolicy.js +1 -1
  71. package/api/sm/updatePolicy.js +1 -1
  72. package/api/snapshot/cleanupRepository.js +3 -3
  73. package/api/snapshot/clone.js +6 -6
  74. package/api/snapshot/create.js +6 -6
  75. package/api/snapshot/createRepository.js +6 -6
  76. package/api/snapshot/delete.js +3 -3
  77. package/api/snapshot/deleteRepository.js +4 -4
  78. package/api/snapshot/get.js +5 -5
  79. package/api/snapshot/getRepository.js +4 -4
  80. package/api/snapshot/restore.js +5 -5
  81. package/api/snapshot/status.js +4 -4
  82. package/api/snapshot/verifyRepository.js +3 -3
  83. package/api/tasks/cancel.js +5 -5
  84. package/api/tasks/get.js +3 -3
  85. package/api/tasks/list.js +7 -7
  86. package/lib/pool/BaseConnectionPool.js +6 -0
  87. package/package.json +1 -1
@@ -16,9 +16,9 @@
16
16
 
17
17
  import { ApiResponse } from '../../lib/Transport'
18
18
  import * as Common from '../_types/_common'
19
+ import * as Common_QueryDsl from '../_types/_common.query_dsl'
19
20
  import * as Core_Search from '../_types/_core.search'
20
21
  import * as Global from '../_types/_global'
21
- import * as Knn_Common from '../_types/knn._common'
22
22
 
23
23
  export interface Knn_SearchModels_Request extends Global.Params {
24
24
  _source?: string[];
@@ -31,7 +31,7 @@ export interface Knn_SearchModels_Request extends Global.Params {
31
31
  batched_reduce_size?: number;
32
32
  body?: Knn_SearchModels_RequestBody;
33
33
  ccs_minimize_roundtrips?: boolean;
34
- default_operator?: Knn_Common.DefaultOperator;
34
+ default_operator?: Common_QueryDsl.Operator;
35
35
  df?: string;
36
36
  docvalue_fields?: string[];
37
37
  expand_wildcards?: Common.ExpandWildcards;
@@ -48,14 +48,14 @@ export interface Knn_SearchModels_Request extends Global.Params {
48
48
  rest_total_hits_as_int?: boolean;
49
49
  routing?: Common.RoutingInQueryString;
50
50
  scroll?: Common.Duration;
51
- search_type?: Knn_Common.SearchType;
51
+ search_type?: Common.SearchType;
52
52
  seq_no_primary_term?: boolean;
53
53
  size?: number;
54
54
  sort?: string[];
55
55
  stats?: string[];
56
56
  stored_fields?: string[];
57
57
  suggest_field?: string;
58
- suggest_mode?: Knn_Common.SuggestMode;
58
+ suggest_mode?: Common.SuggestMode;
59
59
  suggest_size?: number;
60
60
  suggest_text?: string;
61
61
  terminate_after?: number;
@@ -0,0 +1,26 @@
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
+ /** @namespace API-Ltr */
20
+
21
+ function LtrApi(bindObj) {
22
+ this.stats = require('./stats').bind(bindObj);
23
+
24
+ }
25
+
26
+ module.exports = LtrApi;
@@ -0,0 +1,33 @@
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 Ltr_Common from '../_types/ltr._common'
21
+
22
+ export interface Ltr_Stats_Request extends Global.Params {
23
+ node_id?: string[];
24
+ stat?: 'cache' | 'request_error_count' | 'request_total_count'[];
25
+ timeout?: Common.Duration;
26
+ }
27
+
28
+ export interface Ltr_Stats_Response extends ApiResponse {
29
+ body: Ltr_Stats_ResponseBody;
30
+ }
31
+
32
+ export type Ltr_Stats_ResponseBody = Ltr_Common.Stats
33
+
@@ -0,0 +1,51 @@
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
+ * Provides information about the current status of the LTR plugin.
23
+ * <br/> See Also: {@link undefined - ltr.stats}
24
+ *
25
+ * @memberOf API-Ltr
26
+ *
27
+ * @param {object} [params]
28
+ * @param {string} [params.timeout] - The time in milliseconds to wait for a response.
29
+ * @param {array} [params.node_id] - Comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes.
30
+ * @param {array} [params.stat] - Comma-separated list of stats to retrieve; use `_all` or empty string to retrieve all stats.
31
+ *
32
+ * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
33
+ * @param {function} [callback] - Callback that handles errors and response
34
+ *
35
+ * @returns {{abort: function(), then: function(), catch: function()}|Promise<never>|*}
36
+ */
37
+ function statsFunc(params, options, callback) {
38
+ [params, options, callback] = normalizeArguments(params, options, callback);
39
+
40
+ let { body, node_id, stat, ...querystring } = params;
41
+ node_id = parsePathParam(node_id);
42
+ stat = parsePathParam(stat);
43
+
44
+ const path = ['/_plugins/_ltr', node_id, 'stats', stat].filter(c => c != null).join('/');
45
+ const method = 'GET';
46
+ body = body || '';
47
+
48
+ return this.transport.request({ method, path, querystring, body }, options, callback);
49
+ }
50
+
51
+ module.exports = statsFunc;
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Gets information about auto-follow activity and any replication rules configured on the specified cluster.
22
+ * Retrieves information about any auto-follow activity and any replication rules configured on the specified cluster.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/tuning-your-cluster/replication-plugin/api/#get-auto-follow-stats - replication.autofollow_stats}
24
24
  *
25
25
  * @memberOf API-Replication
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Automatically starts replication on indexes matching a specified pattern.
22
+ * Automatically starts the replication on indexes matching a specified pattern.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/tuning-your-cluster/replication-plugin/api/#create-replication-rule - replication.create_replication_rule}
24
24
  *
25
25
  * @memberOf API-Replication
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Gets information about follower (syncing) indexes on a specified cluster.
22
+ * Retrieves information about any follower (syncing) indexes on a specified cluster.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/tuning-your-cluster/replication-plugin/api/#get-follower-cluster-stats - replication.follower_stats}
24
24
  *
25
25
  * @memberOf API-Replication
@@ -19,7 +19,7 @@
19
19
  const { normalizeArguments } = require('../utils');
20
20
 
21
21
  /**
22
- * Gets information about replicated leader indexes on a specified cluster.
22
+ * Retrieves information about any replicated leader indexes on a specified cluster.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/tuning-your-cluster/replication-plugin/api/#get-leader-cluster-stats - replication.leader_stats}
24
24
  *
25
25
  * @memberOf API-Replication
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Pauses replication of the leader index.
22
+ * Pauses the replication of the leader index.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/tuning-your-cluster/replication-plugin/api/#pause-replication - replication.pause}
24
24
  *
25
25
  * @memberOf API-Replication
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.index - Name of the data stream, index, or index alias to perform bulk actions on.
28
+ * @param {string} params.index - The name of the data stream, index, or index alias to perform bulk actions on.
29
29
  * @param {object} params.body
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Replication
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.index - Name of the data stream, index, or index alias to perform bulk actions on.
28
+ * @param {string} params.index - The name of the data stream, index, or index alias to perform bulk actions on.
29
29
  * @param {object} params.body
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Initiate replication of an index from the leader cluster to the follower cluster.
22
+ * Initiates the replication of an index from the leader cluster to the follower cluster.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/tuning-your-cluster/replication-plugin/api/#start-replication - replication.start}
24
24
  *
25
25
  * @memberOf API-Replication
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.index - Name of the data stream, index, or index alias to perform bulk actions on.
28
+ * @param {string} params.index - The name of the data stream, index, or index alias to perform bulk actions on.
29
29
  * @param {object} params.body
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Gets the status of index replication.
22
+ * Retrieves the the status of an index replication.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/tuning-your-cluster/replication-plugin/api/#get-replication-status - replication.status}
24
24
  *
25
25
  * @memberOf API-Replication
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.index - Name of the data stream, index, or index alias to perform bulk actions on.
28
+ * @param {string} params.index - The name of the data stream, index, or index alias to perform bulk actions on.
29
29
  *
30
30
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
31
31
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Terminates replication and converts the follower index to a standard index.
22
+ * Terminates the replication and converts the follower index to a standard index.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/tuning-your-cluster/replication-plugin/api/#stop-replication - replication.stop}
24
24
  *
25
25
  * @memberOf API-Replication
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.index - Name of the data stream, index, or index alias to perform bulk actions on.
28
+ * @param {string} params.index - The name of the data stream, index, or index alias to perform bulk actions on.
29
29
  * @param {object} params.body
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -19,13 +19,13 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Updates settings on the follower index.
22
+ * Updates any settings on the follower index.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/tuning-your-cluster/replication-plugin/api/#update-settings - replication.update_settings}
24
24
  *
25
25
  * @memberOf API-Replication
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.index - Name of the data stream, index, or index alias to perform bulk actions on.
28
+ * @param {string} params.index - The name of the data stream, index, or index alias to perform bulk actions on.
29
29
  * @param {object} params.body
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Sm
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.policy_name - The name of the snapshot management policy.
28
+ * @param {string} params.policy_name - The name of the snapshot management policy to create.
29
29
  * @param {object} [params.body]
30
30
  *
31
31
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Sm
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.policy_name - The name of the snapshot management policy.
28
+ * @param {string} params.policy_name - The name of the snapshot management policy to delete.
29
29
  *
30
30
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
31
31
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Sm
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.policy_name - The name of the snapshot management policy.
28
+ * @param {string} params.policy_name - The name of the snapshot management policy to explain.
29
29
  *
30
30
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
31
31
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,11 +25,11 @@ const { normalizeArguments } = require('../utils');
25
25
  * @memberOf API-Sm
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {number} [params.from] - The starting index (default: 0)
29
- * @param {string} [params.queryString] - A query string to filter policies.
30
- * @param {number} [params.size] - The number of policies to return.
31
- * @param {string} [params.sortField] - The field to sort on.
32
- * @param {string} [params.sortOrder=asc] - The order of sorting.
28
+ * @param {number} [params.from=0] - The starting index from which to retrieve snapshot management policies.
29
+ * @param {string} [params.queryString] - The query string to filter the returned snapshot management policies.
30
+ * @param {number} [params.size] - The number of snapshot management policies to return.
31
+ * @param {string} [params.sortField] - The name of the field to sort the snapshot management policies by.
32
+ * @param {string} [params.sortOrder=asc] - The order to sort the snapshot management policies.
33
33
  *
34
34
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
35
35
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Sm
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.policy_name - The name of the snapshot management policy.
28
+ * @param {string} params.policy_name - The name of the snapshot management policy to retrieve.
29
29
  *
30
30
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
31
31
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Sm
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.policy_name - The name of the snapshot management policy.
28
+ * @param {string} params.policy_name - The name of the snapshot management policy to start.
29
29
  *
30
30
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
31
31
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,7 +25,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Sm
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} params.policy_name - The name of the snapshot management policy.
28
+ * @param {string} params.policy_name - The name of the snapshot management policy to stop.
29
29
  *
30
30
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
31
31
  * @param {function} [callback] - Callback that handles errors and response
@@ -27,7 +27,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
27
27
  * @param {object} params
28
28
  * @param {number} params.if_primary_term - The primary term of the policy to update.
29
29
  * @param {number} params.if_seq_no - The sequence number of the policy to update.
30
- * @param {string} params.policy_name - The name of the snapshot management policy.
30
+ * @param {string} params.policy_name - The name of the snapshot management policy to update.
31
31
  * @param {object} [params.body]
32
32
  *
33
33
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -19,15 +19,15 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Removes stale data from repository.
22
+ * Removes any stale data from a snapshot repository.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest - snapshot.cleanup_repository}
24
24
  *
25
25
  * @memberOf API-Snapshot
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
29
  * @param {string} [params.master_timeout] DEPRECATED - Period to wait for a connection to the cluster-manager node.
30
- * @param {string} [params.timeout] - Period to wait for a response.
30
+ * @param {string} [params.timeout] - The amount of time to wait for a response.
31
31
  * @param {string} params.repository - Snapshot repository to clean up.
32
32
  *
33
33
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
@@ -19,18 +19,18 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Clones indexes from one snapshot into another snapshot in the same repository.
22
+ * Creates a clone of all or part of a snapshot in the same repository as the original snapshot.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest - snapshot.clone}
24
24
  *
25
25
  * @memberOf API-Snapshot
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
29
  * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
30
- * @param {string} params.repository - A repository name
31
- * @param {string} params.snapshot - The name of the snapshot to clone from
32
- * @param {string} params.target_snapshot - The name of the cloned snapshot to create
33
- * @param {object} params.body - The snapshot clone definition
30
+ * @param {string} params.repository - The name of repository which will contain the snapshots clone.
31
+ * @param {string} params.snapshot - The name of the original snapshot.
32
+ * @param {string} params.target_snapshot - The name of the cloned snapshot.
33
+ * @param {object} params.body - The snapshot clone definition.
34
34
  *
35
35
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
36
36
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,18 +19,18 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Creates a snapshot in a repository.
22
+ * Creates a snapshot within an existing repository.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/snapshots/create-snapshot/ - snapshot.create}
24
24
  *
25
25
  * @memberOf API-Snapshot
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
29
  * @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.
30
- * @param {boolean} [params.wait_for_completion=false] - If `true`, the request returns a response when the snapshot is complete. If `false`, the request returns a response when the snapshot initializes.
31
- * @param {string} params.repository - Repository for the snapshot.
32
- * @param {string} params.snapshot - Name of the snapshot. Must be unique in the repository.
33
- * @param {object} [params.body] - The snapshot definition
30
+ * @param {boolean} [params.wait_for_completion=false] - When `true`, the request returns a response when the snapshot is complete. When `false`, the request returns a response when the snapshot initializes.
31
+ * @param {string} params.repository - The name of the repository where the snapshot will be stored.
32
+ * @param {string} params.snapshot - The name of the snapshot. Must be unique in the repository.
33
+ * @param {object} [params.body] - The snapshot definition.
34
34
  *
35
35
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
36
36
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,18 +19,18 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Creates a repository.
22
+ * Creates a snapshot repository.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/snapshots/create-repository/ - snapshot.create_repository}
24
24
  *
25
25
  * @memberOf API-Snapshot
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
29
  * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
30
- * @param {string} [params.timeout] - Explicit operation timeout
31
- * @param {boolean} [params.verify] - Whether to verify the repository after creation
32
- * @param {string} params.repository - A repository name
33
- * @param {object} params.body - The repository definition
30
+ * @param {string} [params.timeout] - The amount of time to wait for a response.
31
+ * @param {boolean} [params.verify] - When `true`, verifies the creation of the snapshot repository.
32
+ * @param {string} params.repository - The name for the newly registered repository.
33
+ * @param {object} params.body - The repository definition.
34
34
  *
35
35
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
36
36
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,10 +25,10 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Snapshot
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
29
  * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
30
- * @param {string} params.repository - A repository name
31
- * @param {string} params.snapshot - A comma-separated list of snapshot names
30
+ * @param {string} params.repository - The name of the snapshot repository to delete.
31
+ * @param {string} params.snapshot - A comma-separated list of snapshot names to delete from the repository.
32
32
  *
33
33
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
34
34
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,16 +19,16 @@
19
19
  const { normalizeArguments, parsePathParam, handleMissingParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Deletes a repository.
22
+ * Deletes a snapshot repository.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/snapshots/delete-snapshot-repository/ - snapshot.delete_repository}
24
24
  *
25
25
  * @memberOf API-Snapshot
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
29
  * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
30
- * @param {string} [params.timeout] - Explicit operation timeout
31
- * @param {string} params.repository - Name of the snapshot repository to unregister. Wildcard (`*`) patterns are supported.
30
+ * @param {string} [params.timeout] - The amount of time to wait for a response.
31
+ * @param {string} params.repository - The name of the snapshot repository to unregister. Wildcard (`*`) patterns are supported.
32
32
  *
33
33
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
34
34
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,12 +25,12 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Snapshot
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {boolean} [params.ignore_unavailable=false] - If `false`, the request returns an error for any snapshots that are unavailable.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
+ * @param {boolean} [params.ignore_unavailable=false] - When `false`, the request returns an error for any snapshots that are unavailable.
30
30
  * @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.
31
- * @param {boolean} [params.verbose] - If `true`, returns additional information about each snapshot such as the version of OpenSearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.
32
- * @param {string} params.repository - Comma-separated list of snapshot repository names used to limit the request. Wildcard (*) expressions are supported.
33
- * @param {string} params.snapshot - Comma-separated list of snapshot names to retrieve. Also accepts wildcards (`*`). - To get information about all snapshots in a registered repository, use a wildcard (`*`) or `_all`. - To get information about any snapshots that are currently running, use `_current`.
31
+ * @param {boolean} [params.verbose] - When `true`, returns additional information about each snapshot such as the version of OpenSearch which took the snapshot, the start and end times of the snapshot, and the number of shards contained in the snapshot.
32
+ * @param {string} params.repository - A comma-separated list of snapshot repository names used to limit the request. Wildcard (*) expressions are supported.
33
+ * @param {string} params.snapshot - A comma-separated list of snapshot names to retrieve. Also accepts wildcard expressions. (`*`). - To get information about all snapshots in a registered repository, use a wildcard (`*`) or `_all`. - To get information about any snapshots that are currently running, use `_current`.
34
34
  *
35
35
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
36
36
  * @param {function} [callback] - Callback that handles errors and response
@@ -19,16 +19,16 @@
19
19
  const { normalizeArguments, parsePathParam } = require('../utils');
20
20
 
21
21
  /**
22
- * Returns information about a repository.
22
+ * Returns information about a snapshot repository.
23
23
  * <br/> See Also: {@link https://opensearch.org/docs/latest/api-reference/snapshots/get-snapshot-repository/ - snapshot.get_repository}
24
24
  *
25
25
  * @memberOf API-Snapshot
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {boolean} [params.local=false] - Return local information, do not retrieve the state from cluster-manager node.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
+ * @param {boolean} [params.local=false] - Whether to get information from the local node.
30
30
  * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
31
- * @param {string} [params.repository] - A comma-separated list of repository names
31
+ * @param {string} [params.repository] - A comma-separated list of repository names.
32
32
  *
33
33
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
34
34
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,12 +25,12 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Snapshot
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
29
  * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
30
- * @param {boolean} [params.wait_for_completion=false] - Should this request wait until the operation has completed before returning
31
- * @param {string} params.repository - A repository name
32
- * @param {string} params.snapshot - A snapshot name
33
- * @param {object} [params.body] - Details of what to restore
30
+ * @param {boolean} [params.wait_for_completion=false] - -| Whether to return a response after the restore operation has completed. When `false`, the request returns a response when the restore operation initializes. When `true`, the request returns a response when the restore operation completes.
31
+ * @param {string} params.repository - The name of the repository containing the snapshot
32
+ * @param {string} params.snapshot - The name of the snapshot to restore.
33
+ * @param {object} [params.body] - Determines which settings and indexes to restore when restoring a snapshot
34
34
  *
35
35
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
36
36
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,11 +25,11 @@ const { normalizeArguments, parsePathParam } = require('../utils');
25
25
  * @memberOf API-Snapshot
26
26
  *
27
27
  * @param {object} [params]
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
29
- * @param {boolean} [params.ignore_unavailable=false] - Whether to ignore unavailable snapshots, defaults to `false` which means a SnapshotMissingException is thrown
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
+ * @param {boolean} [params.ignore_unavailable=false] - Whether to ignore any unavailable snapshots, When `false`, a `SnapshotMissingException` is thrown.
30
30
  * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
31
- * @param {string} [params.repository] - A repository name
32
- * @param {string} [params.snapshot] - A comma-separated list of snapshot names
31
+ * @param {string} [params.repository] - The name of the repository containing the snapshot.
32
+ * @param {string} [params.snapshot] - A comma-separated list of snapshot names.
33
33
  *
34
34
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
35
35
  * @param {function} [callback] - Callback that handles errors and response
@@ -25,10 +25,10 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
25
25
  * @memberOf API-Snapshot
26
26
  *
27
27
  * @param {object} params
28
- * @param {string} [params.cluster_manager_timeout] - Operation timeout for connection to cluster-manager node.
28
+ * @param {string} [params.cluster_manager_timeout] - The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see [Common parameters](https://opensearch.org/docs/latest/api-reference/common-parameters/#time-units).
29
29
  * @param {string} [params.master_timeout] DEPRECATED - Explicit operation timeout for connection to cluster-manager node
30
- * @param {string} [params.timeout] - Explicit operation timeout
31
- * @param {string} params.repository - A repository name
30
+ * @param {string} [params.timeout] - The amount of time to wait for a response.
31
+ * @param {string} params.repository - The name of the repository containing the snapshot.
32
32
  *
33
33
  * @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
34
34
  * @param {function} [callback] - Callback that handles errors and response