elasticsearch-api 7.17.11 → 9.0.2
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/README.md +17 -163
- data/elasticsearch-api.gemspec +19 -33
- data/lib/elasticsearch/api/actions/async_search/delete.rb +63 -0
- data/lib/elasticsearch/api/actions/async_search/get.rb +71 -0
- data/lib/elasticsearch/api/actions/async_search/status.rb +66 -0
- data/lib/elasticsearch/api/actions/async_search/submit.rb +113 -0
- data/lib/elasticsearch/api/actions/bulk.rb +135 -49
- data/lib/elasticsearch/api/actions/cat/aliases.rb +41 -31
- data/lib/elasticsearch/api/actions/cat/allocation.rb +40 -33
- data/lib/elasticsearch/api/actions/cat/component_templates.rb +82 -0
- data/lib/elasticsearch/api/actions/cat/count.rb +38 -27
- data/lib/elasticsearch/api/actions/cat/fielddata.rb +36 -29
- data/lib/elasticsearch/api/actions/cat/health.rb +36 -29
- data/lib/elasticsearch/api/actions/cat/help.rb +16 -18
- data/lib/elasticsearch/api/actions/cat/indices.rb +51 -43
- data/lib/elasticsearch/api/actions/cat/master.rb +31 -28
- data/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb +77 -0
- data/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb +84 -0
- data/lib/elasticsearch/api/actions/cat/ml_jobs.rb +85 -0
- data/lib/elasticsearch/api/actions/cat/ml_trained_models.rb +80 -0
- data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +31 -28
- data/lib/elasticsearch/api/actions/cat/nodes.rb +32 -37
- data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +33 -31
- data/lib/elasticsearch/api/actions/cat/plugins.rb +31 -29
- data/lib/elasticsearch/api/actions/cat/recovery.rb +41 -36
- data/lib/elasticsearch/api/actions/cat/repositories.rb +31 -28
- data/lib/elasticsearch/api/actions/cat/segments.rb +42 -28
- data/lib/elasticsearch/api/actions/cat/shards.rb +40 -35
- data/lib/elasticsearch/api/actions/cat/snapshots.rb +40 -32
- data/lib/elasticsearch/api/actions/cat/tasks.rb +38 -34
- data/lib/elasticsearch/api/actions/cat/templates.rb +40 -30
- data/lib/elasticsearch/api/actions/cat/thread_pool.rb +42 -34
- data/lib/elasticsearch/api/actions/cat/transforms.rb +80 -0
- data/lib/elasticsearch/api/actions/clear_scroll.rb +28 -14
- data/lib/elasticsearch/api/actions/close_point_in_time.rb +19 -8
- data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +24 -20
- data/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +26 -19
- data/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb +23 -16
- data/lib/elasticsearch/api/actions/cluster/exists_component_template.rb +29 -20
- data/lib/elasticsearch/api/actions/cluster/get_component_template.rb +30 -20
- data/lib/elasticsearch/api/actions/cluster/get_settings.rb +22 -22
- data/lib/elasticsearch/api/actions/cluster/health.rb +40 -38
- data/lib/elasticsearch/api/actions/cluster/info.rb +61 -0
- data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +23 -19
- data/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb +38 -20
- data/lib/elasticsearch/api/actions/cluster/put_component_template.rb +42 -22
- data/lib/elasticsearch/api/actions/cluster/put_settings.rb +31 -20
- data/lib/elasticsearch/api/actions/cluster/remote_info.rb +16 -7
- data/lib/elasticsearch/api/actions/cluster/reroute.rb +32 -27
- data/lib/elasticsearch/api/actions/cluster/state.rb +43 -32
- data/lib/elasticsearch/api/actions/cluster/stats.rb +27 -20
- data/lib/elasticsearch/api/actions/connector/check_in.rb +65 -0
- data/lib/elasticsearch/api/actions/connector/delete.rb +70 -0
- data/lib/elasticsearch/api/actions/connector/get.rb +66 -0
- data/lib/elasticsearch/api/actions/connector/list.rb +62 -0
- data/lib/elasticsearch/api/actions/connector/post.rb +58 -0
- data/lib/elasticsearch/api/actions/connector/put.rb +67 -0
- data/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb +69 -0
- data/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb +70 -0
- data/lib/elasticsearch/api/actions/connector/sync_job_claim.rb +76 -0
- data/lib/elasticsearch/api/actions/connector/sync_job_delete.rb +69 -0
- data/lib/elasticsearch/api/actions/connector/sync_job_error.rb +73 -0
- data/lib/elasticsearch/api/actions/connector/sync_job_get.rb +67 -0
- data/lib/elasticsearch/api/actions/connector/sync_job_list.rb +60 -0
- data/lib/elasticsearch/api/actions/connector/sync_job_post.rb +58 -0
- data/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb +75 -0
- data/lib/elasticsearch/api/actions/connector/update_active_filtering.rb +65 -0
- data/lib/elasticsearch/api/actions/connector/update_api_key_id.rb +70 -0
- data/lib/elasticsearch/api/actions/connector/update_configuration.rb +67 -0
- data/lib/elasticsearch/api/actions/connector/update_error.rb +69 -0
- data/lib/elasticsearch/api/actions/connector/update_features.rb +76 -0
- data/lib/elasticsearch/api/actions/connector/update_filtering.rb +69 -0
- data/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb +67 -0
- data/lib/elasticsearch/api/actions/connector/update_index_name.rb +67 -0
- data/lib/elasticsearch/api/actions/connector/update_name.rb +66 -0
- data/lib/elasticsearch/api/actions/connector/update_native.rb +66 -0
- data/lib/elasticsearch/api/actions/connector/update_pipeline.rb +67 -0
- data/lib/elasticsearch/api/actions/connector/update_scheduling.rb +66 -0
- data/lib/elasticsearch/api/actions/connector/update_service_type.rb +66 -0
- data/lib/elasticsearch/api/actions/connector/update_status.rb +66 -0
- data/lib/elasticsearch/api/actions/count.rb +63 -57
- data/lib/elasticsearch/api/actions/create.rb +117 -25
- data/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb +64 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb +69 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb +65 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb +64 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb +72 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb +67 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb +69 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb +67 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb +68 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb +66 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb +66 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb +55 -0
- data/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb +66 -0
- data/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb +25 -20
- data/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb +26 -20
- data/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb +17 -7
- data/lib/elasticsearch/api/actions/delete.rb +66 -45
- data/lib/elasticsearch/api/actions/delete_by_query.rb +133 -88
- data/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +25 -17
- data/lib/elasticsearch/api/actions/delete_script.rb +28 -19
- data/lib/elasticsearch/api/actions/enrich/delete_policy.rb +62 -0
- data/lib/elasticsearch/api/actions/enrich/execute_policy.rb +63 -0
- data/lib/elasticsearch/api/actions/enrich/get_policy.rb +65 -0
- data/lib/elasticsearch/api/actions/enrich/put_policy.rb +64 -0
- data/lib/elasticsearch/api/actions/enrich/stats.rb +52 -0
- data/lib/elasticsearch/api/actions/eql/delete.rb +64 -0
- data/lib/elasticsearch/api/actions/eql/get.rb +65 -0
- data/lib/elasticsearch/api/actions/eql/get_status.rb +61 -0
- data/lib/elasticsearch/api/actions/eql/search.rb +73 -0
- data/lib/elasticsearch/api/actions/esql/async_query.rb +70 -0
- data/lib/elasticsearch/api/actions/esql/async_query_delete.rb +67 -0
- data/lib/elasticsearch/api/actions/esql/async_query_get.rb +72 -0
- data/lib/elasticsearch/api/actions/esql/async_query_stop.rb +66 -0
- data/lib/elasticsearch/api/actions/esql/query.rb +61 -0
- data/lib/elasticsearch/api/actions/exists.rb +58 -51
- data/lib/elasticsearch/api/actions/exists_source.rb +42 -47
- data/lib/elasticsearch/api/actions/explain.rb +50 -54
- data/lib/elasticsearch/api/actions/features/get_features.rb +23 -16
- data/lib/elasticsearch/api/actions/features/reset_features.rb +26 -8
- data/lib/elasticsearch/api/actions/field_caps.rb +40 -28
- data/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb +70 -0
- data/lib/elasticsearch/api/actions/fleet/msearch.rb +110 -0
- data/lib/elasticsearch/api/actions/fleet/search.rb +119 -0
- data/lib/elasticsearch/api/actions/get.rb +94 -49
- data/lib/elasticsearch/api/actions/get_script.rb +25 -17
- data/lib/elasticsearch/api/actions/get_script_context.rb +15 -7
- data/lib/elasticsearch/api/actions/get_script_languages.rb +15 -7
- data/lib/elasticsearch/api/actions/get_source.rb +44 -46
- data/lib/elasticsearch/api/actions/graph/explore.rb +75 -0
- data/lib/elasticsearch/api/actions/health_report.rb +75 -0
- data/lib/elasticsearch/api/actions/index.rb +138 -53
- data/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb +63 -0
- data/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb +67 -0
- data/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb +64 -0
- data/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb +51 -0
- data/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb +66 -0
- data/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb +71 -0
- data/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +65 -0
- data/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb +62 -0
- data/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb +63 -0
- data/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb +55 -0
- data/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb +56 -0
- data/lib/elasticsearch/api/actions/indices/add_block.rb +40 -26
- data/lib/elasticsearch/api/actions/indices/analyze.rb +31 -19
- data/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb +65 -0
- data/lib/elasticsearch/api/actions/indices/clear_cache.rb +41 -31
- data/lib/elasticsearch/api/actions/indices/clone.rb +59 -23
- data/lib/elasticsearch/api/actions/indices/close.rb +47 -27
- data/lib/elasticsearch/api/actions/indices/create.rb +43 -24
- data/lib/elasticsearch/api/actions/indices/create_data_stream.rb +68 -0
- data/lib/elasticsearch/api/actions/indices/create_from.rb +71 -0
- data/lib/elasticsearch/api/actions/indices/data_streams_stats.rb +67 -0
- data/lib/elasticsearch/api/actions/indices/delete.rb +45 -26
- data/lib/elasticsearch/api/actions/indices/delete_alias.rb +29 -22
- data/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb +64 -0
- data/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +63 -0
- data/lib/elasticsearch/api/actions/indices/delete_index_template.rb +26 -23
- data/lib/elasticsearch/api/actions/indices/delete_template.rb +31 -20
- data/lib/elasticsearch/api/actions/indices/disk_usage.rb +39 -25
- data/lib/elasticsearch/api/actions/indices/downsample.rb +76 -0
- data/lib/elasticsearch/api/actions/indices/exists.rb +32 -30
- data/lib/elasticsearch/api/actions/indices/exists_alias.rb +34 -28
- data/lib/elasticsearch/api/actions/indices/exists_index_template.rb +26 -25
- data/lib/elasticsearch/api/actions/indices/exists_template.rb +30 -24
- data/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +63 -0
- data/lib/elasticsearch/api/actions/indices/field_usage_stats.rb +34 -23
- data/lib/elasticsearch/api/actions/indices/flush.rb +42 -26
- data/lib/elasticsearch/api/actions/indices/forcemerge.rb +64 -25
- data/lib/elasticsearch/api/actions/indices/get.rb +36 -31
- data/lib/elasticsearch/api/actions/indices/get_alias.rb +39 -27
- data/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb +68 -0
- data/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb +51 -0
- data/lib/elasticsearch/api/actions/indices/get_data_stream.rb +69 -0
- data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +42 -44
- data/lib/elasticsearch/api/actions/indices/get_index_template.rb +27 -22
- data/lib/elasticsearch/api/actions/indices/get_mapping.rb +36 -41
- data/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb +65 -0
- data/lib/elasticsearch/api/actions/indices/get_settings.rb +45 -33
- data/lib/elasticsearch/api/actions/indices/get_template.rb +30 -24
- data/lib/elasticsearch/api/actions/indices/migrate_reindex.rb +60 -0
- data/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb +72 -0
- data/lib/elasticsearch/api/actions/indices/modify_data_stream.rb +54 -0
- data/lib/elasticsearch/api/actions/indices/open.rb +54 -27
- data/lib/elasticsearch/api/actions/indices/promote_data_stream.rb +69 -0
- data/lib/elasticsearch/api/actions/indices/put_alias.rb +32 -23
- data/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb +72 -0
- data/lib/elasticsearch/api/actions/indices/put_index_template.rb +45 -21
- data/lib/elasticsearch/api/actions/indices/put_mapping.rb +54 -44
- data/lib/elasticsearch/api/actions/indices/put_settings.rb +58 -31
- data/lib/elasticsearch/api/actions/indices/put_template.rb +43 -24
- data/lib/elasticsearch/api/actions/indices/recovery.rb +42 -20
- data/lib/elasticsearch/api/actions/indices/refresh.rb +40 -22
- data/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb +74 -0
- data/lib/elasticsearch/api/actions/indices/resolve_cluster.rb +115 -0
- data/lib/elasticsearch/api/actions/indices/resolve_index.rb +32 -17
- data/lib/elasticsearch/api/actions/indices/rollover.rb +60 -29
- data/lib/elasticsearch/api/actions/indices/segments.rb +33 -24
- data/lib/elasticsearch/api/actions/indices/shard_stores.rb +37 -24
- data/lib/elasticsearch/api/actions/indices/shrink.rb +51 -25
- data/lib/elasticsearch/api/actions/indices/simulate_index_template.rb +25 -21
- data/lib/elasticsearch/api/actions/indices/simulate_template.rb +28 -22
- data/lib/elasticsearch/api/actions/indices/split.rb +52 -25
- data/lib/elasticsearch/api/actions/indices/stats.rb +53 -58
- data/lib/elasticsearch/api/actions/indices/update_aliases.rb +21 -19
- data/lib/elasticsearch/api/actions/indices/validate_query.rb +46 -53
- data/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb +63 -0
- data/lib/elasticsearch/api/actions/inference/completion.rb +62 -0
- data/lib/elasticsearch/api/actions/inference/delete.rb +69 -0
- data/lib/elasticsearch/api/actions/inference/get.rb +67 -0
- data/lib/elasticsearch/api/actions/inference/inference.rb +73 -0
- data/lib/elasticsearch/api/actions/inference/put.rb +77 -0
- data/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb +75 -0
- data/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb +70 -0
- data/lib/elasticsearch/api/actions/inference/put_anthropic.rb +76 -0
- data/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb +75 -0
- data/lib/elasticsearch/api/actions/inference/put_azureopenai.rb +80 -0
- data/lib/elasticsearch/api/actions/inference/put_cohere.rb +75 -0
- data/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb +71 -0
- data/lib/elasticsearch/api/actions/inference/put_elser.rb +67 -0
- data/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb +75 -0
- data/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb +75 -0
- data/lib/elasticsearch/api/actions/inference/put_hugging_face.rb +86 -0
- data/lib/elasticsearch/api/actions/inference/put_jinaai.rb +77 -0
- data/lib/elasticsearch/api/actions/inference/put_mistral.rb +76 -0
- data/lib/elasticsearch/api/actions/inference/put_openai.rb +76 -0
- data/lib/elasticsearch/api/actions/inference/put_voyageai.rb +71 -0
- data/lib/elasticsearch/api/actions/inference/put_watsonx.rb +78 -0
- data/lib/elasticsearch/api/actions/inference/rerank.rb +62 -0
- data/lib/elasticsearch/api/actions/inference/sparse_embedding.rb +62 -0
- data/lib/elasticsearch/api/actions/inference/stream_completion.rb +65 -0
- data/lib/elasticsearch/api/actions/inference/text_embedding.rb +62 -0
- data/lib/elasticsearch/api/actions/inference/update.rb +73 -0
- data/lib/elasticsearch/api/actions/info.rb +15 -7
- data/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb +64 -0
- data/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb +66 -0
- data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +27 -19
- data/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb +15 -7
- data/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb +65 -0
- data/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb +67 -0
- data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +28 -19
- data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +17 -7
- data/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb +66 -0
- data/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb +68 -0
- data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +25 -21
- data/lib/elasticsearch/api/actions/ingest/simulate.rb +27 -19
- data/lib/elasticsearch/api/actions/license/delete.rb +54 -0
- data/lib/elasticsearch/api/actions/license/get.rb +54 -0
- data/lib/elasticsearch/api/actions/{shutdown/get_node.rb → license/get_basic_status.rb} +15 -15
- data/lib/elasticsearch/api/actions/{shutdown/delete_node.rb → license/get_trial_status.rb} +16 -14
- data/lib/elasticsearch/api/actions/license/post.rb +60 -0
- data/lib/elasticsearch/api/actions/license/post_start_basic.rb +58 -0
- data/lib/elasticsearch/api/actions/license/post_start_trial.rb +57 -0
- data/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb +62 -0
- data/lib/elasticsearch/api/actions/logstash/get_pipeline.rb +63 -0
- data/lib/elasticsearch/api/actions/logstash/put_pipeline.rb +64 -0
- data/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb +64 -0
- data/lib/elasticsearch/api/actions/machine_learning/close_job.rb +70 -0
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb +61 -0
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb +65 -0
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb +65 -0
- data/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb +62 -0
- data/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb +65 -0
- data/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb +75 -0
- data/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb +62 -0
- data/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb +80 -0
- data/lib/elasticsearch/api/actions/machine_learning/delete_job.rb +73 -0
- data/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb +67 -0
- data/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb +63 -0
- data/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb +67 -0
- data/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb +56 -0
- data/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb +57 -0
- data/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb +76 -0
- data/lib/elasticsearch/api/actions/machine_learning/flush_job.rb +79 -0
- data/lib/elasticsearch/api/actions/machine_learning/forecast.rb +77 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb +86 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb +65 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb +70 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_categories.rb +80 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb +81 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb +76 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb +78 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb +80 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_filters.rb +65 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb +83 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb +73 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb +79 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb +69 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb +73 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb +82 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb +105 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_records.rb +86 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb +82 -0
- data/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb +73 -0
- data/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb +63 -0
- data/lib/elasticsearch/api/actions/machine_learning/info.rb +57 -0
- data/lib/elasticsearch/api/actions/machine_learning/open_job.rb +68 -0
- data/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb +62 -0
- data/lib/elasticsearch/api/actions/machine_learning/post_data.rb +66 -0
- data/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb +69 -0
- data/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb +81 -0
- data/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb +61 -0
- data/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb +64 -0
- data/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb +69 -0
- data/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb +80 -0
- data/lib/elasticsearch/api/actions/machine_learning/put_filter.rb +64 -0
- data/lib/elasticsearch/api/actions/machine_learning/put_job.rb +75 -0
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb +68 -0
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb +83 -0
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb +67 -0
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb +64 -0
- data/lib/elasticsearch/api/actions/machine_learning/reset_job.rb +69 -0
- data/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb +80 -0
- data/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb +66 -0
- data/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb +75 -0
- data/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb +87 -0
- data/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb +83 -0
- data/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb +76 -0
- data/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb +74 -0
- data/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb +66 -0
- data/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb +64 -0
- data/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb +79 -0
- data/lib/elasticsearch/api/actions/machine_learning/update_filter.rb +63 -0
- data/lib/elasticsearch/api/actions/machine_learning/update_job.rb +63 -0
- data/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb +67 -0
- data/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb +67 -0
- data/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb +76 -0
- data/lib/elasticsearch/api/actions/mget.rb +49 -44
- data/lib/elasticsearch/api/actions/migration/deprecations.rb +65 -0
- data/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb +54 -0
- data/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb +54 -0
- data/lib/elasticsearch/api/actions/msearch.rb +68 -57
- data/lib/elasticsearch/api/actions/msearch_template.rb +49 -44
- data/lib/elasticsearch/api/actions/mtermvectors.rb +47 -58
- data/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb +27 -10
- data/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb +23 -8
- data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +33 -35
- data/lib/elasticsearch/api/actions/nodes/info.rb +28 -23
- data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +31 -19
- data/lib/elasticsearch/api/actions/nodes/stats.rb +39 -40
- data/lib/elasticsearch/api/actions/nodes/usage.rb +28 -21
- data/lib/elasticsearch/api/actions/open_point_in_time.rb +59 -25
- data/lib/elasticsearch/api/actions/ping.rb +16 -12
- data/lib/elasticsearch/api/actions/put_script.rb +33 -23
- data/lib/elasticsearch/api/actions/query_rules/delete_rule.rb +66 -0
- data/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb +70 -0
- data/lib/elasticsearch/api/actions/query_rules/get_rule.rb +65 -0
- data/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb +61 -0
- data/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb +53 -0
- data/lib/elasticsearch/api/actions/query_rules/put_rule.rb +71 -0
- data/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb +68 -0
- data/lib/elasticsearch/api/actions/query_rules/test.rb +63 -0
- data/lib/elasticsearch/api/actions/rank_eval.rb +30 -25
- data/lib/elasticsearch/api/actions/reindex.rb +165 -33
- data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +31 -17
- data/lib/elasticsearch/api/actions/render_search_template.rb +25 -11
- data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +21 -9
- data/lib/elasticsearch/api/actions/scroll.rb +29 -26
- data/lib/elasticsearch/api/actions/search.rb +148 -116
- data/lib/elasticsearch/api/actions/search_application/delete.rb +65 -0
- data/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb +65 -0
- data/lib/elasticsearch/api/actions/search_application/get.rb +64 -0
- data/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb +66 -0
- data/lib/elasticsearch/api/actions/search_application/list.rb +58 -0
- data/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb +71 -0
- data/lib/elasticsearch/api/actions/search_application/put.rb +67 -0
- data/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb +64 -0
- data/lib/elasticsearch/api/actions/search_application/render_query.rb +69 -0
- data/lib/elasticsearch/api/actions/search_application/search.rb +73 -0
- data/lib/elasticsearch/api/actions/search_mvt.rb +167 -35
- data/lib/elasticsearch/api/actions/search_shards.rb +43 -28
- data/lib/elasticsearch/api/actions/search_template.rb +46 -54
- data/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb +68 -0
- data/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb +71 -0
- data/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb +74 -0
- data/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb +63 -0
- data/lib/elasticsearch/api/actions/security/activate_user_profile.rb +62 -0
- data/lib/elasticsearch/api/actions/security/authenticate.rb +54 -0
- data/lib/elasticsearch/api/actions/security/bulk_delete_role.rb +56 -0
- data/lib/elasticsearch/api/actions/security/bulk_put_role.rb +56 -0
- data/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb +62 -0
- data/lib/elasticsearch/api/actions/security/change_password.rb +68 -0
- data/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb +64 -0
- data/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb +64 -0
- data/lib/elasticsearch/api/actions/security/clear_cached_realms.rb +69 -0
- data/lib/elasticsearch/api/actions/security/clear_cached_roles.rb +63 -0
- data/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb +75 -0
- data/lib/elasticsearch/api/actions/security/create_api_key.rb +62 -0
- data/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb +62 -0
- data/lib/elasticsearch/api/actions/security/create_service_token.rb +78 -0
- data/lib/elasticsearch/api/actions/security/delegate_pki.rb +60 -0
- data/lib/elasticsearch/api/actions/security/delete_privileges.rb +69 -0
- data/lib/elasticsearch/api/actions/security/delete_role.rb +64 -0
- data/lib/elasticsearch/api/actions/security/delete_role_mapping.rb +65 -0
- data/lib/elasticsearch/api/actions/security/delete_service_token.rb +70 -0
- data/lib/elasticsearch/api/actions/security/delete_user.rb +62 -0
- data/lib/elasticsearch/api/actions/security/disable_user.rb +64 -0
- data/lib/elasticsearch/api/actions/security/disable_user_profile.rb +69 -0
- data/lib/elasticsearch/api/actions/security/enable_user.rb +63 -0
- data/lib/elasticsearch/api/actions/security/enable_user_profile.rb +70 -0
- data/lib/elasticsearch/api/actions/security/enroll_kibana.rb +53 -0
- data/lib/elasticsearch/api/actions/security/enroll_node.rb +53 -0
- data/lib/elasticsearch/api/actions/security/get_api_key.rb +70 -0
- data/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb +51 -0
- data/lib/elasticsearch/api/actions/security/get_privileges.rb +73 -0
- data/lib/elasticsearch/api/actions/security/get_role.rb +75 -0
- data/lib/elasticsearch/api/actions/security/get_role_mapping.rb +65 -0
- data/lib/elasticsearch/api/actions/security/get_service_accounts.rb +72 -0
- data/lib/elasticsearch/api/actions/security/get_service_credentials.rb +68 -0
- data/lib/elasticsearch/api/actions/security/get_settings.rb +57 -0
- data/lib/elasticsearch/api/actions/security/get_token.rb +62 -0
- data/lib/elasticsearch/api/actions/security/get_user.rb +72 -0
- data/lib/elasticsearch/api/actions/security/get_user_privileges.rb +57 -0
- data/lib/elasticsearch/api/actions/security/get_user_profile.rb +68 -0
- data/lib/elasticsearch/api/actions/security/grant_api_key.rb +68 -0
- data/lib/elasticsearch/api/actions/security/has_privileges.rb +68 -0
- data/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb +56 -0
- data/lib/elasticsearch/api/actions/security/invalidate_api_key.rb +63 -0
- data/lib/elasticsearch/api/actions/security/invalidate_token.rb +62 -0
- data/lib/elasticsearch/api/actions/security/oidc_authenticate.rb +56 -0
- data/lib/elasticsearch/api/actions/security/oidc_logout.rb +57 -0
- data/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb +57 -0
- data/lib/elasticsearch/api/actions/security/put_privileges.rb +66 -0
- data/lib/elasticsearch/api/actions/security/put_role.rb +66 -0
- data/lib/elasticsearch/api/actions/security/put_role_mapping.rb +81 -0
- data/lib/elasticsearch/api/actions/security/put_user.rb +69 -0
- data/lib/elasticsearch/api/actions/security/query_api_keys.rb +67 -0
- data/lib/elasticsearch/api/actions/security/query_role.rb +61 -0
- data/lib/elasticsearch/api/actions/security/query_user.rb +61 -0
- data/lib/elasticsearch/api/actions/security/saml_authenticate.rb +62 -0
- data/lib/elasticsearch/api/actions/security/saml_complete_logout.rb +61 -0
- data/lib/elasticsearch/api/actions/security/saml_invalidate.rb +60 -0
- data/lib/elasticsearch/api/actions/security/saml_logout.rb +58 -0
- data/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb +63 -0
- data/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb +63 -0
- data/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb +65 -0
- data/lib/elasticsearch/api/actions/security/update_api_key.rb +74 -0
- data/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb +72 -0
- data/lib/elasticsearch/api/actions/security/update_settings.rb +61 -0
- data/lib/elasticsearch/api/actions/security/update_user_profile_data.rb +79 -0
- data/lib/elasticsearch/api/actions/simulate/ingest.rb +85 -0
- data/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb +28 -19
- data/lib/elasticsearch/api/actions/snapshot/clone.rb +28 -20
- data/lib/elasticsearch/api/actions/snapshot/create.rb +30 -21
- data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +36 -22
- data/lib/elasticsearch/api/actions/snapshot/delete.rb +31 -19
- data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +35 -20
- data/lib/elasticsearch/api/actions/snapshot/get.rb +58 -41
- data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +33 -21
- data/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb +113 -37
- data/lib/elasticsearch/api/actions/snapshot/restore.rb +40 -21
- data/lib/elasticsearch/api/actions/snapshot/status.rb +48 -23
- data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +28 -19
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb +66 -0
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb +66 -0
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb +56 -0
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +67 -0
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb +53 -0
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb +56 -0
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +70 -0
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb +58 -0
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb +62 -0
- data/lib/elasticsearch/api/actions/{shutdown/put_node.rb → sql/clear_cursor.rb} +18 -15
- data/lib/elasticsearch/api/actions/sql/delete_async.rb +65 -0
- data/lib/elasticsearch/api/actions/sql/get_async.rb +71 -0
- data/lib/elasticsearch/api/actions/sql/get_async_status.rb +61 -0
- data/lib/elasticsearch/api/actions/sql/query.rb +57 -0
- data/lib/elasticsearch/api/actions/sql/translate.rb +55 -0
- data/lib/elasticsearch/api/actions/ssl/certificates.rb +60 -0
- data/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb +72 -0
- data/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb +65 -0
- data/lib/elasticsearch/api/actions/synonyms/get_synonym.rb +62 -0
- data/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb +65 -0
- data/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb +53 -0
- data/lib/elasticsearch/api/actions/synonyms/put_synonym.rb +66 -0
- data/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb +69 -0
- data/lib/elasticsearch/api/actions/tasks/cancel.rb +34 -24
- data/lib/elasticsearch/api/actions/tasks/get.rb +30 -19
- data/lib/elasticsearch/api/actions/tasks/list.rb +80 -28
- data/lib/elasticsearch/api/actions/terms_enum.rb +68 -0
- data/lib/elasticsearch/api/actions/termvectors.rb +69 -59
- data/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb +127 -0
- data/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb +126 -0
- data/lib/elasticsearch/api/actions/text_structure/find_structure.rb +149 -0
- data/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb +58 -0
- data/lib/elasticsearch/api/actions/transform/delete_transform.rb +65 -0
- data/lib/elasticsearch/api/actions/transform/get_node_stats.rb +55 -0
- data/lib/elasticsearch/api/actions/transform/get_transform.rb +77 -0
- data/lib/elasticsearch/api/actions/transform/get_transform_stats.rb +73 -0
- data/lib/elasticsearch/api/actions/transform/preview_transform.rb +75 -0
- data/lib/elasticsearch/api/actions/transform/put_transform.rb +86 -0
- data/lib/elasticsearch/api/actions/transform/reset_transform.rb +66 -0
- data/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb +66 -0
- data/lib/elasticsearch/api/actions/transform/start_transform.rb +75 -0
- data/lib/elasticsearch/api/actions/transform/stop_transform.rb +74 -0
- data/lib/elasticsearch/api/actions/transform/update_transform.rb +73 -0
- data/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb +64 -0
- data/lib/elasticsearch/api/actions/update.rb +61 -54
- data/lib/elasticsearch/api/actions/update_by_query.rb +144 -92
- data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +25 -17
- data/lib/elasticsearch/api/actions/watcher/ack_watch.rb +74 -0
- data/lib/elasticsearch/api/actions/watcher/activate_watch.rb +61 -0
- data/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb +61 -0
- data/lib/elasticsearch/api/actions/watcher/delete_watch.rb +73 -0
- data/lib/elasticsearch/api/actions/watcher/execute_watch.rb +73 -0
- data/lib/elasticsearch/api/actions/watcher/get_settings.rb +54 -0
- data/lib/elasticsearch/api/actions/watcher/get_watch.rb +60 -0
- data/lib/elasticsearch/api/actions/watcher/put_watch.rb +74 -0
- data/lib/elasticsearch/api/actions/watcher/query_watches.rb +58 -0
- data/lib/elasticsearch/api/actions/watcher/start.rb +52 -0
- data/lib/elasticsearch/api/actions/watcher/stats.rb +65 -0
- data/lib/elasticsearch/api/actions/watcher/stop.rb +54 -0
- data/lib/elasticsearch/api/actions/watcher/update_settings.rb +63 -0
- data/lib/elasticsearch/api/actions/xpack/info.rb +59 -0
- data/lib/elasticsearch/api/actions/xpack/usage.rb +55 -0
- data/lib/elasticsearch/api/response.rb +48 -0
- data/lib/elasticsearch/api/utils.rb +34 -143
- data/lib/elasticsearch/api/version.rb +2 -1
- data/lib/elasticsearch/api.rb +81 -47
- metadata +389 -434
- data/Gemfile +0 -43
- data/Rakefile +0 -124
- data/lib/elasticsearch/api/actions/cat/params_registry.rb +0 -60
- data/lib/elasticsearch/api/actions/cluster/params_registry.rb +0 -60
- data/lib/elasticsearch/api/actions/dangling_indices/params_registry.rb +0 -60
- data/lib/elasticsearch/api/actions/features/params_registry.rb +0 -60
- data/lib/elasticsearch/api/actions/indices/exists_type.rb +0 -71
- data/lib/elasticsearch/api/actions/indices/flush_synced.rb +0 -71
- data/lib/elasticsearch/api/actions/indices/get_upgrade.rb +0 -67
- data/lib/elasticsearch/api/actions/indices/params_registry.rb +0 -60
- data/lib/elasticsearch/api/actions/indices/upgrade.rb +0 -71
- data/lib/elasticsearch/api/actions/ingest/params_registry.rb +0 -60
- data/lib/elasticsearch/api/actions/nodes/params_registry.rb +0 -60
- data/lib/elasticsearch/api/actions/params_registry.rb +0 -58
- data/lib/elasticsearch/api/actions/shutdown/params_registry.rb +0 -60
- data/lib/elasticsearch/api/actions/snapshot/params_registry.rb +0 -60
- data/lib/elasticsearch/api/actions/tasks/params_registry.rb +0 -60
- data/lib/elasticsearch/api/namespace/cat.rb +0 -36
- data/lib/elasticsearch/api/namespace/cluster.rb +0 -37
- data/lib/elasticsearch/api/namespace/common.rb +0 -44
- data/lib/elasticsearch/api/namespace/dangling_indices.rb +0 -35
- data/lib/elasticsearch/api/namespace/features.rb +0 -36
- data/lib/elasticsearch/api/namespace/indices.rb +0 -37
- data/lib/elasticsearch/api/namespace/ingest.rb +0 -37
- data/lib/elasticsearch/api/namespace/nodes.rb +0 -37
- data/lib/elasticsearch/api/namespace/remote.rb +0 -37
- data/lib/elasticsearch/api/namespace/security.rb +0 -36
- data/lib/elasticsearch/api/namespace/shutdown.rb +0 -37
- data/lib/elasticsearch/api/namespace/snapshot.rb +0 -37
- data/lib/elasticsearch/api/namespace/tasks.rb +0 -37
- data/spec/elasticsearch/api/actions/bulk_spec.rb +0 -139
- data/spec/elasticsearch/api/actions/cat/aliases_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/allocation_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/count_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/fielddata_spec.rb +0 -52
- data/spec/elasticsearch/api/actions/cat/health_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/help_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/indices_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/master_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/nodeattrs_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/nodes_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/pending_tasks_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/plugins_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/recovery_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/repositories_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/segments_spec.rb +0 -49
- data/spec/elasticsearch/api/actions/cat/shards_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/snapshot_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/tasks_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/templates_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/thread_pool_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/clear_scroll_spec.rb +0 -52
- data/spec/elasticsearch/api/actions/close_point_in_time_spec.rb +0 -34
- data/spec/elasticsearch/api/actions/cluster/allocation_explain_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cluster/get_settings_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cluster/health_spec.rb +0 -69
- data/spec/elasticsearch/api/actions/cluster/pending_tasks_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cluster/put_settings_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cluster/remote_info_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cluster/reroute_spec.rb +0 -52
- data/spec/elasticsearch/api/actions/cluster/state_spec.rb +0 -52
- data/spec/elasticsearch/api/actions/cluster/stats_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/count_spec.rb +0 -66
- data/spec/elasticsearch/api/actions/create_document_spec.rb +0 -86
- data/spec/elasticsearch/api/actions/dangling_indices/delete_dangling_indices_spec.rb +0 -48
- data/spec/elasticsearch/api/actions/dangling_indices/import_dangling_indices_spec.rb +0 -48
- data/spec/elasticsearch/api/actions/dangling_indices/list_dangling_indices_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/delete_by_query_spec.rb +0 -80
- data/spec/elasticsearch/api/actions/delete_document_spec.rb +0 -112
- data/spec/elasticsearch/api/actions/delete_script_spec.rb +0 -37
- data/spec/elasticsearch/api/actions/exists_document_spec.rb +0 -127
- data/spec/elasticsearch/api/actions/explain_document_spec.rb +0 -99
- data/spec/elasticsearch/api/actions/features/get_features_spec.rb +0 -34
- data/spec/elasticsearch/api/actions/features/reset_features_spec.rb +0 -34
- data/spec/elasticsearch/api/actions/field_caps_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/get_document_source_spec.rb +0 -101
- data/spec/elasticsearch/api/actions/get_document_spec.rb +0 -124
- data/spec/elasticsearch/api/actions/get_script_spec.rb +0 -50
- data/spec/elasticsearch/api/actions/hashie_spec.rb +0 -89
- data/spec/elasticsearch/api/actions/index_document_spec.rb +0 -137
- data/spec/elasticsearch/api/actions/indices/add_block_spec.rb +0 -63
- data/spec/elasticsearch/api/actions/indices/analyze_spec.rb +0 -68
- data/spec/elasticsearch/api/actions/indices/clear_cache_spec.rb +0 -80
- data/spec/elasticsearch/api/actions/indices/clone_spec.rb +0 -122
- data/spec/elasticsearch/api/actions/indices/close_spec.rb +0 -85
- data/spec/elasticsearch/api/actions/indices/create_spec.rb +0 -85
- data/spec/elasticsearch/api/actions/indices/delete_alias_spec.rb +0 -83
- data/spec/elasticsearch/api/actions/indices/delete_spec.rb +0 -108
- data/spec/elasticsearch/api/actions/indices/delete_template_spec.rb +0 -86
- data/spec/elasticsearch/api/actions/indices/disk_usage_spec.rb +0 -48
- data/spec/elasticsearch/api/actions/indices/exists_alias_spec.rb +0 -108
- data/spec/elasticsearch/api/actions/indices/exists_spec.rb +0 -108
- data/spec/elasticsearch/api/actions/indices/exists_template_spec.rb +0 -93
- data/spec/elasticsearch/api/actions/indices/exists_type_spec.rb +0 -108
- data/spec/elasticsearch/api/actions/indices/field_usage_stats_spec.rb +0 -46
- data/spec/elasticsearch/api/actions/indices/flush_spec.rb +0 -91
- data/spec/elasticsearch/api/actions/indices/flush_synced_spec.rb +0 -90
- data/spec/elasticsearch/api/actions/indices/forcemerge_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/indices/get_alias_spec.rb +0 -61
- data/spec/elasticsearch/api/actions/indices/get_field_mapping_spec.rb +0 -61
- data/spec/elasticsearch/api/actions/indices/get_mapping_spec.rb +0 -83
- data/spec/elasticsearch/api/actions/indices/get_settings_spec.rb +0 -72
- data/spec/elasticsearch/api/actions/indices/get_spec.rb +0 -54
- data/spec/elasticsearch/api/actions/indices/open_spec.rb +0 -65
- data/spec/elasticsearch/api/actions/indices/put_alias_spec.rb +0 -89
- data/spec/elasticsearch/api/actions/indices/put_mapping_spec.rb +0 -102
- data/spec/elasticsearch/api/actions/indices/put_settings_spec.rb +0 -108
- data/spec/elasticsearch/api/actions/indices/put_template_spec.rb +0 -107
- data/spec/elasticsearch/api/actions/indices/recovery_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/indices/refresh_spec.rb +0 -91
- data/spec/elasticsearch/api/actions/indices/rollover_spec.rb +0 -58
- data/spec/elasticsearch/api/actions/indices/segments_spec.rb +0 -91
- data/spec/elasticsearch/api/actions/indices/shard_stores_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/indices/shrink_spec.rb +0 -42
- data/spec/elasticsearch/api/actions/indices/split_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/indices/stats_spec.rb +0 -124
- data/spec/elasticsearch/api/actions/indices/update_aliases_spec.rb +0 -67
- data/spec/elasticsearch/api/actions/indices/upgrade_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/indices/validate_query_spec.rb +0 -122
- data/spec/elasticsearch/api/actions/info_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/ingest/delete_pipeline_spec.rb +0 -60
- data/spec/elasticsearch/api/actions/ingest/geo_ip_stats_spec.rb +0 -34
- data/spec/elasticsearch/api/actions/ingest/get_pipeline_spec.rb +0 -50
- data/spec/elasticsearch/api/actions/ingest/put_pipeline_spec.rb +0 -60
- data/spec/elasticsearch/api/actions/ingest/simulate_spec.rb +0 -49
- data/spec/elasticsearch/api/actions/json_builders_spec.rb +0 -84
- data/spec/elasticsearch/api/actions/mget_spec.rb +0 -102
- data/spec/elasticsearch/api/actions/msearch_spec.rb +0 -151
- data/spec/elasticsearch/api/actions/msearch_template_spec.rb +0 -93
- data/spec/elasticsearch/api/actions/mtermvectors_spec.rb +0 -46
- data/spec/elasticsearch/api/actions/nodes/clear_repositories_metering_archive_spec.rb +0 -51
- data/spec/elasticsearch/api/actions/nodes/get_repositories_metering_info_spec.rb +0 -44
- data/spec/elasticsearch/api/actions/nodes/hot_threads_spec.rb +0 -61
- data/spec/elasticsearch/api/actions/nodes/info_spec.rb +0 -102
- data/spec/elasticsearch/api/actions/nodes/reload_secure_settings_spec.rb +0 -84
- data/spec/elasticsearch/api/actions/nodes/stats_spec.rb +0 -76
- data/spec/elasticsearch/api/actions/open_point_in_time_spec.rb +0 -34
- data/spec/elasticsearch/api/actions/ping_spec.rb +0 -76
- data/spec/elasticsearch/api/actions/put_script_spec.rb +0 -56
- data/spec/elasticsearch/api/actions/reindex_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/render_search_template_spec.rb +0 -52
- data/spec/elasticsearch/api/actions/scroll_spec.rb +0 -52
- data/spec/elasticsearch/api/actions/search_mvt_spec.rb +0 -52
- data/spec/elasticsearch/api/actions/search_shards_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/search_spec.rb +0 -134
- data/spec/elasticsearch/api/actions/search_template_spec.rb +0 -34
- data/spec/elasticsearch/api/actions/shutdown/delete_node_spec.rb +0 -44
- data/spec/elasticsearch/api/actions/shutdown/get_node_spec.rb +0 -46
- data/spec/elasticsearch/api/actions/shutdown/put_node_spec.rb +0 -50
- data/spec/elasticsearch/api/actions/snapshot/clone_spec.rb +0 -67
- data/spec/elasticsearch/api/actions/snapshot/create_repository_spec.rb +0 -51
- data/spec/elasticsearch/api/actions/snapshot/create_spec.rb +0 -51
- data/spec/elasticsearch/api/actions/snapshot/delete_repository_spec.rb +0 -50
- data/spec/elasticsearch/api/actions/snapshot/delete_spec.rb +0 -51
- data/spec/elasticsearch/api/actions/snapshot/get_repository_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/snapshot/get_spec.rb +0 -51
- data/spec/elasticsearch/api/actions/snapshot/repository_analize_spec.rb +0 -48
- data/spec/elasticsearch/api/actions/snapshot/restore_spec.rb +0 -51
- data/spec/elasticsearch/api/actions/snapshot/status_spec.rb +0 -50
- data/spec/elasticsearch/api/actions/snapshot/verify_repository_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/tasks/cancel_spec.rb +0 -50
- data/spec/elasticsearch/api/actions/tasks/get_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/tasks/list_spec.rb +0 -39
- data/spec/elasticsearch/api/actions/termvectors_spec.rb +0 -66
- data/spec/elasticsearch/api/actions/update_by_query_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/update_document_spec.rb +0 -122
- data/spec/elasticsearch/api/api_spec.rb +0 -43
- data/spec/elasticsearch/api/client_spec.rb +0 -46
- data/spec/elasticsearch/api/rest_api_yaml_spec.rb +0 -159
- data/spec/elasticsearch/api/utils_spec.rb +0 -418
- data/spec/rest_yaml_tests_helper.rb +0 -135
- data/spec/skipped_tests.yml +0 -29
- data/spec/spec_helper.rb +0 -82
- data/utils/Gemfile +0 -28
- data/utils/README.md +0 -46
- data/utils/Thorfile +0 -6
- data/utils/thor/.rubocop.yml +0 -4
- data/utils/thor/generate_source.rb +0 -307
- data/utils/thor/generator/endpoint_specifics.rb +0 -187
- data/utils/thor/generator/files_helper.rb +0 -78
- data/utils/thor/lister.rb +0 -57
- data/utils/thor/templates/_documentation_top.erb +0 -58
- data/utils/thor/templates/_method_setup.erb +0 -53
- data/utils/thor/templates/_params_registry.erb +0 -31
- data/utils/thor/templates/_perform_request.erb +0 -56
- data/utils/thor/templates/method.erb +0 -73
- data/utils/thor/templates/test.erb +0 -43
- data/utils/thor/templates/test_helper.rb +0 -83
- /data/{LICENSE → LICENSE.txt} +0 -0
| @@ -14,46 +14,56 @@ | |
| 14 14 | 
             
            # KIND, either express or implied.  See the License for the
         | 
