Skip to content

Commit 4bb3bd1

Browse files
committed
[API] Update supported params for snapshot API endpoints
1 parent 7c76511 commit 4bb3bd1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module Actions
3434
# @option arguments [Hash] :body The repository definition (*Required*)
3535
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
3636
# @option arguments [Time] :timeout Explicit operation timeout
37+
# @option arguments [Boolean] :verify Whether to verify the repository after creation
3738
#
3839
# @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html#_repositories
3940
#
@@ -55,9 +56,9 @@ def create_repository(arguments={})
5556
#
5657
# @since 6.1.1
5758
ParamsRegistry.register(:create_repository, [
58-
:repository,
5959
:master_timeout,
60-
:timeout ].freeze)
60+
:timeout,
61+
:verify ].freeze)
6162
end
6263
end
6364
end

elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def verify_repository(arguments={})
4343
#
4444
# @since 6.1.1
4545
ParamsRegistry.register(:verify_repository, [
46-
:repository,
4746
:master_timeout,
4847
:timeout ].freeze)
4948
end

0 commit comments

Comments
 (0)