Skip to content

Commit 33ecccf

Browse files
committed
[API] Adds master_timeout, timeout parameters to ccr APIs.
Adds failure_store boolean parameter to indices.rollover Auto-generated API code
1 parent 611a933 commit 33ecccf

File tree

14 files changed

+27
-12
lines changed

14 files changed

+27
-12
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module Actions
2525
# Deletes auto-follow patterns.
2626
#
2727
# @option arguments [String] :name The name of the auto follow pattern.
28+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
2829
# @option arguments [Hash] :headers Custom HTTP headers
2930
#
3031
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-delete-auto-follow-pattern.html
@@ -48,7 +49,7 @@ def delete_auto_follow_pattern(arguments = {})
4849

4950
method = Elasticsearch::API::HTTP_DELETE
5051
path = "_ccr/auto_follow/#{Utils.__listify(_name)}"
51-
params = {}
52+
params = Utils.process_params(arguments)
5253

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

elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module Actions
2626
#
2727
# @option arguments [String] :index The name of the follower index
2828
# @option arguments [String] :wait_for_active_shards Sets the number of shard copies that must be active before returning. Defaults to 0. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
29+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
2930
# @option arguments [Hash] :headers Custom HTTP headers
3031
# @option arguments [Hash] :body The name of the leader index and other optional ccr related parameters (*Required*)
3132
#

elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module Actions
2525
# Retrieves information about all follower indices, including parameters and status for each follower index
2626
#
2727
# @option arguments [List] :index A comma-separated list of index patterns; use `_all` to perform the operation on all indices
28+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
2829
# @option arguments [Hash] :headers Custom HTTP headers
2930
#
3031
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-info.html
@@ -48,7 +49,7 @@ def follow_info(arguments = {})
4849

4950
method = Elasticsearch::API::HTTP_GET
5051
path = "#{Utils.__listify(_index)}/_ccr/info"
51-
params = {}
52+
params = Utils.process_params(arguments)
5253

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

elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module Actions
2525
# Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices.
2626
#
2727
# @option arguments [List] :index A comma-separated list of index patterns; use `_all` to perform the operation on all indices
28+
# @option arguments [Time] :timeout Explicit operation timeout
2829
# @option arguments [Hash] :headers Custom HTTP headers
2930
#
3031
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html
@@ -48,7 +49,7 @@ def follow_stats(arguments = {})
4849

4950
method = Elasticsearch::API::HTTP_GET
5051
path = "#{Utils.__listify(_index)}/_ccr/stats"
51-
params = {}
52+
params = Utils.process_params(arguments)
5253

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

elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module Actions
2525
# Removes the follower retention leases from the leader.
2626
#
2727
# @option arguments [String] :index the name of the leader index for which specified follower retention leases should be removed
28+
# @option arguments [Time] :timeout Explicit operation timeout
2829
# @option arguments [Hash] :headers Custom HTTP headers
2930
# @option arguments [Hash] :body the name and UUID of the follower index, the name of the cluster containing the follower index, and the alias from the perspective of that cluster for the remote cluster containing the leader index (*Required*)
3031
#
@@ -50,7 +51,7 @@ def forget_follower(arguments = {})
5051

5152
method = Elasticsearch::API::HTTP_POST
5253
path = "#{Utils.__listify(_index)}/_ccr/forget_follower"
53-
params = {}
54+
params = Utils.process_params(arguments)
5455

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

elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module Actions
2525
# Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection.
2626
#
2727
# @option arguments [String] :name The name of the auto follow pattern.
28+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
2829
# @option arguments [Hash] :headers Custom HTTP headers
2930
#
3031
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-auto-follow-pattern.html
@@ -50,7 +51,7 @@ def get_auto_follow_pattern(arguments = {})
5051
else
5152
'_ccr/auto_follow'
5253
end
53-
params = {}
54+
params = Utils.process_params(arguments)
5455

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

elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module Actions
2525
# Pauses an auto-follow pattern
2626
#
2727
# @option arguments [String] :name The name of the auto follow pattern that should pause discovering new indices to follow.
28+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
2829
# @option arguments [Hash] :headers Custom HTTP headers
2930
#
3031
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-pause-auto-follow-pattern.html
@@ -48,7 +49,7 @@ def pause_auto_follow_pattern(arguments = {})
4849

4950
method = Elasticsearch::API::HTTP_POST
5051
path = "_ccr/auto_follow/#{Utils.__listify(_name)}/pause"
51-
params = {}
52+
params = Utils.process_params(arguments)
5253

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

elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module Actions
2525
# Pauses a follower index. The follower index will not fetch any additional operations from the leader index.
2626
#
2727
# @option arguments [String] :index The name of the follower index that should pause following its leader index.
28+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
2829
# @option arguments [Hash] :headers Custom HTTP headers
2930
#
3031
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-pause-follow.html
@@ -48,7 +49,7 @@ def pause_follow(arguments = {})
4849

4950
method = Elasticsearch::API::HTTP_POST
5051
path = "#{Utils.__listify(_index)}/_ccr/pause_follow"
51-
params = {}
52+
params = Utils.process_params(arguments)
5253

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

elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module Actions
2525
# Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices.
2626
#
2727
# @option arguments [String] :name The name of the auto follow pattern.
28+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
2829
# @option arguments [Hash] :headers Custom HTTP headers
2930
# @option arguments [Hash] :body The specification of the auto follow pattern (*Required*)
3031
#
@@ -50,7 +51,7 @@ def put_auto_follow_pattern(arguments = {})
5051

5152
method = Elasticsearch::API::HTTP_PUT
5253
path = "_ccr/auto_follow/#{Utils.__listify(_name)}"
53-
params = {}
54+
params = Utils.process_params(arguments)
5455

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

elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module Actions
2525
# Resumes an auto-follow pattern that has been paused
2626
#
2727
# @option arguments [String] :name The name of the auto follow pattern to resume discovering new indices to follow.
28+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
2829
# @option arguments [Hash] :headers Custom HTTP headers
2930
#
3031
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-resume-auto-follow-pattern.html
@@ -48,7 +49,7 @@ def resume_auto_follow_pattern(arguments = {})
4849

4950
method = Elasticsearch::API::HTTP_POST
5051
path = "_ccr/auto_follow/#{Utils.__listify(_name)}/resume"
51-
params = {}
52+
params = Utils.process_params(arguments)
5253

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

0 commit comments

Comments
 (0)