| 15 15 | 
             
            # specific language governing permissions and limitations
         | 
| 16 16 | 
             
            # under the License.
         | 
| 17 | 
            -
             | 
| 17 | 
            +
            #
         | 
| 18 | 
            +
            # This code was automatically generated from the Elasticsearch Specification
         | 
| 19 | 
            +
            # See https://github.com/elastic/elasticsearch-specification
         | 
| 20 | 
            +
            # See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash.
         | 
| 18 21 | 
             
            module Elasticsearch
         | 
| 19 22 | 
             
              module API
         | 
| 20 23 | 
             
                module Cluster
         | 
| 21 24 | 
             
                  module Actions
         | 
| 22 | 
            -
                    #  | 
| 25 | 
            +
                    # Get component templates.
         | 
| 26 | 
            +
                    # Get information about component templates.
         | 
| 23 27 | 
             
                    #
         | 
| 24 | 
            -
                    # @option arguments [ | 
| 25 | 
            -
                    #  | 
| 26 | 
            -
                    # @option arguments [Boolean] : | 
| 28 | 
            +
                    # @option arguments [String] :name Comma-separated list of component template names used to limit the request.
         | 
| 29 | 
            +
                    #  Wildcard (+*+) expressions are supported.
         | 
| 30 | 
            +
                    # @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format.
         | 
