elasticsearch-api 8.12.2 → 8.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Rakefile +5 -3
- data/api-spec-testing/test_file/task_group.rb +1 -0
- data/api-spec-testing/test_file/test.rb +1 -1
- data/api-spec-testing/wipe_cluster.rb +5 -3
- data/lib/elasticsearch/api/actions/async_search/delete.rb +3 -4
- data/lib/elasticsearch/api/actions/async_search/get.rb +3 -4
- data/lib/elasticsearch/api/actions/async_search/status.rb +5 -5
- data/lib/elasticsearch/api/actions/async_search/submit.rb +4 -5
- data/lib/elasticsearch/api/actions/autoscaling/delete_autoscaling_policy.rb +3 -4
- data/lib/elasticsearch/api/actions/autoscaling/get_autoscaling_capacity.rb +3 -3
- data/lib/elasticsearch/api/actions/autoscaling/get_autoscaling_policy.rb +3 -4
- data/lib/elasticsearch/api/actions/autoscaling/put_autoscaling_policy.rb +3 -4
- data/lib/elasticsearch/api/actions/bulk.rb +11 -11
- data/lib/elasticsearch/api/actions/cat/aliases.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/allocation.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/component_templates.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/count.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/fielddata.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/health.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/help.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/indices.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/master.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/ml_jobs.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/ml_trained_models.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/nodes.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/plugins.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/recovery.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/repositories.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/segments.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/shards.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/snapshots.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/tasks.rb +3 -3
- data/lib/elasticsearch/api/actions/cat/templates.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/thread_pool.rb +4 -5
- data/lib/elasticsearch/api/actions/cat/transforms.rb +4 -5
- data/lib/elasticsearch/api/actions/clear_scroll.rb +6 -7
- data/lib/elasticsearch/api/actions/close_point_in_time.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +3 -4
- data/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/exists_component_template.rb +4 -5
- data/lib/elasticsearch/api/actions/cluster/get_component_template.rb +4 -5
- data/lib/elasticsearch/api/actions/cluster/get_settings.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/health.rb +4 -5
- data/lib/elasticsearch/api/actions/cluster/info.rb +3 -4
- data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/put_component_template.rb +3 -4
- data/lib/elasticsearch/api/actions/cluster/put_settings.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/remote_info.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/reroute.rb +3 -3
- data/lib/elasticsearch/api/actions/cluster/state.rb +4 -5
- data/lib/elasticsearch/api/actions/cluster/stats.rb +4 -5
- data/lib/elasticsearch/api/actions/connector/check_in.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/delete.rb +5 -5
- data/lib/elasticsearch/api/actions/connector/get.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/last_sync.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/list.rb +8 -4
- data/lib/elasticsearch/api/actions/connector/post.rb +3 -3
- data/lib/elasticsearch/api/actions/connector/put.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/secret_delete.rb +64 -0
- data/lib/elasticsearch/api/actions/connector/secret_get.rb +64 -0
- data/lib/elasticsearch/api/actions/connector/secret_post.rb +57 -0
- data/lib/elasticsearch/api/actions/connector/secret_put.rb +66 -0
- data/lib/elasticsearch/api/actions/{connector_sync_job/cancel.rb → connector/sync_job_cancel.rb} +9 -8
- data/lib/elasticsearch/api/actions/{connector_sync_job/check_in.rb → connector/sync_job_check_in.rb} +9 -8
- data/lib/elasticsearch/api/actions/{connector_sync_job/delete.rb → connector/sync_job_delete.rb} +9 -8
- data/lib/elasticsearch/api/actions/{connector_sync_job/error.rb → connector/sync_job_error.rb} +9 -8
- data/lib/elasticsearch/api/actions/{connector_sync_job/get.rb → connector/sync_job_get.rb} +9 -8
- data/lib/elasticsearch/api/actions/{connector_sync_job/list.rb → connector/sync_job_list.rb} +6 -5
- data/lib/elasticsearch/api/actions/{connector_sync_job/post.rb → connector/sync_job_post.rb} +5 -5
- data/lib/elasticsearch/api/actions/{connector_sync_job/update_stats.rb → connector/sync_job_update_stats.rb} +9 -8
- data/lib/elasticsearch/api/actions/connector/update_active_filtering.rb +64 -0
- data/lib/elasticsearch/api/actions/connector/update_api_key_id.rb +66 -0
- data/lib/elasticsearch/api/actions/connector/update_configuration.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/update_error.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/update_filtering.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb +66 -0
- data/lib/elasticsearch/api/actions/connector/update_index_name.rb +66 -0
- data/lib/elasticsearch/api/actions/connector/update_name.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/update_native.rb +66 -0
- data/lib/elasticsearch/api/actions/connector/update_pipeline.rb +3 -4
- data/lib/elasticsearch/api/actions/connector/update_scheduling.rb +3 -4
- 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 +9 -10
- data/lib/elasticsearch/api/actions/create.rb +3 -4
- data/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb +5 -5
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb +4 -4
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb +5 -5
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb +5 -5
- data/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb +5 -5
- data/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb +6 -6
- data/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb +5 -5
- data/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb +5 -5
- data/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb +5 -5
- data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb +5 -5
- data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb +5 -5
- data/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb +6 -4
- data/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb +5 -5
- data/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb +3 -4
- data/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb +3 -4
- data/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb +3 -3
- data/lib/elasticsearch/api/actions/delete.rb +5 -6
- data/lib/elasticsearch/api/actions/delete_by_query.rb +3 -4
- data/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +3 -4
- data/lib/elasticsearch/api/actions/delete_script.rb +3 -4
- data/lib/elasticsearch/api/actions/enrich/delete_policy.rb +3 -4
- data/lib/elasticsearch/api/actions/enrich/execute_policy.rb +3 -4
- data/lib/elasticsearch/api/actions/enrich/get_policy.rb +4 -5
- data/lib/elasticsearch/api/actions/enrich/put_policy.rb +3 -4
- data/lib/elasticsearch/api/actions/enrich/stats.rb +3 -3
- data/lib/elasticsearch/api/actions/eql/delete.rb +3 -4
- data/lib/elasticsearch/api/actions/eql/get.rb +3 -4
- data/lib/elasticsearch/api/actions/eql/get_status.rb +3 -4
- data/lib/elasticsearch/api/actions/eql/search.rb +3 -4
- data/lib/elasticsearch/api/actions/esql/async_query.rb +56 -0
- data/lib/elasticsearch/api/actions/esql/async_query_get.rb +63 -0
- data/lib/elasticsearch/api/actions/esql/query.rb +5 -8
- data/lib/elasticsearch/api/actions/exists.rb +5 -6
- data/lib/elasticsearch/api/actions/exists_source.rb +4 -5
- data/lib/elasticsearch/api/actions/explain.rb +4 -5
- data/lib/elasticsearch/api/actions/features/get_features.rb +3 -3
- data/lib/elasticsearch/api/actions/features/reset_features.rb +3 -3
- data/lib/elasticsearch/api/actions/field_caps.rb +10 -10
- data/lib/elasticsearch/api/actions/fleet/delete_secret.rb +2 -3
- data/lib/elasticsearch/api/actions/fleet/get_secret.rb +2 -3
- data/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb +3 -4
- data/lib/elasticsearch/api/actions/fleet/msearch.rb +9 -12
- data/lib/elasticsearch/api/actions/fleet/post_secret.rb +2 -2
- data/lib/elasticsearch/api/actions/fleet/search.rb +4 -5
- data/lib/elasticsearch/api/actions/get.rb +5 -6
- data/lib/elasticsearch/api/actions/get_script.rb +3 -4
- data/lib/elasticsearch/api/actions/get_script_context.rb +3 -3
- data/lib/elasticsearch/api/actions/get_script_languages.rb +3 -3
- data/lib/elasticsearch/api/actions/get_source.rb +3 -4
- data/lib/elasticsearch/api/actions/graph/explore.rb +5 -6
- data/lib/elasticsearch/api/actions/health_report.rb +4 -5
- data/lib/elasticsearch/api/actions/index.rb +4 -4
- data/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb +4 -5
- data/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb +3 -3
- data/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb +3 -3
- data/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb +3 -4
- data/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb +3 -4
- data/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb +3 -4
- data/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb +3 -3
- data/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb +3 -3
- data/lib/elasticsearch/api/actions/indices/add_block.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/analyze.rb +9 -10
- data/lib/elasticsearch/api/actions/indices/clear_cache.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/clone.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/close.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/create.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/create_data_stream.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/data_streams_stats.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/delete.rb +5 -6
- data/lib/elasticsearch/api/actions/indices/delete_alias.rb +4 -7
- data/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/delete_index_template.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/delete_template.rb +5 -6
- data/lib/elasticsearch/api/actions/indices/disk_usage.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/downsample.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/exists.rb +5 -6
- data/lib/elasticsearch/api/actions/indices/exists_alias.rb +5 -6
- data/lib/elasticsearch/api/actions/indices/exists_index_template.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/exists_template.rb +5 -6
- data/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/field_usage_stats.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/flush.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/forcemerge.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/get.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/get_alias.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/get_data_stream.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/get_index_template.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/get_mapping.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/get_settings.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/get_template.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/modify_data_stream.rb +3 -3
- data/lib/elasticsearch/api/actions/indices/open.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/promote_data_stream.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/put_alias.rb +4 -7
- data/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/put_index_template.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/put_mapping.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/put_settings.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/put_template.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/recovery.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/refresh.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/resolve_cluster.rb +64 -0
- data/lib/elasticsearch/api/actions/indices/resolve_index.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/rollover.rb +5 -4
- data/lib/elasticsearch/api/actions/indices/segments.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/shard_stores.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/shrink.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/simulate_index_template.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/simulate_template.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/split.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/stats.rb +4 -5
- data/lib/elasticsearch/api/actions/indices/unfreeze.rb +3 -4
- data/lib/elasticsearch/api/actions/indices/update_aliases.rb +3 -3
- data/lib/elasticsearch/api/actions/indices/validate_query.rb +9 -10
- data/lib/elasticsearch/api/actions/inference/delete_model.rb +13 -11
- data/lib/elasticsearch/api/actions/inference/get_model.rb +14 -12
- data/lib/elasticsearch/api/actions/inference/inference.rb +13 -11
- data/lib/elasticsearch/api/actions/inference/put_model.rb +13 -11
- data/lib/elasticsearch/api/actions/info.rb +3 -3
- data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +3 -4
- data/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb +3 -3
- data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +4 -5
- data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +3 -3
- data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +3 -4
- data/lib/elasticsearch/api/actions/ingest/simulate.rb +4 -5
- data/lib/elasticsearch/api/actions/knn_search.rb +5 -6
- data/lib/elasticsearch/api/actions/license/delete.rb +3 -3
- data/lib/elasticsearch/api/actions/license/get.rb +3 -3
- data/lib/elasticsearch/api/actions/license/get_basic_status.rb +3 -3
- data/lib/elasticsearch/api/actions/license/get_trial_status.rb +3 -3
- data/lib/elasticsearch/api/actions/license/post.rb +3 -3
- data/lib/elasticsearch/api/actions/license/post_start_basic.rb +3 -3
- data/lib/elasticsearch/api/actions/license/post_start_trial.rb +3 -3
- data/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb +3 -4
- data/lib/elasticsearch/api/actions/logstash/get_pipeline.rb +4 -5
- data/lib/elasticsearch/api/actions/logstash/put_pipeline.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/close_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb +3 -3
- data/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb +3 -3
- data/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb +8 -9
- data/lib/elasticsearch/api/actions/machine_learning/flush_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/forecast.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb +8 -9
- data/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb +8 -9
- data/lib/elasticsearch/api/actions/machine_learning/get_categories.rb +8 -9
- data/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_filters.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb +8 -9
- data/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_records.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb +4 -5
- data/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb +4 -7
- data/lib/elasticsearch/api/actions/machine_learning/info.rb +3 -3
- data/lib/elasticsearch/api/actions/machine_learning/open_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/post_data.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb +8 -9
- data/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb +8 -9
- data/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_filter.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/reset_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb +3 -3
- data/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/update_filter.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/update_job.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb +3 -4
- data/lib/elasticsearch/api/actions/machine_learning/validate.rb +3 -3
- data/lib/elasticsearch/api/actions/machine_learning/validate_detector.rb +3 -3
- data/lib/elasticsearch/api/actions/mget.rb +4 -5
- data/lib/elasticsearch/api/actions/migration/deprecations.rb +4 -5
- data/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb +3 -3
- data/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb +3 -3
- data/lib/elasticsearch/api/actions/monitoring/bulk.rb +10 -11
- data/lib/elasticsearch/api/actions/msearch.rb +10 -13
- data/lib/elasticsearch/api/actions/msearch_template.rb +8 -11
- data/lib/elasticsearch/api/actions/mtermvectors.rb +9 -10
- data/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb +4 -7
- data/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb +3 -4
- data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +4 -5
- data/lib/elasticsearch/api/actions/nodes/info.rb +4 -5
- data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +4 -5
- data/lib/elasticsearch/api/actions/nodes/stats.rb +4 -5
- data/lib/elasticsearch/api/actions/nodes/usage.rb +4 -5
- data/lib/elasticsearch/api/actions/open_point_in_time.rb +3 -4
- data/lib/elasticsearch/api/actions/ping.rb +7 -9
- data/lib/elasticsearch/api/actions/profiling/flamegraph.rb +53 -0
- data/lib/elasticsearch/api/actions/profiling/stacktraces.rb +53 -0
- data/lib/elasticsearch/api/actions/profiling/status.rb +3 -3
- data/lib/elasticsearch/api/actions/profiling/topn_functions.rb +53 -0
- data/lib/elasticsearch/api/actions/put_script.rb +3 -4
- data/lib/elasticsearch/api/actions/query_ruleset/delete.rb +3 -4
- data/lib/elasticsearch/api/actions/query_ruleset/get.rb +3 -4
- data/lib/elasticsearch/api/actions/query_ruleset/list.rb +3 -3
- data/lib/elasticsearch/api/actions/query_ruleset/put.rb +3 -4
- data/lib/elasticsearch/api/actions/rank_eval.rb +4 -5
- data/lib/elasticsearch/api/actions/reindex.rb +3 -3
- data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +3 -4
- data/lib/elasticsearch/api/actions/render_search_template.rb +8 -9
- data/lib/elasticsearch/api/actions/rollup/delete_job.rb +3 -4
- data/lib/elasticsearch/api/actions/rollup/get_jobs.rb +4 -5
- data/lib/elasticsearch/api/actions/rollup/get_rollup_caps.rb +4 -5
- data/lib/elasticsearch/api/actions/rollup/get_rollup_index_caps.rb +3 -4
- data/lib/elasticsearch/api/actions/rollup/put_job.rb +3 -4
- data/lib/elasticsearch/api/actions/rollup/rollup_search.rb +3 -4
- data/lib/elasticsearch/api/actions/rollup/start_job.rb +3 -4
- data/lib/elasticsearch/api/actions/rollup/stop_job.rb +3 -4
- data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +3 -3
- data/lib/elasticsearch/api/actions/scroll.rb +8 -9
- data/lib/elasticsearch/api/actions/search.rb +9 -10
- data/lib/elasticsearch/api/actions/search_application/delete.rb +3 -4
- data/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb +3 -4
- data/lib/elasticsearch/api/actions/search_application/get.rb +3 -4
- data/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb +4 -5
- data/lib/elasticsearch/api/actions/search_application/list.rb +3 -3
- data/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb +2 -3
- data/lib/elasticsearch/api/actions/search_application/put.rb +3 -4
- data/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb +3 -4
- data/lib/elasticsearch/api/actions/search_application/render_query.rb +3 -4
- data/lib/elasticsearch/api/actions/search_application/search.rb +6 -6
- data/lib/elasticsearch/api/actions/search_mvt.rb +3 -4
- data/lib/elasticsearch/api/actions/search_shards.rb +4 -5
- data/lib/elasticsearch/api/actions/search_template.rb +4 -5
- data/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb +4 -5
- data/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb +4 -5
- data/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb +3 -4
- data/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb +4 -5
- data/lib/elasticsearch/api/actions/security/activate_user_profile.rb +3 -3
- data/lib/elasticsearch/api/actions/security/authenticate.rb +3 -3
- data/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb +3 -3
- data/lib/elasticsearch/api/actions/security/change_password.rb +4 -5
- data/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb +3 -4
- data/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb +3 -4
- data/lib/elasticsearch/api/actions/security/clear_cached_realms.rb +3 -4
- data/lib/elasticsearch/api/actions/security/clear_cached_roles.rb +3 -4
- data/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb +3 -4
- data/lib/elasticsearch/api/actions/security/create_api_key.rb +3 -3
- data/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb +3 -3
- data/lib/elasticsearch/api/actions/security/create_service_token.rb +3 -4
- data/lib/elasticsearch/api/actions/security/delete_privileges.rb +3 -4
- data/lib/elasticsearch/api/actions/security/delete_role.rb +3 -4
- data/lib/elasticsearch/api/actions/security/delete_role_mapping.rb +3 -4
- data/lib/elasticsearch/api/actions/security/delete_service_token.rb +3 -4
- data/lib/elasticsearch/api/actions/security/delete_user.rb +3 -4
- data/lib/elasticsearch/api/actions/security/disable_user.rb +3 -4
- data/lib/elasticsearch/api/actions/security/disable_user_profile.rb +3 -4
- data/lib/elasticsearch/api/actions/security/enable_user.rb +3 -4
- data/lib/elasticsearch/api/actions/security/enable_user_profile.rb +3 -4
- data/lib/elasticsearch/api/actions/security/enroll_kibana.rb +3 -3
- data/lib/elasticsearch/api/actions/security/enroll_node.rb +3 -3
- data/lib/elasticsearch/api/actions/security/get_api_key.rb +4 -3
- data/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb +3 -3
- data/lib/elasticsearch/api/actions/security/get_privileges.rb +4 -5
- data/lib/elasticsearch/api/actions/security/get_role.rb +6 -7
- data/lib/elasticsearch/api/actions/security/get_role_mapping.rb +4 -5
- data/lib/elasticsearch/api/actions/security/get_service_accounts.rb +4 -5
- data/lib/elasticsearch/api/actions/security/get_service_credentials.rb +3 -4
- data/lib/elasticsearch/api/actions/security/get_settings.rb +3 -3
- data/lib/elasticsearch/api/actions/security/get_token.rb +3 -3
- data/lib/elasticsearch/api/actions/security/get_user.rb +6 -7
- data/lib/elasticsearch/api/actions/security/get_user_privileges.rb +3 -3
- data/lib/elasticsearch/api/actions/security/get_user_profile.rb +3 -4
- data/lib/elasticsearch/api/actions/security/grant_api_key.rb +3 -3
- data/lib/elasticsearch/api/actions/security/has_privileges.rb +4 -5
- data/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb +3 -3
- data/lib/elasticsearch/api/actions/security/invalidate_api_key.rb +3 -3
- data/lib/elasticsearch/api/actions/security/invalidate_token.rb +3 -3
- data/lib/elasticsearch/api/actions/security/oidc_authenticate.rb +3 -3
- data/lib/elasticsearch/api/actions/security/oidc_logout.rb +3 -3
- data/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb +3 -3
- data/lib/elasticsearch/api/actions/security/put_privileges.rb +3 -3
- data/lib/elasticsearch/api/actions/security/put_role.rb +3 -4
- data/lib/elasticsearch/api/actions/security/put_role_mapping.rb +3 -4
- data/lib/elasticsearch/api/actions/security/put_user.rb +3 -4
- data/lib/elasticsearch/api/actions/security/query_api_keys.rb +5 -3
- data/lib/elasticsearch/api/actions/security/query_user.rb +57 -0
- data/lib/elasticsearch/api/actions/security/saml_authenticate.rb +3 -3
- data/lib/elasticsearch/api/actions/security/saml_complete_logout.rb +3 -3
- data/lib/elasticsearch/api/actions/security/saml_invalidate.rb +3 -3
- data/lib/elasticsearch/api/actions/security/saml_logout.rb +3 -3
- data/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb +3 -3
- data/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb +3 -4
- data/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb +3 -3
- data/lib/elasticsearch/api/actions/security/update_api_key.rb +3 -4
- data/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb +3 -4
- data/lib/elasticsearch/api/actions/security/update_settings.rb +3 -3
- data/lib/elasticsearch/api/actions/security/update_user_profile_data.rb +3 -4
- data/lib/elasticsearch/api/actions/shutdown/delete_node.rb +2 -3
- data/lib/elasticsearch/api/actions/shutdown/get_node.rb +3 -4
- data/lib/elasticsearch/api/actions/shutdown/put_node.rb +2 -3
- data/lib/elasticsearch/api/actions/simulate/ingest.rb +4 -5
- data/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot/clone.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot/create.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot/delete.rb +5 -6
- data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +5 -6
- data/lib/elasticsearch/api/actions/snapshot/get.rb +5 -6
- data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +6 -7
- data/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot/restore.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot/status.rb +6 -7
- data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb +3 -3
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +4 -5
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb +3 -3
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb +3 -3
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +3 -4
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb +3 -3
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb +3 -3
- data/lib/elasticsearch/api/actions/sql/clear_cursor.rb +3 -3
- data/lib/elasticsearch/api/actions/sql/delete_async.rb +3 -4
- data/lib/elasticsearch/api/actions/sql/get_async.rb +3 -4
- data/lib/elasticsearch/api/actions/sql/get_async_status.rb +3 -4
- data/lib/elasticsearch/api/actions/sql/query.rb +3 -3
- data/lib/elasticsearch/api/actions/sql/translate.rb +3 -3
- data/lib/elasticsearch/api/actions/ssl/certificates.rb +3 -3
- data/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb +3 -8
- data/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb +3 -8
- data/lib/elasticsearch/api/actions/synonyms/get_synonym.rb +3 -8
- data/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb +3 -8
- data/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb +3 -7
- data/lib/elasticsearch/api/actions/synonyms/put_synonym.rb +3 -8
- data/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb +3 -8
- data/lib/elasticsearch/api/actions/tasks/cancel.rb +4 -5
- data/lib/elasticsearch/api/actions/tasks/get.rb +3 -4
- data/lib/elasticsearch/api/actions/tasks/list.rb +3 -3
- data/lib/elasticsearch/api/actions/terms_enum.rb +5 -6
- data/lib/elasticsearch/api/actions/termvectors.rb +12 -12
- data/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb +64 -0
- data/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb +64 -0
- data/lib/elasticsearch/api/actions/text_structure/find_structure.rb +9 -9
- data/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb +54 -0
- data/lib/elasticsearch/api/actions/transform/delete_transform.rb +3 -4
- data/lib/elasticsearch/api/actions/transform/get_transform.rb +4 -5
- data/lib/elasticsearch/api/actions/transform/get_transform_stats.rb +3 -4
- data/lib/elasticsearch/api/actions/transform/preview_transform.rb +8 -9
- data/lib/elasticsearch/api/actions/transform/put_transform.rb +3 -4
- data/lib/elasticsearch/api/actions/transform/reset_transform.rb +3 -4
- data/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb +3 -4
- data/lib/elasticsearch/api/actions/transform/start_transform.rb +3 -4
- data/lib/elasticsearch/api/actions/transform/stop_transform.rb +3 -4
- data/lib/elasticsearch/api/actions/transform/update_transform.rb +3 -4
- data/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb +3 -3
- data/lib/elasticsearch/api/actions/update.rb +5 -6
- data/lib/elasticsearch/api/actions/update_by_query.rb +3 -4
- data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +3 -4
- data/lib/elasticsearch/api/actions/watcher/ack_watch.rb +3 -4
- data/lib/elasticsearch/api/actions/watcher/activate_watch.rb +3 -4
- data/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb +3 -4
- data/lib/elasticsearch/api/actions/watcher/delete_watch.rb +5 -6
- data/lib/elasticsearch/api/actions/watcher/execute_watch.rb +4 -5
- data/lib/elasticsearch/api/actions/watcher/get_settings.rb +3 -3
- data/lib/elasticsearch/api/actions/watcher/get_watch.rb +3 -4
- data/lib/elasticsearch/api/actions/watcher/put_watch.rb +3 -4
- data/lib/elasticsearch/api/actions/watcher/query_watches.rb +3 -3
- data/lib/elasticsearch/api/actions/watcher/start.rb +3 -3
- data/lib/elasticsearch/api/actions/watcher/stats.rb +4 -5
- data/lib/elasticsearch/api/actions/watcher/stop.rb +3 -3
- data/lib/elasticsearch/api/actions/watcher/update_settings.rb +3 -3
- data/lib/elasticsearch/api/actions/xpack/info.rb +3 -3
- data/lib/elasticsearch/api/actions/xpack/usage.rb +3 -3
- data/lib/elasticsearch/api/version.rb +1 -1
- data/lib/elasticsearch/api.rb +1 -2
- data/spec/elasticsearch/api/actions/connector/update_active_filtering_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector/update_api_key_id_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector/update_filtering_validation_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector/update_index_name_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector/update_native_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector/update_service_type_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector/update_status_spec.rb +38 -0
- data/spec/elasticsearch/api/actions/connector_secret/delete_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/connector_secret/get_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/connector_secret/post_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/connector_secret/put_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/connector_sync_job/cancel_spec.rb +3 -3
- data/spec/elasticsearch/api/actions/connector_sync_job/check_in_spec.rb +3 -3
- data/spec/elasticsearch/api/actions/connector_sync_job/delete_spec.rb +3 -3
- data/spec/elasticsearch/api/actions/connector_sync_job/error_spec.rb +3 -3
- data/spec/elasticsearch/api/actions/connector_sync_job/get_spec.rb +3 -3
- data/spec/elasticsearch/api/actions/connector_sync_job/list_spec.rb +3 -3
- data/spec/elasticsearch/api/actions/connector_sync_job/post_spec.rb +3 -3
- data/spec/elasticsearch/api/actions/connector_sync_job/update_stats_spec.rb +3 -3
- data/spec/elasticsearch/api/actions/esql/async_query_get._spec.rb +35 -0
- data/spec/elasticsearch/api/actions/esql/async_query_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/indices/resolve_cluster_spec.rb +51 -0
- data/spec/elasticsearch/api/actions/inference/delete_model_spec.rb +2 -2
- data/spec/elasticsearch/api/actions/inference/get_model_spec.rb +2 -2
- data/spec/elasticsearch/api/actions/inference/inference_spec.rb +2 -2
- data/spec/elasticsearch/api/actions/inference/put_model_spec.rb +2 -2
- data/spec/elasticsearch/api/actions/profiling/flamegraph_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/profiling/stacktraces_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/profiling/topn_functions_spec.rb +35 -0
- data/spec/{platinum/unit/text_structure/find_structure_test.rb → elasticsearch/api/actions/security/query_user_spec.rb} +26 -17
- data/spec/elasticsearch/api/actions/text_structure/find_field_structure_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/text_structure/find_message_structure_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/text_structure/find_structure_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/text_structure/test_grok_pattern_spec.rb +35 -0
- data/spec/elasticsearch/api/perform_request_spec.rb +1 -1
- data/spec/free/integration/health_spec.rb +28 -0
- data/spec/free/integration/spec_helper.rb +28 -0
- data/spec/platinum/integration/api_key/api_key_cross_cluster_spec.rb +6 -15
- data/spec/platinum/integration/api_key/api_key_query_with_aggs_spec.rb +120 -0
- data/spec/platinum/integration/platinum_helper.rb +1 -1
- data/spec/platinum/integration/security/users_query_spec.rb +49 -0
- data/spec/rest_api/rest_api_yaml_spec.rb +6 -0
- data/spec/rest_api/skipped_tests_free.yml +45 -0
- data/spec/rest_api/skipped_tests_platinum.yml +6 -0
- data/{lib/elasticsearch/api/namespace/connector_sync_job.rb → spec/rspec_formatter.rb} +9 -14
- data/spec/spec_helper.rb +10 -3
- data/utils/Gemfile +1 -1
- data/utils/{endpoint_spec.rb → thor/endpoint_spec.rb} +1 -2
- data/utils/{endpoint_specifics.rb → thor/endpoint_specifics.rb} +5 -5
- data/utils/thor/generate_source.rb +9 -89
- data/utils/thor/generator/build_hash_helper.rb +64 -0
- data/utils/thor/generator/docs_helper.rb +62 -0
- data/utils/thor/generator/files_helper.rb +25 -22
- data/utils/thor/templates/_body.erb +1 -1
- data/utils/thor/templates/_documentation_top.erb +11 -12
- data/utils/thor/templates/_method_setup.erb +6 -6
- data/utils/thor/templates/_perform_request.erb +1 -1
- data/utils/thor/templates/method.erb +14 -14
- metadata +90 -16
@@ -28,14 +28,13 @@ module Elasticsearch
|
|
28
28
|
# @option arguments [Boolean] :with_profile_uid flag to retrieve profile uid (if exists) associated to the user
|
29
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
30
|
#
|
31
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
31
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-get-user.html
|
32
32
|
#
|
33
33
|
def get_user(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
34
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.get_user' }
|
35
35
|
|
36
|
-
defined_params = [:username].
|
36
|
+
defined_params = [:username].each_with_object({}) do |variable, set_variables|
|
37
37
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
38
|
-
set_variables
|
39
38
|
end
|
40
39
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
41
40
|
|
@@ -50,16 +49,16 @@ module Elasticsearch
|
|
50
49
|
path = if _username
|
51
50
|
"_security/user/#{Utils.__listify(_username)}"
|
52
51
|
else
|
53
|
-
|
52
|
+
'_security/user'
|
54
53
|
end
|
55
54
|
params = Utils.process_params(arguments)
|
56
55
|
|
57
56
|
if Array(arguments[:ignore]).include?(404)
|
58
|
-
Utils.__rescue_from_not_found
|
57
|
+
Utils.__rescue_from_not_found do
|
59
58
|
Elasticsearch::API::Response.new(
|
60
59
|
perform_request(method, path, params, body, headers, request_opts)
|
61
60
|
)
|
62
|
-
|
61
|
+
end
|
63
62
|
else
|
64
63
|
Elasticsearch::API::Response.new(
|
65
64
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -26,10 +26,10 @@ module Elasticsearch
|
|
26
26
|
#
|
27
27
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
28
|
#
|
29
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
29
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-get-user-privileges.html
|
30
30
|
#
|
31
31
|
def get_user_privileges(arguments = {})
|
32
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
32
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.get_user_privileges' }
|
33
33
|
|
34
34
|
arguments = arguments.clone
|
35
35
|
headers = arguments.delete(:headers) || {}
|
@@ -37,7 +37,7 @@ module Elasticsearch
|
|
37
37
|
body = nil
|
38
38
|
|
39
39
|
method = Elasticsearch::API::HTTP_GET
|
40
|
-
path =
|
40
|
+
path = '_security/user/_privileges'
|
41
41
|
params = {}
|
42
42
|
|
43
43
|
Elasticsearch::API::Response.new(
|
@@ -28,14 +28,13 @@ module Elasticsearch
|
|
28
28
|
# @option arguments [List] :data A comma-separated list of keys for which the corresponding application data are retrieved.
|
29
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
30
|
#
|
31
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
31
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-get-user-profile.html
|
32
32
|
#
|
33
33
|
def get_user_profile(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
34
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.get_user_profile' }
|
35
35
|
|
36
|
-
defined_params = [:uid].
|
36
|
+
defined_params = [:uid].each_with_object({}) do |variable, set_variables|
|
37
37
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
38
|
-
set_variables
|
39
38
|
end
|
40
39
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
41
40
|
|
@@ -28,10 +28,10 @@ module Elasticsearch
|
|
28
28
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
29
|
# @option arguments [Hash] :body The api key request to create an API key (*Required*)
|
30
30
|
#
|
31
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
31
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-grant-api-key.html
|
32
32
|
#
|
33
33
|
def grant_api_key(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
34
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.grant_api_key' }
|
35
35
|
|
36
36
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
37
37
|
|
@@ -41,7 +41,7 @@ module Elasticsearch
|
|
41
41
|
body = arguments.delete(:body)
|
42
42
|
|
43
43
|
method = Elasticsearch::API::HTTP_POST
|
44
|
-
path =
|
44
|
+
path = '_security/api_key/grant'
|
45
45
|
params = Utils.process_params(arguments)
|
46
46
|
|
47
47
|
Elasticsearch::API::Response.new(
|
@@ -28,14 +28,13 @@ module Elasticsearch
|
|
28
28
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
29
|
# @option arguments [Hash] :body The privileges to test (*Required*)
|
30
30
|
#
|
31
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
31
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-has-privileges.html
|
32
32
|
#
|
33
33
|
def has_privileges(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
34
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.has_privileges' }
|
35
35
|
|
36
|
-
defined_params = [:user].
|
36
|
+
defined_params = [:user].each_with_object({}) do |variable, set_variables|
|
37
37
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
38
|
-
set_variables
|
39
38
|
end
|
40
39
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
41
40
|
|
@@ -52,7 +51,7 @@ module Elasticsearch
|
|
52
51
|
path = if _user
|
53
52
|
"_security/user/#{Utils.__listify(_user)}/_has_privileges"
|
54
53
|
else
|
55
|
-
|
54
|
+
'_security/user/_has_privileges'
|
56
55
|
end
|
57
56
|
params = {}
|
58
57
|
|
@@ -27,10 +27,10 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
28
|
# @option arguments [Hash] :body The privileges to check and the list of profile IDs (*Required*)
|
29
29
|
#
|
30
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-has-privileges-user-profile.html
|
31
31
|
#
|
32
32
|
def has_privileges_user_profile(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.has_privileges_user_profile' }
|
34
34
|
|
35
35
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
36
36
|
|
@@ -40,7 +40,7 @@ module Elasticsearch
|
|
40
40
|
body = arguments.delete(:body)
|
41
41
|
|
42
42
|
method = Elasticsearch::API::HTTP_POST
|
43
|
-
path =
|
43
|
+
path = '_security/profile/_has_privileges'
|
44
44
|
params = {}
|
45
45
|
|
46
46
|
Elasticsearch::API::Response.new(
|
@@ -27,10 +27,10 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
28
|
# @option arguments [Hash] :body The api key request to invalidate API key(s) (*Required*)
|
29
29
|
#
|
30
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-invalidate-api-key.html
|
31
31
|
#
|
32
32
|
def invalidate_api_key(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.invalidate_api_key' }
|
34
34
|
|
35
35
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
36
36
|
|
@@ -40,7 +40,7 @@ module Elasticsearch
|
|
40
40
|
body = arguments.delete(:body)
|
41
41
|
|
42
42
|
method = Elasticsearch::API::HTTP_DELETE
|
43
|
-
path =
|
43
|
+
path = '_security/api_key'
|
44
44
|
params = {}
|
45
45
|
|
46
46
|
Elasticsearch::API::Response.new(
|
@@ -27,10 +27,10 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
28
|
# @option arguments [Hash] :body The token to invalidate (*Required*)
|
29
29
|
#
|
30
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-invalidate-token.html
|
31
31
|
#
|
32
32
|
def invalidate_token(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.invalidate_token' }
|
34
34
|
|
35
35
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
36
36
|
|
@@ -40,7 +40,7 @@ module Elasticsearch
|
|
40
40
|
body = arguments.delete(:body)
|
41
41
|
|
42
42
|
method = Elasticsearch::API::HTTP_DELETE
|
43
|
-
path =
|
43
|
+
path = '_security/oauth2/token'
|
44
44
|
params = {}
|
45
45
|
|
46
46
|
Elasticsearch::API::Response.new(
|
@@ -27,10 +27,10 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
28
|
# @option arguments [Hash] :body The OpenID Connect response to authenticate (*Required*)
|
29
29
|
#
|
30
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-oidc-authenticate.html
|
31
31
|
#
|
32
32
|
def oidc_authenticate(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.oidc_authenticate' }
|
34
34
|
|
35
35
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
36
36
|
|
@@ -40,7 +40,7 @@ module Elasticsearch
|
|
40
40
|
body = arguments.delete(:body)
|
41
41
|
|
42
42
|
method = Elasticsearch::API::HTTP_POST
|
43
|
-
path =
|
43
|
+
path = '_security/oidc/authenticate'
|
44
44
|
params = {}
|
45
45
|
|
46
46
|
Elasticsearch::API::Response.new(
|
@@ -27,10 +27,10 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
28
|
# @option arguments [Hash] :body Access token and refresh token to invalidate (*Required*)
|
29
29
|
#
|
30
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-oidc-logout.html
|
31
31
|
#
|
32
32
|
def oidc_logout(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.oidc_logout' }
|
34
34
|
|
35
35
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
36
36
|
|
@@ -40,7 +40,7 @@ module Elasticsearch
|
|
40
40
|
body = arguments.delete(:body)
|
41
41
|
|
42
42
|
method = Elasticsearch::API::HTTP_POST
|
43
|
-
path =
|
43
|
+
path = '_security/oidc/logout'
|
44
44
|
params = {}
|
45
45
|
|
46
46
|
Elasticsearch::API::Response.new(
|
@@ -27,10 +27,10 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
28
|
# @option arguments [Hash] :body The OpenID Connect authentication realm configuration (*Required*)
|
29
29
|
#
|
30
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-oidc-prepare-authentication.html
|
31
31
|
#
|
32
32
|
def oidc_prepare_authentication(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.oidc_prepare_authentication' }
|
34
34
|
|
35
35
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
36
36
|
|
@@ -40,7 +40,7 @@ module Elasticsearch
|
|
40
40
|
body = arguments.delete(:body)
|
41
41
|
|
42
42
|
method = Elasticsearch::API::HTTP_POST
|
43
|
-
path =
|
43
|
+
path = '_security/oidc/prepare'
|
44
44
|
params = {}
|
45
45
|
|
46
46
|
Elasticsearch::API::Response.new(
|
@@ -28,10 +28,10 @@ module Elasticsearch
|
|
28
28
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
29
|
# @option arguments [Hash] :body The privilege(s) to add (*Required*)
|
30
30
|
#
|
31
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
31
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-put-privileges.html
|
32
32
|
#
|
33
33
|
def put_privileges(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
34
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.put_privileges' }
|
35
35
|
|
36
36
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
37
37
|
|
@@ -41,7 +41,7 @@ module Elasticsearch
|
|
41
41
|
body = arguments.delete(:body)
|
42
42
|
|
43
43
|
method = Elasticsearch::API::HTTP_PUT
|
44
|
-
path =
|
44
|
+
path = '_security/privilege'
|
45
45
|
params = Utils.process_params(arguments)
|
46
46
|
|
47
47
|
Elasticsearch::API::Response.new(
|
@@ -29,14 +29,13 @@ module Elasticsearch
|
|
29
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
30
|
# @option arguments [Hash] :body The role to add (*Required*)
|
31
31
|
#
|
32
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
32
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-put-role.html
|
33
33
|
#
|
34
34
|
def put_role(arguments = {})
|
35
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.put_role' }
|
36
36
|
|
37
|
-
defined_params = [:name].
|
37
|
+
defined_params = [:name].each_with_object({}) do |variable, set_variables|
|
38
38
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
|
-
set_variables
|
40
39
|
end
|
41
40
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
42
41
|
|
@@ -29,14 +29,13 @@ module Elasticsearch
|
|
29
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
30
|
# @option arguments [Hash] :body The role mapping to add (*Required*)
|
31
31
|
#
|
32
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
32
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-put-role-mapping.html
|
33
33
|
#
|
34
34
|
def put_role_mapping(arguments = {})
|
35
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.put_role_mapping' }
|
36
36
|
|
37
|
-
defined_params = [:name].
|
37
|
+
defined_params = [:name].each_with_object({}) do |variable, set_variables|
|
38
38
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
|
-
set_variables
|
40
39
|
end
|
41
40
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
42
41
|
|
@@ -29,14 +29,13 @@ module Elasticsearch
|
|
29
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
30
|
# @option arguments [Hash] :body The user to add (*Required*)
|
31
31
|
#
|
32
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
32
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-put-user.html
|
33
33
|
#
|
34
34
|
def put_user(arguments = {})
|
35
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.put_user' }
|
36
36
|
|
37
|
-
defined_params = [:username].
|
37
|
+
defined_params = [:username].each_with_object({}) do |variable, set_variables|
|
38
38
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
|
-
set_variables
|
40
39
|
end
|
41
40
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
42
41
|
|
@@ -25,13 +25,15 @@ module Elasticsearch
|
|
25
25
|
# Retrieves information for API keys using a subset of query DSL
|
26
26
|
#
|
27
27
|
# @option arguments [Boolean] :with_limited_by flag to show the limited-by role descriptors of API Keys
|
28
|
+
# @option arguments [Boolean] :with_profile_uid flag to also retrieve the API Key's owner profile uid, if it exists
|
29
|
+
# @option arguments [Boolean] :typed_keys flag to prefix aggregation names by their respective types in the response
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
31
|
# @option arguments [Hash] :body From, size, query, sort and search_after
|
30
32
|
#
|
31
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
33
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-query-api-key.html
|
32
34
|
#
|
33
35
|
def query_api_keys(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
36
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.query_api_keys' }
|
35
37
|
|
36
38
|
arguments = arguments.clone
|
37
39
|
headers = arguments.delete(:headers) || {}
|
@@ -44,7 +46,7 @@ module Elasticsearch
|
|
44
46
|
Elasticsearch::API::HTTP_GET
|
45
47
|
end
|
46
48
|
|
47
|
-
path
|
49
|
+
path = '_security/_query/api_key'
|
48
50
|
params = Utils.process_params(arguments)
|
49
51
|
|
50
52
|
Elasticsearch::API::Response.new(
|
@@ -0,0 +1,57 @@
|
|
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
|
+
# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80
|
19
|
+
# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec
|
20
|
+
#
|
21
|
+
module Elasticsearch
|
22
|
+
module API
|
23
|
+
module Security
|
24
|
+
module Actions
|
25
|
+
# Retrieves information for Users using a subset of query DSL
|
26
|
+
#
|
27
|
+
# @option arguments [Boolean] :with_profile_uid flag to retrieve profile uid (if exists) associated with the user
|
28
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
29
|
+
# @option arguments [Hash] :body From, size, query, sort and search_after
|
30
|
+
#
|
31
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-query-user.html
|
32
|
+
#
|
33
|
+
def query_user(arguments = {})
|
34
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.query_user' }
|
35
|
+
|
36
|
+
arguments = arguments.clone
|
37
|
+
headers = arguments.delete(:headers) || {}
|
38
|
+
|
39
|
+
body = arguments.delete(:body)
|
40
|
+
|
41
|
+
method = if body
|
42
|
+
Elasticsearch::API::HTTP_POST
|
43
|
+
else
|
44
|
+
Elasticsearch::API::HTTP_GET
|
45
|
+
end
|
46
|
+
|
47
|
+
path = '_security/_query/user'
|
48
|
+
params = Utils.process_params(arguments)
|
49
|
+
|
50
|
+
Elasticsearch::API::Response.new(
|
51
|
+
perform_request(method, path, params, body, headers, request_opts)
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -27,10 +27,10 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
28
|
# @option arguments [Hash] :body The SAML response to authenticate (*Required*)
|
29
29
|
#
|
30
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-saml-authenticate.html
|
31
31
|
#
|
32
32
|
def saml_authenticate(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.saml_authenticate' }
|
34
34
|
|
35
35
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
36
36
|
|
@@ -40,7 +40,7 @@ module Elasticsearch
|
|
40
40
|
body = arguments.delete(:body)
|
41
41
|
|
42
42
|
method = Elasticsearch::API::HTTP_POST
|
43
|
-
path =
|
43
|
+
path = '_security/saml/authenticate'
|
44
44
|
params = {}
|
45
45
|
|
46
46
|
Elasticsearch::API::Response.new(
|
@@ -27,10 +27,10 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
28
|
# @option arguments [Hash] :body The logout response to verify (*Required*)
|
29
29
|
#
|
30
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-saml-complete-logout.html
|
31
31
|
#
|
32
32
|
def saml_complete_logout(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.saml_complete_logout' }
|
34
34
|
|
35
35
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
36
36
|
|
@@ -40,7 +40,7 @@ module Elasticsearch
|
|
40
40
|
body = arguments.delete(:body)
|
41
41
|
|
42
42
|
method = Elasticsearch::API::HTTP_POST
|
43
|
-
path =
|
43
|
+
path = '_security/saml/complete_logout'
|
44
44
|
params = {}
|
45
45
|
|
46
46
|
Elasticsearch::API::Response.new(
|
@@ -27,10 +27,10 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
28
|
# @option arguments [Hash] :body The LogoutRequest message (*Required*)
|
29
29
|
#
|
30
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-saml-invalidate.html
|
31
31
|
#
|
32
32
|
def saml_invalidate(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.saml_invalidate' }
|
34
34
|
|
35
35
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
36
36
|
|
@@ -40,7 +40,7 @@ module Elasticsearch
|
|
40
40
|
body = arguments.delete(:body)
|
41
41
|
|
42
42
|
method = Elasticsearch::API::HTTP_POST
|
43
|
-
path =
|
43
|
+
path = '_security/saml/invalidate'
|
44
44
|
params = {}
|
45
45
|
|
46
46
|
Elasticsearch::API::Response.new(
|
@@ -27,10 +27,10 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
28
|
# @option arguments [Hash] :body The tokens to invalidate (*Required*)
|
29
29
|
#
|
30
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-saml-logout.html
|
31
31
|
#
|
32
32
|
def saml_logout(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.saml_logout' }
|
34
34
|
|
35
35
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
36
36
|
|
@@ -40,7 +40,7 @@ module Elasticsearch
|
|
40
40
|
body = arguments.delete(:body)
|
41
41
|
|
42
42
|
method = Elasticsearch::API::HTTP_POST
|
43
|
-
path =
|
43
|
+
path = '_security/saml/logout'
|
44
44
|
params = {}
|
45
45
|
|
46
46
|
Elasticsearch::API::Response.new(
|
@@ -27,10 +27,10 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
28
|
# @option arguments [Hash] :body The realm for which to create the authentication request, identified by either its name or the ACS URL (*Required*)
|
29
29
|
#
|
30
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-saml-prepare-authentication.html
|
31
31
|
#
|
32
32
|
def saml_prepare_authentication(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.saml_prepare_authentication' }
|
34
34
|
|
35
35
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
36
36
|
|
@@ -40,7 +40,7 @@ module Elasticsearch
|
|
40
40
|
body = arguments.delete(:body)
|
41
41
|
|
42
42
|
method = Elasticsearch::API::HTTP_POST
|
43
|
-
path =
|
43
|
+
path = '_security/saml/prepare'
|
44
44
|
params = {}
|
45
45
|
|
46
46
|
Elasticsearch::API::Response.new(
|
@@ -27,14 +27,13 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [String] :realm_name The name of the SAML realm to get the metadata for
|
28
28
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
29
|
#
|
30
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-saml-sp-metadata.html
|
31
31
|
#
|
32
32
|
def saml_service_provider_metadata(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.saml_service_provider_metadata' }
|
34
34
|
|
35
|
-
defined_params = [:realm_name].
|
35
|
+
defined_params = [:realm_name].each_with_object({}) do |variable, set_variables|
|
36
36
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
37
|
-
set_variables
|
38
37
|
end
|
39
38
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
40
39
|
|
@@ -28,10 +28,10 @@ module Elasticsearch
|
|
28
28
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
29
|
# @option arguments [Hash] :body The suggestion definition for user profiles
|
30
30
|
#
|
31
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
31
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-suggest-user-profile.html
|
32
32
|
#
|
33
33
|
def suggest_user_profiles(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
34
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.suggest_user_profiles' }
|
35
35
|
|
36
36
|
arguments = arguments.clone
|
37
37
|
headers = arguments.delete(:headers) || {}
|
@@ -44,7 +44,7 @@ module Elasticsearch
|
|
44
44
|
Elasticsearch::API::HTTP_GET
|
45
45
|
end
|
46
46
|
|
47
|
-
path
|
47
|
+
path = '_security/profile/_suggest'
|
48
48
|
params = Utils.process_params(arguments)
|
49
49
|
|
50
50
|
Elasticsearch::API::Response.new(
|
@@ -28,14 +28,13 @@ module Elasticsearch
|
|
28
28
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
29
|
# @option arguments [Hash] :body The API key request to update attributes of an API key.
|
30
30
|
#
|
31
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
31
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-update-api-key.html
|
32
32
|
#
|
33
33
|
def update_api_key(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
34
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.update_api_key' }
|
35
35
|
|
36
|
-
defined_params = [:id].
|
36
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
37
37
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
38
|
-
set_variables
|
39
38
|
end
|
40
39
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
41
40
|
|
@@ -32,14 +32,13 @@ module Elasticsearch
|
|
32
32
|
# @option arguments [Hash] :headers Custom HTTP headers
|
33
33
|
# @option arguments [Hash] :body The request to update attributes of a cross-cluster API key. (*Required*)
|
34
34
|
#
|
35
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
35
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-update-cross-cluster-api-key.html
|
36
36
|
#
|
37
37
|
def update_cross_cluster_api_key(arguments = {})
|
38
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
38
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.update_cross_cluster_api_key' }
|
39
39
|
|
40
|
-
defined_params = [:id].
|
40
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
41
41
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
42
|
-
set_variables
|
43
42
|
end
|
44
43
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
45
44
|
|