elasticsearch-api 8.18.0 → 9.0.1
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 +11 -7
- data/elasticsearch-api.gemspec +7 -22
- data/lib/elasticsearch/api/actions/async_search/delete.rb +10 -7
- data/lib/elasticsearch/api/actions/async_search/get.rb +17 -9
- data/lib/elasticsearch/api/actions/async_search/status.rb +13 -8
- data/lib/elasticsearch/api/actions/async_search/submit.rb +47 -40
- data/lib/elasticsearch/api/actions/bulk.rb +116 -25
- data/lib/elasticsearch/api/actions/cat/aliases.rb +26 -15
- data/lib/elasticsearch/api/actions/cat/allocation.rb +25 -16
- data/lib/elasticsearch/api/actions/cat/component_templates.rb +27 -14
- data/lib/elasticsearch/api/actions/cat/count.rb +24 -14
- data/lib/elasticsearch/api/actions/cat/fielddata.rb +21 -13
- data/lib/elasticsearch/api/actions/cat/health.rb +27 -14
- data/lib/elasticsearch/api/actions/cat/help.rb +7 -6
- data/lib/elasticsearch/api/actions/cat/indices.rb +37 -21
- data/lib/elasticsearch/api/actions/cat/master.rb +22 -13
- data/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb +21 -14
- data/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb +29 -14
- data/lib/elasticsearch/api/actions/cat/ml_jobs.rb +30 -15
- data/lib/elasticsearch/api/actions/cat/ml_trained_models.rb +25 -17
- data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +22 -13
- data/lib/elasticsearch/api/actions/cat/nodes.rb +23 -17
- data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +24 -15
- data/lib/elasticsearch/api/actions/cat/plugins.rb +22 -13
- data/lib/elasticsearch/api/actions/cat/recovery.rb +27 -18
- data/lib/elasticsearch/api/actions/cat/repositories.rb +22 -13
- data/lib/elasticsearch/api/actions/cat/segments.rb +28 -16
- data/lib/elasticsearch/api/actions/cat/shards.rb +26 -17
- data/lib/elasticsearch/api/actions/cat/snapshots.rb +25 -15
- data/lib/elasticsearch/api/actions/cat/tasks.rb +25 -18
- data/lib/elasticsearch/api/actions/cat/templates.rb +25 -14
- data/lib/elasticsearch/api/actions/cat/thread_pool.rb +27 -17
- data/lib/elasticsearch/api/actions/cat/transforms.rb +25 -16
- data/lib/elasticsearch/api/actions/clear_scroll.rb +12 -18
- data/lib/elasticsearch/api/actions/close_point_in_time.rb +11 -7
- data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +15 -11
- data/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +12 -9
- data/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb +14 -8
- data/lib/elasticsearch/api/actions/cluster/exists_component_template.rb +14 -9
- data/lib/elasticsearch/api/actions/cluster/get_component_template.rb +14 -9
- data/lib/elasticsearch/api/actions/cluster/get_settings.rb +13 -10
- data/lib/elasticsearch/api/actions/cluster/health.rb +26 -19
- data/lib/elasticsearch/api/actions/cluster/info.rb +8 -7
- data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +14 -9
- data/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb +29 -10
- data/lib/elasticsearch/api/actions/cluster/put_component_template.rb +28 -11
- data/lib/elasticsearch/api/actions/cluster/put_settings.rb +22 -9
- data/lib/elasticsearch/api/actions/cluster/remote_info.rb +8 -6
- data/lib/elasticsearch/api/actions/cluster/reroute.rb +23 -13
- data/lib/elasticsearch/api/actions/cluster/state.rb +29 -16
- data/lib/elasticsearch/api/actions/cluster/stats.rb +12 -9
- data/lib/elasticsearch/api/actions/connector/check_in.rb +8 -7
- data/lib/elasticsearch/api/actions/connector/delete.rb +17 -12
- data/lib/elasticsearch/api/actions/connector/get.rb +14 -12
- data/lib/elasticsearch/api/actions/connector/list.rb +17 -15
- data/lib/elasticsearch/api/actions/connector/post.rb +14 -11
- data/lib/elasticsearch/api/actions/connector/put.rb +12 -12
- data/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb +13 -11
- data/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb +10 -7
- data/lib/elasticsearch/api/actions/connector/sync_job_claim.rb +14 -8
- data/lib/elasticsearch/api/actions/connector/sync_job_delete.rb +13 -11
- data/lib/elasticsearch/api/actions/connector/sync_job_error.rb +11 -8
- data/lib/elasticsearch/api/actions/connector/sync_job_get.rb +11 -11
- data/lib/elasticsearch/api/actions/connector/sync_job_list.rb +15 -14
- data/lib/elasticsearch/api/actions/connector/sync_job_post.rb +12 -11
- data/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb +13 -8
- data/lib/elasticsearch/api/actions/connector/update_active_filtering.rb +8 -7
- data/lib/elasticsearch/api/actions/connector/update_api_key_id.rb +16 -12
- data/lib/elasticsearch/api/actions/connector/update_configuration.rb +13 -12
- data/lib/elasticsearch/api/actions/connector/update_error.rb +11 -8
- data/lib/elasticsearch/api/actions/connector/update_features.rb +18 -8
- data/lib/elasticsearch/api/actions/connector/update_filtering.rb +15 -12
- data/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb +9 -8
- data/lib/elasticsearch/api/actions/connector/update_index_name.rb +13 -12
- data/lib/elasticsearch/api/actions/connector/update_name.rb +12 -12
- data/lib/elasticsearch/api/actions/connector/update_native.rb +12 -12
- data/lib/elasticsearch/api/actions/connector/update_pipeline.rb +13 -12
- data/lib/elasticsearch/api/actions/connector/update_scheduling.rb +12 -12
- data/lib/elasticsearch/api/actions/connector/update_service_type.rb +12 -12
- data/lib/elasticsearch/api/actions/connector/update_status.rb +8 -8
- data/lib/elasticsearch/api/actions/count.rb +50 -26
- data/lib/elasticsearch/api/actions/create.rb +111 -24
- data/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb +11 -8
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb +16 -11
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb +13 -9
- data/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb +12 -9
- data/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb +19 -10
- data/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb +12 -8
- data/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb +16 -8
- data/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb +15 -9
- data/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb +14 -9
- data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb +13 -8
- data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb +14 -10
- data/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb +11 -8
- data/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb +14 -9
- data/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb +11 -9
- data/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb +12 -9
- data/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb +9 -6
- data/lib/elasticsearch/api/actions/delete.rb +49 -18
- data/lib/elasticsearch/api/actions/delete_by_query.rb +120 -38
- data/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +11 -8
- data/lib/elasticsearch/api/actions/delete_script.rb +14 -9
- data/lib/elasticsearch/api/actions/enrich/delete_policy.rb +8 -7
- data/lib/elasticsearch/api/actions/enrich/execute_policy.rb +10 -9
- data/lib/elasticsearch/api/actions/enrich/get_policy.rb +10 -8
- data/lib/elasticsearch/api/actions/enrich/put_policy.rb +10 -9
- data/lib/elasticsearch/api/actions/enrich/stats.rb +8 -7
- data/lib/elasticsearch/api/actions/eql/delete.rb +11 -7
- data/lib/elasticsearch/api/actions/eql/get.rb +12 -9
- data/lib/elasticsearch/api/actions/eql/get_status.rb +8 -7
- data/lib/elasticsearch/api/actions/eql/search.rb +20 -14
- data/lib/elasticsearch/api/actions/esql/async_query.rb +24 -10
- data/lib/elasticsearch/api/actions/esql/async_query_delete.rb +14 -7
- data/lib/elasticsearch/api/actions/esql/async_query_get.rb +19 -10
- data/lib/elasticsearch/api/actions/esql/async_query_stop.rb +14 -8
- data/lib/elasticsearch/api/actions/esql/query.rb +15 -10
- data/lib/elasticsearch/api/actions/exists.rb +46 -20
- data/lib/elasticsearch/api/actions/exists_source.rb +28 -18
- data/lib/elasticsearch/api/actions/explain.rb +36 -22
- data/lib/elasticsearch/api/actions/features/get_features.rb +14 -7
- data/lib/elasticsearch/api/actions/features/reset_features.rb +17 -7
- data/lib/elasticsearch/api/actions/field_caps.rb +28 -20
- data/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb +18 -12
- data/lib/elasticsearch/api/actions/fleet/msearch.rb +34 -12
- data/lib/elasticsearch/api/actions/fleet/search.rb +57 -11
- data/lib/elasticsearch/api/actions/get.rb +77 -21
- data/lib/elasticsearch/api/actions/get_script.rb +11 -8
- data/lib/elasticsearch/api/actions/get_script_context.rb +7 -6
- data/lib/elasticsearch/api/actions/get_script_languages.rb +7 -6
- data/lib/elasticsearch/api/actions/get_source.rb +31 -18
- data/lib/elasticsearch/api/actions/graph/explore.rb +17 -10
- data/lib/elasticsearch/api/actions/health_report.rb +22 -10
- data/lib/elasticsearch/api/actions/index.rb +124 -24
- data/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb +11 -8
- data/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb +15 -10
- data/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb +10 -8
- data/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb +7 -6
- data/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb +22 -8
- data/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb +19 -9
- data/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +13 -9
- data/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb +10 -8
- data/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb +11 -8
- data/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb +12 -7
- data/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb +13 -7
- data/lib/elasticsearch/api/actions/indices/add_block.rb +28 -15
- data/lib/elasticsearch/api/actions/indices/analyze.rb +19 -12
- data/lib/elasticsearch/api/actions/{rollup/start_job.rb → indices/cancel_migrate_reindex.rb} +14 -13
- data/lib/elasticsearch/api/actions/indices/clear_cache.rb +27 -15
- data/lib/elasticsearch/api/actions/indices/clone.rb +47 -14
- data/lib/elasticsearch/api/actions/indices/close.rb +34 -14
- data/lib/elasticsearch/api/actions/indices/create.rb +30 -12
- data/lib/elasticsearch/api/actions/indices/create_data_stream.rb +15 -9
- data/lib/elasticsearch/api/actions/{rollup/put_job.rb → indices/create_from.rb} +19 -14
- data/lib/elasticsearch/api/actions/indices/data_streams_stats.rb +13 -8
- data/lib/elasticsearch/api/actions/indices/delete.rb +28 -14
- data/lib/elasticsearch/api/actions/indices/delete_alias.rb +17 -12
- data/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb +10 -9
- data/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +10 -9
- data/lib/elasticsearch/api/actions/indices/delete_index_template.rb +12 -9
- data/lib/elasticsearch/api/actions/indices/delete_template.rb +13 -10
- data/lib/elasticsearch/api/actions/indices/disk_usage.rb +26 -13
- data/lib/elasticsearch/api/actions/indices/downsample.rb +17 -11
- data/lib/elasticsearch/api/actions/indices/exists.rb +20 -15
- data/lib/elasticsearch/api/actions/indices/exists_alias.rb +22 -15
- data/lib/elasticsearch/api/actions/indices/exists_index_template.rb +11 -10
- data/lib/elasticsearch/api/actions/indices/exists_template.rb +17 -11
- data/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +9 -8
- data/lib/elasticsearch/api/actions/indices/field_usage_stats.rb +21 -12
- data/lib/elasticsearch/api/actions/indices/flush.rb +28 -13
- data/lib/elasticsearch/api/actions/indices/forcemerge.rb +49 -11
- data/lib/elasticsearch/api/actions/indices/get.rb +23 -16
- data/lib/elasticsearch/api/actions/indices/get_alias.rb +25 -15
- data/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb +15 -10
- data/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb +7 -6
- data/lib/elasticsearch/api/actions/indices/get_data_stream.rb +14 -11
- data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +30 -19
- data/lib/elasticsearch/api/actions/indices/get_index_template.rb +12 -11
- data/lib/elasticsearch/api/actions/indices/get_mapping.rb +21 -13
- data/lib/elasticsearch/api/actions/{rollup/get_rollup_index_caps.rb → indices/get_migrate_reindex_status.rb} +12 -11
- data/lib/elasticsearch/api/actions/indices/get_settings.rb +32 -19
- data/lib/elasticsearch/api/actions/indices/get_template.rb +15 -10
- data/lib/elasticsearch/api/actions/{fleet/post_secret.rb → indices/migrate_reindex.rb} +14 -11
- data/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb +19 -9
- data/lib/elasticsearch/api/actions/indices/modify_data_stream.rb +8 -7
- data/lib/elasticsearch/api/actions/indices/open.rb +41 -14
- data/lib/elasticsearch/api/actions/indices/promote_data_stream.rb +16 -8
- data/lib/elasticsearch/api/actions/indices/put_alias.rb +20 -13
- data/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb +19 -11
- data/lib/elasticsearch/api/actions/indices/put_index_template.rb +31 -10
- data/lib/elasticsearch/api/actions/indices/put_mapping.rb +40 -15
- data/lib/elasticsearch/api/actions/indices/put_settings.rb +44 -17
- data/lib/elasticsearch/api/actions/indices/put_template.rb +28 -11
- data/lib/elasticsearch/api/actions/indices/recovery.rb +28 -10
- data/lib/elasticsearch/api/actions/indices/refresh.rb +26 -11
- data/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb +21 -11
- data/lib/elasticsearch/api/actions/indices/resolve_cluster.rb +60 -12
- data/lib/elasticsearch/api/actions/indices/resolve_index.rb +18 -10
- data/lib/elasticsearch/api/actions/indices/rollover.rb +48 -18
- data/lib/elasticsearch/api/actions/indices/segments.rb +19 -12
- data/lib/elasticsearch/api/actions/indices/shard_stores.rb +23 -12
- data/lib/elasticsearch/api/actions/indices/shrink.rb +39 -14
- data/lib/elasticsearch/api/actions/indices/simulate_index_template.rb +12 -12
- data/lib/elasticsearch/api/actions/indices/simulate_template.rb +13 -11
- data/lib/elasticsearch/api/actions/indices/split.rb +40 -14
- data/lib/elasticsearch/api/actions/indices/stats.rb +29 -20
- data/lib/elasticsearch/api/actions/indices/update_aliases.rb +12 -9
- data/lib/elasticsearch/api/actions/indices/validate_query.rb +33 -24
- data/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb +10 -8
- data/lib/elasticsearch/api/actions/inference/completion.rb +10 -9
- data/lib/elasticsearch/api/actions/inference/delete.rb +12 -12
- data/lib/elasticsearch/api/actions/inference/get.rb +10 -10
- data/lib/elasticsearch/api/actions/inference/inference.rb +19 -14
- data/lib/elasticsearch/api/actions/inference/put.rb +21 -12
- data/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb +16 -10
- data/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb +11 -10
- data/lib/elasticsearch/api/actions/inference/put_anthropic.rb +17 -10
- data/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb +16 -10
- data/lib/elasticsearch/api/actions/inference/put_azureopenai.rb +21 -10
- data/lib/elasticsearch/api/actions/inference/put_cohere.rb +21 -11
- data/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb +12 -10
- data/lib/elasticsearch/api/actions/inference/put_elser.rb +12 -10
- data/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb +16 -10
- data/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb +16 -10
- data/lib/elasticsearch/api/actions/inference/put_hugging_face.rb +27 -10
- data/lib/elasticsearch/api/actions/inference/put_jinaai.rb +23 -11
- data/lib/elasticsearch/api/actions/inference/put_mistral.rb +17 -10
- data/lib/elasticsearch/api/actions/inference/put_openai.rb +22 -11
- data/lib/elasticsearch/api/actions/inference/put_voyageai.rb +12 -10
- data/lib/elasticsearch/api/actions/inference/put_watsonx.rb +19 -10
- data/lib/elasticsearch/api/actions/inference/rerank.rb +10 -9
- data/lib/elasticsearch/api/actions/inference/sparse_embedding.rb +10 -9
- data/lib/elasticsearch/api/actions/inference/stream_completion.rb +12 -8
- data/lib/elasticsearch/api/actions/inference/text_embedding.rb +10 -9
- data/lib/elasticsearch/api/actions/inference/update.rb +16 -11
- data/lib/elasticsearch/api/actions/info.rb +7 -6
- data/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb +12 -8
- data/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb +14 -8
- data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +13 -9
- data/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb +7 -6
- data/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb +10 -7
- data/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb +13 -8
- data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +13 -8
- data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +9 -6
- data/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb +13 -9
- data/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb +15 -9
- data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +11 -10
- data/lib/elasticsearch/api/actions/ingest/simulate.rb +12 -9
- data/lib/elasticsearch/api/actions/license/delete.rb +10 -8
- data/lib/elasticsearch/api/actions/license/get.rb +10 -8
- data/lib/elasticsearch/api/actions/license/get_basic_status.rb +6 -6
- data/lib/elasticsearch/api/actions/license/get_trial_status.rb +6 -6
- data/lib/elasticsearch/api/actions/license/post.rb +16 -10
- data/lib/elasticsearch/api/actions/license/post_start_basic.rb +13 -8
- data/lib/elasticsearch/api/actions/license/post_start_trial.rb +12 -8
- data/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb +9 -7
- data/lib/elasticsearch/api/actions/logstash/get_pipeline.rb +8 -7
- data/lib/elasticsearch/api/actions/logstash/put_pipeline.rb +10 -8
- data/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb +10 -6
- data/lib/elasticsearch/api/actions/machine_learning/close_job.rb +17 -11
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb +8 -7
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb +10 -9
- data/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb +10 -9
- data/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb +9 -9
- data/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb +12 -8
- data/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb +20 -10
- data/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb +9 -7
- data/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb +23 -12
- data/lib/elasticsearch/api/actions/machine_learning/delete_job.rb +20 -10
- data/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb +12 -9
- data/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb +10 -9
- data/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb +12 -9
- data/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb +10 -7
- data/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb +11 -7
- data/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb +20 -12
- data/lib/elasticsearch/api/actions/machine_learning/flush_job.rb +26 -13
- data/lib/elasticsearch/api/actions/machine_learning/forecast.rb +24 -11
- data/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb +27 -23
- data/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb +12 -12
- data/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb +14 -14
- data/lib/elasticsearch/api/actions/machine_learning/get_categories.rb +21 -17
- data/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb +26 -11
- data/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb +21 -11
- data/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb +23 -8
- data/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb +25 -9
- data/lib/elasticsearch/api/actions/machine_learning/get_filters.rb +10 -9
- data/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb +25 -16
- data/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb +18 -8
- data/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb +24 -9
- data/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb +14 -9
- data/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb +18 -10
- data/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb +23 -20
- data/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb +47 -15
- data/lib/elasticsearch/api/actions/machine_learning/get_records.rb +28 -16
- data/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb +27 -15
- data/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb +18 -10
- data/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb +7 -12
- data/lib/elasticsearch/api/actions/machine_learning/info.rb +13 -6
- data/lib/elasticsearch/api/actions/machine_learning/open_job.rb +16 -9
- data/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb +8 -8
- data/lib/elasticsearch/api/actions/machine_learning/post_data.rb +12 -10
- data/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb +13 -12
- data/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb +25 -14
- data/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb +8 -8
- data/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb +9 -9
- data/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb +15 -8
- data/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb +26 -12
- data/lib/elasticsearch/api/actions/machine_learning/put_filter.rb +10 -8
- data/lib/elasticsearch/api/actions/machine_learning/put_job.rb +21 -12
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb +14 -10
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb +28 -10
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb +11 -10
- data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb +10 -8
- data/lib/elasticsearch/api/actions/machine_learning/reset_job.rb +16 -9
- data/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb +25 -11
- data/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb +22 -8
- data/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb +23 -10
- data/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb +34 -11
- data/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb +28 -14
- data/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb +24 -12
- data/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb +21 -12
- data/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb +12 -9
- data/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb +10 -8
- data/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb +25 -12
- data/lib/elasticsearch/api/actions/machine_learning/update_filter.rb +9 -8
- data/lib/elasticsearch/api/actions/machine_learning/update_job.rb +8 -7
- data/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb +10 -9
- data/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb +14 -9
- data/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb +21 -11
- data/lib/elasticsearch/api/actions/mget.rb +34 -18
- data/lib/elasticsearch/api/actions/migration/deprecations.rb +11 -8
- data/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb +10 -6
- data/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb +10 -6
- data/lib/elasticsearch/api/actions/msearch.rb +44 -18
- data/lib/elasticsearch/api/actions/msearch_template.rb +31 -15
- data/lib/elasticsearch/api/actions/mtermvectors.rb +35 -29
- data/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb +15 -10
- data/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb +10 -7
- data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +18 -14
- data/lib/elasticsearch/api/actions/nodes/info.rb +14 -13
- data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +16 -9
- data/lib/elasticsearch/api/actions/nodes/stats.rb +25 -23
- data/lib/elasticsearch/api/actions/nodes/usage.rb +14 -12
- data/lib/elasticsearch/api/actions/open_point_in_time.rb +46 -15
- data/lib/elasticsearch/api/actions/ping.rb +7 -6
- data/lib/elasticsearch/api/actions/put_script.rb +20 -13
- data/lib/elasticsearch/api/actions/query_rules/delete_rule.rb +11 -9
- data/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb +10 -8
- data/lib/elasticsearch/api/actions/query_rules/get_rule.rb +10 -9
- data/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb +8 -7
- data/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb +9 -8
- data/lib/elasticsearch/api/actions/query_rules/put_rule.rb +15 -10
- data/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb +14 -8
- data/lib/elasticsearch/api/actions/query_rules/test.rb +9 -12
- data/lib/elasticsearch/api/actions/rank_eval.rb +16 -13
- data/lib/elasticsearch/api/actions/reindex.rb +156 -17
- data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +17 -8
- data/lib/elasticsearch/api/actions/render_search_template.rb +14 -12
- data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +13 -8
- data/lib/elasticsearch/api/actions/scroll.rb +19 -19
- data/lib/elasticsearch/api/actions/search.rb +135 -57
- data/lib/elasticsearch/api/actions/search_application/delete.rb +12 -11
- data/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb +7 -6
- data/lib/elasticsearch/api/actions/search_application/get.rb +11 -11
- data/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb +7 -7
- data/lib/elasticsearch/api/actions/search_application/list.rb +14 -13
- data/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb +11 -11
- data/lib/elasticsearch/api/actions/search_application/put.rb +13 -13
- data/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb +7 -7
- data/lib/elasticsearch/api/actions/search_application/render_query.rb +12 -8
- data/lib/elasticsearch/api/actions/search_application/search.rb +15 -13
- data/lib/elasticsearch/api/actions/search_mvt.rb +155 -24
- data/lib/elasticsearch/api/actions/search_shards.rb +29 -15
- data/lib/elasticsearch/api/actions/search_template.rb +31 -22
- data/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb +10 -8
- data/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb +12 -10
- data/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb +18 -13
- data/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb +9 -9
- data/lib/elasticsearch/api/actions/security/activate_user_profile.rb +16 -7
- data/lib/elasticsearch/api/actions/security/authenticate.rb +10 -6
- data/lib/elasticsearch/api/actions/security/bulk_delete_role.rb +10 -8
- data/lib/elasticsearch/api/actions/security/bulk_put_role.rb +10 -8
- data/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb +16 -7
- data/lib/elasticsearch/api/actions/security/change_password.rb +11 -9
- data/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb +12 -8
- data/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb +11 -7
- data/lib/elasticsearch/api/actions/security/clear_cached_realms.rb +16 -8
- data/lib/elasticsearch/api/actions/security/clear_cached_roles.rb +10 -7
- data/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb +17 -10
- data/lib/elasticsearch/api/actions/security/create_api_key.rb +16 -8
- data/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb +16 -7
- data/lib/elasticsearch/api/actions/security/create_service_token.rb +18 -12
- data/lib/elasticsearch/api/actions/security/delegate_pki.rb +13 -6
- data/lib/elasticsearch/api/actions/security/delete_privileges.rb +14 -10
- data/lib/elasticsearch/api/actions/security/delete_role.rb +11 -8
- data/lib/elasticsearch/api/actions/security/delete_role_mapping.rb +12 -8
- data/lib/elasticsearch/api/actions/security/delete_service_token.rb +12 -11
- data/lib/elasticsearch/api/actions/security/delete_user.rb +9 -8
- data/lib/elasticsearch/api/actions/security/disable_user.rb +11 -8
- data/lib/elasticsearch/api/actions/security/disable_user_profile.rb +17 -9
- data/lib/elasticsearch/api/actions/security/enable_user.rb +10 -8
- data/lib/elasticsearch/api/actions/security/enable_user_profile.rb +18 -9
- data/lib/elasticsearch/api/actions/security/enroll_kibana.rb +9 -6
- data/lib/elasticsearch/api/actions/security/enroll_node.rb +9 -6
- data/lib/elasticsearch/api/actions/security/get_api_key.rb +25 -13
- data/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb +7 -6
- data/lib/elasticsearch/api/actions/security/get_privileges.rb +16 -10
- data/lib/elasticsearch/api/actions/security/get_role.rb +13 -8
- data/lib/elasticsearch/api/actions/security/get_role_mapping.rb +10 -7
- data/lib/elasticsearch/api/actions/security/get_service_accounts.rb +15 -10
- data/lib/elasticsearch/api/actions/security/get_service_credentials.rb +13 -9
- data/lib/elasticsearch/api/actions/security/get_settings.rb +13 -7
- data/lib/elasticsearch/api/actions/security/get_token.rb +16 -7
- data/lib/elasticsearch/api/actions/security/get_user.rb +10 -9
- data/lib/elasticsearch/api/actions/security/get_user_privileges.rb +14 -7
- data/lib/elasticsearch/api/actions/security/get_user_profile.rb +16 -9
- data/lib/elasticsearch/api/actions/security/grant_api_key.rb +23 -9
- data/lib/elasticsearch/api/actions/security/has_privileges.rb +10 -7
- data/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb +10 -7
- data/lib/elasticsearch/api/actions/security/invalidate_api_key.rb +17 -7
- data/lib/elasticsearch/api/actions/security/invalidate_token.rb +16 -7
- data/lib/elasticsearch/api/actions/security/oidc_authenticate.rb +10 -7
- data/lib/elasticsearch/api/actions/security/oidc_logout.rb +11 -7
- data/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb +11 -7
- data/lib/elasticsearch/api/actions/security/put_privileges.rb +20 -8
- data/lib/elasticsearch/api/actions/security/put_role.rb +12 -9
- data/lib/elasticsearch/api/actions/security/put_role_mapping.rb +27 -9
- data/lib/elasticsearch/api/actions/security/put_user.rb +15 -9
- data/lib/elasticsearch/api/actions/security/query_api_keys.rb +19 -11
- data/lib/elasticsearch/api/actions/security/query_role.rb +13 -8
- data/lib/elasticsearch/api/actions/security/query_user.rb +13 -9
- data/lib/elasticsearch/api/actions/security/saml_authenticate.rb +16 -7
- data/lib/elasticsearch/api/actions/security/saml_complete_logout.rb +15 -7
- data/lib/elasticsearch/api/actions/security/saml_invalidate.rb +14 -7
- data/lib/elasticsearch/api/actions/security/saml_logout.rb +12 -7
- data/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb +17 -7
- data/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb +10 -7
- data/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb +16 -8
- data/lib/elasticsearch/api/actions/security/update_api_key.rb +21 -8
- data/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb +18 -8
- data/lib/elasticsearch/api/actions/security/update_settings.rb +15 -9
- data/lib/elasticsearch/api/actions/security/update_user_profile_data.rb +26 -12
- data/lib/elasticsearch/api/actions/simulate/ingest.rb +25 -10
- data/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb +14 -9
- data/lib/elasticsearch/api/actions/snapshot/clone.rb +15 -12
- data/lib/elasticsearch/api/actions/snapshot/create.rb +17 -12
- data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +22 -11
- data/lib/elasticsearch/api/actions/snapshot/delete.rb +14 -12
- data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +17 -10
- data/lib/elasticsearch/api/actions/snapshot/get.rb +41 -23
- data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +14 -10
- data/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb +99 -18
- data/lib/elasticsearch/api/actions/snapshot/restore.rb +27 -12
- data/lib/elasticsearch/api/actions/snapshot/status.rb +30 -13
- data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +14 -9
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb +13 -9
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb +13 -9
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb +12 -8
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +12 -9
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb +9 -8
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb +12 -8
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +17 -10
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb +14 -8
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb +18 -8
- data/lib/elasticsearch/api/actions/sql/clear_cursor.rb +7 -7
- data/lib/elasticsearch/api/actions/sql/delete_async.rb +12 -7
- data/lib/elasticsearch/api/actions/sql/get_async.rb +18 -11
- data/lib/elasticsearch/api/actions/sql/get_async_status.rb +8 -7
- data/lib/elasticsearch/api/actions/sql/query.rb +11 -8
- data/lib/elasticsearch/api/actions/sql/translate.rb +9 -7
- data/lib/elasticsearch/api/actions/ssl/certificates.rb +16 -6
- data/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb +19 -7
- data/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb +10 -9
- data/lib/elasticsearch/api/actions/synonyms/get_synonym.rb +9 -9
- data/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb +10 -9
- data/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb +9 -8
- data/lib/elasticsearch/api/actions/synonyms/put_synonym.rb +12 -8
- data/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb +13 -10
- data/lib/elasticsearch/api/actions/tasks/cancel.rb +19 -11
- data/lib/elasticsearch/api/actions/tasks/get.rb +16 -9
- data/lib/elasticsearch/api/actions/tasks/list.rb +71 -13
- data/lib/elasticsearch/api/actions/terms_enum.rb +12 -8
- data/lib/elasticsearch/api/actions/termvectors.rb +49 -22
- data/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb +83 -20
- data/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb +80 -18
- data/lib/elasticsearch/api/actions/text_structure/find_structure.rb +98 -24
- data/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb +12 -8
- data/lib/elasticsearch/api/actions/transform/delete_transform.rb +12 -10
- data/lib/elasticsearch/api/actions/transform/get_node_stats.rb +11 -6
- data/lib/elasticsearch/api/actions/transform/get_transform.rb +22 -11
- data/lib/elasticsearch/api/actions/transform/get_transform_stats.rb +19 -10
- data/lib/elasticsearch/api/actions/transform/preview_transform.rb +19 -13
- data/lib/elasticsearch/api/actions/transform/put_transform.rb +32 -10
- data/lib/elasticsearch/api/actions/transform/reset_transform.rb +13 -9
- data/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb +13 -8
- data/lib/elasticsearch/api/actions/transform/start_transform.rb +22 -9
- data/lib/elasticsearch/api/actions/transform/stop_transform.rb +20 -11
- data/lib/elasticsearch/api/actions/transform/update_transform.rb +18 -9
- data/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb +20 -8
- data/lib/elasticsearch/api/actions/update.rb +44 -24
- data/lib/elasticsearch/api/actions/update_by_query.rb +131 -40
- data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +11 -8
- data/lib/elasticsearch/api/actions/watcher/ack_watch.rb +17 -10
- data/lib/elasticsearch/api/actions/watcher/activate_watch.rb +8 -7
- data/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb +8 -7
- data/lib/elasticsearch/api/actions/watcher/delete_watch.rb +13 -8
- data/lib/elasticsearch/api/actions/watcher/execute_watch.rb +18 -9
- data/lib/elasticsearch/api/actions/watcher/get_settings.rb +10 -7
- data/lib/elasticsearch/api/actions/watcher/get_watch.rb +7 -7
- data/lib/elasticsearch/api/actions/watcher/put_watch.rb +21 -12
- data/lib/elasticsearch/api/actions/watcher/query_watches.rb +10 -8
- data/lib/elasticsearch/api/actions/watcher/start.rb +8 -7
- data/lib/elasticsearch/api/actions/watcher/stats.rb +10 -8
- data/lib/elasticsearch/api/actions/watcher/stop.rb +10 -7
- data/lib/elasticsearch/api/actions/watcher/update_settings.rb +17 -9
- data/lib/elasticsearch/api/actions/xpack/info.rb +15 -9
- data/lib/elasticsearch/api/actions/xpack/usage.rb +11 -7
- data/lib/elasticsearch/api/utils.rb +32 -87
- data/lib/elasticsearch/api/version.rb +2 -1
- data/lib/elasticsearch/api.rb +80 -59
- metadata +11 -1122
- data/Gemfile +0 -35
- data/Rakefile +0 -98
- data/api-spec-testing/README.md +0 -118
- data/api-spec-testing/custom_cleanup.rb +0 -32
- data/api-spec-testing/logging.rb +0 -28
- data/api-spec-testing/rspec_matchers.rb +0 -344
- data/api-spec-testing/test_file/action.rb +0 -251
- data/api-spec-testing/test_file/task_group.rb +0 -346
- data/api-spec-testing/test_file/test.rb +0 -296
- data/api-spec-testing/test_file.rb +0 -185
- data/api-spec-testing/wipe_cluster.rb +0 -491
- data/lib/elasticsearch/api/actions/autoscaling/delete_autoscaling_policy.rb +0 -62
- data/lib/elasticsearch/api/actions/autoscaling/get_autoscaling_capacity.rb +0 -51
- data/lib/elasticsearch/api/actions/autoscaling/get_autoscaling_policy.rb +0 -61
- data/lib/elasticsearch/api/actions/autoscaling/put_autoscaling_policy.rb +0 -64
- data/lib/elasticsearch/api/actions/capabilities.rb +0 -57
- data/lib/elasticsearch/api/actions/connector/last_sync.rb +0 -66
- data/lib/elasticsearch/api/actions/connector/secret_delete.rb +0 -64
- data/lib/elasticsearch/api/actions/connector/secret_get.rb +0 -64
- data/lib/elasticsearch/api/actions/connector/secret_post.rb +0 -57
- data/lib/elasticsearch/api/actions/connector/secret_put.rb +0 -66
- data/lib/elasticsearch/api/actions/fleet/delete_secret.rb +0 -64
- data/lib/elasticsearch/api/actions/fleet/get_secret.rb +0 -64
- data/lib/elasticsearch/api/actions/indices/unfreeze.rb +0 -71
- data/lib/elasticsearch/api/actions/knn_search.rb +0 -69
- data/lib/elasticsearch/api/actions/machine_learning/validate.rb +0 -53
- data/lib/elasticsearch/api/actions/machine_learning/validate_detector.rb +0 -53
- data/lib/elasticsearch/api/actions/monitoring/bulk.rb +0 -81
- data/lib/elasticsearch/api/actions/profiling/flamegraph.rb +0 -53
- data/lib/elasticsearch/api/actions/profiling/stacktraces.rb +0 -53
- data/lib/elasticsearch/api/actions/profiling/status.rb +0 -53
- data/lib/elasticsearch/api/actions/profiling/topn_functions.rb +0 -53
- data/lib/elasticsearch/api/actions/rollup/delete_job.rb +0 -64
- data/lib/elasticsearch/api/actions/rollup/get_jobs.rb +0 -66
- data/lib/elasticsearch/api/actions/rollup/get_rollup_caps.rb +0 -66
- data/lib/elasticsearch/api/actions/rollup/rollup_search.rb +0 -68
- data/lib/elasticsearch/api/actions/rollup/stop_job.rb +0 -66
- data/lib/elasticsearch/api/actions/shutdown/delete_node.rb +0 -62
- data/lib/elasticsearch/api/actions/shutdown/get_node.rb +0 -63
- data/lib/elasticsearch/api/actions/shutdown/put_node.rb +0 -64
- data/lib/elasticsearch/api/namespace/async_search.rb +0 -36
- data/lib/elasticsearch/api/namespace/autoscaling.rb +0 -36
- 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 -42
- data/lib/elasticsearch/api/namespace/connector.rb +0 -36
- data/lib/elasticsearch/api/namespace/cross_cluster_replication.rb +0 -38
- data/lib/elasticsearch/api/namespace/dangling_indices.rb +0 -35
- data/lib/elasticsearch/api/namespace/data_frame_transform_deprecated.rb +0 -36
- data/lib/elasticsearch/api/namespace/enrich.rb +0 -36
- data/lib/elasticsearch/api/namespace/eql.rb +0 -36
- data/lib/elasticsearch/api/namespace/esql.rb +0 -36
- data/lib/elasticsearch/api/namespace/features.rb +0 -36
- data/lib/elasticsearch/api/namespace/fleet.rb +0 -36
- data/lib/elasticsearch/api/namespace/graph.rb +0 -36
- data/lib/elasticsearch/api/namespace/index_lifecycle_management.rb +0 -38
- data/lib/elasticsearch/api/namespace/indices.rb +0 -37
- data/lib/elasticsearch/api/namespace/inference.rb +0 -36
- data/lib/elasticsearch/api/namespace/ingest.rb +0 -36
- data/lib/elasticsearch/api/namespace/license.rb +0 -36
- data/lib/elasticsearch/api/namespace/logstash.rb +0 -36
- data/lib/elasticsearch/api/namespace/machine_learning.rb +0 -38
- data/lib/elasticsearch/api/namespace/migration.rb +0 -36
- data/lib/elasticsearch/api/namespace/monitoring.rb +0 -36
- data/lib/elasticsearch/api/namespace/nodes.rb +0 -37
- data/lib/elasticsearch/api/namespace/profiling.rb +0 -36
- data/lib/elasticsearch/api/namespace/query_rules.rb +0 -36
- data/lib/elasticsearch/api/namespace/query_ruleset.rb +0 -36
- data/lib/elasticsearch/api/namespace/remote.rb +0 -37
- data/lib/elasticsearch/api/namespace/rollup.rb +0 -36
- data/lib/elasticsearch/api/namespace/search_application.rb +0 -36
- data/lib/elasticsearch/api/namespace/searchable_snapshots.rb +0 -36
- data/lib/elasticsearch/api/namespace/security.rb +0 -36
- data/lib/elasticsearch/api/namespace/shutdown.rb +0 -37
- data/lib/elasticsearch/api/namespace/simulate.rb +0 -36
- data/lib/elasticsearch/api/namespace/snapshot.rb +0 -37
- data/lib/elasticsearch/api/namespace/snapshot_lifecycle_management.rb +0 -38
- data/lib/elasticsearch/api/namespace/sql.rb +0 -36
- data/lib/elasticsearch/api/namespace/ssl.rb +0 -36
- data/lib/elasticsearch/api/namespace/synonyms.rb +0 -36
- data/lib/elasticsearch/api/namespace/tasks.rb +0 -37
- data/lib/elasticsearch/api/namespace/text_structure.rb +0 -36
- data/lib/elasticsearch/api/namespace/transform.rb +0 -36
- data/lib/elasticsearch/api/namespace/watcher.rb +0 -36
- data/lib/elasticsearch/api/namespace/xpack.rb +0 -36
- data/spec/elasticsearch/api/actions/bulk_spec.rb +0 -143
- data/spec/elasticsearch/api/actions/capabilities_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cat/aliases_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/allocation_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/component_templates_spec.rb +0 -58
- data/spec/elasticsearch/api/actions/cat/count_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/fielddata_spec.rb +0 -54
- data/spec/elasticsearch/api/actions/cat/health_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/help_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/indices_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/master_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/nodeattrs_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/nodes_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/pending_tasks_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/plugins_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/recovery_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/repositories_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/segments_spec.rb +0 -61
- data/spec/elasticsearch/api/actions/cat/shards_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/snapshot_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/tasks_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/templates_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cat/thread_pool_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/clear_scroll_spec.rb +0 -54
- data/spec/elasticsearch/api/actions/close_point_in_time_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/cluster/allocation_explain_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cluster/get_settings_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cluster/health_spec.rb +0 -72
- data/spec/elasticsearch/api/actions/cluster/info_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cluster/pending_tasks_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cluster/put_settings_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cluster/remote_info_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/cluster/reroute_spec.rb +0 -54
- data/spec/elasticsearch/api/actions/cluster/state_spec.rb +0 -54
- data/spec/elasticsearch/api/actions/cluster/stats_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/connector/check_in_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector/delete_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector/get_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector/last_sync_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector/list_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/connector/post_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/connector/put_spec.rb +0 -43
- data/spec/elasticsearch/api/actions/connector/sync_job_claim_spec.rb +0 -40
- data/spec/elasticsearch/api/actions/connector/update_active_filtering_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector/update_api_key_id_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector/update_configuration_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector/update_error_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector/update_features_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector/update_filtering_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector/update_filtering_validation_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector/update_index_name_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector/update_name_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector/update_native_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector/update_pipeline_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector/update_scheduling_spec.rb +0 -42
- data/spec/elasticsearch/api/actions/connector/update_service_type_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector/update_status_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector_secret/delete_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/connector_secret/get_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/connector_secret/post_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/connector_secret/put_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/connector_sync_job/cancel_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector_sync_job/check_in_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector_sync_job/delete_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector_sync_job/error_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector_sync_job/get_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/connector_sync_job/list_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/connector_sync_job/post_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/connector_sync_job/update_stats_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/count_spec.rb +0 -69
- data/spec/elasticsearch/api/actions/create_document_spec.rb +0 -120
- data/spec/elasticsearch/api/actions/dangling_indices/delete_dangling_indices_spec.rb +0 -49
- data/spec/elasticsearch/api/actions/dangling_indices/import_dangling_indices_spec.rb +0 -49
- data/spec/elasticsearch/api/actions/dangling_indices/list_dangling_indices_spec.rb +0 -37
- data/spec/elasticsearch/api/actions/data_frame/update_data_frame_transform_spec.rb +0 -82
- data/spec/elasticsearch/api/actions/delete_by_query_spec.rb +0 -65
- data/spec/elasticsearch/api/actions/delete_document_spec.rb +0 -101
- data/spec/elasticsearch/api/actions/delete_script_spec.rb +0 -38
- data/spec/elasticsearch/api/actions/esql/async_query_delete_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/esql/async_query_get._spec.rb +0 -35
- data/spec/elasticsearch/api/actions/esql/async_query_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/esql/async_query_stop_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/esql/query_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/exists_document_spec.rb +0 -117
- data/spec/elasticsearch/api/actions/explain_document_spec.rb +0 -133
- data/spec/elasticsearch/api/actions/features/get_features_spec.rb +0 -39
- data/spec/elasticsearch/api/actions/features/reset_features_spec.rb +0 -39
- data/spec/elasticsearch/api/actions/field_caps_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/fleet/global_checkpoints_spec.rb +0 -45
- data/spec/elasticsearch/api/actions/fleet/msearch_spec.rb +0 -45
- data/spec/elasticsearch/api/actions/fleet/search_spec.rb +0 -45
- data/spec/elasticsearch/api/actions/get_document_source_spec.rb +0 -101
- data/spec/elasticsearch/api/actions/get_document_spec.rb +0 -111
- data/spec/elasticsearch/api/actions/get_script_spec.rb +0 -51
- data/spec/elasticsearch/api/actions/hashie_spec.rb +0 -89
- data/spec/elasticsearch/api/actions/health_report_spec.rb +0 -52
- data/spec/elasticsearch/api/actions/index_document_spec.rb +0 -142
- data/spec/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers_spec.rb +0 -37
- data/spec/elasticsearch/api/actions/indices/add_block_spec.rb +0 -65
- data/spec/elasticsearch/api/actions/indices/analyze_spec.rb +0 -80
- data/spec/elasticsearch/api/actions/indices/clear_cache_spec.rb +0 -103
- data/spec/elasticsearch/api/actions/indices/clone_spec.rb +0 -124
- data/spec/elasticsearch/api/actions/indices/close_spec.rb +0 -97
- data/spec/elasticsearch/api/actions/indices/create_spec.rb +0 -97
- data/spec/elasticsearch/api/actions/indices/data_streams_stats_spec.rb +0 -70
- data/spec/elasticsearch/api/actions/indices/delete_alias_spec.rb +0 -97
- data/spec/elasticsearch/api/actions/indices/delete_data_lifecycle_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/indices/delete_spec.rb +0 -131
- data/spec/elasticsearch/api/actions/indices/delete_template_spec.rb +0 -98
- data/spec/elasticsearch/api/actions/indices/disk_usage_spec.rb +0 -49
- data/spec/elasticsearch/api/actions/indices/exists_alias_spec.rb +0 -133
- data/spec/elasticsearch/api/actions/indices/exists_spec.rb +0 -131
- data/spec/elasticsearch/api/actions/indices/exists_template_spec.rb +0 -105
- data/spec/elasticsearch/api/actions/indices/explain_data_lifecycle_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/indices/field_usage_stats_spec.rb +0 -47
- data/spec/elasticsearch/api/actions/indices/flush_spec.rb +0 -136
- data/spec/elasticsearch/api/actions/indices/forcemerge_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/indices/get_alias_spec.rb +0 -85
- data/spec/elasticsearch/api/actions/indices/get_data_lifecycle_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/indices/get_data_lifecycle_stats_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/indices/get_field_mapping_spec.rb +0 -62
- data/spec/elasticsearch/api/actions/indices/get_mapping_spec.rb +0 -102
- data/spec/elasticsearch/api/actions/indices/get_settings_spec.rb +0 -106
- data/spec/elasticsearch/api/actions/indices/get_spec.rb +0 -55
- data/spec/elasticsearch/api/actions/indices/open_spec.rb +0 -77
- data/spec/elasticsearch/api/actions/indices/put_alias_spec.rb +0 -115
- data/spec/elasticsearch/api/actions/indices/put_data_lifecycle_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/indices/put_mapping_spec.rb +0 -119
- data/spec/elasticsearch/api/actions/indices/put_settings_spec.rb +0 -153
- data/spec/elasticsearch/api/actions/indices/put_template_spec.rb +0 -119
- data/spec/elasticsearch/api/actions/indices/recovery_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/indices/refresh_spec.rb +0 -136
- data/spec/elasticsearch/api/actions/indices/resolve_cluster_spec.rb +0 -56
- data/spec/elasticsearch/api/actions/indices/rollover_spec.rb +0 -70
- data/spec/elasticsearch/api/actions/indices/segments_spec.rb +0 -136
- data/spec/elasticsearch/api/actions/indices/shard_stores_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/indices/shrink_spec.rb +0 -44
- data/spec/elasticsearch/api/actions/indices/split_spec.rb +0 -37
- data/spec/elasticsearch/api/actions/indices/stats_spec.rb +0 -186
- data/spec/elasticsearch/api/actions/indices/unfreeze_spec.rb +0 -97
- data/spec/elasticsearch/api/actions/indices/update_aliases_spec.rb +0 -68
- data/spec/elasticsearch/api/actions/indices/validate_query_spec.rb +0 -180
- data/spec/elasticsearch/api/actions/inference/chat_completion_unified_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/completion_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/delete_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/get_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/inference_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_alibabacloud_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_amazonbedrock_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_anthropic_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_azureaistudio_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_azureopenai_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_cohere_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_elasticsearch_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_elser_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_googleaistudio_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_googlevertexai_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_huggingface_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_jinaai_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_mistral_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_openai_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_voyageai_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/put_watsonx_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/inference/rerank_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/inference/sparse_embedding_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/inference/stream_completion_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/inference/text_embedding_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/inference/update_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/info_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/ingest/delete_geoip_database_spec.rb +0 -39
- data/spec/elasticsearch/api/actions/ingest/delete_ip_location_database_spec.rb +0 -39
- data/spec/elasticsearch/api/actions/ingest/delete_pipeline_spec.rb +0 -72
- data/spec/elasticsearch/api/actions/ingest/geo_ip_stats_spec.rb +0 -39
- data/spec/elasticsearch/api/actions/ingest/get_geoip_database_spec.rb +0 -39
- data/spec/elasticsearch/api/actions/ingest/get_ip_location_database_spec.rb +0 -39
- data/spec/elasticsearch/api/actions/ingest/get_pipeline_spec.rb +0 -62
- data/spec/elasticsearch/api/actions/ingest/put_geoip_database_spec.rb +0 -45
- data/spec/elasticsearch/api/actions/ingest/put_ip_location_database_spec.rb +0 -45
- data/spec/elasticsearch/api/actions/ingest/put_pipeline_spec.rb +0 -72
- data/spec/elasticsearch/api/actions/ingest/simulate_spec.rb +0 -61
- data/spec/elasticsearch/api/actions/json_builders_spec.rb +0 -86
- data/spec/elasticsearch/api/actions/machine_learning/get_memory_stats_spec.rb +0 -59
- data/spec/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats_spec.rb +0 -60
- data/spec/elasticsearch/api/actions/machine_learning/infer_trained_model_deployment_spec.rb +0 -47
- data/spec/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part_spec.rb +0 -64
- data/spec/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary_spec.rb +0 -56
- data/spec/elasticsearch/api/actions/machine_learning/reset_job_spec.rb +0 -47
- data/spec/elasticsearch/api/actions/machine_learning/set_upgrade_mode_spec.rb +0 -53
- data/spec/elasticsearch/api/actions/machine_learning/start_trained_model_deployment_spec.rb +0 -48
- data/spec/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment_spec.rb +0 -48
- data/spec/elasticsearch/api/actions/machine_learning/update_trained_model_deployment_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/mget_spec.rb +0 -110
- data/spec/elasticsearch/api/actions/migration/get_feature_upgrade_status_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/migration/post_feature_upgrade_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/msearch_spec.rb +0 -187
- data/spec/elasticsearch/api/actions/msearch_template_spec.rb +0 -105
- data/spec/elasticsearch/api/actions/mtermvectors_spec.rb +0 -45
- data/spec/elasticsearch/api/actions/nodes/clear_repositories_metering_archive_spec.rb +0 -53
- data/spec/elasticsearch/api/actions/nodes/get_repositories_metering_info_spec.rb +0 -46
- data/spec/elasticsearch/api/actions/nodes/hot_threads_spec.rb +0 -84
- data/spec/elasticsearch/api/actions/nodes/info_spec.rb +0 -147
- data/spec/elasticsearch/api/actions/nodes/reload_secure_settings_spec.rb +0 -118
- data/spec/elasticsearch/api/actions/nodes/stats_spec.rb +0 -110
- data/spec/elasticsearch/api/actions/open_point_in_time_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/ping_spec.rb +0 -77
- data/spec/elasticsearch/api/actions/profiling/flamegraph_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/profiling/stacktraces_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/profiling/status_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/profiling/topn_functions_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/put_script_spec.rb +0 -58
- data/spec/elasticsearch/api/actions/query_rules/delete_ruleset_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/query_rules/delete_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/query_rules/get_ruleset_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/query_rules/get_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/query_rules/put_ruleset_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/query_rules/put_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/query_rules/test_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/rank_eval_spec.rb +0 -139
- data/spec/elasticsearch/api/actions/reindex_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/render_search_template_spec.rb +0 -54
- data/spec/elasticsearch/api/actions/scroll_spec.rb +0 -54
- data/spec/elasticsearch/api/actions/search_application/delete_behavioral_analytics_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/search_application/delete_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/search_application/get_behavioral_analytics_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/search_application/get_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/search_application/list_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/search_application/post_behavioral_analytics_event_spec.rb +0 -40
- data/spec/elasticsearch/api/actions/search_application/put_behavioral_analytics_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/search_application/put_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/search_application/render_query_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/search_application/search_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/search_mvt_spec.rb +0 -55
- data/spec/elasticsearch/api/actions/search_shards_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/search_spec.rb +0 -119
- data/spec/elasticsearch/api/actions/search_template_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/searchable_snapshots/cache_stats_spec.rb +0 -56
- data/spec/elasticsearch/api/actions/searchable_snapshots/clear_cache_spec.rb +0 -57
- data/spec/elasticsearch/api/actions/searchable_snapshots/mount_spec.rb +0 -58
- data/spec/elasticsearch/api/actions/searchable_snapshots/stats_spec.rb +0 -57
- data/spec/elasticsearch/api/actions/security/bulk_delete_role_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/security/bulk_put_role_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/security/clear_cached_service_tokens_spec.rb +0 -60
- data/spec/elasticsearch/api/actions/security/create_api_key_spec.rb +0 -81
- data/spec/elasticsearch/api/actions/security/create_cross_cluster_api_key_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/security/create_service_token_spec.rb +0 -83
- data/spec/elasticsearch/api/actions/security/delegate_pki_spec.rb +0 -39
- data/spec/elasticsearch/api/actions/security/delete_service_token_spec.rb +0 -62
- data/spec/elasticsearch/api/actions/security/disable_user_profile_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/security/enable_user_profile_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/security/enroll_kibana_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/security/get_api_key_spec.rb +0 -57
- data/spec/elasticsearch/api/actions/security/get_builtin_privileges_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/security/get_service_accounts_spec.rb +0 -83
- data/spec/elasticsearch/api/actions/security/get_service_credentials_spec.rb +0 -55
- data/spec/elasticsearch/api/actions/security/has_privileges_user_profile_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/security/invalidate_api_key_spec.rb +0 -39
- data/spec/elasticsearch/api/actions/security/query_api_keys_spec.rb +0 -49
- data/spec/elasticsearch/api/actions/security/query_role_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/security/query_user_spec.rb +0 -49
- data/spec/elasticsearch/api/actions/security/saml_authenticate_spec.rb +0 -45
- data/spec/elasticsearch/api/actions/security/saml_complete_logout_spec.rb +0 -45
- data/spec/elasticsearch/api/actions/security/saml_invalidate_spec.rb +0 -45
- data/spec/elasticsearch/api/actions/security/saml_logout_spec.rb +0 -45
- data/spec/elasticsearch/api/actions/security/saml_prepare_authentication_spec.rb +0 -45
- data/spec/elasticsearch/api/actions/security/saml_service_provider_metadata_spec.rb +0 -48
- data/spec/elasticsearch/api/actions/security/suggest_user_profiles_spec.rb +0 -46
- data/spec/elasticsearch/api/actions/security/update_api_key_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/security/update_cross_cluster_api_key_spec.rb +0 -37
- data/spec/elasticsearch/api/actions/shutdown/delete_node_spec.rb +0 -45
- data/spec/elasticsearch/api/actions/shutdown/get_node_spec.rb +0 -58
- data/spec/elasticsearch/api/actions/shutdown/put_node_spec.rb +0 -51
- data/spec/elasticsearch/api/actions/simulate/ingest_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/snapshot/clone_spec.rb +0 -70
- data/spec/elasticsearch/api/actions/snapshot/create_repository_spec.rb +0 -53
- data/spec/elasticsearch/api/actions/snapshot/create_spec.rb +0 -53
- data/spec/elasticsearch/api/actions/snapshot/delete_repository_spec.rb +0 -64
- data/spec/elasticsearch/api/actions/snapshot/delete_spec.rb +0 -53
- data/spec/elasticsearch/api/actions/snapshot/get_repository_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/snapshot/get_spec.rb +0 -53
- data/spec/elasticsearch/api/actions/snapshot/repository_analize_spec.rb +0 -48
- data/spec/elasticsearch/api/actions/snapshot/restore_spec.rb +0 -50
- data/spec/elasticsearch/api/actions/snapshot/status_spec.rb +0 -61
- data/spec/elasticsearch/api/actions/snapshot/verify_repository_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/sql/delete_async_spec.rb +0 -47
- data/spec/elasticsearch/api/actions/sql/get_async_spec.rb +0 -47
- data/spec/elasticsearch/api/actions/sql/get_async_stats_spec.rb +0 -47
- data/spec/elasticsearch/api/actions/tasks/cancel_spec.rb +0 -61
- data/spec/elasticsearch/api/actions/tasks/get_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/tasks/list_spec.rb +0 -39
- data/spec/elasticsearch/api/actions/terms_enum_spec.rb +0 -53
- data/spec/elasticsearch/api/actions/termvectors_spec.rb +0 -78
- data/spec/elasticsearch/api/actions/text_structure/find_field_structure_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/text_structure/find_message_structure_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/text_structure/find_structure_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/text_structure/test_grok_pattern_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/transform/get_node_stats_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/transform/schedule_now_transform_spec.rb +0 -36
- data/spec/elasticsearch/api/actions/update_by_query_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/update_document_spec.rb +0 -120
- data/spec/elasticsearch/api/actions/watcher/get_settings_spec.rb +0 -35
- data/spec/elasticsearch/api/actions/watcher/update_settings_spec.rb +0 -47
- data/spec/elasticsearch/api/api_response_spec.rb +0 -65
- data/spec/elasticsearch/api/api_spec.rb +0 -40
- data/spec/elasticsearch/api/client_spec.rb +0 -42
- data/spec/elasticsearch/api/perform_request_spec.rb +0 -86
- data/spec/elasticsearch/api/utils_spec.rb +0 -355
- data/spec/free/integration/capabilities_spec.rb +0 -26
- data/spec/free/integration/health_spec.rb +0 -28
- data/spec/free/integration/spec_helper.rb +0 -28
- data/spec/platinum/integration/analytics/usage_spec.rb +0 -56
- data/spec/platinum/integration/api_key/admin_user_query_api_keys_spec.rb +0 -111
- data/spec/platinum/integration/api_key/api_key_admin_user_spec.rb +0 -127
- data/spec/platinum/integration/api_key/api_key_cross_cluster_spec.rb +0 -113
- data/spec/platinum/integration/api_key/api_key_invalidation_spec.rb +0 -105
- data/spec/platinum/integration/api_key/api_key_query_spec.rb +0 -149
- data/spec/platinum/integration/api_key/api_key_query_with_aggs_spec.rb +0 -120
- data/spec/platinum/integration/api_key/api_key_spec.rb +0 -156
- data/spec/platinum/integration/api_key/api_key_update_spec.rb +0 -134
- data/spec/platinum/integration/eql/eql_async_spec.rb +0 -72
- data/spec/platinum/integration/health/health_spec.rb +0 -49
- data/spec/platinum/integration/ml/get_memory_stats_spec.rb +0 -47
- data/spec/platinum/integration/platinum_helper.rb +0 -42
- data/spec/platinum/integration/security/users_query_spec.rb +0 -49
- data/spec/platinum/integration/service_accounts/service_accounts_spec.rb +0 -65
- data/spec/platinum/integration/snapshots/snapshots_spec.rb +0 -84
- data/spec/platinum/integration/spatial/script_doc_values_spec.rb +0 -147
- data/spec/platinum/integration/token/token_spec.rb +0 -94
- data/spec/platinum/unit/async_search/delete_test.rb +0 -39
- data/spec/platinum/unit/async_search/get_test.rb +0 -39
- data/spec/platinum/unit/async_search/status_test.rb +0 -39
- data/spec/platinum/unit/async_search/submit_test.rb +0 -50
- data/spec/platinum/unit/autoscaling/delete_autoscaling_policy_test.rb +0 -46
- data/spec/platinum/unit/autoscaling/get_autoscaling_capacity_test.rb +0 -40
- data/spec/platinum/unit/autoscaling/get_autoscaling_policy_test.rb +0 -46
- data/spec/platinum/unit/autoscaling/put_autoscaling_policy_test.rb +0 -52
- data/spec/platinum/unit/enrich/delete_policy_test.rb +0 -43
- data/spec/platinum/unit/eql/delete_test.rb +0 -46
- data/spec/platinum/unit/eql/get_status_test.rb +0 -46
- data/spec/platinum/unit/eql/get_test.rb +0 -46
- data/spec/platinum/unit/eql/search_test.rb +0 -52
- data/spec/platinum/unit/graph/explore_test.rb +0 -43
- data/spec/platinum/unit/index_lifecycle_management/explain_test.rb +0 -43
- data/spec/platinum/unit/index_lifecycle_management/get_status_test.rb +0 -43
- data/spec/platinum/unit/index_lifecycle_management/move_to_step.rb +0 -43
- data/spec/platinum/unit/index_lifecycle_management/remove_policy_test.rb +0 -43
- data/spec/platinum/unit/index_lifecycle_management/retry_policy_test.rb +0 -43
- data/spec/platinum/unit/index_lifecycle_management/start_test.rb +0 -43
- data/spec/platinum/unit/index_lifecycle_management/stop_test.rb +0 -43
- data/spec/platinum/unit/indices/create_data_stream_test.rb +0 -46
- data/spec/platinum/unit/indices/data_stream_stats_test.rb +0 -54
- data/spec/platinum/unit/indices/delete_data_stream_test.rb +0 -46
- data/spec/platinum/unit/indices/downsample_test.rb +0 -58
- data/spec/platinum/unit/indices/get_data_stream_test.rb +0 -50
- data/spec/platinum/unit/indices/migrate_to_data_stream_test.rb +0 -46
- data/spec/platinum/unit/indices/modify_data_stream_test.rb +0 -46
- data/spec/platinum/unit/indices/promote_data_stream_test.rb +0 -46
- data/spec/platinum/unit/info_test.rb +0 -40
- data/spec/platinum/unit/knn_search_test.rb +0 -40
- data/spec/platinum/unit/license/delete_test.rb +0 -43
- data/spec/platinum/unit/license/get_test.rb +0 -43
- data/spec/platinum/unit/license/post_test.rb +0 -43
- data/spec/platinum/unit/logstash/delete_pipeline_test.rb +0 -46
- data/spec/platinum/unit/logstash/get_pipeline_test.rb +0 -46
- data/spec/platinum/unit/logstash/put_pipeline_test.rb +0 -46
- data/spec/platinum/unit/machine_learning/clear_trained_model_deployment_cache_test.rb +0 -40
- data/spec/platinum/unit/machine_learning/close_job_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/delete_datafeed_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/delete_expired_data_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/delete_filter_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/delete_forecast_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/delete_job_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/delete_model_alias_test.rb +0 -40
- data/spec/platinum/unit/machine_learning/delete_model_snapshot_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/flush_job_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/forecast_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/get_buckets_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/get_categories_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/get_datafeed_stats_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/get_datafeeds_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/get_filters_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/get_influencers_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/get_job_stats_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/get_jobs_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/get_model_snapshots_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/get_overall_buckets_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/get_records_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/open_job_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/post_data_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/preview_data_frame_analytics_test.rb +0 -64
- data/spec/platinum/unit/machine_learning/preview_datafeed_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/put_datafeed_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/put_filter_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/put_job_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/put_trained_model_alias_test.rb +0 -40
- data/spec/platinum/unit/machine_learning/revert_model_snapshot_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/start_datafeed_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/stop_datafeed_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/update_data_frame_analytics_test.rb +0 -40
- data/spec/platinum/unit/machine_learning/update_datafeed_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/update_filter_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/update_job_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/update_model_snapshot_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/upgrade_job_snapshot_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/validate_detector_test.rb +0 -43
- data/spec/platinum/unit/machine_learning/validate_test.rb +0 -43
- data/spec/platinum/unit/migration/deprecations_test.rb +0 -42
- data/spec/platinum/unit/monitoring/bulk_test.rb +0 -43
- data/spec/platinum/unit/rollup/get_rollup_index_caps_test.rb +0 -40
- data/spec/platinum/unit/security/activate_user_profile_test.rb +0 -40
- data/spec/platinum/unit/security/authenticate_test.rb +0 -43
- data/spec/platinum/unit/security/bulk_update_api_key_test.rb +0 -40
- data/spec/platinum/unit/security/change_password_test.rb +0 -55
- data/spec/platinum/unit/security/clear_api_key_cache_test.rb +0 -40
- data/spec/platinum/unit/security/clear_cached_privileges_test.rb +0 -40
- data/spec/platinum/unit/security/clear_cached_realms_test.rb +0 -43
- data/spec/platinum/unit/security/clear_cached_roles_test.rb +0 -43
- data/spec/platinum/unit/security/delete_privileges_test.rb +0 -43
- data/spec/platinum/unit/security/delete_role_mapping_test.rb +0 -43
- data/spec/platinum/unit/security/delete_role_test.rb +0 -43
- data/spec/platinum/unit/security/delete_user_test.rb +0 -43
- data/spec/platinum/unit/security/disable_user_test.rb +0 -43
- data/spec/platinum/unit/security/enable_user_test.rb +0 -43
- data/spec/platinum/unit/security/get_privileges_test.rb +0 -78
- data/spec/platinum/unit/security/get_role_mapping_test.rb +0 -54
- data/spec/platinum/unit/security/get_role_test.rb +0 -62
- data/spec/platinum/unit/security/get_token_test.rb +0 -43
- data/spec/platinum/unit/security/get_user_privileges_test.rb +0 -43
- data/spec/platinum/unit/security/get_user_profile_test.rb +0 -40
- data/spec/platinum/unit/security/get_user_test.rb +0 -61
- data/spec/platinum/unit/security/grant_api_key_test.rb +0 -41
- data/spec/platinum/unit/security/has_privileges_test.rb +0 -55
- data/spec/platinum/unit/security/invalidate_token_test.rb +0 -43
- data/spec/platinum/unit/security/oidc_authenticate_test.rb +0 -40
- data/spec/platinum/unit/security/oidc_logout_test.rb +0 -40
- data/spec/platinum/unit/security/oidc_prepare_authentication_test.rb +0 -40
- data/spec/platinum/unit/security/put_privileges_test.rb +0 -43
- data/spec/platinum/unit/security/put_role_mapping_test.rb +0 -43
- data/spec/platinum/unit/security/put_role_test.rb +0 -43
- data/spec/platinum/unit/security/put_user_test.rb +0 -43
- data/spec/platinum/unit/security/update_user_profile_data_test.rb +0 -40
- data/spec/platinum/unit/ssl/certificates_test.rb +0 -43
- data/spec/platinum/unit/test_helper.rb +0 -72
- data/spec/platinum/unit/transform/reset_transform_spec.rb +0 -34
- data/spec/platinum/unit/transform/upgrade_transforms_spec.rb +0 -34
- data/spec/platinum/unit/usage_test.rb +0 -40
- data/spec/platinum/unit/watcher/ack_watch_test.rb +0 -55
- data/spec/platinum/unit/watcher/activate_watch_test.rb +0 -43
- data/spec/platinum/unit/watcher/deactivate_watch_test.rb +0 -43
- data/spec/platinum/unit/watcher/delete_watch_test.rb +0 -43
- data/spec/platinum/unit/watcher/execute_watch_test.rb +0 -55
- data/spec/platinum/unit/watcher/get_watch_test.rb +0 -43
- data/spec/platinum/unit/watcher/put_watch_test.rb +0 -43
- data/spec/platinum/unit/watcher/query_watches_test.rb +0 -52
- data/spec/platinum/unit/watcher/start_test.rb +0 -41
- data/spec/platinum/unit/watcher/stats_test.rb +0 -43
- data/spec/platinum/unit/watcher/stop_test.rb +0 -43
- data/spec/rest_api/rest_api_tests_helper.rb +0 -103
- data/spec/rest_api/rest_api_yaml_spec.rb +0 -92
- data/spec/rest_api/run_rspec_matchers.rb +0 -111
- data/spec/rest_api/skipped_tests_free.yml +0 -245
- data/spec/rest_api/skipped_tests_platinum.yml +0 -241
- data/spec/rspec_formatter.rb +0 -31
- data/spec/spec_helper.rb +0 -75
- data/spec/unit/actions/async_search/delete_spec.rb +0 -35
- data/spec/unit/actions/async_search/get_spec.rb +0 -35
- data/spec/unit/actions/async_search/status_spec.rb +0 -34
- data/spec/unit/actions/async_search/submit_spec.rb +0 -87
- data/spec/yaml-test-runner/run.rb +0 -70
- data/utils/Gemfile +0 -28
- data/utils/README.md +0 -48
- data/utils/Thorfile +0 -6
- data/utils/thor/.rubocop.yml +0 -4
- data/utils/thor/endpoint_spec.rb +0 -220
- data/utils/thor/endpoint_specifics.rb +0 -158
- data/utils/thor/generate_source.rb +0 -127
- data/utils/thor/generator/build_hash_helper.rb +0 -64
- data/utils/thor/generator/docs_helper.rb +0 -62
- data/utils/thor/generator/files_helper.rb +0 -68
- data/utils/thor/lister.rb +0 -57
- data/utils/thor/templates/_body.erb +0 -34
- data/utils/thor/templates/_documentation_top.erb +0 -56
- data/utils/thor/templates/_method_setup.erb +0 -37
- data/utils/thor/templates/_perform_request.erb +0 -50
- data/utils/thor/templates/method.erb +0 -79
- data/utils/thor/templates/test.erb +0 -43
- data/utils/thor/templates/test_helper.rb +0 -83
@@ -15,32 +15,42 @@
|
|
15
15
|
# specific language governing permissions and limitations
|
16
16
|
# under the License.
|
17
17
|
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
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
21
|
module Elasticsearch
|
22
22
|
module API
|
23
23
|
module Inference
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create a Cohere inference endpoint.
|
26
|
+
# Create an inference endpoint to perform an inference task with the +cohere+ service.
|
27
|
+
# When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
|
28
|
+
# After creating the endpoint, wait for the model deployment to complete before using it.
|
29
|
+
# To verify the deployment status, use the get trained model statistics API.
|
30
|
+
# Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+.
|
31
|
+
# Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
|
26
32
|
#
|
27
|
-
# @option arguments [String] :task_type The task
|
28
|
-
# @option arguments [String] :cohere_inference_id The inference
|
33
|
+
# @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*)
|
34
|
+
# @option arguments [String] :cohere_inference_id The unique identifier of the inference endpoint. (*Required*)
|
29
35
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
|
-
# @option arguments [Hash] :body
|
36
|
+
# @option arguments [Hash] :body request body
|
31
37
|
#
|
32
|
-
# @see https://www.elastic.co/
|
38
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-cohere
|
33
39
|
#
|
34
40
|
def put_cohere(arguments = {})
|
35
41
|
request_opts = { endpoint: arguments[:endpoint] || 'inference.put_cohere' }
|
36
42
|
|
37
|
-
defined_params =
|
43
|
+
defined_params = [:task_type, :cohere_inference_id].each_with_object({}) do |variable, set_variables|
|
38
44
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
45
|
end
|
40
46
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
41
47
|
|
42
48
|
raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type]
|
43
|
-
|
49
|
+
|
50
|
+
unless arguments[:cohere_inference_id]
|
51
|
+
raise ArgumentError,
|
52
|
+
"Required argument 'cohere_inference_id' missing"
|
53
|
+
end
|
44
54
|
|
45
55
|
arguments = arguments.clone
|
46
56
|
headers = arguments.delete(:headers) || {}
|
@@ -52,7 +62,7 @@ module Elasticsearch
|
|
52
62
|
_cohere_inference_id = arguments.delete(:cohere_inference_id)
|
53
63
|
|
54
64
|
method = Elasticsearch::API::HTTP_PUT
|
55
|
-
path = "_inference/#{Utils.
|
65
|
+
path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_cohere_inference_id)}"
|
56
66
|
params = {}
|
57
67
|
|
58
68
|
Elasticsearch::API::Response.new(
|
@@ -15,26 +15,28 @@
|
|
15
15
|
# specific language governing permissions and limitations
|
16
16
|
# under the License.
|
17
17
|
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
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
21
|
module Elasticsearch
|
22
22
|
module API
|
23
23
|
module Inference
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create an Elasticsearch inference endpoint.
|
26
|
+
# Create an inference endpoint to perform an inference task with the +elasticsearch+ service.
|
26
27
|
#
|
27
|
-
# @option arguments [String] :task_type The task
|
28
|
-
# @option arguments [String] :elasticsearch_inference_id The inference
|
28
|
+
# @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*)
|
29
|
+
# @option arguments [String] :elasticsearch_inference_id The unique identifier of the inference endpoint.
|
30
|
+
# The must not match the +model_id+. (*Required*)
|
29
31
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
|
-
# @option arguments [Hash] :body
|
32
|
+
# @option arguments [Hash] :body request body
|
31
33
|
#
|
32
|
-
# @see https://www.elastic.co/
|
34
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-elasticsearch
|
33
35
|
#
|
34
36
|
def put_elasticsearch(arguments = {})
|
35
37
|
request_opts = { endpoint: arguments[:endpoint] || 'inference.put_elasticsearch' }
|
36
38
|
|
37
|
-
defined_params =
|
39
|
+
defined_params = [:task_type, :elasticsearch_inference_id].each_with_object({}) do |variable, set_variables|
|
38
40
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
41
|
end
|
40
42
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
@@ -56,7 +58,7 @@ module Elasticsearch
|
|
56
58
|
_elasticsearch_inference_id = arguments.delete(:elasticsearch_inference_id)
|
57
59
|
|
58
60
|
method = Elasticsearch::API::HTTP_PUT
|
59
|
-
path = "_inference/#{Utils.
|
61
|
+
path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_elasticsearch_inference_id)}"
|
60
62
|
params = {}
|
61
63
|
|
62
64
|
Elasticsearch::API::Response.new(
|
@@ -15,26 +15,28 @@
|
|
15
15
|
# specific language governing permissions and limitations
|
16
16
|
# under the License.
|
17
17
|
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
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
21
|
module Elasticsearch
|
22
22
|
module API
|
23
23
|
module Inference
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create an ELSER inference endpoint.
|
26
|
+
# Create an inference endpoint to perform an inference task with the +elser+ service.
|
27
|
+
# You can also deploy ELSER by using the Elasticsearch inference integration.
|
26
28
|
#
|
27
|
-
# @option arguments [String] :task_type The task
|
28
|
-
# @option arguments [String] :elser_inference_id The inference
|
29
|
+
# @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*)
|
30
|
+
# @option arguments [String] :elser_inference_id The unique identifier of the inference endpoint. (*Required*)
|
29
31
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
|
-
# @option arguments [Hash] :body
|
32
|
+
# @option arguments [Hash] :body request body
|
31
33
|
#
|
32
|
-
# @see https://www.elastic.co/
|
34
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-elser
|
33
35
|
#
|
34
36
|
def put_elser(arguments = {})
|
35
37
|
request_opts = { endpoint: arguments[:endpoint] || 'inference.put_elser' }
|
36
38
|
|
37
|
-
defined_params =
|
39
|
+
defined_params = [:task_type, :elser_inference_id].each_with_object({}) do |variable, set_variables|
|
38
40
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
41
|
end
|
40
42
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
@@ -52,7 +54,7 @@ module Elasticsearch
|
|
52
54
|
_elser_inference_id = arguments.delete(:elser_inference_id)
|
53
55
|
|
54
56
|
method = Elasticsearch::API::HTTP_PUT
|
55
|
-
path = "_inference/#{Utils.
|
57
|
+
path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_elser_inference_id)}"
|
56
58
|
params = {}
|
57
59
|
|
58
60
|
Elasticsearch::API::Response.new(
|
@@ -15,26 +15,32 @@
|
|
15
15
|
# specific language governing permissions and limitations
|
16
16
|
# under the License.
|
17
17
|
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
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
21
|
module Elasticsearch
|
22
22
|
module API
|
23
23
|
module Inference
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create an Google AI Studio inference endpoint.
|
26
|
+
# Create an inference endpoint to perform an inference task with the +googleaistudio+ service.
|
27
|
+
# When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
|
28
|
+
# After creating the endpoint, wait for the model deployment to complete before using it.
|
29
|
+
# To verify the deployment status, use the get trained model statistics API.
|
30
|
+
# Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+.
|
31
|
+
# Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
|
26
32
|
#
|
27
|
-
# @option arguments [String] :task_type The task
|
28
|
-
# @option arguments [String] :googleaistudio_inference_id The inference
|
33
|
+
# @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*)
|
34
|
+
# @option arguments [String] :googleaistudio_inference_id The unique identifier of the inference endpoint. (*Required*)
|
29
35
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
|
-
# @option arguments [Hash] :body
|
36
|
+
# @option arguments [Hash] :body request body
|
31
37
|
#
|
32
|
-
# @see https://www.elastic.co/
|
38
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-googleaistudio
|
33
39
|
#
|
34
40
|
def put_googleaistudio(arguments = {})
|
35
41
|
request_opts = { endpoint: arguments[:endpoint] || 'inference.put_googleaistudio' }
|
36
42
|
|
37
|
-
defined_params =
|
43
|
+
defined_params = [:task_type, :googleaistudio_inference_id].each_with_object({}) do |variable, set_variables|
|
38
44
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
45
|
end
|
40
46
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
@@ -56,7 +62,7 @@ module Elasticsearch
|
|
56
62
|
_googleaistudio_inference_id = arguments.delete(:googleaistudio_inference_id)
|
57
63
|
|
58
64
|
method = Elasticsearch::API::HTTP_PUT
|
59
|
-
path = "_inference/#{Utils.
|
65
|
+
path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_googleaistudio_inference_id)}"
|
60
66
|
params = {}
|
61
67
|
|
62
68
|
Elasticsearch::API::Response.new(
|
@@ -15,26 +15,32 @@
|
|
15
15
|
# specific language governing permissions and limitations
|
16
16
|
# under the License.
|
17
17
|
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
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
21
|
module Elasticsearch
|
22
22
|
module API
|
23
23
|
module Inference
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create a Google Vertex AI inference endpoint.
|
26
|
+
# Create an inference endpoint to perform an inference task with the +googlevertexai+ service.
|
27
|
+
# When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
|
28
|
+
# After creating the endpoint, wait for the model deployment to complete before using it.
|
29
|
+
# To verify the deployment status, use the get trained model statistics API.
|
30
|
+
# Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+.
|
31
|
+
# Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
|
26
32
|
#
|
27
|
-
# @option arguments [String] :task_type The task
|
28
|
-
# @option arguments [String] :googlevertexai_inference_id The inference
|
33
|
+
# @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*)
|
34
|
+
# @option arguments [String] :googlevertexai_inference_id The unique identifier of the inference endpoint. (*Required*)
|
29
35
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
|
-
# @option arguments [Hash] :body
|
36
|
+
# @option arguments [Hash] :body request body
|
31
37
|
#
|
32
|
-
# @see https://www.elastic.co/
|
38
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-googlevertexai
|
33
39
|
#
|
34
40
|
def put_googlevertexai(arguments = {})
|
35
41
|
request_opts = { endpoint: arguments[:endpoint] || 'inference.put_googlevertexai' }
|
36
42
|
|
37
|
-
defined_params =
|
43
|
+
defined_params = [:task_type, :googlevertexai_inference_id].each_with_object({}) do |variable, set_variables|
|
38
44
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
45
|
end
|
40
46
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
@@ -56,7 +62,7 @@ module Elasticsearch
|
|
56
62
|
_googlevertexai_inference_id = arguments.delete(:googlevertexai_inference_id)
|
57
63
|
|
58
64
|
method = Elasticsearch::API::HTTP_PUT
|
59
|
-
path = "_inference/#{Utils.
|
65
|
+
path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_googlevertexai_inference_id)}"
|
60
66
|
params = {}
|
61
67
|
|
62
68
|
Elasticsearch::API::Response.new(
|
@@ -15,26 +15,43 @@
|
|
15
15
|
# specific language governing permissions and limitations
|
16
16
|
# under the License.
|
17
17
|
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
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
21
|
module Elasticsearch
|
22
22
|
module API
|
23
23
|
module Inference
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create a Hugging Face inference endpoint.
|
26
|
+
# Create an inference endpoint to perform an inference task with the +hugging_face+ service.
|
27
|
+
# You must first create an inference endpoint on the Hugging Face endpoint page to get an endpoint URL.
|
28
|
+
# Select the model you want to use on the new endpoint creation page (for example +intfloat/e5-small-v2+), then select the sentence embeddings task under the advanced configuration section.
|
29
|
+
# Create the endpoint and copy the URL after the endpoint initialization has been finished.
|
30
|
+
# The following models are recommended for the Hugging Face service:
|
31
|
+
# * +all-MiniLM-L6-v2+
|
32
|
+
# * +all-MiniLM-L12-v2+
|
33
|
+
# * +all-mpnet-base-v2+
|
34
|
+
# * +e5-base-v2+
|
35
|
+
# * +e5-small-v2+
|
36
|
+
# * +multilingual-e5-base+
|
37
|
+
# * +multilingual-e5-small+
|
38
|
+
# When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
|
39
|
+
# After creating the endpoint, wait for the model deployment to complete before using it.
|
40
|
+
# To verify the deployment status, use the get trained model statistics API.
|
41
|
+
# Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+.
|
42
|
+
# Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
|
26
43
|
#
|
27
|
-
# @option arguments [String] :task_type The task
|
28
|
-
# @option arguments [String] :huggingface_inference_id The inference
|
44
|
+
# @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*)
|
45
|
+
# @option arguments [String] :huggingface_inference_id The unique identifier of the inference endpoint. (*Required*)
|
29
46
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
|
-
# @option arguments [Hash] :body
|
47
|
+
# @option arguments [Hash] :body request body
|
31
48
|
#
|
32
|
-
# @see https://www.elastic.co/
|
49
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-hugging-face
|
33
50
|
#
|
34
51
|
def put_hugging_face(arguments = {})
|
35
52
|
request_opts = { endpoint: arguments[:endpoint] || 'inference.put_hugging_face' }
|
36
53
|
|
37
|
-
defined_params =
|
54
|
+
defined_params = [:task_type, :huggingface_inference_id].each_with_object({}) do |variable, set_variables|
|
38
55
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
56
|
end
|
40
57
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
@@ -56,7 +73,7 @@ module Elasticsearch
|
|
56
73
|
_huggingface_inference_id = arguments.delete(:huggingface_inference_id)
|
57
74
|
|
58
75
|
method = Elasticsearch::API::HTTP_PUT
|
59
|
-
path = "_inference/#{Utils.
|
76
|
+
path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_huggingface_inference_id)}"
|
60
77
|
params = {}
|
61
78
|
|
62
79
|
Elasticsearch::API::Response.new(
|
@@ -15,32 +15,44 @@
|
|
15
15
|
# specific language governing permissions and limitations
|
16
16
|
# under the License.
|
17
17
|
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
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
21
|
module Elasticsearch
|
22
22
|
module API
|
23
23
|
module Inference
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create an JinaAI inference endpoint.
|
26
|
+
# Create an inference endpoint to perform an inference task with the +jinaai+ service.
|
27
|
+
# To review the available +rerank+ models, refer to <https://jina.ai/reranker>.
|
28
|
+
# To review the available +text_embedding+ models, refer to the <https://jina.ai/embeddings/>.
|
29
|
+
# When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
|
30
|
+
# After creating the endpoint, wait for the model deployment to complete before using it.
|
31
|
+
# To verify the deployment status, use the get trained model statistics API.
|
32
|
+
# Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+.
|
33
|
+
# Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
|
26
34
|
#
|
27
|
-
# @option arguments [String] :task_type The task
|
28
|
-
# @option arguments [String] :jinaai_inference_id The inference
|
35
|
+
# @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*)
|
36
|
+
# @option arguments [String] :jinaai_inference_id The unique identifier of the inference endpoint. (*Required*)
|
29
37
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
|
-
# @option arguments [Hash] :body
|
38
|
+
# @option arguments [Hash] :body request body
|
31
39
|
#
|
32
|
-
# @see https://www.elastic.co/
|
40
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-jinaai
|
33
41
|
#
|
34
42
|
def put_jinaai(arguments = {})
|
35
43
|
request_opts = { endpoint: arguments[:endpoint] || 'inference.put_jinaai' }
|
36
44
|
|
37
|
-
defined_params =
|
45
|
+
defined_params = [:task_type, :jinaai_inference_id].each_with_object({}) do |variable, set_variables|
|
38
46
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
47
|
end
|
40
48
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
41
49
|
|
42
50
|
raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type]
|
43
|
-
|
51
|
+
|
52
|
+
unless arguments[:jinaai_inference_id]
|
53
|
+
raise ArgumentError,
|
54
|
+
"Required argument 'jinaai_inference_id' missing"
|
55
|
+
end
|
44
56
|
|
45
57
|
arguments = arguments.clone
|
46
58
|
headers = arguments.delete(:headers) || {}
|
@@ -52,7 +64,7 @@ module Elasticsearch
|
|
52
64
|
_jinaai_inference_id = arguments.delete(:jinaai_inference_id)
|
53
65
|
|
54
66
|
method = Elasticsearch::API::HTTP_PUT
|
55
|
-
path = "_inference/#{Utils.
|
67
|
+
path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_jinaai_inference_id)}"
|
56
68
|
params = {}
|
57
69
|
|
58
70
|
Elasticsearch::API::Response.new(
|
@@ -15,26 +15,33 @@
|
|
15
15
|
# specific language governing permissions and limitations
|
16
16
|
# under the License.
|
17
17
|
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
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
21
|
module Elasticsearch
|
22
22
|
module API
|
23
23
|
module Inference
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create a Mistral inference endpoint.
|
26
|
+
# Creates an inference endpoint to perform an inference task with the +mistral+ service.
|
27
|
+
# When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
|
28
|
+
# After creating the endpoint, wait for the model deployment to complete before using it.
|
29
|
+
# To verify the deployment status, use the get trained model statistics API.
|
30
|
+
# Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+.
|
31
|
+
# Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
|
26
32
|
#
|
27
|
-
# @option arguments [String] :task_type The task type
|
28
|
-
#
|
33
|
+
# @option arguments [String] :task_type The task type.
|
34
|
+
# The only valid task type for the model to perform is +text_embedding+. (*Required*)
|
35
|
+
# @option arguments [String] :mistral_inference_id The unique identifier of the inference endpoint. (*Required*)
|
29
36
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
|
-
# @option arguments [Hash] :body
|
37
|
+
# @option arguments [Hash] :body request body
|
31
38
|
#
|
32
|
-
# @see https://www.elastic.co/
|
39
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-mistral
|
33
40
|
#
|
34
41
|
def put_mistral(arguments = {})
|
35
42
|
request_opts = { endpoint: arguments[:endpoint] || 'inference.put_mistral' }
|
36
43
|
|
37
|
-
defined_params =
|
44
|
+
defined_params = [:task_type, :mistral_inference_id].each_with_object({}) do |variable, set_variables|
|
38
45
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
46
|
end
|
40
47
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
@@ -56,7 +63,7 @@ module Elasticsearch
|
|
56
63
|
_mistral_inference_id = arguments.delete(:mistral_inference_id)
|
57
64
|
|
58
65
|
method = Elasticsearch::API::HTTP_PUT
|
59
|
-
path = "_inference/#{Utils.
|
66
|
+
path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_mistral_inference_id)}"
|
60
67
|
params = {}
|
61
68
|
|
62
69
|
Elasticsearch::API::Response.new(
|
@@ -15,32 +15,43 @@
|
|
15
15
|
# specific language governing permissions and limitations
|
16
16
|
# under the License.
|
17
17
|
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
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
21
|
module Elasticsearch
|
22
22
|
module API
|
23
23
|
module Inference
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create an OpenAI inference endpoint.
|
26
|
+
# Create an inference endpoint to perform an inference task with the +openai+ service.
|
27
|
+
# When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
|
28
|
+
# After creating the endpoint, wait for the model deployment to complete before using it.
|
29
|
+
# To verify the deployment status, use the get trained model statistics API.
|
30
|
+
# Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+.
|
31
|
+
# Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
|
26
32
|
#
|
27
|
-
# @option arguments [String] :task_type The task
|
28
|
-
#
|
33
|
+
# @option arguments [String] :task_type The type of the inference task that the model will perform.
|
34
|
+
# NOTE: The +chat_completion+ task type only supports streaming and only through the _stream API. (*Required*)
|
35
|
+
# @option arguments [String] :openai_inference_id The unique identifier of the inference endpoint. (*Required*)
|
29
36
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
|
-
# @option arguments [Hash] :body
|
37
|
+
# @option arguments [Hash] :body request body
|
31
38
|
#
|
32
|
-
# @see https://www.elastic.co/
|
39
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-openai
|
33
40
|
#
|
34
41
|
def put_openai(arguments = {})
|
35
42
|
request_opts = { endpoint: arguments[:endpoint] || 'inference.put_openai' }
|
36
43
|
|
37
|
-
defined_params =
|
44
|
+
defined_params = [:task_type, :openai_inference_id].each_with_object({}) do |variable, set_variables|
|
38
45
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
46
|
end
|
40
47
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
41
48
|
|
42
49
|
raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type]
|
43
|
-
|
50
|
+
|
51
|
+
unless arguments[:openai_inference_id]
|
52
|
+
raise ArgumentError,
|
53
|
+
"Required argument 'openai_inference_id' missing"
|
54
|
+
end
|
44
55
|
|
45
56
|
arguments = arguments.clone
|
46
57
|
headers = arguments.delete(:headers) || {}
|
@@ -52,7 +63,7 @@ module Elasticsearch
|
|
52
63
|
_openai_inference_id = arguments.delete(:openai_inference_id)
|
53
64
|
|
54
65
|
method = Elasticsearch::API::HTTP_PUT
|
55
|
-
path = "_inference/#{Utils.
|
66
|
+
path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_openai_inference_id)}"
|
56
67
|
params = {}
|
57
68
|
|
58
69
|
Elasticsearch::API::Response.new(
|
@@ -15,26 +15,28 @@
|
|
15
15
|
# specific language governing permissions and limitations
|
16
16
|
# under the License.
|
17
17
|
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
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
21
|
module Elasticsearch
|
22
22
|
module API
|
23
23
|
module Inference
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create a VoyageAI inference endpoint.
|
26
|
+
# Create an inference endpoint to perform an inference task with the +voyageai+ service.
|
27
|
+
# Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
|
26
28
|
#
|
27
|
-
# @option arguments [String] :task_type The task
|
28
|
-
# @option arguments [String] :voyageai_inference_id The inference
|
29
|
+
# @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*)
|
30
|
+
# @option arguments [String] :voyageai_inference_id The unique identifier of the inference endpoint. (*Required*)
|
29
31
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
|
-
# @option arguments [Hash] :body
|
32
|
+
# @option arguments [Hash] :body request body
|
31
33
|
#
|
32
|
-
# @see https://www.elastic.co/
|
34
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-voyageai
|
33
35
|
#
|
34
36
|
def put_voyageai(arguments = {})
|
35
37
|
request_opts = { endpoint: arguments[:endpoint] || 'inference.put_voyageai' }
|
36
38
|
|
37
|
-
defined_params =
|
39
|
+
defined_params = [:task_type, :voyageai_inference_id].each_with_object({}) do |variable, set_variables|
|
38
40
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
41
|
end
|
40
42
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
@@ -56,7 +58,7 @@ module Elasticsearch
|
|
56
58
|
_voyageai_inference_id = arguments.delete(:voyageai_inference_id)
|
57
59
|
|
58
60
|
method = Elasticsearch::API::HTTP_PUT
|
59
|
-
path = "_inference/#{Utils.
|
61
|
+
path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_voyageai_inference_id)}"
|
60
62
|
params = {}
|
61
63
|
|
62
64
|
Elasticsearch::API::Response.new(
|
@@ -15,26 +15,35 @@
|
|
15
15
|
# specific language governing permissions and limitations
|
16
16
|
# under the License.
|
17
17
|
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
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
21
|
module Elasticsearch
|
22
22
|
module API
|
23
23
|
module Inference
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create a Watsonx inference endpoint.
|
26
|
+
# Create an inference endpoint to perform an inference task with the +watsonxai+ service.
|
27
|
+
# You need an IBM Cloud Databases for Elasticsearch deployment to use the +watsonxai+ inference service.
|
28
|
+
# You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform.
|
29
|
+
# When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running.
|
30
|
+
# After creating the endpoint, wait for the model deployment to complete before using it.
|
31
|
+
# To verify the deployment status, use the get trained model statistics API.
|
32
|
+
# Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+.
|
33
|
+
# Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources.
|
26
34
|
#
|
27
|
-
# @option arguments [String] :task_type The task type
|
28
|
-
#
|
35
|
+
# @option arguments [String] :task_type The task type.
|
36
|
+
# The only valid task type for the model to perform is +text_embedding+. (*Required*)
|
37
|
+
# @option arguments [String] :watsonx_inference_id The unique identifier of the inference endpoint. (*Required*)
|
29
38
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
|
-
# @option arguments [Hash] :body
|
39
|
+
# @option arguments [Hash] :body request body
|
31
40
|
#
|
32
|
-
# @see https://www.elastic.co/
|
41
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-watsonx
|
33
42
|
#
|
34
43
|
def put_watsonx(arguments = {})
|
35
44
|
request_opts = { endpoint: arguments[:endpoint] || 'inference.put_watsonx' }
|
36
45
|
|
37
|
-
defined_params =
|
46
|
+
defined_params = [:task_type, :watsonx_inference_id].each_with_object({}) do |variable, set_variables|
|
38
47
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
48
|
end
|
40
49
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
@@ -56,7 +65,7 @@ module Elasticsearch
|
|
56
65
|
_watsonx_inference_id = arguments.delete(:watsonx_inference_id)
|
57
66
|
|
58
67
|
method = Elasticsearch::API::HTTP_PUT
|
59
|
-
path = "_inference/#{Utils.
|
68
|
+
path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_watsonx_inference_id)}"
|
60
69
|
params = {}
|
61
70
|
|
62
71
|
Elasticsearch::API::Response.new(
|