| 31 | 
            +
                    # @option arguments [Boolean] :include_defaults Return all default configurations for the component template (default: false)
         | 
| 32 | 
            +
                    # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only.
         | 
| 33 | 
            +
                    #  If +false+, information is retrieved from the master node.
         | 
| 34 | 
            +
                    # @option arguments [Time] :master_timeout Period to wait for a connection to the master node.
         | 
| 35 | 
            +
                    #  If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
         | 
| 27 36 | 
             
                    # @option arguments [Hash] :headers Custom HTTP headers
         | 
| 28 37 | 
             
                    #
         | 
| 29 | 
            -
                    # @see https://www.elastic.co/ | 
| 38 | 
            +
                    # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-component-template
         | 
| 30 39 | 
             
                    #
         | 
| 31 40 | 
             
                    def get_component_template(arguments = {})
         | 
| 32 | 
            -
                       | 
| 41 | 
            +
                      request_opts = { endpoint: arguments[:endpoint] || 'cluster.get_component_template' }
         | 
| 42 | 
            +
             | 
| 43 | 
            +
                      defined_params = [:name].each_with_object({}) do |variable, set_variables|
         | 
| 44 | 
            +
                        set_variables[variable] = arguments[variable] if arguments.key?(variable)
         | 
| 45 | 
            +
                      end
         | 
