lib/elasticsearch/api/actions/indices/update_aliases.rb in elasticsearch-api-6.2.0 vs lib/elasticsearch/api/actions/indices/update_aliases.rb in elasticsearch-api-6.3.0
- old
+ new
@@ -23,14 +23,15 @@
# { remove: { index: 'logs-2013-06', alias: 'current-month' } },
# { add: { index: 'logs-2013-07', alias: 'current-month' } }
# ]
# }
#
- # @option arguments [Hash] :body The operations definition and other configuration (*Required*)
- # @option arguments [Time] :timeout Explicit operation timeout
+ # @option arguments [Hash] :body The definition of `actions` to perform (*Required*)
+ # @option arguments [Time] :timeout Request timeout
+ # @option arguments [Time] :master_timeout Specify timeout for connection to master
#
- # @see http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html
#
def update_aliases(arguments={})
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
method = HTTP_POST
path = "_aliases"
@@ -42,10 +43,12 @@
end
# Register this action with its valid params when the module is loaded.
#
# @since 6.2.0
- ParamsRegistry.register(:update_aliases, [ :timeout ].freeze)
+ ParamsRegistry.register(:update_aliases, [
+ :timeout,
+ :master_timeout ].freeze)
end
end
end
end