-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update comments around deprecated and inclusive naming
Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
- Loading branch information
1 parent
d0056eb
commit d210ca4
Showing
81 changed files
with
258 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
opensearch-api/lib/opensearch/api/actions/cat/cluster_manager.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# The OpenSearch Contributors require contributions made to | ||
# this file be licensed under the Apache-2.0 license or a | ||
# compatible open source license. | ||
# | ||
# Modifications Copyright OpenSearch Contributors. See | ||
# GitHub history for details. | ||
|
||
module OpenSearch | ||
module API | ||
module Cat | ||
module Actions | ||
# Returns information about the cluster_manager node. | ||
# | ||
# @option arguments [String] :format a short version of the Accept header, e.g. json, yaml | ||
# @option arguments [Boolean] :local Return local information, do not retrieve the state from cluster_manager node (default: false) | ||
# @option arguments [Time] :cluster_manager_timeout Explicit operation timeout for connection to cluster_manager node | ||
# @option arguments [List] :h Comma-separated list of column names to display | ||
# @option arguments [Boolean] :help Return help information | ||
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by | ||
# @option arguments [Boolean] :v Verbose mode. Display column headers | ||
# @option arguments [Hash] :headers Custom HTTP headers | ||
# | ||
# | ||
def cluster_manager(arguments = {}) | ||
headers = arguments.delete(:headers) || {} | ||
|
||
arguments = arguments.clone | ||
|
||
method = OpenSearch::API::HTTP_GET | ||
path = '_cat/cluster_manager' | ||
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__) | ||
|
||
body = nil | ||
perform_request(method, path, params, body, headers).body | ||
end | ||
|
||
# Register this action with its valid params when the module is loaded. | ||
# | ||
# @since 6.2.0 | ||
ParamsRegistry.register(:cluster_manager, %i[ | ||
format | ||
local | ||
cluster_manager_timeout | ||
h | ||
help | ||
s | ||
v | ||
].freeze) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.