| 46 | 
            +
                      request_opts[:defined_params] = defined_params unless defined_params.empty?
         | 
| 33 47 |  | 
| 34 48 | 
             
                      arguments = arguments.clone
         | 
| 49 | 
            +
                      headers = arguments.delete(:headers) || {}
         | 
| 50 | 
            +
             | 
| 51 | 
            +
                      body = nil
         | 
| 35 52 |  | 
| 36 53 | 
             
                      _name = arguments.delete(:name)
         | 
| 37 54 |  | 
| 38 55 | 
             
                      method = Elasticsearch::API::HTTP_GET
         | 
| 39 56 | 
             
                      path   = if _name
         | 
| 40 | 
            -
                                 "_component_template/#{Utils. | 
| 57 | 
            +
                                 "_component_template/#{Utils.listify(_name)}"
         | 
| 41 58 | 
             
                               else
         | 
| 42 | 
            -
                                  | 
| 59 | 
            +
                                 '_component_template'
         | 
| 43 60 | 
             
                               end
         | 
| 44 | 
            -
                      params = Utils. | 
| 61 | 
            +
                      params = Utils.process_params(arguments)
         | 
| 45 62 |  | 
| 46 | 
            -
                       | 
| 47 | 
            -
             | 
| 63 | 
            +
                      Elasticsearch::API::Response.new(
         | 
| 64 | 
            +
                        perform_request(method, path, params, body, headers, request_opts)
         | 
| 65 | 
            +
                      )
         | 
| 48 66 | 
             
                    end
         | 
| 49 | 
            -
             | 
| 50 | 
            -
                    # Register this action with its valid params when the module is loaded.
         | 
| 51 | 
            -
                    #
         | 
| 52 | 
            -
                    # @since 6.2.0
         | 
| 53 | 
            -
                    ParamsRegistry.register(:get_component_template, [
         | 
| 54 | 
            -
                      :master_timeout,
         | 
| 55 | 
            -
                      :local
         | 
| 56 | 
            -
                    ].freeze)
         | 
| 57 67 | 
             
                  end
         | 
| 58 68 | 
             
                end
         | 
| 59 69 | 
             
              end
         | 
| @@ -14,43 +14,43 @@ | |
| 14 14 | 
             
            # KIND, either express or implied.  See the License for the
         | 
| 15 15 | 
             
            # specific language governing permissions and limitations
         | 
| 16 16 | 
             
            # under the License.
         | 
| 17 | 
            -
             | 
| 17 | 
            +
            #
         | 
| 18 | 
            +
            # This code was automatically generated from the Elasticsearch Specification
         | 
| 19 | 
            +
            # See https://github.com/elastic/elasticsearch-specification
         | 
| 20 | 
            +
            # See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash.
         | 
| 18 21 | 
             
            module Elasticsearch
         | 
| 19 22 | 
             
              module API
         | 
| 20 23 | 
             
                module Cluster
         | 
| 21 24 | 
             
                  module Actions
         | 
| 22 | 
            -
                    #  | 
| 25 | 
            +
                    # Get cluster-wide settings.
         | 
| 26 | 
            +
                    # By default, it returns only settings that have been explicitly defined.
         | 
| 23 27 | 
             
                    #
         | 
| 24 | 
            -
                    # @option arguments [Boolean] :flat_settings  | 
| 25 | 
            -
                    # @option arguments [ | 
| 26 | 
            -
                    # @option arguments [Time] : | 
| 27 | 
            -
                    #  | 
| 28 | 
            +
                    # @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format.
         | 
| 29 | 
            +
                    # @option arguments [Boolean] :include_defaults If +true+, returns default cluster settings from the local node.
         | 
| 30 | 
            +
                    # @option arguments [Time] :master_timeout Period to wait for a connection to the master node.
         | 
| 31 | 
            +
                    #  If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
         | 
| 32 | 
            +
                    # @option arguments [Time] :timeout Period to wait for a response.
         | 
| 33 | 
            +
                    #  If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
         | 
| 28 34 | 
             
                    # @option arguments [Hash] :headers Custom HTTP headers
         | 
| 29 35 | 
             
                    #
         | 
| 30 | 
            -
                    # @see https://www.elastic.co/ | 
| 36 | 
            +
                    # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-get-settings
         | 
| 31 37 | 
             
                    #
         | 
| 32 38 | 
             
                    def get_settings(arguments = {})
         | 
| 33 | 
            -
                       | 
| 39 | 
            +
                      request_opts = { endpoint: arguments[:endpoint] || 'cluster.get_settings' }
         | 
| 34 40 |  | 
| 35 41 | 
             
                      arguments = arguments.clone
         | 
| 42 | 
            +
                      headers = arguments.delete(:headers) || {}
         | 
| 43 | 
            +
             | 
| 44 | 
            +
                      body = nil
         | 
| 36 45 |  | 
| 37 46 | 
             
                      method = Elasticsearch::API::HTTP_GET
         | 
| 38 | 
            -
                      path   =  | 
| 39 | 
            -
                      params = Utils. | 
| 47 | 
            +
                      path   = '_cluster/settings'
         | 
| 48 | 
            +
                      params = Utils.process_params(arguments)
         | 
| 40 49 |  | 
| 41 | 
            -
                       | 
| 42 | 
            -
             | 
| 50 | 
            +
                      Elasticsearch::API::Response.new(
         | 
| 51 | 
            +
                        perform_request(method, path, params, body, headers, request_opts)
         | 
| 52 | 
            +
                      )
         | 
| 43 53 | 
             
                    end
         | 
| 44 | 
            -
             | 
| 45 | 
            -
                    # Register this action with its valid params when the module is loaded.
         | 
| 46 | 
            -
                    #
         | 
| 47 | 
            -
                    # @since 6.2.0
         | 
| 48 | 
            -
                    ParamsRegistry.register(:get_settings, [
         | 
| 49 | 
            -
                      :flat_settings,
         | 
| 50 | 
            -
                      :master_timeout,
         | 
| 51 | 
            -
                      :timeout,
         | 
| 52 | 
            -
                      :include_defaults
         | 
| 53 | 
            -
                    ].freeze)
         | 
| 54 54 | 
             
                  end
         | 
| 55 55 | 
             
                end
         | 
| 56 56 | 
             
              end
         | 
| @@ -14,64 +14,66 @@ | |
| 14 14 | 
             
            # KIND, either express or implied.  See the License for the
         | 
| 15 15 | 
             
            # specific language governing permissions and limitations
         | 
| 16 16 | 
             
            # under the License.
         | 
| 17 | 
            -
             | 
| 17 | 
            +
            #
         | 
| 18 | 
            +
            # This code was automatically generated from the Elasticsearch Specification
         | 
| 19 | 
            +
            # See https://github.com/elastic/elasticsearch-specification
         | 
| 20 | 
            +
            # See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash.
         | 
| 18 21 | 
             
            module Elasticsearch
         | 
| 19 22 | 
             
              module API
         | 
| 20 23 | 
             
                module Cluster
         | 
| 21 24 | 
             
                  module Actions
         | 
