Skip to content

Commit f91856f

Browse files
committed
[API] Generates e7c19dcd3aa9fd34b15509f0453af0e4756ea080
- Updates `inference.get`, adds path using task_type. - Adds documentation in source code docs about feature flagged apis.
1 parent be0d562 commit f91856f

15 files changed

Lines changed: 44 additions & 3 deletions

elasticsearch-api/lib/elasticsearch/api/actions/esql/delete_view.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ module Esql
2424
module Actions
2525
# Delete an ES|QL view.
2626
# Deletes a stored ES|QL view.
27+
#
28+
# This API is only available behind a feature flag: `esql_views`.
29+
#
2730
# This functionality is in technical preview and may be changed or removed in a future
2831
# release. Elastic will apply best effort to fix any issues, but features in technical
2932
# preview are not subject to the support SLA of official GA features.

elasticsearch-api/lib/elasticsearch/api/actions/esql/get_view.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ module Esql
2424
module Actions
2525
# Get an ES|QL view.
2626
# Returns a stored ES|QL view.
27+
#
28+
# This API is only available behind a feature flag: `esql_views`.
29+
#
2730
# This functionality is in technical preview and may be changed or removed in a future
2831
# release. Elastic will apply best effort to fix any issues, but features in technical
2932
# preview are not subject to the support SLA of official GA features.

elasticsearch-api/lib/elasticsearch/api/actions/esql/put_view.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ module API
2323
module Esql
2424
module Actions
2525
# Create or update an ES|QL view.
26+
#
27+
# This API is only available behind a feature flag: `esql_views`.
28+
#
2629
# This functionality is in technical preview and may be changed or removed in a future
2730
# release. Elastic will apply best effort to fix any issues, but features in technical
2831
# preview are not subject to the support SLA of official GA features.

elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_sample_configuration.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ module Indices
2424
module Actions
2525
# Delete sampling configuration.
2626
# Delete the sampling configuration for the specified index.
27+
#
28+
# This API is only available behind a feature flag: `random_sampling`.
29+
#
2730
# This functionality is in technical preview and may be changed or removed in a future
2831
# release. Elastic will apply best effort to fix any issues, but features in technical
2932
# preview are not subject to the support SLA of official GA features.

elasticsearch-api/lib/elasticsearch/api/actions/indices/get_all_sample_configuration.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ module Indices
2424
module Actions
2525
# Get all sampling configurations.
2626
# Get the sampling configurations for all indices.
27+
#
28+
# This API is only available behind a feature flag: `random_sampling`.
29+
#
2730
# This functionality is in technical preview and may be changed or removed in a future
2831
# release. Elastic will apply best effort to fix any issues, but features in technical
2932
# preview are not subject to the support SLA of official GA features.

elasticsearch-api/lib/elasticsearch/api/actions/indices/get_sample.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ module API
2323
module Indices
2424
module Actions
2525
# Request for a random sample of raw documents ingested into the given index or data stream.
26+
#
27+
# This API is only available behind a feature flag: `random_sampling`.
28+
#
2629
# This functionality is in technical preview and may be changed or removed in a future
2730
# release. Elastic will apply best effort to fix any issues, but features in technical
2831
# preview are not subject to the support SLA of official GA features.

elasticsearch-api/lib/elasticsearch/api/actions/indices/get_sample_configuration.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ module Indices
2424
module Actions
2525
# Get sampling configuration.
2626
# Get the sampling configuration for the specified index.
27+
#
28+
# This API is only available behind a feature flag: `random_sampling`.
29+
#
2730
# This functionality is in technical preview and may be changed or removed in a future
2831
# release. Elastic will apply best effort to fix any issues, but features in technical
2932
# preview are not subject to the support SLA of official GA features.

elasticsearch-api/lib/elasticsearch/api/actions/indices/get_sample_stats.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ module API
2323
module Indices
2424
module Actions
2525
# Request stats for a random sample of raw documents ingested into the given index or data stream.
26+
#
27+
# This API is only available behind a feature flag: `random_sampling`.
28+
#
2629
# This functionality is in technical preview and may be changed or removed in a future
2730
# release. Elastic will apply best effort to fix any issues, but features in technical
2831
# preview are not subject to the support SLA of official GA features.

elasticsearch-api/lib/elasticsearch/api/actions/indices/put_sample_configuration.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ module Indices
2424
module Actions
2525
# Create or update sampling configuration.
2626
# Create or update the sampling configuration for the specified index.
27+
#
28+
# This API is only available behind a feature flag: `random_sampling`.
29+
#
2730
# This functionality is in technical preview and may be changed or removed in a future
2831
# release. Elastic will apply best effort to fix any issues, but features in technical
2932
# preview are not subject to the support SLA of official GA features.

elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ module Actions
2525
# Get an inference endpoint.
2626
# This API requires the `monitor_inference` cluster privilege (the built-in `inference_admin` and `inference_user` roles grant this privilege).
2727
#
28-
# @option arguments [String] :task_type The task type
29-
# @option arguments [String] :inference_id The inference Id
28+
# @option arguments [String] :task_type The task type of the endpoint to return
29+
# @option arguments [String] :inference_id The inference Id of the endpoint to return. Using `_all` or `*` will return all endpoints with the specified
30+
# `task_type` if one is specified, or all endpoints for all task types if no `task_type` is specified
3031
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
3132
# when they occur.
3233
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -62,6 +63,8 @@ def get(arguments = {})
6263
method = Elasticsearch::API::HTTP_GET
6364
path = if _task_type && _inference_id
6465
"_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_inference_id)}"
66+
elsif _task_type
67+
"_inference/#{Utils.listify(_task_type)}/_all"
6568
elsif _inference_id
6669
"_inference/#{Utils.listify(_inference_id)}"
6770
else

0 commit comments

Comments
 (0)