Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-generated code for main #2379

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ module Actions
# Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
#
# @option arguments [String] :name the name of the autoscaling policy
# @option arguments [Time] :master_timeout Timeout for processing on master node
# @option arguments [Time] :timeout Timeout for acknowledgement of update from all nodes in cluster
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html
Expand All @@ -48,7 +50,7 @@ def delete_autoscaling_policy(arguments = {})

method = Elasticsearch::API::HTTP_DELETE
path = "_autoscaling/policy/#{Utils.__listify(_name)}"
params = {}
params = Utils.process_params(arguments)

Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ module Autoscaling
module Actions
# Gets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
#
# @option arguments [Time] :master_timeout Timeout for processing on master node
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html
Expand All @@ -38,7 +39,7 @@ def get_autoscaling_capacity(arguments = {})

method = Elasticsearch::API::HTTP_GET
path = '_autoscaling/capacity'
params = {}
params = Utils.process_params(arguments)

Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module Actions
# Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
#
# @option arguments [String] :name the name of the autoscaling policy
# @option arguments [Time] :master_timeout Timeout for processing on master node
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-policy.html
Expand All @@ -48,7 +49,7 @@ def get_autoscaling_policy(arguments = {})

method = Elasticsearch::API::HTTP_GET
path = "_autoscaling/policy/#{Utils.__listify(_name)}"
params = {}
params = Utils.process_params(arguments)

Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ module Actions
# Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
#
# @option arguments [String] :name the name of the autoscaling policy
# @option arguments [Time] :master_timeout Timeout for processing on master node
# @option arguments [Time] :timeout Timeout for acknowledgement of update from all nodes in cluster
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body the specification of the autoscaling policy (*Required*)
#
Expand All @@ -50,7 +52,7 @@ def put_autoscaling_policy(arguments = {})

method = Elasticsearch::API::HTTP_PUT
path = "_autoscaling/policy/#{Utils.__listify(_name)}"
params = {}
params = Utils.process_params(arguments)

Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
Expand Down