| 22 | 
            -
                    #  | 
| 25 | 
            +
                    # Get the cluster health status.
         | 
| 26 | 
            +
                    # You can also use the API to get the health status of only specified data streams and indices.
         | 
| 27 | 
            +
                    # For data streams, the API retrieves the health status of the stream’s backing indices.
         | 
| 28 | 
            +
                    # The cluster health status is: green, yellow or red.
         | 
| 29 | 
            +
                    # On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated.
         | 
| 30 | 
            +
                    # The index level status is controlled by the worst shard status.
         | 
| 31 | 
            +
                    # One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level.
         | 
| 32 | 
            +
                    # The cluster status is controlled by the worst index status.
         | 
| 23 33 | 
             
                    #
         | 
| 24 | 
            -
                    # @option arguments [ | 
| 25 | 
            -
                    # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. | 
| 26 | 
            -
                    # @option arguments [String] :level  | 
| 27 | 
            -
                    # @option arguments [Boolean] :local  | 
| 28 | 
            -
                    # @option arguments [Time] :master_timeout  | 
| 29 | 
            -
                    # @option arguments [Time] :timeout  | 
| 30 | 
            -
                    # @option arguments [String] :wait_for_active_shards  | 
| 31 | 
            -
                    # @option arguments [String] : | 
| 32 | 
            -
                    # @option arguments [String] : | 
| 33 | 
            -
                    # @option arguments [Boolean] : | 
| 34 | 
            -
                    # @option arguments [Boolean] : | 
| 35 | 
            -
                    # @option arguments [String] :wait_for_status  | 
| 34 | 
            +
                    # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and index aliases used to limit the request. Wildcard expressions (+*+) are supported. To target all data streams and indices in a cluster, omit this parameter or use _all or +*+.
         | 
| 35 | 
            +
                    # @option arguments [String, Array<String>] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both.
         | 
| 36 | 
            +
                    # @option arguments [String] :level Can be one of cluster, indices or shards. Controls the details level of the health information returned. Server default: cluster.
         | 
| 37 | 
            +
                    # @option arguments [Boolean] :local If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node.
         | 
| 38 | 
            +
                    # @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.
         | 
| 39 | 
            +
                    # @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.
         | 
| 40 | 
            +
                    # @option arguments [Integer, String] :wait_for_active_shards A number controlling to how many active shards to wait for, all to wait for all shards in the cluster to be active, or 0 to not wait. Server default: 0.
         | 
| 41 | 
            +
                    # @option arguments [String] :wait_for_events Can be one of immediate, urgent, high, normal, low, languid. Wait until all currently queued events with the given priority are processed.
         | 
| 42 | 
            +
                    # @option arguments [String, Integer] :wait_for_nodes The request waits until the specified number N of nodes is available. It also accepts >=N, <=N, >N and <N. Alternatively, it is possible to use ge(N), le(N), gt(N) and lt(N) notation.
         | 
| 43 | 
            +
                    # @option arguments [Boolean] :wait_for_no_initializing_shards A boolean value which controls whether to wait (until the timeout provided) for the cluster to have no shard initializations. Defaults to false, which means it will not wait for initializing shards.
         | 
| 44 | 
            +
                    # @option arguments [Boolean] :wait_for_no_relocating_shards A boolean value which controls whether to wait (until the timeout provided) for the cluster to have no shard relocations. Defaults to false, which means it will not wait for relocating shards.
         | 
| 45 | 
            +
                    # @option arguments [String] :wait_for_status One of green, yellow or red. Will wait (until the timeout provided) until the status of the cluster changes to the one provided or better, i.e. green > yellow > red. By default, will not wait for any status.
         | 
| 36 46 | 
             
                    # @option arguments [Hash] :headers Custom HTTP headers
         | 
| 37 47 | 
             
                    #
         | 
| 38 | 
            -
                    # @see https://www.elastic.co/ | 
| 48 | 
            +
                    # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-health
         | 
| 39 49 | 
             
                    #
         | 
| 40 50 | 
             
                    def health(arguments = {})
         | 
| 41 | 
            -
                       | 
| 51 | 
            +
                      request_opts = { endpoint: arguments[:endpoint] || 'cluster.health' }
         | 
| 52 | 
            +
             | 
| 53 | 
            +
                      defined_params = [:index].each_with_object({}) do |variable, set_variables|
         | 
| 54 | 
            +
                        set_variables[variable] = arguments[variable] if arguments.key?(variable)
         | 
| 55 | 
            +
                      end
         | 
| 56 | 
            +
                      request_opts[:defined_params] = defined_params unless defined_params.empty?
         | 
| 42 57 |  | 
| 43 58 | 
             
                      arguments = arguments.clone
         | 
| 59 | 
            +
                      headers = arguments.delete(:headers) || {}
         | 
| 60 | 
            +
             | 
| 61 | 
            +
                      body = nil
         | 
| 44 62 |  | 
| 45 63 | 
             
                      _index = arguments.delete(:index)
         | 
| 46 64 |  | 
| 47 65 | 
             
                      method = Elasticsearch::API::HTTP_GET
         | 
| 48 66 | 
             
                      path   = if _index
         | 
| 49 | 
            -
                                 "_cluster/health/#{Utils. | 
| 67 | 
            +
                                 "_cluster/health/#{Utils.listify(_index)}"
         | 
| 50 68 | 
             
                               else
         | 
| 51 | 
            -
                                  | 
| 69 | 
            +
                                 '_cluster/health'
         | 
| 52 70 | 
             
                               end
         | 
| 53 | 
            -
                      params = Utils. | 
| 71 | 
            +
                      params = Utils.process_params(arguments)
         | 
| 54 72 |  | 
| 55 | 
            -
                       | 
| 56 | 
            -
             | 
| 73 | 
            +
                      Elasticsearch::API::Response.new(
         | 
| 74 | 
            +
                        perform_request(method, path, params, body, headers, request_opts)
         | 
| 75 | 
            +
                      )
         | 
| 57 76 | 
             
                    end
         | 
| 58 | 
            -
             | 
| 59 | 
            -
                    # Register this action with its valid params when the module is loaded.
         | 
| 60 | 
            -
                    #
         | 
| 61 | 
            -
                    # @since 6.2.0
         | 
| 62 | 
            -
                    ParamsRegistry.register(:health, [
         | 
| 63 | 
            -
                      :expand_wildcards,
         | 
| 64 | 
            -
                      :level,
         | 
| 65 | 
            -
                      :local,
         | 
| 66 | 
            -
                      :master_timeout,
         | 
| 67 | 
            -
                      :timeout,
         | 
| 68 | 
            -
                      :wait_for_active_shards,
         | 
| 69 | 
            -
                      :wait_for_nodes,
         | 
| 70 | 
            -
                      :wait_for_events,
         | 
| 71 | 
            -
                      :wait_for_no_relocating_shards,
         | 
| 72 | 
            -
                      :wait_for_no_initializing_shards,
         | 
| 73 | 
            -
                      :wait_for_status
         | 
| 74 | 
            -
                    ].freeze)
         | 
| 75 77 | 
             
                  end
         | 
| 76 78 | 
             
                end
         | 
| 77 79 | 
             
              end
         | 
| @@ -0,0 +1,61 @@ | |
| 1 | 
            +
            # Licensed to Elasticsearch B.V. under one or more contributor
         | 
| 2 | 
            +
            # license agreements. See the NOTICE file distributed with
         | 
| 3 | 
            +
            # this work for additional information regarding copyright
         | 
| 4 | 
            +
            # ownership. Elasticsearch B.V. licenses this file to you under
         | 
| 5 | 
            +
            # the Apache License, Version 2.0 (the "License"); you may
         | 
| 6 | 
            +
            # not use this file except in compliance with the License.
         | 
| 7 | 
            +
            # You may obtain a copy of the License at
         | 
| 8 | 
            +
            #
         | 
| 9 | 
            +
            #   http://www.apache.org/licenses/LICENSE-2.0
         | 
| 10 | 
            +
            #
         | 
| 11 | 
            +
            # Unless required by applicable law or agreed to in writing,
         | 
| 12 | 
            +
            # software distributed under the License is distributed on an
         | 
| 13 | 
            +
            # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
         | 
| 14 | 
            +
            # KIND, either express or implied.  See the License for the
         | 
| 15 | 
            +
            # specific language governing permissions and limitations
         | 
| 16 | 
            +
            # under the License.
         | 
| 17 | 
            +
            #
         | 
| 18 | 
            +
            # This code was automatically generated from the Elasticsearch Specification
         | 
| 19 | 
            +
            # See https://github.com/elastic/elasticsearch-specification
         | 
| 20 | 
            +
            # See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash.
         | 
| 21 | 
            +
            module Elasticsearch
         | 
| 22 | 
            +
              module API
         | 
| 23 | 
            +
                module Cluster
         | 
| 24 | 
            +
                  module Actions
         | 
| 25 | 
            +
                    # Get cluster info.
         | 
| 26 | 
            +
                    # Returns basic information about the cluster.
         | 
| 27 | 
            +
                    #
         | 
| 28 | 
            +
                    # @option arguments [String, Array<String>] :target Limits the information returned to the specific target. Supports a comma-separated list, such as http,ingest. (*Required*)
         | 
| 29 | 
            +
                    # @option arguments [Hash] :headers Custom HTTP headers
         | 
| 30 | 
            +
                    #
         | 
| 31 | 
            +
                    # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-info
         | 
| 32 | 
            +
                    #
         | 
| 33 | 
            +
                    def info(arguments = {})
         | 
| 34 | 
            +
                      request_opts = { endpoint: arguments[:endpoint] || 'cluster.info' }
         | 
| 35 | 
            +
             | 
| 36 | 
            +
                      defined_params = [:target].each_with_object({}) do |variable, set_variables|
         | 
| 37 | 
            +
                        set_variables[variable] = arguments[variable] if arguments.key?(variable)
         | 
| 38 | 
            +
                      end
         | 
| 39 | 
            +
                      request_opts[:defined_params] = defined_params unless defined_params.empty?
         | 
| 40 | 
            +
             | 
| 41 | 
            +
                      raise ArgumentError, "Required argument 'target' missing" unless arguments[:target]
         | 
| 42 | 
            +
             | 
| 43 | 
            +
                      arguments = arguments.clone
         | 
| 44 | 
            +
                      headers = arguments.delete(:headers) || {}
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                      body = nil
         | 
| 47 | 
            +
             | 
| 48 | 
            +
                      _target = arguments.delete(:target)
         | 
| 49 | 
            +
             | 
| 50 | 
            +
                      method = Elasticsearch::API::HTTP_GET
         | 
| 51 | 
            +
                      path   = "_info/#{Utils.listify(_target)}"
         | 
| 52 | 
            +
                      params = {}
         | 
| 53 | 
            +
             | 
| 54 | 
            +
                      Elasticsearch::API::Response.new(
         | 
| 55 | 
            +
                        perform_request(method, path, params, body, headers, request_opts)
         | 
| 56 | 
            +
                      )
         | 
