elasticsearch-api 9.0.2 → 9.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/elasticsearch/api/actions/async_search/delete.rb +13 -2
- data/lib/elasticsearch/api/actions/async_search/get.rb +12 -1
- data/lib/elasticsearch/api/actions/async_search/status.rb +12 -1
- data/lib/elasticsearch/api/actions/async_search/submit.rb +16 -5
- data/lib/elasticsearch/api/actions/bulk.rb +85 -62
- data/lib/elasticsearch/api/actions/cat/aliases.rb +19 -8
- data/lib/elasticsearch/api/actions/cat/allocation.rb +18 -7
- data/lib/elasticsearch/api/actions/cat/component_templates.rb +18 -7
- data/lib/elasticsearch/api/actions/cat/count.rb +18 -7
- data/lib/elasticsearch/api/actions/cat/fielddata.rb +16 -5
- data/lib/elasticsearch/api/actions/cat/health.rb +19 -8
- data/lib/elasticsearch/api/actions/cat/indices.rb +17 -6
- data/lib/elasticsearch/api/actions/cat/master.rb +18 -7
- data/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb +15 -4
- data/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb +18 -7
- data/lib/elasticsearch/api/actions/cat/ml_jobs.rb +19 -8
- data/lib/elasticsearch/api/actions/cat/ml_trained_models.rb +17 -6
- data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +18 -7
- data/lib/elasticsearch/api/actions/cat/nodes.rb +22 -10
- data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +18 -7
- data/lib/elasticsearch/api/actions/cat/plugins.rb +18 -7
- data/lib/elasticsearch/api/actions/cat/recovery.rb +23 -11
- data/lib/elasticsearch/api/actions/cat/repositories.rb +18 -7
- data/lib/elasticsearch/api/actions/cat/segments.rb +23 -11
- data/lib/elasticsearch/api/actions/cat/shards.rb +21 -10
- data/lib/elasticsearch/api/actions/cat/snapshots.rb +20 -8
- data/lib/elasticsearch/api/actions/cat/tasks.rb +18 -7
- data/lib/elasticsearch/api/actions/cat/templates.rb +18 -7
- data/lib/elasticsearch/api/actions/cat/thread_pool.rb +20 -9
- data/lib/elasticsearch/api/actions/cat/transforms.rb +17 -6
- data/lib/elasticsearch/api/actions/clear_scroll.rb +12 -1
- data/lib/elasticsearch/api/actions/close_point_in_time.rb +14 -3
- data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +12 -0
- data/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +11 -0
- data/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb +11 -0
- data/lib/elasticsearch/api/actions/cluster/exists_component_template.rb +11 -0
- data/lib/elasticsearch/api/actions/cluster/get_component_template.rb +16 -4
- data/lib/elasticsearch/api/actions/cluster/get_settings.rb +13 -2
- data/lib/elasticsearch/api/actions/cluster/health.rb +12 -1
- data/lib/elasticsearch/api/actions/cluster/info.rb +12 -1
- data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +13 -2
- data/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb +15 -4
- data/lib/elasticsearch/api/actions/cluster/put_component_template.rb +19 -7
- data/lib/elasticsearch/api/actions/cluster/put_settings.rb +16 -5
- data/lib/elasticsearch/api/actions/cluster/remote_info.rb +12 -1
- data/lib/elasticsearch/api/actions/cluster/reroute.rb +15 -4
- data/lib/elasticsearch/api/actions/cluster/state.rb +14 -3
- data/lib/elasticsearch/api/actions/cluster/stats.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/check_in.rb +13 -2
- data/lib/elasticsearch/api/actions/connector/delete.rb +11 -0
- data/lib/elasticsearch/api/actions/connector/get.rb +11 -0
- data/lib/elasticsearch/api/actions/connector/list.rb +11 -0
- data/lib/elasticsearch/api/actions/connector/post.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/put.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb +13 -2
- data/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb +13 -2
- data/lib/elasticsearch/api/actions/connector/sync_job_claim.rb +14 -3
- data/lib/elasticsearch/api/actions/connector/sync_job_delete.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/sync_job_error.rb +13 -2
- data/lib/elasticsearch/api/actions/connector/sync_job_get.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/sync_job_list.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/sync_job_post.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb +14 -3
- data/lib/elasticsearch/api/actions/connector/update_active_filtering.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/update_api_key_id.rb +13 -2
- data/lib/elasticsearch/api/actions/connector/update_configuration.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/update_error.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/update_features.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/update_filtering.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/update_index_name.rb +13 -2
- data/lib/elasticsearch/api/actions/connector/update_name.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/update_native.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/update_pipeline.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/update_scheduling.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/update_service_type.rb +12 -1
- data/lib/elasticsearch/api/actions/connector/update_status.rb +12 -1
- data/lib/elasticsearch/api/actions/count.rb +28 -17
- data/lib/elasticsearch/api/actions/create.rb +43 -40
- data/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb +12 -1
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb +11 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb +12 -1
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb +11 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb +11 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb +12 -1
- data/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb +12 -1
- data/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb +12 -1
- data/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb +11 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb +12 -1
- data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb +11 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb +12 -1
- data/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb +12 -1
- data/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb +12 -1
- data/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb +12 -1
- data/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb +13 -2
- data/lib/elasticsearch/api/actions/delete.rb +24 -11
- data/lib/elasticsearch/api/actions/delete_by_query.rb +62 -47
- data/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +12 -1
- data/lib/elasticsearch/api/actions/delete_script.rb +13 -2
- data/lib/elasticsearch/api/actions/enrich/delete_policy.rb +11 -0
- data/lib/elasticsearch/api/actions/enrich/execute_policy.rb +12 -1
- data/lib/elasticsearch/api/actions/enrich/get_policy.rb +11 -0
- data/lib/elasticsearch/api/actions/enrich/put_policy.rb +11 -0
- data/lib/elasticsearch/api/actions/enrich/stats.rb +11 -0
- data/lib/elasticsearch/api/actions/eql/delete.rb +13 -2
- data/lib/elasticsearch/api/actions/eql/get.rb +11 -0
- data/lib/elasticsearch/api/actions/eql/get_status.rb +12 -1
- data/lib/elasticsearch/api/actions/eql/search.rb +14 -2
- data/lib/elasticsearch/api/actions/esql/async_query.rb +14 -13
- data/lib/elasticsearch/api/actions/esql/async_query_delete.rb +14 -3
- data/lib/elasticsearch/api/actions/esql/async_query_get.rb +16 -4
- data/lib/elasticsearch/api/actions/esql/async_query_stop.rb +14 -3
- data/lib/elasticsearch/api/actions/esql/query.rb +13 -2
- data/lib/elasticsearch/api/actions/exists.rb +30 -17
- data/lib/elasticsearch/api/actions/exists_source.rb +20 -7
- data/lib/elasticsearch/api/actions/explain.rb +24 -13
- data/lib/elasticsearch/api/actions/features/get_features.rb +12 -1
- data/lib/elasticsearch/api/actions/features/reset_features.rb +11 -0
- data/lib/elasticsearch/api/actions/field_caps.rb +17 -6
- data/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb +16 -5
- data/lib/elasticsearch/api/actions/fleet/msearch.rb +14 -3
- data/lib/elasticsearch/api/actions/fleet/search.rb +14 -3
- data/lib/elasticsearch/api/actions/get.rb +47 -28
- data/lib/elasticsearch/api/actions/get_script.rb +12 -1
- data/lib/elasticsearch/api/actions/get_script_context.rb +12 -1
- data/lib/elasticsearch/api/actions/get_script_languages.rb +12 -1
- data/lib/elasticsearch/api/actions/get_source.rb +23 -10
- data/lib/elasticsearch/api/actions/graph/explore.rb +12 -1
- data/lib/elasticsearch/api/actions/health_report.rb +12 -1
- data/lib/elasticsearch/api/actions/index.rb +54 -42
- data/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb +11 -0
- data/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb +13 -2
- data/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb +11 -0
- data/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb +12 -1
- data/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb +13 -2
- data/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb +13 -2
- data/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +11 -0
- data/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb +12 -1
- data/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb +12 -1
- data/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb +11 -0
- data/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb +11 -0
- data/lib/elasticsearch/api/actions/indices/add_block.rb +19 -8
- data/lib/elasticsearch/api/actions/indices/analyze.rb +14 -3
- data/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb +12 -1
- data/lib/elasticsearch/api/actions/indices/clear_cache.rb +23 -13
- data/lib/elasticsearch/api/actions/indices/clone.rb +16 -5
- data/lib/elasticsearch/api/actions/indices/close.rb +18 -8
- data/lib/elasticsearch/api/actions/indices/create.rb +27 -8
- data/lib/elasticsearch/api/actions/indices/create_data_stream.rb +14 -3
- data/lib/elasticsearch/api/actions/indices/create_from.rb +12 -1
- data/lib/elasticsearch/api/actions/indices/data_streams_stats.rb +14 -3
- data/lib/elasticsearch/api/actions/indices/delete.rb +16 -6
- data/lib/elasticsearch/api/actions/indices/delete_alias.rb +13 -2
- data/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb +12 -1
- data/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +13 -2
- data/lib/elasticsearch/api/actions/indices/delete_index_template.rb +11 -0
- data/lib/elasticsearch/api/actions/indices/delete_template.rb +13 -1
- data/lib/elasticsearch/api/actions/indices/disk_usage.rb +20 -9
- data/lib/elasticsearch/api/actions/indices/downsample.rb +14 -3
- data/lib/elasticsearch/api/actions/indices/exists.rb +18 -8
- data/lib/elasticsearch/api/actions/indices/exists_alias.rb +17 -7
- data/lib/elasticsearch/api/actions/indices/exists_index_template.rb +11 -0
- data/lib/elasticsearch/api/actions/indices/exists_template.rb +13 -2
- data/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +11 -0
- data/lib/elasticsearch/api/actions/indices/field_usage_stats.rb +15 -4
- data/lib/elasticsearch/api/actions/indices/flush.rb +19 -9
- data/lib/elasticsearch/api/actions/indices/forcemerge.rb +22 -10
- data/lib/elasticsearch/api/actions/indices/get.rb +11 -0
- data/lib/elasticsearch/api/actions/indices/get_alias.rb +18 -8
- data/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb +15 -5
- data/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb +12 -1
- data/lib/elasticsearch/api/actions/indices/get_data_stream.rb +13 -2
- data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +19 -9
- data/lib/elasticsearch/api/actions/indices/get_index_template.rb +11 -0
- data/lib/elasticsearch/api/actions/indices/get_mapping.rb +17 -7
- data/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb +12 -1
- data/lib/elasticsearch/api/actions/indices/get_settings.rb +23 -12
- data/lib/elasticsearch/api/actions/indices/get_template.rb +16 -5
- data/lib/elasticsearch/api/actions/indices/migrate_reindex.rb +12 -1
- data/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb +12 -1
- data/lib/elasticsearch/api/actions/indices/modify_data_stream.rb +12 -1
- data/lib/elasticsearch/api/actions/indices/open.rb +22 -12
- data/lib/elasticsearch/api/actions/indices/promote_data_stream.rb +11 -0
- data/lib/elasticsearch/api/actions/indices/put_alias.rb +12 -1
- data/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb +14 -4
- data/lib/elasticsearch/api/actions/indices/put_index_template.rb +16 -5
- data/lib/elasticsearch/api/actions/indices/put_mapping.rb +25 -24
- data/lib/elasticsearch/api/actions/indices/put_settings.rb +65 -13
- data/lib/elasticsearch/api/actions/indices/put_template.rb +13 -2
- data/lib/elasticsearch/api/actions/indices/recovery.rb +21 -4
- data/lib/elasticsearch/api/actions/indices/refresh.rb +18 -8
- data/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb +14 -3
- data/lib/elasticsearch/api/actions/indices/resolve_cluster.rb +34 -24
- data/lib/elasticsearch/api/actions/indices/resolve_index.rb +16 -6
- data/lib/elasticsearch/api/actions/indices/rollover.rb +21 -10
- data/lib/elasticsearch/api/actions/indices/segments.rb +16 -6
- data/lib/elasticsearch/api/actions/indices/shard_stores.rb +12 -1
- data/lib/elasticsearch/api/actions/indices/shrink.rb +13 -2
- data/lib/elasticsearch/api/actions/indices/simulate_index_template.rb +11 -0
- data/lib/elasticsearch/api/actions/indices/simulate_template.rb +11 -0
- data/lib/elasticsearch/api/actions/indices/split.rb +18 -5
- data/lib/elasticsearch/api/actions/indices/stats.rb +18 -7
- data/lib/elasticsearch/api/actions/indices/update_aliases.rb +11 -0
- data/lib/elasticsearch/api/actions/indices/validate_query.rb +24 -14
- data/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb +17 -0
- data/lib/elasticsearch/api/actions/inference/completion.rb +11 -0
- data/lib/elasticsearch/api/actions/inference/delete.rb +11 -0
- data/lib/elasticsearch/api/actions/inference/get.rb +12 -1
- data/lib/elasticsearch/api/actions/inference/inference.rb +11 -0
- data/lib/elasticsearch/api/actions/inference/put.rb +31 -7
- data/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb +14 -7
- data/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb +14 -2
- data/lib/elasticsearch/api/actions/inference/put_anthropic.rb +15 -8
- data/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb +14 -7
- data/lib/elasticsearch/api/actions/inference/put_azureopenai.rb +15 -8
- data/lib/elasticsearch/api/actions/inference/put_cohere.rb +14 -7
- data/lib/elasticsearch/api/actions/inference/put_custom.rb +112 -0
- data/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb +15 -3
- data/lib/elasticsearch/api/actions/inference/put_elser.rb +14 -2
- data/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb +14 -7
- data/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb +14 -7
- data/lib/elasticsearch/api/actions/inference/put_hugging_face.rb +22 -15
- data/lib/elasticsearch/api/actions/inference/put_jinaai.rb +16 -9
- data/lib/elasticsearch/api/actions/inference/put_mistral.rb +15 -8
- data/lib/elasticsearch/api/actions/inference/put_openai.rb +15 -8
- data/lib/elasticsearch/api/actions/inference/put_voyageai.rb +14 -2
- data/lib/elasticsearch/api/actions/inference/put_watsonx.rb +16 -9
- data/lib/elasticsearch/api/actions/inference/rerank.rb +12 -1
- data/lib/elasticsearch/api/actions/inference/sparse_embedding.rb +11 -0
- data/lib/elasticsearch/api/actions/inference/stream_completion.rb +14 -2
- data/lib/elasticsearch/api/actions/inference/text_embedding.rb +11 -0
- data/lib/elasticsearch/api/actions/inference/update.rb +13 -2
- data/lib/elasticsearch/api/actions/info.rb +13 -1
- data/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb +11 -0
- data/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb +13 -2
- data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +12 -1
- data/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb +12 -1
- data/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb +14 -3
- data/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb +13 -5
- data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +13 -2
- data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +12 -1
- data/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb +11 -0
- data/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb +13 -2
- data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +11 -0
- data/lib/elasticsearch/api/actions/ingest/simulate.rb +13 -2
- data/lib/elasticsearch/api/actions/license/delete.rb +11 -0
- data/lib/elasticsearch/api/actions/license/get.rb +13 -2
- data/lib/elasticsearch/api/actions/license/get_basic_status.rb +12 -1
- data/lib/elasticsearch/api/actions/license/get_trial_status.rb +12 -1
- data/lib/elasticsearch/api/actions/license/post.rb +11 -0
- data/lib/elasticsearch/api/actions/license/post_start_basic.rb +12 -1
- data/lib/elasticsearch/api/actions/license/post_start_trial.rb +12 -1
- data/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb +12 -1
- data/lib/elasticsearch/api/actions/logstash/get_pipeline.rb +12 -1
- data/lib/elasticsearch/api/actions/logstash/put_pipeline.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/close_job.rb +15 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb +11 -0
- data/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb +14 -3
- data/lib/elasticsearch/api/actions/machine_learning/delete_job.rb +11 -0
- data/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb +11 -0
- data/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/flush_job.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/forecast.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb +15 -4
- data/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/get_categories.rb +11 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb +14 -3
- data/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb +19 -8
- data/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb +17 -6
- data/lib/elasticsearch/api/actions/machine_learning/get_filters.rb +11 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb +14 -3
- data/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb +14 -3
- data/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb +30 -19
- data/lib/elasticsearch/api/actions/machine_learning/get_records.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb +11 -0
- data/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb +11 -0
- data/lib/elasticsearch/api/actions/machine_learning/info.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/open_job.rb +11 -0
- data/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/post_data.rb +11 -0
- data/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb +11 -0
- data/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb +16 -5
- data/lib/elasticsearch/api/actions/machine_learning/put_filter.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/put_job.rb +18 -12
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb +11 -0
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/reset_job.rb +11 -0
- data/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb +18 -7
- data/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb +11 -0
- data/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb +16 -5
- data/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb +13 -2
- data/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb +16 -10
- data/lib/elasticsearch/api/actions/machine_learning/update_filter.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/update_job.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb +12 -1
- data/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb +11 -0
- data/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb +11 -0
- data/lib/elasticsearch/api/actions/mget.rb +24 -13
- data/lib/elasticsearch/api/actions/migration/deprecations.rb +12 -1
- data/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb +12 -1
- data/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb +12 -1
- data/lib/elasticsearch/api/actions/msearch.rb +27 -10
- data/lib/elasticsearch/api/actions/msearch_template.rb +21 -9
- data/lib/elasticsearch/api/actions/mtermvectors.rb +20 -9
- data/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb +13 -2
- data/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb +12 -1
- data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +11 -0
- data/lib/elasticsearch/api/actions/nodes/info.rb +11 -0
- data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +11 -0
- data/lib/elasticsearch/api/actions/nodes/stats.rb +12 -1
- data/lib/elasticsearch/api/actions/nodes/usage.rb +13 -2
- data/lib/elasticsearch/api/actions/open_point_in_time.rb +22 -11
- data/lib/elasticsearch/api/actions/ping.rb +12 -1
- data/lib/elasticsearch/api/actions/put_script.rb +13 -2
- data/lib/elasticsearch/api/actions/query_rules/delete_rule.rb +12 -1
- data/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb +11 -0
- data/lib/elasticsearch/api/actions/query_rules/get_rule.rb +12 -1
- data/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb +12 -1
- data/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb +11 -0
- data/lib/elasticsearch/api/actions/query_rules/put_rule.rb +12 -1
- data/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb +14 -3
- data/lib/elasticsearch/api/actions/query_rules/test.rb +12 -1
- data/lib/elasticsearch/api/actions/rank_eval.rb +15 -4
- data/lib/elasticsearch/api/actions/reindex.rb +34 -122
- data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +16 -3
- data/lib/elasticsearch/api/actions/render_search_template.rb +13 -2
- data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +12 -1
- data/lib/elasticsearch/api/actions/scroll.rb +15 -4
- data/lib/elasticsearch/api/actions/search.rb +70 -59
- data/lib/elasticsearch/api/actions/search_application/delete.rb +12 -1
- data/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb +12 -1
- data/lib/elasticsearch/api/actions/search_application/get.rb +12 -1
- data/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb +12 -1
- data/lib/elasticsearch/api/actions/search_application/list.rb +11 -0
- data/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb +11 -0
- data/lib/elasticsearch/api/actions/search_application/put.rb +12 -1
- data/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb +12 -1
- data/lib/elasticsearch/api/actions/search_application/render_query.rb +14 -3
- data/lib/elasticsearch/api/actions/search_application/search.rb +11 -0
- data/lib/elasticsearch/api/actions/search_mvt.rb +38 -69
- data/lib/elasticsearch/api/actions/search_shards.rb +21 -11
- data/lib/elasticsearch/api/actions/search_template.rb +23 -13
- data/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb +11 -0
- data/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb +13 -2
- data/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb +12 -1
- data/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb +11 -0
- data/lib/elasticsearch/api/actions/security/activate_user_profile.rb +16 -5
- data/lib/elasticsearch/api/actions/security/authenticate.rb +12 -1
- data/lib/elasticsearch/api/actions/security/bulk_delete_role.rb +12 -1
- data/lib/elasticsearch/api/actions/security/bulk_put_role.rb +12 -1
- data/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb +14 -3
- data/lib/elasticsearch/api/actions/security/change_password.rb +12 -1
- data/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb +13 -2
- data/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb +13 -2
- data/lib/elasticsearch/api/actions/security/clear_cached_realms.rb +12 -1
- data/lib/elasticsearch/api/actions/security/clear_cached_roles.rb +13 -2
- data/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb +16 -5
- data/lib/elasticsearch/api/actions/security/create_api_key.rb +12 -1
- data/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb +15 -4
- data/lib/elasticsearch/api/actions/security/create_service_token.rb +14 -3
- data/lib/elasticsearch/api/actions/security/delegate_pki.rb +14 -3
- data/lib/elasticsearch/api/actions/security/delete_privileges.rb +13 -2
- data/lib/elasticsearch/api/actions/security/delete_role.rb +12 -1
- data/lib/elasticsearch/api/actions/security/delete_role_mapping.rb +12 -1
- data/lib/elasticsearch/api/actions/security/delete_service_token.rb +12 -1
- data/lib/elasticsearch/api/actions/security/delete_user.rb +12 -1
- data/lib/elasticsearch/api/actions/security/disable_user.rb +12 -1
- data/lib/elasticsearch/api/actions/security/disable_user_profile.rb +11 -0
- data/lib/elasticsearch/api/actions/security/enable_user.rb +12 -1
- data/lib/elasticsearch/api/actions/security/enable_user_profile.rb +11 -0
- data/lib/elasticsearch/api/actions/security/enroll_kibana.rb +12 -1
- data/lib/elasticsearch/api/actions/security/enroll_node.rb +12 -1
- data/lib/elasticsearch/api/actions/security/get_api_key.rb +19 -8
- data/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb +12 -1
- data/lib/elasticsearch/api/actions/security/get_privileges.rb +13 -2
- data/lib/elasticsearch/api/actions/security/get_role.rb +11 -0
- data/lib/elasticsearch/api/actions/security/get_role_mapping.rb +12 -1
- data/lib/elasticsearch/api/actions/security/get_service_accounts.rb +15 -4
- data/lib/elasticsearch/api/actions/security/get_service_credentials.rb +14 -3
- data/lib/elasticsearch/api/actions/security/get_settings.rb +14 -3
- data/lib/elasticsearch/api/actions/security/get_token.rb +14 -3
- data/lib/elasticsearch/api/actions/security/get_user.rb +12 -1
- data/lib/elasticsearch/api/actions/security/get_user_privileges.rb +11 -3
- data/lib/elasticsearch/api/actions/security/get_user_profile.rb +16 -5
- data/lib/elasticsearch/api/actions/security/grant_api_key.rb +16 -1
- data/lib/elasticsearch/api/actions/security/has_privileges.rb +12 -1
- data/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb +12 -1
- data/lib/elasticsearch/api/actions/security/invalidate_api_key.rb +20 -9
- data/lib/elasticsearch/api/actions/security/invalidate_token.rb +15 -4
- data/lib/elasticsearch/api/actions/security/oidc_authenticate.rb +12 -1
- data/lib/elasticsearch/api/actions/security/oidc_logout.rb +13 -2
- data/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb +12 -1
- data/lib/elasticsearch/api/actions/security/put_privileges.rb +17 -6
- data/lib/elasticsearch/api/actions/security/put_role.rb +12 -1
- data/lib/elasticsearch/api/actions/security/put_role_mapping.rb +15 -4
- data/lib/elasticsearch/api/actions/security/put_user.rb +12 -1
- data/lib/elasticsearch/api/actions/security/query_api_keys.rb +17 -5
- data/lib/elasticsearch/api/actions/security/query_role.rb +12 -1
- data/lib/elasticsearch/api/actions/security/query_user.rb +11 -0
- data/lib/elasticsearch/api/actions/security/saml_authenticate.rb +13 -2
- data/lib/elasticsearch/api/actions/security/saml_complete_logout.rb +12 -1
- data/lib/elasticsearch/api/actions/security/saml_invalidate.rb +13 -2
- data/lib/elasticsearch/api/actions/security/saml_logout.rb +12 -1
- data/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb +15 -4
- data/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb +12 -1
- data/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb +16 -5
- data/lib/elasticsearch/api/actions/security/update_api_key.rb +16 -5
- data/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb +16 -4
- data/lib/elasticsearch/api/actions/security/update_settings.rb +13 -2
- data/lib/elasticsearch/api/actions/security/update_user_profile_data.rb +15 -4
- data/lib/elasticsearch/api/actions/simulate/ingest.rb +11 -0
- data/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb +13 -2
- data/lib/elasticsearch/api/actions/snapshot/clone.rb +12 -1
- data/lib/elasticsearch/api/actions/snapshot/create.rb +13 -2
- data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +16 -5
- data/lib/elasticsearch/api/actions/snapshot/delete.rb +15 -2
- data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +14 -3
- data/lib/elasticsearch/api/actions/snapshot/get.rb +29 -18
- data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +15 -4
- data/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb +20 -9
- data/lib/elasticsearch/api/actions/snapshot/restore.rb +18 -5
- data/lib/elasticsearch/api/actions/snapshot/status.rb +18 -7
- data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +13 -2
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb +11 -0
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb +11 -0
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb +11 -0
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +11 -0
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb +11 -0
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb +13 -2
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +13 -2
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb +13 -2
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb +13 -2
- data/lib/elasticsearch/api/actions/sql/clear_cursor.rb +12 -1
- data/lib/elasticsearch/api/actions/sql/delete_async.rb +13 -2
- data/lib/elasticsearch/api/actions/sql/get_async.rb +13 -2
- data/lib/elasticsearch/api/actions/sql/get_async_status.rb +12 -1
- data/lib/elasticsearch/api/actions/sql/query.rb +13 -2
- data/lib/elasticsearch/api/actions/sql/translate.rb +13 -2
- data/lib/elasticsearch/api/actions/ssl/certificates.rb +14 -3
- data/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb +12 -1
- data/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb +12 -1
- data/lib/elasticsearch/api/actions/synonyms/get_synonym.rb +11 -0
- data/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb +12 -1
- data/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb +11 -0
- data/lib/elasticsearch/api/actions/synonyms/put_synonym.rb +13 -1
- data/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb +12 -1
- data/lib/elasticsearch/api/actions/tasks/cancel.rb +13 -2
- data/lib/elasticsearch/api/actions/tasks/get.rb +12 -1
- data/lib/elasticsearch/api/actions/tasks/list.rb +29 -14
- data/lib/elasticsearch/api/actions/terms_enum.rb +14 -3
- data/lib/elasticsearch/api/actions/termvectors.rb +27 -14
- data/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb +52 -41
- data/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb +52 -41
- data/lib/elasticsearch/api/actions/text_structure/find_structure.rb +44 -44
- data/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb +12 -1
- data/lib/elasticsearch/api/actions/transform/delete_transform.rb +11 -0
- data/lib/elasticsearch/api/actions/transform/get_node_stats.rb +2 -7
- data/lib/elasticsearch/api/actions/transform/get_transform.rb +13 -2
- data/lib/elasticsearch/api/actions/transform/get_transform_stats.rb +13 -2
- data/lib/elasticsearch/api/actions/transform/preview_transform.rb +11 -0
- data/lib/elasticsearch/api/actions/transform/put_transform.rb +18 -7
- data/lib/elasticsearch/api/actions/transform/reset_transform.rb +13 -2
- data/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb +12 -1
- data/lib/elasticsearch/api/actions/transform/start_transform.rb +14 -3
- data/lib/elasticsearch/api/actions/transform/stop_transform.rb +14 -3
- data/lib/elasticsearch/api/actions/transform/update_transform.rb +14 -3
- data/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb +11 -0
- data/lib/elasticsearch/api/actions/update.rb +19 -7
- data/lib/elasticsearch/api/actions/update_by_query.rb +75 -55
- data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +12 -1
- data/lib/elasticsearch/api/actions/watcher/ack_watch.rb +15 -3
- data/lib/elasticsearch/api/actions/watcher/activate_watch.rb +12 -1
- data/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb +12 -1
- data/lib/elasticsearch/api/actions/watcher/delete_watch.rb +14 -3
- data/lib/elasticsearch/api/actions/watcher/execute_watch.rb +13 -1
- data/lib/elasticsearch/api/actions/watcher/get_settings.rb +13 -2
- data/lib/elasticsearch/api/actions/watcher/get_watch.rb +12 -1
- data/lib/elasticsearch/api/actions/watcher/put_watch.rb +17 -6
- data/lib/elasticsearch/api/actions/watcher/query_watches.rb +13 -2
- data/lib/elasticsearch/api/actions/watcher/start.rb +11 -0
- data/lib/elasticsearch/api/actions/watcher/stats.rb +12 -1
- data/lib/elasticsearch/api/actions/watcher/stop.rb +12 -1
- data/lib/elasticsearch/api/actions/watcher/update_settings.rb +16 -5
- data/lib/elasticsearch/api/actions/xpack/info.rb +12 -1
- data/lib/elasticsearch/api/actions/xpack/usage.rb +12 -1
- data/lib/elasticsearch/api/version.rb +2 -2
- data/lib/elasticsearch/api.rb +2 -0
- metadata +5 -4
@@ -26,10 +26,23 @@ module Elasticsearch
|
|
26
26
|
#
|
27
27
|
# @option arguments [String] :repository The name of the repository to delete a snapshot from. (*Required*)
|
28
28
|
# @option arguments [String] :snapshot A comma-separated list of snapshot names to delete.
|
29
|
-
# It also accepts wildcards (
|
29
|
+
# It also accepts wildcards (`*`). (*Required*)
|
30
30
|
# @option arguments [Time] :master_timeout The period to wait for the master node.
|
31
31
|
# If the master node is not available before the timeout expires, the request fails and returns an error.
|
32
|
-
# To indicate that the request should never timeout, set it to
|
32
|
+
# To indicate that the request should never timeout, set it to `-1`. Server default: 30s.
|
33
|
+
# @option arguments [Boolean] :wait_for_completion If `true`, the request returns a response when the matching snapshots are all deleted.
|
34
|
+
# If `false`, the request returns a response as soon as the deletes are scheduled. Server default: true.
|
35
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
36
|
+
# when they occur.
|
37
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
38
|
+
# returned by Elasticsearch.
|
39
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
40
|
+
# For example `"exists_time": "1h"` for humans and
|
41
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
42
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
43
|
+
# only by machines.
|
44
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
45
|
+
# this option for debugging only.
|
33
46
|
# @option arguments [Hash] :headers Custom HTTP headers
|
34
47
|
#
|
35
48
|
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-delete
|
@@ -27,13 +27,24 @@ module Elasticsearch
|
|
27
27
|
# The snapshots themselves are left untouched and in place.
|
28
28
|
#
|
29
29
|
# @option arguments [String, Array<String>] :repository The ame of the snapshot repositories to unregister.
|
30
|
-
# Wildcard (
|
30
|
+
# Wildcard (`*`) patterns are supported. (*Required*)
|
31
31
|
# @option arguments [Time] :master_timeout The period to wait for the master node.
|
32
32
|
# If the master node is not available before the timeout expires, the request fails and returns an error.
|
33
|
-
# To indicate that the request should never timeout, set it to
|
33
|
+
# To indicate that the request should never timeout, set it to `-1`. Server default: 30s.
|
34
34
|
# @option arguments [Time] :timeout The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.
|
35
35
|
# If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged.
|
36
|
-
# To indicate that the request should never timeout, set it to
|
36
|
+
# To indicate that the request should never timeout, set it to `-1`. Server default: 30s.
|
37
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
38
|
+
# when they occur.
|
39
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
40
|
+
# returned by Elasticsearch.
|
41
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
42
|
+
# For example `"exists_time": "1h"` for humans and
|
43
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
44
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
45
|
+
# only by machines.
|
46
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
47
|
+
# this option for debugging only.
|
37
48
|
# @option arguments [Hash] :headers Custom HTTP headers
|
38
49
|
#
|
39
50
|
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-delete-repository
|
@@ -23,40 +23,51 @@ module Elasticsearch
|
|
23
23
|
module Snapshot
|
24
24
|
module Actions
|
25
25
|
# Get snapshot information.
|
26
|
-
# NOTE: The
|
26
|
+
# NOTE: The `after` parameter and `next` field enable you to iterate through snapshots with some consistency guarantees regarding concurrent creation or deletion of snapshots.
|
27
27
|
# It is guaranteed that any snapshot that exists at the beginning of the iteration and is not concurrently deleted will be seen during the iteration.
|
28
28
|
# Snapshots concurrently created may be seen during an iteration.
|
29
29
|
#
|
30
30
|
# @option arguments [String] :repository A comma-separated list of snapshot repository names used to limit the request.
|
31
|
-
# Wildcard (
|
31
|
+
# Wildcard (`*`) expressions are supported. (*Required*)
|
32
32
|
# @option arguments [String, Array<String>] :snapshot A comma-separated list of snapshot names to retrieve
|
33
|
-
# Wildcards (
|
34
|
-
# - To get information about all snapshots in a registered repository, use a wildcard (
|
35
|
-
# - To get information about any snapshots that are currently running, use
|
33
|
+
# Wildcards (`*`) are supported.
|
34
|
+
# - To get information about all snapshots in a registered repository, use a wildcard (`*`) or `_all`.
|
35
|
+
# - To get information about any snapshots that are currently running, use `_current`. (*Required*)
|
36
36
|
# @option arguments [String] :after An offset identifier to start pagination from as returned by the next field in the response body.
|
37
37
|
# @option arguments [String] :from_sort_value The value of the current sort column at which to start retrieval.
|
38
|
-
# It can be a string
|
39
|
-
# It can be a millisecond time value or a number when sorting by
|
40
|
-
# @option arguments [Boolean] :ignore_unavailable If
|
41
|
-
# @option arguments [Boolean] :index_details If
|
42
|
-
# The default is
|
43
|
-
# @option arguments [Boolean] :index_names If
|
44
|
-
# @option arguments [Boolean] :include_repository If
|
38
|
+
# It can be a string `snapshot-` or a repository name when sorting by snapshot or repository name.
|
39
|
+
# It can be a millisecond time value or a number when sorting by `index-` or shard count.
|
40
|
+
# @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error for any snapshots that are unavailable.
|
41
|
+
# @option arguments [Boolean] :index_details If `true`, the response includes additional information about each index in the snapshot comprising the number of shards in the index, the total size of the index in bytes, and the maximum number of segments per shard in the index.
|
42
|
+
# The default is `false`, meaning that this information is omitted.
|
43
|
+
# @option arguments [Boolean] :index_names If `true`, the response includes the name of each index in each snapshot. Server default: true.
|
44
|
+
# @option arguments [Boolean] :include_repository If `true`, the response includes the repository name in each snapshot. Server default: true.
|
45
45
|
# @option arguments [Time] :master_timeout The period to wait for a connection to the master node.
|
46
46
|
# If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
47
47
|
# @option arguments [String] :order The sort order.
|
48
|
-
# Valid values are
|
48
|
+
# Valid values are `asc` for ascending and `desc` for descending order.
|
49
49
|
# The default behavior is ascending order. Server default: asc.
|
50
50
|
# @option arguments [Integer] :offset Numeric offset to start pagination from based on the snapshots matching this request. Using a non-zero value for this parameter is mutually exclusive with using the after parameter. Defaults to 0. Server default: 0.
|
51
51
|
# @option arguments [Integer] :size The maximum number of snapshots to return.
|
52
52
|
# The default is 0, which means to return all that match the request without limit. Server default: 0.
|
53
|
-
# @option arguments [String] :slm_policy_filter Filter snapshots by a comma-separated list of snapshot lifecycle management (SLM) policy names that snapshots belong to.You can use wildcards (
|
54
|
-
# For example, the pattern
|
55
|
-
# Note that the wildcard pattern
|
56
|
-
# To include snapshots that were not created by an SLM policy, you can use the special pattern
|
53
|
+
# @option arguments [String] :slm_policy_filter Filter snapshots by a comma-separated list of snapshot lifecycle management (SLM) policy names that snapshots belong to.You can use wildcards (`*`) and combinations of wildcards followed by exclude patterns starting with `-`.
|
54
|
+
# For example, the pattern `*,-policy-a-\*` will return all snapshots except for those that were created by an SLM policy with a name starting with `policy-a-`.
|
55
|
+
# Note that the wildcard pattern `*` matches all snapshots created by an SLM policy but not those snapshots that were not created by an SLM policy.
|
56
|
+
# To include snapshots that were not created by an SLM policy, you can use the special pattern `_none` that will match all snapshots without an SLM policy.
|
57
57
|
# @option arguments [String] :sort The sort order for the result.
|
58
58
|
# The default behavior is sorting by snapshot start time stamp. Server default: start_time.
|
59
|
-
# @option arguments [Boolean] :verbose If
|
59
|
+
# @option arguments [Boolean] :verbose If `true`, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.NOTE: The parameters `size`, `order`, `after`, `from_sort_value`, `offset`, `slm_policy_filter`, and `sort` are not supported when you set `verbose=false` and the sort order for requests with `verbose=false` is undefined. Server default: true.
|
60
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
61
|
+
# when they occur.
|
62
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
63
|
+
# returned by Elasticsearch.
|
64
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
65
|
+
# For example `"exists_time": "1h"` for humans and
|
66
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
67
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
68
|
+
# only by machines.
|
69
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
70
|
+
# this option for debugging only.
|
60
71
|
# @option arguments [Hash] :headers Custom HTTP headers
|
61
72
|
#
|
62
73
|
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-get
|
@@ -25,12 +25,23 @@ module Elasticsearch
|
|
25
25
|
# Get snapshot repository information.
|
26
26
|
#
|
27
27
|
# @option arguments [String, Array<String>] :repository A comma-separated list of snapshot repository names used to limit the request.
|
28
|
-
# Wildcard (
|
29
|
-
# @option arguments [Boolean] :local If
|
30
|
-
# If
|
28
|
+
# Wildcard (`*`) expressions are supported including combining wildcards with exclude patterns starting with `-`.To get information about all snapshot repositories registered in the cluster, omit this parameter or use `*` or `_all`.
|
29
|
+
# @option arguments [Boolean] :local If `true`, the request gets information from the local node only.
|
30
|
+
# If `false`, the request gets information from the master node.
|
31
31
|
# @option arguments [Time] :master_timeout The period to wait for the master node.
|
32
32
|
# If the master node is not available before the timeout expires, the request fails and returns an error.
|
33
|
-
# To indicate that the request should never timeout, set it to
|
33
|
+
# To indicate that the request should never timeout, set it to `-1`. Server default: to 30s.
|
34
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
35
|
+
# when they occur.
|
36
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
37
|
+
# returned by Elasticsearch.
|
38
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
39
|
+
# For example `"exists_time": "1h"` for humans and
|
40
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
41
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
42
|
+
# only by machines.
|
43
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
44
|
+
# this option for debugging only.
|
34
45
|
# @option arguments [Hash] :headers Custom HTTP headers
|
35
46
|
#
|
36
47
|
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-get-repository
|
@@ -30,8 +30,8 @@ module Elasticsearch
|
|
30
30
|
# Some storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do. This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system.
|
31
31
|
# The default values for the parameters are deliberately low to reduce the impact of running an analysis inadvertently and to provide a sensible starting point for your investigations.
|
32
32
|
# Run your first analysis with the default parameter values to check for simple problems.
|
33
|
-
# If successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a
|
34
|
-
# Always specify a generous timeout, possibly
|
33
|
+
# If successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a `blob_count` of at least `2000`, a `max_blob_size` of at least `2gb`, a `max_total_data_size` of at least `1tb`, and a `register_operation_count` of at least `100`.
|
34
|
+
# Always specify a generous timeout, possibly `1h` or longer, to allow time for each analysis to run to completion.
|
35
35
|
# Perform the analyses using a multi-node cluster of a similar size to your production cluster so that it can detect any problems that only arise when the repository is accessed by many nodes at once.
|
36
36
|
# If the analysis fails, Elasticsearch detected that your repository behaved unexpectedly.
|
37
37
|
# This usually means you are using a third-party storage system with an incorrect or incompatible implementation of the API it claims to support.
|
@@ -60,7 +60,7 @@ module Elasticsearch
|
|
60
60
|
# IMPORTANT: An analysis writes a substantial amount of data to your repository and then reads it back again.
|
61
61
|
# This consumes bandwidth on the network between the cluster and the repository, and storage space and I/O bandwidth on the repository itself.
|
62
62
|
# You must ensure this load does not affect other users of these systems.
|
63
|
-
# Analyses respect the repository settings
|
63
|
+
# Analyses respect the repository settings `max_snapshot_bytes_per_sec` and `max_restore_bytes_per_sec` if available and the cluster setting `indices.recovery.max_bytes_per_sec` which you can use to limit the bandwidth they consume.
|
64
64
|
# NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions.
|
65
65
|
# NOTE: Different versions of Elasticsearch may perform different checks for repository compatibility, with newer versions typically being stricter than older ones.
|
66
66
|
# A storage system that passes repository analysis with one version of Elasticsearch may fail with a different version.
|
@@ -69,10 +69,10 @@ module Elasticsearch
|
|
69
69
|
# NOTE: This API may not work correctly in a mixed-version cluster.
|
70
70
|
# *Implementation details*
|
71
71
|
# NOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions. The request parameters and response format depend on details of the implementation so may also be different in newer versions.
|
72
|
-
# The analysis comprises a number of blob-level tasks, as set by the
|
72
|
+
# The analysis comprises a number of blob-level tasks, as set by the `blob_count` parameter and a number of compare-and-exchange operations on linearizable registers, as set by the `register_operation_count` parameter.
|
73
73
|
# These tasks are distributed over the data and master-eligible nodes in the cluster for execution.
|
74
74
|
# For most blob-level tasks, the executing node first writes a blob to the repository and then instructs some of the other nodes in the cluster to attempt to read the data it just wrote.
|
75
|
-
# The size of the blob is chosen randomly, according to the
|
75
|
+
# The size of the blob is chosen randomly, according to the `max_blob_size` and `max_total_data_size` parameters.
|
76
76
|
# If any of these reads fails then the repository does not implement the necessary read-after-write semantics that Elasticsearch requires.
|
77
77
|
# For some blob-level tasks, the executing node will instruct some of its peers to attempt to read the data before the writing process completes.
|
78
78
|
# These reads are permitted to fail, but must not return partial data.
|
@@ -97,26 +97,37 @@ module Elasticsearch
|
|
97
97
|
#
|
98
98
|
# @option arguments [String] :repository The name of the repository. (*Required*)
|
99
99
|
# @option arguments [Integer] :blob_count The total number of blobs to write to the repository during the test.
|
100
|
-
# For realistic experiments, you should set it to at least
|
100
|
+
# For realistic experiments, you should set it to at least `2000`. Server default: 100.
|
101
101
|
# @option arguments [Integer] :concurrency The number of operations to run concurrently during the test. Server default: 10.
|
102
102
|
# @option arguments [Boolean] :detailed Indicates whether to return detailed results, including timing information for every operation performed during the analysis.
|
103
103
|
# If false, it returns only a summary of the analysis.
|
104
104
|
# @option arguments [Integer] :early_read_node_count The number of nodes on which to perform an early read operation while writing each blob.
|
105
105
|
# Early read operations are only rarely performed. Server default: 2.
|
106
106
|
# @option arguments [Integer, String] :max_blob_size The maximum size of a blob to be written during the test.
|
107
|
-
# For realistic experiments, you should set it to at least
|
107
|
+
# For realistic experiments, you should set it to at least `2gb`. Server default: 10mb.
|
108
108
|
# @option arguments [Integer, String] :max_total_data_size An upper limit on the total size of all the blobs written during the test.
|
109
|
-
# For realistic experiments, you should set it to at least
|
109
|
+
# For realistic experiments, you should set it to at least `1tb`. Server default: 1gb.
|
110
110
|
# @option arguments [Float] :rare_action_probability The probability of performing a rare action such as an early read, an overwrite, or an aborted write on each blob. Server default: 0.02.
|
111
111
|
# @option arguments [Boolean] :rarely_abort_writes Indicates whether to rarely cancel writes before they complete. Server default: true.
|
112
112
|
# @option arguments [Integer] :read_node_count The number of nodes on which to read a blob after writing. Server default: 10.
|
113
113
|
# @option arguments [Integer] :register_operation_count The minimum number of linearizable register operations to perform in total.
|
114
|
-
# For realistic experiments, you should set it to at least
|
114
|
+
# For realistic experiments, you should set it to at least `100`. Server default: 10.
|
115
115
|
# @option arguments [Integer] :seed The seed for the pseudo-random number generator used to generate the list of operations performed during the test.
|
116
116
|
# To repeat the same set of operations in multiple experiments, use the same seed in each experiment.
|
117
117
|
# Note that the operations are performed concurrently so might not always happen in the same order on each run.
|
118
118
|
# @option arguments [Time] :timeout The period of time to wait for the test to complete.
|
119
119
|
# If no response is received before the timeout expires, the test is cancelled and returns an error. Server default: 30s.
|
120
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
121
|
+
# when they occur.
|
122
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
123
|
+
# returned by Elasticsearch.
|
124
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
125
|
+
# For example `"exists_time": "1h"` for humans and
|
126
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
127
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
128
|
+
# only by machines.
|
129
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
130
|
+
# this option for debugging only.
|
120
131
|
# @option arguments [Hash] :headers Custom HTTP headers
|
121
132
|
#
|
122
133
|
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-repository-analyze
|
@@ -29,9 +29,11 @@ module Elasticsearch
|
|
29
29
|
# The snapshot and cluster versions must be compatible.
|
30
30
|
# To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks.
|
31
31
|
# Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API:
|
32
|
-
#
|
32
|
+
#
|
33
|
+
# ```
|
33
34
|
# GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream
|
34
|
-
#
|
35
|
+
# ```
|
36
|
+
#
|
35
37
|
# If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices.
|
36
38
|
# If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot.
|
37
39
|
#
|
@@ -39,10 +41,21 @@ module Elasticsearch
|
|
39
41
|
# @option arguments [String] :snapshot The name of the snapshot to restore. (*Required*)
|
40
42
|
# @option arguments [Time] :master_timeout The period to wait for the master node.
|
41
43
|
# If the master node is not available before the timeout expires, the request fails and returns an error.
|
42
|
-
# To indicate that the request should never timeout, set it to
|
43
|
-
# @option arguments [Boolean] :wait_for_completion If
|
44
|
+
# To indicate that the request should never timeout, set it to `-1`. Server default: 30s.
|
45
|
+
# @option arguments [Boolean] :wait_for_completion If `true`, the request returns a response when the restore operation completes.
|
44
46
|
# The operation is complete when it finishes all attempts to recover primary shards for restored indices.
|
45
|
-
# This applies even if one or more of the recovery attempts fail.If
|
47
|
+
# This applies even if one or more of the recovery attempts fail.If `false`, the request returns a response when the restore operation initializes.
|
48
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
49
|
+
# when they occur.
|
50
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
51
|
+
# returned by Elasticsearch.
|
52
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
53
|
+
# For example `"exists_time": "1h"` for humans and
|
54
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
55
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
56
|
+
# only by machines.
|
57
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
58
|
+
# this option for debugging only.
|
46
59
|
# @option arguments [Hash] :headers Custom HTTP headers
|
47
60
|
# @option arguments [Hash] :body request body
|
48
61
|
#
|
@@ -26,9 +26,9 @@ module Elasticsearch
|
|
26
26
|
# Get a detailed description of the current state for each shard participating in the snapshot.
|
27
27
|
# Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots.
|
28
28
|
# If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API.
|
29
|
-
# If you omit the
|
29
|
+
# If you omit the `<snapshot>` request path parameter, the request retrieves information only for currently running snapshots.
|
30
30
|
# This usage is preferred.
|
31
|
-
# If needed, you can specify
|
31
|
+
# If needed, you can specify `<repository>` and `<snapshot>` to retrieve information for specific snapshots, even if they're not currently running.
|
32
32
|
# WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive.
|
33
33
|
# The API requires a read from the repository for each shard in each snapshot.
|
34
34
|
# For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards).
|
@@ -36,15 +36,26 @@ module Elasticsearch
|
|
36
36
|
# These requests can also tax machine resources and, when using cloud storage, incur high processing costs.
|
37
37
|
#
|
38
38
|
# @option arguments [String] :repository The snapshot repository name used to limit the request.
|
39
|
-
# It supports wildcards (
|
39
|
+
# It supports wildcards (`*`) if `<snapshot>` isn't specified.
|
40
40
|
# @option arguments [String, Array<String>] :snapshot A comma-separated list of snapshots to retrieve status for.
|
41
41
|
# The default is currently running snapshots.
|
42
|
-
# Wildcards (
|
43
|
-
# @option arguments [Boolean] :ignore_unavailable If
|
44
|
-
# If
|
42
|
+
# Wildcards (`*`) are not supported.
|
43
|
+
# @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error for any snapshots that are unavailable.
|
44
|
+
# If `true`, the request ignores snapshots that are unavailable, such as those that are corrupted or temporarily cannot be returned.
|
45
45
|
# @option arguments [Time] :master_timeout The period to wait for the master node.
|
46
46
|
# If the master node is not available before the timeout expires, the request fails and returns an error.
|
47
|
-
# To indicate that the request should never timeout, set it to
|
47
|
+
# To indicate that the request should never timeout, set it to `-1`. Server default: 30s.
|
48
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
49
|
+
# when they occur.
|
50
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
51
|
+
# returned by Elasticsearch.
|
52
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
53
|
+
# For example `"exists_time": "1h"` for humans and
|
54
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
55
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
56
|
+
# only by machines.
|
57
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
58
|
+
# this option for debugging only.
|
48
59
|
# @option arguments [Hash] :headers Custom HTTP headers
|
49
60
|
#
|
50
61
|
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-status
|
@@ -28,10 +28,21 @@ module Elasticsearch
|
|
28
28
|
# @option arguments [String] :repository The name of the snapshot repository to verify. (*Required*)
|
29
29
|
# @option arguments [Time] :master_timeout The period to wait for the master node.
|
30
30
|
# If the master node is not available before the timeout expires, the request fails and returns an error.
|
31
|
-
# To indicate that the request should never timeout, set it to
|
31
|
+
# To indicate that the request should never timeout, set it to `-1`. Server default: 30s.
|
32
32
|
# @option arguments [Time] :timeout The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.
|
33
33
|
# If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged.
|
34
|
-
# To indicate that the request should never timeout, set it to
|
34
|
+
# To indicate that the request should never timeout, set it to `-1`. Server default: 30s.
|
35
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
36
|
+
# when they occur.
|
37
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
38
|
+
# returned by Elasticsearch.
|
39
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
40
|
+
# For example `"exists_time": "1h"` for humans and
|
41
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
42
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
43
|
+
# only by machines.
|
44
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
45
|
+
# this option for debugging only.
|
35
46
|
# @option arguments [Hash] :headers Custom HTTP headers
|
36
47
|
#
|
37
48
|
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-verify-repository
|
@@ -31,6 +31,17 @@ module Elasticsearch
|
|
31
31
|
# If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
32
32
|
# @option arguments [Time] :timeout The period to wait for a response.
|
33
33
|
# If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
34
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
35
|
+
# when they occur.
|
36
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
37
|
+
# returned by Elasticsearch.
|
38
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
39
|
+
# For example `"exists_time": "1h"` for humans and
|
40
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
41
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
42
|
+
# only by machines.
|
43
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
44
|
+
# this option for debugging only.
|
34
45
|
# @option arguments [Hash] :headers Custom HTTP headers
|
35
46
|
#
|
36
47
|
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-delete-lifecycle
|
@@ -31,6 +31,17 @@ module Elasticsearch
|
|
31
31
|
# If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
32
32
|
# @option arguments [Time] :timeout The period to wait for a response.
|
33
33
|
# If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
34
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
35
|
+
# when they occur.
|
36
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
37
|
+
# returned by Elasticsearch.
|
38
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
39
|
+
# For example `"exists_time": "1h"` for humans and
|
40
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
41
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
42
|
+
# only by machines.
|
43
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
44
|
+
# this option for debugging only.
|
34
45
|
# @option arguments [Hash] :headers Custom HTTP headers
|
35
46
|
#
|
36
47
|
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-execute-lifecycle
|
@@ -30,6 +30,17 @@ module Elasticsearch
|
|
30
30
|
# If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
31
31
|
# @option arguments [Time] :timeout The period to wait for a response.
|
32
32
|
# If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
33
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
34
|
+
# when they occur.
|
35
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
36
|
+
# returned by Elasticsearch.
|
37
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
38
|
+
# For example `"exists_time": "1h"` for humans and
|
39
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
40
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
41
|
+
# only by machines.
|
42
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
43
|
+
# this option for debugging only.
|
33
44
|
# @option arguments [Hash] :headers Custom HTTP headers
|
34
45
|
#
|
35
46
|
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-execute-retention
|
@@ -30,6 +30,17 @@ module Elasticsearch
|
|
30
30
|
# If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
31
31
|
# @option arguments [Time] :timeout The period to wait for a response.
|
32
32
|
# If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
33
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
34
|
+
# when they occur.
|
35
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
36
|
+
# returned by Elasticsearch.
|
37
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
38
|
+
# For example `"exists_time": "1h"` for humans and
|
39
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
40
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
41
|
+
# only by machines.
|
42
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
43
|
+
# this option for debugging only.
|
33
44
|
# @option arguments [Hash] :headers Custom HTTP headers
|
34
45
|
#
|
35
46
|
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-get-lifecycle
|
@@ -27,6 +27,17 @@ module Elasticsearch
|
|
27
27
|
#
|
28
28
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
29
29
|
# @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
30
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
31
|
+
# when they occur.
|
32
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
33
|
+
# returned by Elasticsearch.
|
34
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
35
|
+
# For example `"exists_time": "1h"` for humans and
|
36
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
37
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
38
|
+
# only by machines.
|
39
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
40
|
+
# this option for debugging only.
|
30
41
|
# @option arguments [Hash] :headers Custom HTTP headers
|
31
42
|
#
|
32
43
|
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-get-stats
|
@@ -26,10 +26,21 @@ module Elasticsearch
|
|
26
26
|
#
|
27
27
|
# @option arguments [Time] :master_timeout The period to wait for a connection to the master node.
|
28
28
|
# If no response is received before the timeout expires, the request fails and returns an error.
|
29
|
-
# To indicate that the request should never timeout, set it to
|
29
|
+
# To indicate that the request should never timeout, set it to `-1`. Server default: 30s.
|
30
30
|
# @option arguments [Time] :timeout The period to wait for a response.
|
31
31
|
# If no response is received before the timeout expires, the request fails and returns an error.
|
32
|
-
# To indicate that the request should never timeout, set it to
|
32
|
+
# To indicate that the request should never timeout, set it to `-1`. Server default: 30s.
|
33
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
34
|
+
# when they occur.
|
35
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
36
|
+
# returned by Elasticsearch.
|
37
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
38
|
+
# For example `"exists_time": "1h"` for humans and
|
39
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
40
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
41
|
+
# only by machines.
|
42
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
43
|
+
# this option for debugging only.
|
33
44
|
# @option arguments [Hash] :headers Custom HTTP headers
|
34
45
|
#
|
35
46
|
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-get-status
|
@@ -30,10 +30,21 @@ module Elasticsearch
|
|
30
30
|
# @option arguments [String] :policy_id The identifier for the snapshot lifecycle policy you want to create or update. (*Required*)
|
31
31
|
# @option arguments [Time] :master_timeout The period to wait for a connection to the master node.
|
32
32
|
# If no response is received before the timeout expires, the request fails and returns an error.
|
33
|
-
# To indicate that the request should never timeout, set it to
|
33
|
+
# To indicate that the request should never timeout, set it to `-1`. Server default: 30s.
|
34
34
|
# @option arguments [Time] :timeout The period to wait for a response.
|
35
35
|
# If no response is received before the timeout expires, the request fails and returns an error.
|
36
|
-
# To indicate that the request should never timeout, set it to
|
36
|
+
# To indicate that the request should never timeout, set it to `-1`. Server default: 30s.
|
37
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
38
|
+
# when they occur.
|
39
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
40
|
+
# returned by Elasticsearch.
|
41
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
42
|
+
# For example `"exists_time": "1h"` for humans and
|
43
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
44
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
45
|
+
# only by machines.
|
46
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
47
|
+
# this option for debugging only.
|
37
48
|
# @option arguments [Hash] :headers Custom HTTP headers
|
38
49
|
# @option arguments [Hash] :body request body
|
39
50
|
#
|
@@ -28,10 +28,21 @@ module Elasticsearch
|
|
28
28
|
#
|
29
29
|
# @option arguments [Time] :master_timeout The period to wait for a connection to the master node.
|
30
30
|
# If no response is received before the timeout expires, the request fails and returns an error.
|
31
|
-
# To indicate that the request should never timeout, set it to
|
31
|
+
# To indicate that the request should never timeout, set it to `-1`. Server default: 30s.
|
32
32
|
# @option arguments [Time] :timeout The period to wait for a response.
|
33
33
|
# If no response is received before the timeout expires, the request fails and returns an error.
|
34
|
-
# To indicate that the request should never timeout, set it to
|
34
|
+
# To indicate that the request should never timeout, set it to `-1`. Server default: 30s.
|
35
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
36
|
+
# when they occur.
|
37
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
38
|
+
# returned by Elasticsearch.
|
39
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
40
|
+
# For example `"exists_time": "1h"` for humans and
|
41
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
42
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
43
|
+
# only by machines.
|
44
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
45
|
+
# this option for debugging only.
|
35
46
|
# @option arguments [Hash] :headers Custom HTTP headers
|
36
47
|
#
|
37
48
|
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-start
|
@@ -32,10 +32,21 @@ module Elasticsearch
|
|
32
32
|
#
|
33
33
|
# @option arguments [Time] :master_timeout The period to wait for a connection to the master node.
|
34
34
|
# If no response is received before the timeout expires, the request fails and returns an error.
|
35
|
-
# To indicate that the request should never timeout, set it to
|
35
|
+
# To indicate that the request should never timeout, set it to `-1`. Server default: 30s.
|
36
36
|
# @option arguments [Time] :timeout The period to wait for a response.
|
37
37
|
# If no response is received before the timeout expires, the request fails and returns an error.
|
38
|
-
# To indicate that the request should never timeout, set it to
|
38
|
+
# To indicate that the request should never timeout, set it to `-1`. Server default: 30s.
|
39
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
40
|
+
# when they occur.
|
41
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
42
|
+
# returned by Elasticsearch.
|
43
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
44
|
+
# For example `"exists_time": "1h"` for humans and
|
45
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
46
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
47
|
+
# only by machines.
|
48
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
49
|
+
# this option for debugging only.
|
39
50
|
# @option arguments [Hash] :headers Custom HTTP headers
|
40
51
|
#
|
41
52
|
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-stop
|
@@ -24,6 +24,17 @@ module Elasticsearch
|
|
24
24
|
module Actions
|
25
25
|
# Clear an SQL search cursor.
|
26
26
|
#
|
27
|
+
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
|
28
|
+
# when they occur.
|
29
|
+
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
|
30
|
+
# returned by Elasticsearch.
|
31
|
+
# @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
|
32
|
+
# For example `"exists_time": "1h"` for humans and
|
33
|
+
# `"eixsts_time_in_millis": 3600000` for computers. When disabled the human
|
34
|
+
# readable values will be omitted. This makes sense for responses being consumed
|
35
|
+
# only by machines.
|
36
|
+
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
|
37
|
+
# this option for debugging only.
|
27
38
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
39
|
# @option arguments [Hash] :body request body
|
29
40
|
#
|
@@ -41,7 +52,7 @@ module Elasticsearch
|
|
41
52
|
|
42
53
|
method = Elasticsearch::API::HTTP_POST
|
43
54
|
path = '_sql/close'
|
44
|
-
params =
|
55
|
+
params = Utils.process_params(arguments)
|
45
56
|
|
46
57
|
Elasticsearch::API::Response.new(
|
47
58
|
perform_request(method, path, params, body, headers, request_opts)
|