Skip to content

Commit 090e55f

Browse files
dblockgithub-actions[bot]
authored andcommitted
Updated opensearch-ruby to reflect the latest OpenSearch API spec (2025-02-23)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 3f6b256 commit 090e55f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+82
-82
lines changed

lib/opensearch/api/actions/cluster/health.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module Actions
1818
# @option args [String] :awareness_attribute The name of the awareness attribute for which to return the cluster health status (for example, `zone`). Applicable only if `level` is set to `awareness_attributes`.
1919
# @option args [String] :cluster_manager_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.
2020
# @option args [Enumerable<String>, String] :expand_wildcards Specifies the type of index that wildcard expressions can match. Supports comma-separated values.
21-
# @option args [String] :level (default: cluster)
21+
# @option args [String] :level (default: cluster) Controls the amount of detail included in the cluster health response.
2222
# @option args [Boolean] :local Whether to return information from the local node only instead of from the cluster manager node.
2323
# @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.
2424
# @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.

lib/opensearch/api/actions/cluster/put_component_template.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module Cluster
1515
module Actions
1616
# Creates or updates a component template.
1717
#
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`; `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.
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`; `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.
1919
# @option args [String] :cluster_manager_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.
2020
# @option args [Boolean] :create When `true`, this request cannot replace or update existing component templates.
2121
# @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.

lib/opensearch/api/actions/delete_by_query_rethrottle.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module Root
1515
module Actions
1616
# Changes the number of requests per second for a particular Delete By Query operation.
1717
#
18-
# @option args [Float, String] :task_id *Required* The ID for the task.
18+
# @option args [String] :task_id *Required* The ID for the task.
1919
# @option args [Float] :requests_per_second The throttle for this request in sub-requests per second.
2020
def delete_by_query_rethrottle(args = {})
2121
args = Utils.clone_and_normalize_arguments(args)

lib/opensearch/api/actions/security/authinfo.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ module OpenSearch
1313
module API
1414
module Security
1515
module Actions
16-
# Returns the authentication information.
16+
# Returns or updates authentication information for the currently authenticated user.
1717
#
18-
# @option args [String] :auth_type The type of current authentication request.
19-
# @option args [Boolean] :verbose Indicates whether a verbose response should be returned.
18+
# @option args [String] :auth_type The type of the current authentication request.
19+
# @option args [Boolean] :verbose Whether to return a verbose response.
2020
def authinfo(args = {})
2121
args = Utils.clone_and_normalize_arguments(args)
2222
headers = args.delete('headers') || {}

lib/opensearch/api/actions/security/authtoken.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module OpenSearch
1313
module API
1414
module Security
1515
module Actions
16-
# Returns the authorization token.
16+
# Returns the authorization token for the current user.
1717
#
1818
def authtoken(args = {})
1919
args = Utils.clone_and_normalize_arguments(args)

lib/opensearch/api/actions/security/config_upgrade_check.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module OpenSearch
1313
module API
1414
module Security
1515
module Actions
16-
# Check whether or not an upgrade can be performed and what resources can be updated.
16+
# Checks whether or not an upgrade can be performed and which security resources can be updated.
1717
#
1818
def config_upgrade_check(args = {})
1919
args = Utils.clone_and_normalize_arguments(args)

lib/opensearch/api/actions/security/config_upgrade_perform.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module OpenSearch
1313
module API
1414
module Security
1515
module Actions
16-
# Helps cluster operator upgrade missing defaults and stale default definitions.
16+
# Assists the cluster operator with upgrading missing default values and stale default definitions.
1717
#
1818
# @option args [Hash] :body
1919
def config_upgrade_perform(args = {})

lib/opensearch/api/actions/security/create_allowlist.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module OpenSearch
1313
module API
1414
module Security
1515
module Actions
16-
# Creates or replaces the permitted APIs. Accessible using Super Admin certificate or REST API permission.
16+
# Creates or replaces APIs permitted for users on the allow list. Requires a super admin certificate or REST API permissions.
1717
#
1818
# @option args [Hash] :body *Required*
1919
def create_allowlist(args = {})

lib/opensearch/api/actions/security/create_role.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module Security
1515
module Actions
1616
# Creates or replaces the specified role.
1717
#
18-
# @option args [String] :role *Required* The name of the role to be created.
18+
# @option args [String] :role *Required* The name of the role to create.
1919
# @option args [Hash] :body *Required*
2020
def create_role(args = {})
2121
args = Utils.clone_and_normalize_arguments(args)

lib/opensearch/api/actions/security/create_role_mapping.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module Security
1515
module Actions
1616
# Creates or replaces the specified role mapping.
1717
#
18-
# @option args [String] :role *Required* The name of the role to create a role mapping for.
18+
# @option args [String] :role *Required* The name of the role for which to create a role mapping.
1919
# @option args [Hash] :body *Required*
2020
def create_role_mapping(args = {})
2121
args = Utils.clone_and_normalize_arguments(args)

0 commit comments

Comments
 (0)