| 57 | 
            +
                    end
         | 
| 58 | 
            +
                  end
         | 
| 59 | 
            +
                end
         | 
| 60 | 
            +
              end
         | 
| 61 | 
            +
            end
         | 
| @@ -14,40 +14,44 @@ | |
| 14 14 | 
             
            # KIND, either express or implied.  See the License for the
         | 
| 15 15 | 
             
            # specific language governing permissions and limitations
         | 
| 16 16 | 
             
            # under the License.
         | 
| 17 | 
            -
             | 
| 17 | 
            +
            #
         | 
| 18 | 
            +
            # This code was automatically generated from the Elasticsearch Specification
         | 
| 19 | 
            +
            # See https://github.com/elastic/elasticsearch-specification
         | 
| 20 | 
            +
            # See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash.
         | 
| 18 21 | 
             
            module Elasticsearch
         | 
| 19 22 | 
             
              module API
         | 
| 20 23 | 
             
                module Cluster
         | 
| 21 24 | 
             
                  module Actions
         | 
| 22 | 
            -
                    #  | 
| 23 | 
            -
                    # allocate or fail shard)  | 
| 25 | 
            +
                    # Get the pending cluster tasks.
         | 
| 26 | 
            +
                    # Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect.
         | 
| 27 | 
            +
                    # NOTE: This API returns a list of any pending updates to the cluster state.
         | 
| 28 | 
            +
                    # These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests.
         | 
| 29 | 
            +
                    # However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API.
         | 
| 24 30 | 
             
                    #
         | 
| 25 | 
            -
                    # @option arguments [Boolean] :local  | 
| 26 | 
            -
                    #  | 
| 31 | 
            +
                    # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only.
         | 
| 32 | 
            +
                    #  If +false+, information is retrieved from the master node.
         | 
| 33 | 
            +
                    # @option arguments [Time] :master_timeout Period to wait for a connection to the master node.
         | 
| 34 | 
            +
                    #  If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
         | 
| 27 35 | 
             
                    # @option arguments [Hash] :headers Custom HTTP headers
         | 
| 28 36 | 
             
                    #
         | 
| 29 | 
            -
                    # @see https://www.elastic.co/ | 
| 37 | 
            +
                    # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-pending-tasks
         | 
| 30 38 | 
             
                    #
         | 
| 31 39 | 
             
                    def pending_tasks(arguments = {})
         | 
| 32 | 
            -
                       | 
| 40 | 
            +
                      request_opts = { endpoint: arguments[:endpoint] || 'cluster.pending_tasks' }
         | 
| 33 41 |  | 
| 34 42 | 
             
                      arguments = arguments.clone
         | 
| 43 | 
            +
                      headers = arguments.delete(:headers) || {}
         | 
| 44 | 
            +
             | 
| 45 | 
            +
                      body = nil
         | 
| 35 46 |  | 
| 36 47 | 
             
                      method = Elasticsearch::API::HTTP_GET
         | 
| 37 | 
            -
                      path   =  | 
| 38 | 
            -
                      params = Utils. | 
| 48 | 
            +
                      path   = '_cluster/pending_tasks'
         | 
| 49 | 
            +
                      params = Utils.process_params(arguments)
         | 
| 39 50 |  | 
| 40 | 
            -
                       | 
| 41 | 
            -
             | 
| 51 | 
            +
                      Elasticsearch::API::Response.new(
         | 
| 52 | 
            +
                        perform_request(method, path, params, body, headers, request_opts)
         | 
| 53 | 
            +
                      )
         | 
| 42 54 | 
             
                    end
         | 
| 43 | 
            -
             | 
| 44 | 
            -
                    # Register this action with its valid params when the module is loaded.
         | 
| 45 | 
            -
                    #
         | 
| 46 | 
            -
                    # @since 6.2.0
         | 
| 47 | 
            -
                    ParamsRegistry.register(:pending_tasks, [
         | 
| 48 | 
            -
                      :local,
         | 
| 49 | 
            -
                      :master_timeout
         | 
| 50 | 
            -
                    ].freeze)
         | 
| 51 55 | 
             
                  end
         | 
| 52 56 | 
             
                end
         | 
| 53 57 | 
             
              end
         | 
| @@ -14,41 +14,59 @@ | |
| 14 14 | 
             
            # KIND, either express or implied.  See the License for the
         | 
| 15 15 | 
             
            # specific language governing permissions and limitations
         | 
| 16 16 | 
             
            # under the License.
         | 
| 17 | 
            -
             | 
| 17 | 
            +
            #
         | 
| 18 | 
            +
            # This code was automatically generated from the Elasticsearch Specification
         | 
| 19 | 
            +
            # See https://github.com/elastic/elasticsearch-specification
         | 
| 20 | 
            +
            # See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash.
         | 
| 18 21 | 
             
            module Elasticsearch
         | 
| 19 22 | 
             
              module API
         | 
| 20 23 | 
             
                module Cluster
         | 
| 21 24 | 
             
                  module Actions
         | 
| 22 | 
            -
                    #  | 
| 25 | 
            +
                    # Update voting configuration exclusions.
         | 
| 26 | 
            +
                    # Update the cluster voting config exclusions by node IDs or node names.
         | 
| 27 | 
            +
                    # By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks.
         | 
| 28 | 
            +
                    # If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually.
         | 
| 29 | 
            +
                    # The API adds an entry for each specified node to the cluster’s voting configuration exclusions list.
         | 
| 30 | 
            +
                    # It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes.
         | 
| 31 | 
            +
                    # Clusters should have no voting configuration exclusions in normal operation.
         | 
| 32 | 
            +
                    # Once the excluded nodes have stopped, clear the voting configuration exclusions with +DELETE /_cluster/voting_config_exclusions+.
         | 
| 33 | 
            +
                    # This API waits for the nodes to be fully removed from the cluster before it returns.
         | 
| 34 | 
            +
                    # If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use +DELETE /_cluster/voting_config_exclusions?wait_for_removal=false+ to clear the voting configuration exclusions without waiting for the nodes to leave the cluster.
         | 
| 35 | 
            +
                    # A response to +POST /_cluster/voting_config_exclusions+ with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling +DELETE /_cluster/voting_config_exclusions+.
         | 
| 36 | 
            +
                    # If the call to +POST /_cluster/voting_config_exclusions+ fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration.
         | 
| 37 | 
            +
                    # In that case, you may safely retry the call.
         | 
| 38 | 
            +
                    # NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period.
         | 
| 39 | 
            +
                    # They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes.
         | 
| 23 40 | 
             
                    #
         | 
| 24 | 
            -
                    # @option arguments [String] : | 
| 25 | 
            -
                    # | 
| 26 | 
            -
                    # @option arguments [ | 
| 41 | 
            +
                    # @option arguments [String, Array<String>] :node_names A comma-separated list of the names of the nodes to exclude from the
         | 
| 42 | 
            +
                    #  voting configuration. If specified, you may not also specify node_ids.
         | 
| 43 | 
            +
                    # @option arguments [String, Array] :node_ids A comma-separated list of the persistent ids of the nodes to exclude
         | 
| 44 | 
            +
                    #  from the voting configuration. If specified, you may not also specify node_names.
         | 
| 45 | 
            +
                    # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
         | 
| 46 | 
            +
                    # @option arguments [Time] :timeout When adding a voting configuration exclusion, the API waits for the
         | 
| 47 | 
            +
                    #  specified nodes to be excluded from the voting configuration before
         | 
| 48 | 
            +
                    #  returning. If the timeout expires before the appropriate condition
         | 
| 49 | 
            +
                    #  is satisfied, the request fails and returns an error. Server default: 30s.
         | 
| 27 50 | 
             
                    # @option arguments [Hash] :headers Custom HTTP headers
         | 
| 28 51 | 
             
                    #
         | 
| 29 | 
            -
                    # @see https://www.elastic.co/ | 
| 52 | 
            +
                    # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-post-voting-config-exclusions
         | 
| 30 53 | 
             
                    #
         | 
| 31 54 | 
             
                    def post_voting_config_exclusions(arguments = {})
         | 
| 32 | 
            -
                       | 
| 55 | 
            +
                      request_opts = { endpoint: arguments[:endpoint] || 'cluster.post_voting_config_exclusions' }
         | 
| 33 56 |  | 
| 34 57 | 
             
                      arguments = arguments.clone
         | 
| 58 | 
            +
                      headers = arguments.delete(:headers) || {}
         | 
| 59 | 
            +
             | 
| 60 | 
            +
                      body = nil
         | 
| 35 61 |  | 
| 36 62 | 
             
                      method = Elasticsearch::API::HTTP_POST
         | 
| 37 | 
            -
                      path   =  | 
| 38 | 
            -
                      params = Utils. | 
| 63 | 
            +
                      path   = '_cluster/voting_config_exclusions'
         | 
| 64 | 
            +
                      params = Utils.process_params(arguments)
         | 
| 39 65 |  | 
| 40 | 
            -
                       | 
| 41 | 
            -
             | 
| 66 | 
            +
                      Elasticsearch::API::Response.new(
         | 
| 67 | 
            +
                        perform_request(method, path, params, body, headers, request_opts)
         | 
| 68 | 
            +
                      )
         | 
| 42 69 | 
             
                    end
         | 
| 43 | 
            -
             | 
| 44 | 
            -
                    # Register this action with its valid params when the module is loaded.
         | 
| 45 | 
            -
                    #
         | 
| 46 | 
            -
                    # @since 6.2.0
         | 
| 47 | 
            -
                    ParamsRegistry.register(:post_voting_config_exclusions, [
         | 
| 48 | 
            -
                      :node_ids,
         | 
| 49 | 
            -
                      :node_names,
         | 
| 50 | 
            -
                      :timeout
         | 
| 51 | 
            -
                    ].freeze)
         | 
| 52 70 | 
             
                  end
         | 
| 53 71 | 
             
                end
         | 
| 54 72 | 
             
              end
         | 
| @@ -14,48 +14,68 @@ | |
| 14 14 | 
             
            # KIND, either express or implied.  See the License for the
         | 
| 15 15 | 
             
            # specific language governing permissions and limitations
         | 
| 16 16 | 
             
            # under the License.
         | 
| 17 | 
            -
             | 
| 17 | 
            +
            #
         | 
| 18 | 
            +
            # This code was automatically generated from the Elasticsearch Specification
         | 
| 19 | 
            +
            # See https://github.com/elastic/elasticsearch-specification
         | 
| 20 | 
            +
            # See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash.
         | 
| 18 21 | 
             
            module Elasticsearch
         | 
| 19 22 | 
             
              module API
         | 
| 20 23 | 
             
                module Cluster
         | 
| 21 24 | 
             
                  module Actions
         | 
| 22 | 
            -
                    #  | 
| 25 | 
            +
                    # Create or update a component template.
         | 
| 26 | 
            +
                    # Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
         | 
| 27 | 
            +
                    # An index template can be composed of multiple component templates.
         | 
