Module: Elasticsearch::API::Migration::Actions
- Included in:
- MigrationClient
- Defined in:
- lib/elasticsearch/api/namespace/migration.rb,
lib/elasticsearch/api/actions/migration/deprecations.rb,
lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb,
lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb
Instance Method Summary collapse
-
#deprecations(arguments = {}) ⇒ Object
Get deprecation information.
-
#get_feature_upgrade_status(arguments = {}) ⇒ Object
Get feature migration information.
-
#post_feature_upgrade(arguments = {}) ⇒ Object
Start the feature migration.
Instance Method Details
#deprecations(arguments = {}) ⇒ Object
Get deprecation information
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/elasticsearch/api/actions/migration/deprecations.rb', line 32 def deprecations(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'migration.deprecations' } defined_params = [:index].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = if _index "#{Utils.__listify(_index)}/_migration/deprecations" else '_migration/deprecations' end params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |
#get_feature_upgrade_status(arguments = {}) ⇒ Object
Get feature migration information
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb', line 31 def get_feature_upgrade_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'migration.get_feature_upgrade_status' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = '_migration/system_features' params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |
#post_feature_upgrade(arguments = {}) ⇒ Object
Start the feature migration
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb', line 31 def post_feature_upgrade(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'migration.post_feature_upgrade' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_POST path = '_migration/system_features' params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |