opensearch-ruby 4.0.0.pre.beta.3 → 4.0.0.pre.beta.4
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/opensearch/api/actions/cluster/delete_component_template.rb +2 -2
- data/lib/opensearch/api/actions/cluster/exists_component_template.rb +1 -1
- data/lib/opensearch/api/actions/cluster/get_component_template.rb +1 -1
- data/lib/opensearch/api/actions/cluster/get_settings.rb +2 -2
- data/lib/opensearch/api/actions/cluster/health.rb +1 -1
- data/lib/opensearch/api/actions/cluster/pending_tasks.rb +1 -1
- data/lib/opensearch/api/actions/cluster/put_component_template.rb +2 -2
- data/lib/opensearch/api/actions/cluster/put_settings.rb +2 -2
- data/lib/opensearch/api/actions/cluster/reroute.rb +2 -2
- data/lib/opensearch/api/actions/cluster/state.rb +1 -1
- data/lib/opensearch/api/actions/replication/autofollow_stats.rb +1 -1
- data/lib/opensearch/api/actions/replication/create_replication_rule.rb +1 -1
- data/lib/opensearch/api/actions/replication/follower_stats.rb +1 -1
- data/lib/opensearch/api/actions/replication/leader_stats.rb +1 -1
- data/lib/opensearch/api/actions/replication/pause.rb +2 -2
- data/lib/opensearch/api/actions/replication/resume.rb +1 -1
- data/lib/opensearch/api/actions/replication/start.rb +2 -2
- data/lib/opensearch/api/actions/replication/status.rb +2 -2
- data/lib/opensearch/api/actions/replication/stop.rb +2 -2
- data/lib/opensearch/api/actions/replication/update_settings.rb +2 -2
- data/lib/opensearch/api/actions/sm/create_policy.rb +1 -1
- data/lib/opensearch/api/actions/sm/delete_policy.rb +1 -1
- data/lib/opensearch/api/actions/sm/explain_policy.rb +1 -1
- data/lib/opensearch/api/actions/sm/get_policies.rb +4 -4
- data/lib/opensearch/api/actions/sm/get_policy.rb +1 -1
- data/lib/opensearch/api/actions/sm/start_policy.rb +1 -1
- data/lib/opensearch/api/actions/sm/stop_policy.rb +1 -1
- data/lib/opensearch/api/actions/sm/update_policy.rb +1 -1
- data/lib/opensearch/transport/client.rb +0 -4
- data/lib/opensearch/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 042f372ee8559ded88873a96cba1bb5f635867e12f51e79dfc15d226df27249b
|
4
|
+
data.tar.gz: 04fe73ce9dc643661f0834776736ec0a50cb816b4c25fa350a4d7e5947513301
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d03ac4de4e5cace0d3896a9441e6a0d86f5da3b56cf87e9e101e1a9de472ce6c0e23d2e9ae63a4227eb975d349a410ac14c091c98a8fc2da2e17e303a6c08778
|
7
|
+
data.tar.gz: 5a98a0b9bab00c0783485cd7885de1a7abc79e8ef8bb3e6daf22c927d2761cf96ce37346a5576f96a750c720f6e392a34a5cf72c13f3e8c6f478051458c18b91
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -17,8 +17,8 @@ module OpenSearch
|
|
17
17
|
#
|
18
18
|
# @option args [String] :name *Required* The name of the component template to delete. Supports wildcard (*) expressions.
|
19
19
|
# @option args [String] :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).
|
20
|
-
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
21
|
-
# @option args [String] :timeout A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
20
|
+
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
21
|
+
# @option args [String] :timeout A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
22
22
|
def delete_component_template(args = {})
|
23
23
|
args = Utils.clone_and_normalize_arguments(args)
|
24
24
|
raise ArgumentError, "Required argument 'name' missing" if args['name'].nil?
|
@@ -18,7 +18,7 @@ module OpenSearch
|
|
18
18
|
# @option args [String] :name *Required* The name of the component template. Wildcard (*) expressions are supported.
|
19
19
|
# @option args [String] :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).
|
20
20
|
# @option args [Boolean] :local When `true`, the request retrieves information from the local node only. When `false, information is retrieved from the cluster manager node.
|
21
|
-
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
21
|
+
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
22
22
|
def exists_component_template(args = {})
|
23
23
|
args = Utils.clone_and_normalize_arguments(args)
|
24
24
|
raise ArgumentError, "Required argument 'name' missing" if args['name'].nil?
|
@@ -18,7 +18,7 @@ module OpenSearch
|
|
18
18
|
# @option args [String] :cluster_manager_timeout (default: 30s) 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).
|
19
19
|
# @option args [Boolean] :flat_settings Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings. For example, the flat form of `"cluster": { "max_shards_per_node": 500 }` is `"cluster.max_shards_per_node": "500"`.
|
20
20
|
# @option args [Boolean] :local When `true`, the request retrieves information from the local node only. When `false`, information is retrieved from the cluster manager node.
|
21
|
-
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
21
|
+
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
22
22
|
# @option args [String] :name The name of the component template to retrieve. Wildcard (`*`) expressions are supported.
|
23
23
|
def get_component_template(args = {})
|
24
24
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -18,8 +18,8 @@ module OpenSearch
|
|
18
18
|
# @option args [String] :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).
|
19
19
|
# @option args [Boolean] :flat_settings Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings. For example, the flat form of `"cluster": { "max_shards_per_node": 500 }` is `"cluster.max_shards_per_node": "500"`.
|
20
20
|
# @option args [Boolean] :include_defaults When `true`, returns default cluster settings from the local node.
|
21
|
-
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
22
|
-
# @option args [String] :timeout A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
21
|
+
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
22
|
+
# @option args [String] :timeout A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
23
23
|
def get_settings(args = {})
|
24
24
|
args = Utils.clone_and_normalize_arguments(args)
|
25
25
|
headers = args.delete('headers') || {}
|
@@ -20,7 +20,7 @@ module OpenSearch
|
|
20
20
|
# @option args [Enumerable<String>, String] :expand_wildcards (default: open) Specifies the type of index that wildcard expressions can match. Supports comma-separated values.
|
21
21
|
# @option args [String] :level (default: cluster) Controls the amount of detail included in the cluster health response.
|
22
22
|
# @option args [Boolean] :local Whether to return information from the local node only instead of from the cluster manager node.
|
23
|
-
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
23
|
+
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
24
24
|
# @option args [String] :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).
|
25
25
|
# @option args [Integer, String] :wait_for_active_shards (default: 0) Waits until the specified number of shards is active before returning a response. Use `all` for all shards.
|
26
26
|
# @option args [String] :wait_for_events Waits until all currently queued events with the given priority are processed.
|
@@ -18,7 +18,7 @@ module OpenSearch
|
|
18
18
|
#
|
19
19
|
# @option args [String] :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).
|
20
20
|
# @option args [Boolean] :local When `true`, the request retrieves information from the local node only. When `false`, information is retrieved from the cluster manager node.
|
21
|
-
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
21
|
+
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
22
22
|
def pending_tasks(args = {})
|
23
23
|
args = Utils.clone_and_normalize_arguments(args)
|
24
24
|
headers = args.delete('headers') || {}
|
@@ -18,8 +18,8 @@ module OpenSearch
|
|
18
18
|
# @option args [String] :name *Required* The name of the component template to create. OpenSearch includes the following built-in component templates: `logs-mappings`, `logs-settings`, `metrics-mappings`, `metrics-settings`, `synthetics-mapping`, and `synthetics-settings`. OpenSearch uses these templates to configure backing indexes for its data streams. If you want to overwrite one of these templates, set the replacement template `version` to a higher value than the current version. If you want to disable all built-in component and index templates, set `stack.templates.enabled` to `false` using the [Cluster Update Settings API](https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/).
|
19
19
|
# @option args [String] :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).
|
20
20
|
# @option args [Boolean] :create When `true`, this request cannot replace or update existing component templates.
|
21
|
-
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
22
|
-
# @option args [String] :timeout A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
21
|
+
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
22
|
+
# @option args [String] :timeout A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
23
23
|
# @option args [Hash] :body *Required* The template definition.
|
24
24
|
def put_component_template(args = {})
|
25
25
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -17,8 +17,8 @@ module OpenSearch
|
|
17
17
|
#
|
18
18
|
# @option args [String] :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).
|
19
19
|
# @option args [Boolean] :flat_settings Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings. For example, the flat form of `"cluster": { "max_shards_per_node": 500 }` is `"cluster.max_shards_per_node": "500"`.
|
20
|
-
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
21
|
-
# @option args [String] :timeout A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
20
|
+
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
21
|
+
# @option args [String] :timeout A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
22
22
|
# @option args [Hash] :body *Required* The cluster settings to update.
|
23
23
|
def put_settings(args = {})
|
24
24
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -18,10 +18,10 @@ module OpenSearch
|
|
18
18
|
# @option args [String] :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).
|
19
19
|
# @option args [Boolean] :dry_run When `true`, the request simulates the operation and returns the resulting state.
|
20
20
|
# @option args [Boolean] :explain When `true`, the response contains an explanation of why reroute certain commands can or cannot be executed.
|
21
|
-
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
21
|
+
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
22
22
|
# @option args [Enumerable<String>, String] :metric Limits the information returned to the specified metrics.
|
23
23
|
# @option args [Boolean] :retry_failed When `true`, retries shard allocation if it was blocked because of too many subsequent failures.
|
24
|
-
# @option args [String] :timeout A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
24
|
+
# @option args [String] :timeout A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
25
25
|
# @option args [Hash] :body The definition of `commands` to perform (`move`, `cancel`, `allocate`)
|
26
26
|
def reroute(args = {})
|
27
27
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -21,7 +21,7 @@ module OpenSearch
|
|
21
21
|
# @option args [Boolean] :flat_settings Whether to return settings in the flat form, which can improve readability, especially for heavily nested settings. For example, the flat form of `"cluster": { "max_shards_per_node": 500 }` is `"cluster.max_shards_per_node": "500"`.
|
22
22
|
# @option args [Boolean] :ignore_unavailable Whether the specified concrete indexes should be ignored when unavailable (missing or closed).
|
23
23
|
# @option args [Boolean] :local Whether to return information from the local node only instead of from the cluster manager node.
|
24
|
-
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts
|
24
|
+
# @option args [String] :master_timeout DEPRECATED A duration. Units can be `nanos`, `micros`, `ms` (milliseconds), `s` (seconds), `m` (minutes), `h` (hours) and `d` (days). Also accepts `0` without a unit and `-1` to indicate an unspecified value.
|
25
25
|
# @option args [Integer] :wait_for_metadata_version Wait for the metadata version to be equal or greater than the specified metadata version.
|
26
26
|
# @option args [String] :wait_for_timeout The maximum time to wait for `wait_for_metadata_version` before timing out.
|
27
27
|
# @option args [Enumerable<String>] :metric Limits the information returned to only the [specified metric groups](https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/#metric-groups).
|
@@ -13,7 +13,7 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Replication
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Retrieves information about any auto-follow activity and any replication rules configured on the specified cluster.
|
17
17
|
#
|
18
18
|
def autofollow_stats(args = {})
|
19
19
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -13,7 +13,7 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Replication
|
15
15
|
module Actions
|
16
|
-
# Automatically starts replication on indexes matching a specified pattern.
|
16
|
+
# Automatically starts the replication on indexes matching a specified pattern.
|
17
17
|
#
|
18
18
|
# @option args [Hash] :body *Required*
|
19
19
|
def create_replication_rule(args = {})
|
@@ -13,7 +13,7 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Replication
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Retrieves information about any follower (syncing) indexes on a specified cluster.
|
17
17
|
#
|
18
18
|
def follower_stats(args = {})
|
19
19
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -13,7 +13,7 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Replication
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Retrieves information about any replicated leader indexes on a specified cluster.
|
17
17
|
#
|
18
18
|
def leader_stats(args = {})
|
19
19
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -13,9 +13,9 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Replication
|
15
15
|
module Actions
|
16
|
-
# Pauses replication of the leader index.
|
16
|
+
# Pauses the replication of the leader index.
|
17
17
|
#
|
18
|
-
# @option args [String] :index *Required*
|
18
|
+
# @option args [String] :index *Required* The name of the data stream, index, or index alias to perform bulk actions on.
|
19
19
|
# @option args [Hash] :body *Required*
|
20
20
|
def pause(args = {})
|
21
21
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -15,7 +15,7 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Resumes replication of the leader index.
|
17
17
|
#
|
18
|
-
# @option args [String] :index *Required*
|
18
|
+
# @option args [String] :index *Required* The name of the data stream, index, or index alias to perform bulk actions on.
|
19
19
|
# @option args [Hash] :body *Required*
|
20
20
|
def resume(args = {})
|
21
21
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -13,9 +13,9 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Replication
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Initiates the replication of an index from the leader cluster to the follower cluster.
|
17
17
|
#
|
18
|
-
# @option args [String] :index *Required*
|
18
|
+
# @option args [String] :index *Required* The name of the data stream, index, or index alias to perform bulk actions on.
|
19
19
|
# @option args [Hash] :body *Required*
|
20
20
|
def start(args = {})
|
21
21
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -13,9 +13,9 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Replication
|
15
15
|
module Actions
|
16
|
-
#
|
16
|
+
# Retrieves the the status of an index replication.
|
17
17
|
#
|
18
|
-
# @option args [String] :index *Required*
|
18
|
+
# @option args [String] :index *Required* The name of the data stream, index, or index alias to perform bulk actions on.
|
19
19
|
def status(args = {})
|
20
20
|
args = Utils.clone_and_normalize_arguments(args)
|
21
21
|
raise ArgumentError, "Required argument 'index' missing" if args['index'].nil?
|
@@ -13,9 +13,9 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Replication
|
15
15
|
module Actions
|
16
|
-
# Terminates replication and converts the follower index to a standard index.
|
16
|
+
# Terminates the replication and converts the follower index to a standard index.
|
17
17
|
#
|
18
|
-
# @option args [String] :index *Required*
|
18
|
+
# @option args [String] :index *Required* The name of the data stream, index, or index alias to perform bulk actions on.
|
19
19
|
# @option args [Hash] :body *Required*
|
20
20
|
def stop(args = {})
|
21
21
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -13,9 +13,9 @@ module OpenSearch
|
|
13
13
|
module API
|
14
14
|
module Replication
|
15
15
|
module Actions
|
16
|
-
# Updates settings on the follower index.
|
16
|
+
# Updates any settings on the follower index.
|
17
17
|
#
|
18
|
-
# @option args [String] :index *Required*
|
18
|
+
# @option args [String] :index *Required* The name of the data stream, index, or index alias to perform bulk actions on.
|
19
19
|
# @option args [Hash] :body *Required*
|
20
20
|
def update_settings(args = {})
|
21
21
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -15,7 +15,7 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Creates a snapshot management policy.
|
17
17
|
#
|
18
|
-
# @option args [String] :policy_name *Required* The snapshot management policy
|
18
|
+
# @option args [String] :policy_name *Required* The name of the snapshot management policy to create.
|
19
19
|
# @option args [Hash] :body
|
20
20
|
def create_policy(args = {})
|
21
21
|
args = Utils.clone_and_normalize_arguments(args)
|
@@ -15,7 +15,7 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Deletes a snapshot management policy.
|
17
17
|
#
|
18
|
-
# @option args [String] :policy_name *Required* The snapshot management policy
|
18
|
+
# @option args [String] :policy_name *Required* The name of the snapshot management policy to delete.
|
19
19
|
def delete_policy(args = {})
|
20
20
|
args = Utils.clone_and_normalize_arguments(args)
|
21
21
|
raise ArgumentError, "Required argument 'policy_name' missing" if args['policy_name'].nil?
|
@@ -15,7 +15,7 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Explains the state of the snapshot management policy.
|
17
17
|
#
|
18
|
-
# @option args [String] :policy_name *Required* The snapshot management policy
|
18
|
+
# @option args [String] :policy_name *Required* The name of the snapshot management policy to explain.
|
19
19
|
def explain_policy(args = {})
|
20
20
|
args = Utils.clone_and_normalize_arguments(args)
|
21
21
|
raise ArgumentError, "Required argument 'policy_name' missing" if args['policy_name'].nil?
|
@@ -15,11 +15,11 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Retrieves all snapshot management policies with optional pagination and filtering.
|
17
17
|
#
|
18
|
-
# @option args [Integer] :from (default: 0) The index to retrieve snapshot management policies
|
19
|
-
# @option args [String] :queryString
|
18
|
+
# @option args [Integer] :from (default: 0) The starting index from which to retrieve snapshot management policies.
|
19
|
+
# @option args [String] :queryString The query string to filter the returned snapshot management policies.
|
20
20
|
# @option args [Integer] :size The number of snapshot management policies to return.
|
21
|
-
# @option args [String] :sortField The name of the
|
22
|
-
# @option args [String] :sortOrder (default: asc) The order to sort the snapshot management
|
21
|
+
# @option args [String] :sortField The name of the field to sort the snapshot management policies by.
|
22
|
+
# @option args [String] :sortOrder (default: asc) The order to sort the snapshot management policies.
|
23
23
|
def get_policies(args = {})
|
24
24
|
args = Utils.clone_and_normalize_arguments(args)
|
25
25
|
headers = args.delete('headers') || {}
|
@@ -15,7 +15,7 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Retrieves a specific snapshot management policy by name.
|
17
17
|
#
|
18
|
-
# @option args [String] :policy_name *Required* The snapshot management
|
18
|
+
# @option args [String] :policy_name *Required* The name of the snapshot management policy to retrieve.
|
19
19
|
def get_policy(args = {})
|
20
20
|
args = Utils.clone_and_normalize_arguments(args)
|
21
21
|
raise ArgumentError, "Required argument 'policy_name' missing" if args['policy_name'].nil?
|
@@ -15,7 +15,7 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Starts a snapshot management policy.
|
17
17
|
#
|
18
|
-
# @option args [String] :policy_name *Required* The snapshot management policy
|
18
|
+
# @option args [String] :policy_name *Required* The name of the snapshot management policy to start.
|
19
19
|
def start_policy(args = {})
|
20
20
|
args = Utils.clone_and_normalize_arguments(args)
|
21
21
|
raise ArgumentError, "Required argument 'policy_name' missing" if args['policy_name'].nil?
|
@@ -15,7 +15,7 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Stops a snapshot management policy.
|
17
17
|
#
|
18
|
-
# @option args [String] :policy_name *Required* The snapshot management policy
|
18
|
+
# @option args [String] :policy_name *Required* The name of the snapshot management policy to stop.
|
19
19
|
def stop_policy(args = {})
|
20
20
|
args = Utils.clone_and_normalize_arguments(args)
|
21
21
|
raise ArgumentError, "Required argument 'policy_name' missing" if args['policy_name'].nil?
|
@@ -15,7 +15,7 @@ module OpenSearch
|
|
15
15
|
module Actions
|
16
16
|
# Updates an existing snapshot management policy. Requires `if_seq_no` and `if_primary_term`.
|
17
17
|
#
|
18
|
-
# @option args [String] :policy_name *Required* The snapshot management policy
|
18
|
+
# @option args [String] :policy_name *Required* The name of the snapshot management policy to update.
|
19
19
|
# @option args [Integer] :if_primary_term *Required* The primary term of the policy to update.
|
20
20
|
# @option args [Integer] :if_seq_no *Required* The sequence number of the policy to update.
|
21
21
|
# @option args [Hash] :body
|
@@ -188,10 +188,6 @@ module OpenSearch
|
|
188
188
|
# Performs a request through delegation to {#transport}.
|
189
189
|
def perform_request(method, path, params = {}, body = nil, headers = {})
|
190
190
|
method = @send_get_body_as if method == 'GET' && body
|
191
|
-
if (opaque_id = params.delete('opaque_id'))
|
192
|
-
opaque_id = @opaque_id_prefix ? "#{@opaque_id_prefix}#{opaque_id}" : opaque_id
|
193
|
-
headers.merge!('X-Opaque-Id' => opaque_id)
|
194
|
-
end
|
195
191
|
if @options[:request_signer]
|
196
192
|
connection = transport.get_connection
|
197
193
|
headers = @options[:request_signer].sign_request(
|
data/lib/opensearch/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opensearch-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.pre.beta.
|
4
|
+
version: 4.0.0.pre.beta.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
m0rB25J1sO2yjlalRdBoV5p7OKaWG4CGMr+q6vCC2za7yrtZiYOOv+KpWmheTwds
|
32
32
|
P1nbdIL2eAXGfNU3cbtYisS1sSYi7VSkS52pVk8Jgtw=
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2025-
|
34
|
+
date: 2025-04-18 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: faraday
|
metadata.gz.sig
CHANGED
Binary file
|