| 28 | 
            +
                    # To use a component template, specify it in an index template’s +composed_of+ list.
         | 
| 29 | 
            +
                    # Component templates are only applied to new data streams and indices as part of a matching index template.
         | 
| 30 | 
            +
                    # Settings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template.
         | 
| 31 | 
            +
                    # Component templates are only used during index creation.
         | 
| 32 | 
            +
                    # For data streams, this includes data stream creation and the creation of a stream’s backing indices.
         | 
| 33 | 
            +
                    # Changes to component templates do not affect existing indices, including a stream’s backing indices.
         | 
| 34 | 
            +
                    # You can use C-style +/* *\/+ block comments in component templates.
         | 
| 35 | 
            +
                    # You can include comments anywhere in the request body except before the opening curly bracket.
         | 
| 36 | 
            +
                    # **Applying component templates**
         | 
| 37 | 
            +
                    # You cannot directly apply a component template to a data stream or index.
         | 
| 38 | 
            +
                    # To be applied, a component template must be included in an index template's +composed_of+ list.
         | 
| 23 39 | 
             
                    #
         | 
| 24 | 
            -
                    # @option arguments [String] :name  | 
| 25 | 
            -
                    #  | 
| 26 | 
            -
                    #  | 
| 27 | 
            -
                    #  | 
| 40 | 
            +
                    # @option arguments [String] :name Name of the component template to create.
         | 
| 41 | 
            +
                    #  Elasticsearch includes the following built-in component templates: +logs-mappings+; +logs-settings+; +metrics-mappings+; +metrics-settings+;+synthetics-mapping+; +synthetics-settings+.
         | 
| 42 | 
            +
                    #  Elastic Agent uses these templates to configure backing indices for its data streams.
         | 
| 43 | 
            +
                    #  If you use Elastic Agent and want to overwrite one of these templates, set the +version+ for your replacement template higher than the current version.
         | 
| 44 | 
            +
                    #  If you don’t use Elastic Agent and want to disable all built-in component and index templates, set +stack.templates.enabled+ to +false+ using the cluster update settings API. (*Required*)
         | 
| 45 | 
            +
                    # @option arguments [Boolean] :create If +true+, this request cannot replace or update existing component templates.
         | 
| 46 | 
            +
                    # @option arguments [Time] :master_timeout Period to wait for a connection to the master node.
         | 
| 47 | 
            +
                    #  If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
         | 
| 28 48 | 
             
                    # @option arguments [Hash] :headers Custom HTTP headers
         | 
| 29 | 
            -
                    # @option arguments [Hash] :body  | 
| 49 | 
            +
                    # @option arguments [Hash] :body request body
         | 
| 30 50 | 
             
                    #
         | 
| 31 | 
            -
                    # @see https://www.elastic.co/ | 
| 51 | 
            +
                    # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-component-template
         | 
| 32 52 | 
             
                    #
         | 
| 33 53 | 
             
                    def put_component_template(arguments = {})
         | 
| 54 | 
            +
                      request_opts = { endpoint: arguments[:endpoint] || 'cluster.put_component_template' }
         | 
| 55 | 
            +
             | 
| 56 | 
            +
                      defined_params = [:name].each_with_object({}) do |variable, set_variables|
         | 
| 57 | 
            +
                        set_variables[variable] = arguments[variable] if arguments.key?(variable)
         | 
| 58 | 
            +
                      end
         | 
| 59 | 
            +
                      request_opts[:defined_params] = defined_params unless defined_params.empty?
         | 
| 60 | 
            +
             | 
| 34 61 | 
             
                      raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
         | 
| 35 62 | 
             
                      raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
         | 
| 36 63 |  | 
| 64 | 
            +
                      arguments = arguments.clone
         | 
| 37 65 | 
             
                      headers = arguments.delete(:headers) || {}
         | 
| 38 66 |  | 
| 39 | 
            -
                       | 
| 67 | 
            +
                      body = arguments.delete(:body)
         | 
| 40 68 |  | 
| 41 69 | 
             
                      _name = arguments.delete(:name)
         | 
| 42 70 |  | 
| 43 71 | 
             
                      method = Elasticsearch::API::HTTP_PUT
         | 
| 44 | 
            -
                      path   = "_component_template/#{Utils. | 
| 45 | 
            -
                      params = Utils. | 
| 72 | 
            +
                      path   = "_component_template/#{Utils.listify(_name)}"
         | 
| 73 | 
            +
                      params = Utils.process_params(arguments)
         | 
| 46 74 |  | 
| 47 | 
            -
                       | 
| 48 | 
            -
             | 
| 75 | 
            +
                      Elasticsearch::API::Response.new(
         | 
| 76 | 
            +
                        perform_request(method, path, params, body, headers, request_opts)
         | 
| 77 | 
            +
                      )
         | 
| 49 78 | 
             
                    end
         | 
| 50 | 
            -
             | 
| 51 | 
            -
                    # Register this action with its valid params when the module is loaded.
         | 
| 52 | 
            -
                    #
         | 
| 53 | 
            -
                    # @since 6.2.0
         | 
| 54 | 
            -
                    ParamsRegistry.register(:put_component_template, [
         | 
| 55 | 
            -
                      :create,
         | 
| 56 | 
            -
                      :timeout,
         | 
| 57 | 
            -
                      :master_timeout
         | 
| 58 | 
            -
                    ].freeze)
         | 
| 59 79 | 
             
                  end
         | 
| 60 80 | 
             
                end
         | 
| 61 81 | 
             
              end
         | 
| @@ -14,44 +14,55 @@ | |
| 14 14 | 
             
            # KIND, either express or implied.  See the License for the
         | 
| 15 15 | 
             
            # specific language governing permissions and limitations
         | 
| 16 16 | 
             
            # under the License.
         | 
| 17 | 
            -
             | 
| 17 | 
            +
            #
         | 
| 18 | 
            +
            # This code was automatically generated from the Elasticsearch Specification
         | 
| 19 | 
            +
            # See https://github.com/elastic/elasticsearch-specification
         | 
| 20 | 
            +
            # See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash.
         | 
| 18 21 | 
             
            module Elasticsearch
         | 
| 19 22 | 
             
              module API
         | 
| 20 23 | 
             
                module Cluster
         | 
| 21 24 | 
             
                  module Actions
         | 
| 22 | 
            -
                    #  | 
| 25 | 
            +
                    # Update the cluster settings.
         | 
| 26 | 
            +
                    # Configure and update dynamic settings on a running cluster.
         | 
| 27 | 
            +
                    # You can also configure dynamic settings locally on an unstarted or shut down node in +elasticsearch.yml+.
         | 
| 28 | 
            +
                    # Updates made with this API can be persistent, which apply across cluster restarts, or transient, which reset after a cluster restart.
         | 
| 29 | 
            +
                    # You can also reset transient or persistent settings by assigning them a null value.
         | 
| 30 | 
            +
                    # If you configure the same setting using multiple methods, Elasticsearch applies the settings in following order of precedence: 1) Transient setting; 2) Persistent setting; 3) +elasticsearch.yml+ setting; 4) Default setting value.
         | 
| 31 | 
            +
                    # For example, you can apply a transient setting to override a persistent setting or +elasticsearch.yml+ setting.
         | 
| 32 | 
            +
                    # However, a change to an +elasticsearch.yml+ setting will not override a defined transient or persistent setting.
         | 
| 33 | 
            +
                    # TIP: In Elastic Cloud, use the user settings feature to configure all cluster settings. This method automatically rejects unsafe settings that could break your cluster.
         | 
| 34 | 
            +
                    # If you run Elasticsearch on your own hardware, use this API to configure dynamic cluster settings.
         | 
| 35 | 
            +
                    # Only use +elasticsearch.yml+ for static cluster settings and node settings.
         | 
| 36 | 
            +
                    # The API doesn’t require a restart and ensures a setting’s value is the same on all nodes.
         | 
| 37 | 
            +
                    # WARNING: Transient cluster settings are no longer recommended. Use persistent cluster settings instead.
         | 
| 38 | 
            +
                    # If a cluster becomes unstable, transient settings can clear unexpectedly, resulting in a potentially undesired cluster configuration.
         | 
| 23 39 | 
             
                    #
         | 
| 24 40 | 
             
                    # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false)
         | 
| 25 | 
            -
                    # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
         | 
| 26 | 
            -
                    # @option arguments [Time] :timeout Explicit operation timeout
         | 
| 41 | 
            +
                    # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node Server default: 30s.
         | 
| 42 | 
            +
                    # @option arguments [Time] :timeout Explicit operation timeout Server default: 30s.
         | 
| 27 43 | 
             
                    # @option arguments [Hash] :headers Custom HTTP headers
         | 
| 28 | 
            -
                    # @option arguments [Hash] :body  | 
| 44 | 
            +
                    # @option arguments [Hash] :body request body
         | 
| 29 45 | 
             
                    #
         | 
| 30 | 
            -
                    # @see https://www.elastic.co/ | 
| 46 | 
            +
                    # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-settings
         | 
| 31 47 | 
             
                    #
         | 
| 32 48 | 
             
                    def put_settings(arguments = {})
         | 
| 49 | 
            +
                      request_opts = { endpoint: arguments[:endpoint] || 'cluster.put_settings' }
         | 
| 50 | 
            +
             | 
| 33 51 | 
             
                      raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
         | 
| 34 52 |  | 
| 53 | 
            +
                      arguments = arguments.clone
         | 
| 35 54 | 
             
                      headers = arguments.delete(:headers) || {}
         | 
| 36 55 |  | 
| 37 | 
            -
                       | 
| 56 | 
            +
                      body = arguments.delete(:body)
         | 
| 38 57 |  | 
| 39 58 | 
             
                      method = Elasticsearch::API::HTTP_PUT
         | 
| 40 | 
            -
                      path   =  | 
| 41 | 
            -
                      params = Utils. | 
| 59 | 
            +
                      path   = '_cluster/settings'
         | 
| 60 | 
            +
                      params = Utils.process_params(arguments)
         | 
| 42 61 |  | 
| 43 | 
            -
                       | 
| 44 | 
            -
             | 
| 62 | 
            +
                      Elasticsearch::API::Response.new(
         | 
| 63 | 
            +
                        perform_request(method, path, params, body, headers, request_opts)
         | 
| 64 | 
            +
                      )
         | 
| 45 65 | 
             
                    end
         | 
| 46 | 
            -
             | 
| 47 | 
            -
                    # Register this action with its valid params when the module is loaded.
         | 
| 48 | 
            -
                    #
         | 
| 49 | 
            -
                    # @since 6.2.0
         | 
| 50 | 
            -
                    ParamsRegistry.register(:put_settings, [
         | 
| 51 | 
            -
                      :flat_settings,
         | 
| 52 | 
            -
                      :master_timeout,
         | 
| 53 | 
            -
                      :timeout
         | 
| 54 | 
            -
                    ].freeze)
         | 
| 55 66 | 
             
                  end
         | 
| 56 67 | 
             
                end
         | 
| 57 68 | 
             
              end
         |