Module: Elasticsearch::XPack::API::Migration::Actions
- Included in:
- MigrationClient
- Defined in:
- lib/elasticsearch/xpack/api/namespace/migration.rb,
lib/elasticsearch/xpack/api/actions/migration/upgrade.rb,
lib/elasticsearch/xpack/api/actions/migration/deprecations.rb,
lib/elasticsearch/xpack/api/actions/migration/get_assistance.rb
Instance Method Summary collapse
-
#deprecations(arguments = {}) ⇒ Object
Retrieve information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.
-
#get_assistance(arguments = {}) ⇒ Object
Returns the information about indices that require some changes before the cluster can be upgraded to the next major version.
-
#upgrade(arguments = {}) ⇒ Object
Perform the upgrade of internal indices to make them compatible with the next major version.
Instance Method Details
#deprecations(arguments = {}) ⇒ Object
Retrieve information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version
31 32 33 34 35 36 37 38 |
# File 'lib/elasticsearch/xpack/api/actions/migration/deprecations.rb', line 31 def deprecations(arguments={}) method = Elasticsearch::API::HTTP_GET path = Elasticsearch::API::Utils.__pathify arguments[:index], "_xpack/migration/deprecations" params = {} body = nil perform_request(method, path, params, body).body end |
#get_assistance(arguments = {}) ⇒ Object
Returns the information about indices that require some changes before the cluster can be upgraded to the next major version
33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/elasticsearch/xpack/api/actions/migration/get_assistance.rb', line 33 def get_assistance(arguments={}) valid_params = [ :allow_no_indices, :expand_wildcards, :ignore_unavailable ] method = Elasticsearch::API::HTTP_GET path = "_xpack/migration/assistance" params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params body = nil perform_request(method, path, params, body).body end |
#upgrade(arguments = {}) ⇒ Object
Perform the upgrade of internal indices to make them compatible with the next major version
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/elasticsearch/xpack/api/actions/migration/upgrade.rb', line 31 def upgrade(arguments={}) raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] valid_params = [ :wait_for_completion ] method = Elasticsearch::API::HTTP_POST path = Elasticsearch::API::Utils.__pathify "_xpack/migration/upgrade", arguments[:index] params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params body = nil perform_request(method, path, params, body).body end |