From 6e55472ca3747b48b21aa4294b57bad38d366a2f Mon Sep 17 00:00:00 2001 From: Marci W <333176+marciw@users.noreply.github.com> Date: Fri, 7 Mar 2025 08:37:23 -0500 Subject: [PATCH 01/75] [docs] Migrate docs from AsciiDoc to Markdown (#2582) (#2596) * delete asciidoc files * add migrated files --------- Co-authored-by: Marci W <333176+marciw@users.noreply.github.com> (cherry picked from commit 7aedc17771e71315d50ad808160f3a7a82200bcf) Co-authored-by: Colleen McGinnis --- docs/basic-config.asciidoc | 37 -- docs/config.asciidoc | 9 - docs/docset.yml | 490 ++++++++++++++++++ docs/dsl.asciidoc | 6 - docs/ecs.asciidoc | 34 -- docs/examples/apm/screenshot.jpg | Bin 324480 -> 0 bytes docs/getting-started.asciidoc | 141 ----- docs/helpers/index.asciidoc | 10 - docs/index.asciidoc | 32 -- docs/installation.asciidoc | 61 --- docs/integrations.asciidoc | 30 -- docs/open-telemetry.asciidoc | 94 ---- docs/overview.asciidoc | 38 -- docs/rails.asciidoc | 24 - .../Helpers.md} | 131 +++-- .../activemodel_activerecord.md} | 51 +- .../advanced-config.md} | 199 +++---- docs/{api.asciidoc => reference/api.md} | 104 ++-- docs/reference/basic-config.md | 37 ++ docs/reference/client-helpers.md | 14 + docs/reference/configuration.md | 14 + .../connecting.md} | 209 ++++---- docs/reference/dsl.md | 11 + docs/reference/ecs.md | 37 ++ .../esql.asciidoc => reference/esql.md} | 78 ++- .../examples.md} | 96 ++-- docs/reference/getting-started.md | 125 +++++ docs/reference/index.md | 40 ++ docs/reference/installation.md | 44 ++ docs/reference/integrations.md | 26 + docs/reference/opentelemetry.md | 97 ++++ .../persistence.md} | 78 ++- docs/reference/ruby_on_rails.md | 23 + docs/reference/toc.yml | 24 + .../transport.md} | 169 +++--- docs/release-notes/breaking-changes.md | 28 + docs/release-notes/deprecations.md | 28 + docs/release-notes/index.md | 27 + docs/release-notes/known-issues.md | 20 + docs/release-notes/toc.yml | 5 + docs/release_notes/70.asciidoc | 195 ------- docs/release_notes/710.asciidoc | 62 --- docs/release_notes/711.asciidoc | 49 -- docs/release_notes/712.asciidoc | 28 - docs/release_notes/713.asciidoc | 53 -- docs/release_notes/714.asciidoc | 93 ---- docs/release_notes/715.asciidoc | 20 - docs/release_notes/716.asciidoc | 96 ---- docs/release_notes/717.asciidoc | 29 -- docs/release_notes/75.asciidoc | 59 --- docs/release_notes/76.asciidoc | 86 --- docs/release_notes/77.asciidoc | 77 --- docs/release_notes/78.asciidoc | 103 ---- docs/release_notes/79.asciidoc | 60 --- docs/release_notes/80.asciidoc | 74 --- docs/release_notes/81.asciidoc | 55 -- docs/release_notes/810.asciidoc | 51 -- docs/release_notes/811.asciidoc | 24 - docs/release_notes/812.asciidoc | 65 --- docs/release_notes/813.asciidoc | 76 --- docs/release_notes/814.asciidoc | 52 -- docs/release_notes/815.asciidoc | 99 ---- docs/release_notes/816.asciidoc | 57 -- docs/release_notes/817.asciidoc | 20 - docs/release_notes/82.asciidoc | 49 -- docs/release_notes/83.asciidoc | 33 -- docs/release_notes/84.asciidoc | 31 -- docs/release_notes/85.asciidoc | 105 ---- docs/release_notes/86.asciidoc | 23 - docs/release_notes/87.asciidoc | 35 -- docs/release_notes/88.asciidoc | 47 -- docs/release_notes/89.asciidoc | 54 -- docs/release_notes/index.asciidoc | 74 --- docs/troubleshooting.asciidoc | 97 ---- 74 files changed, 1552 insertions(+), 3300 deletions(-) delete mode 100644 docs/basic-config.asciidoc delete mode 100644 docs/config.asciidoc create mode 100644 docs/docset.yml delete mode 100644 docs/dsl.asciidoc delete mode 100644 docs/ecs.asciidoc delete mode 100644 docs/examples/apm/screenshot.jpg delete mode 100644 docs/getting-started.asciidoc delete mode 100644 docs/helpers/index.asciidoc delete mode 100644 docs/index.asciidoc delete mode 100644 docs/installation.asciidoc delete mode 100644 docs/integrations.asciidoc delete mode 100644 docs/open-telemetry.asciidoc delete mode 100644 docs/overview.asciidoc delete mode 100644 docs/rails.asciidoc rename docs/{helpers/bulk-scroll.asciidoc => reference/Helpers.md} (78%) rename docs/{model.asciidoc => reference/activemodel_activerecord.md} (55%) rename docs/{advanced-config.asciidoc => reference/advanced-config.md} (55%) rename docs/{api.asciidoc => reference/api.md} (68%) create mode 100644 docs/reference/basic-config.md create mode 100644 docs/reference/client-helpers.md create mode 100644 docs/reference/configuration.md rename docs/{connecting.asciidoc => reference/connecting.md} (57%) create mode 100644 docs/reference/dsl.md create mode 100644 docs/reference/ecs.md rename docs/{helpers/esql.asciidoc => reference/esql.md} (72%) rename docs/{examples.asciidoc => reference/examples.md} (82%) create mode 100644 docs/reference/getting-started.md create mode 100644 docs/reference/index.md create mode 100644 docs/reference/installation.md create mode 100644 docs/reference/integrations.md create mode 100644 docs/reference/opentelemetry.md rename docs/{persistence.asciidoc => reference/persistence.md} (56%) create mode 100644 docs/reference/ruby_on_rails.md create mode 100644 docs/reference/toc.yml rename docs/{transport.asciidoc => reference/transport.md} (57%) create mode 100644 docs/release-notes/breaking-changes.md create mode 100644 docs/release-notes/deprecations.md create mode 100644 docs/release-notes/index.md create mode 100644 docs/release-notes/known-issues.md create mode 100644 docs/release-notes/toc.yml delete mode 100644 docs/release_notes/70.asciidoc delete mode 100644 docs/release_notes/710.asciidoc delete mode 100644 docs/release_notes/711.asciidoc delete mode 100644 docs/release_notes/712.asciidoc delete mode 100644 docs/release_notes/713.asciidoc delete mode 100644 docs/release_notes/714.asciidoc delete mode 100644 docs/release_notes/715.asciidoc delete mode 100644 docs/release_notes/716.asciidoc delete mode 100644 docs/release_notes/717.asciidoc delete mode 100644 docs/release_notes/75.asciidoc delete mode 100644 docs/release_notes/76.asciidoc delete mode 100644 docs/release_notes/77.asciidoc delete mode 100644 docs/release_notes/78.asciidoc delete mode 100644 docs/release_notes/79.asciidoc delete mode 100644 docs/release_notes/80.asciidoc delete mode 100644 docs/release_notes/81.asciidoc delete mode 100644 docs/release_notes/810.asciidoc delete mode 100644 docs/release_notes/811.asciidoc delete mode 100644 docs/release_notes/812.asciidoc delete mode 100644 docs/release_notes/813.asciidoc delete mode 100644 docs/release_notes/814.asciidoc delete mode 100644 docs/release_notes/815.asciidoc delete mode 100644 docs/release_notes/816.asciidoc delete mode 100644 docs/release_notes/817.asciidoc delete mode 100644 docs/release_notes/82.asciidoc delete mode 100644 docs/release_notes/83.asciidoc delete mode 100644 docs/release_notes/84.asciidoc delete mode 100644 docs/release_notes/85.asciidoc delete mode 100644 docs/release_notes/86.asciidoc delete mode 100644 docs/release_notes/87.asciidoc delete mode 100644 docs/release_notes/88.asciidoc delete mode 100644 docs/release_notes/89.asciidoc delete mode 100644 docs/release_notes/index.asciidoc delete mode 100644 docs/troubleshooting.asciidoc diff --git a/docs/basic-config.asciidoc b/docs/basic-config.asciidoc deleted file mode 100644 index d0edd7ec76..0000000000 --- a/docs/basic-config.asciidoc +++ /dev/null @@ -1,37 +0,0 @@ -[[basic-config]] -=== Basic configuration - -The table below contains the most important initialization parameters that you -can use. - - -[cols="<,<,<"] -|=== - -| **Parameter** | **Data type** | **Description** -| `adapter` | Symbol | A specific adapter for Faraday (for example, `:patron`). -| `api_key` | String, Hash | For API key Authentication. Either the base64 encoding of `id` and `api_key` joined by a colon as a string, or a hash with the `id` and `api_key` values. -| `compression` | Boolean | Whether to compress requests. Gzip compression is used. Defaults to `false`. Responses are automatically inflated if they are compressed. If a custom transport object is used, it must handle the request compression and response inflation. -| `enable_meta_header` | Boolean | Whether to enable sending the meta data header to Cloud. Defaults to `true`. -| `hosts` | String, Array | Single host passed as a string or hash, or multiple hosts passed as an array; `host` or `url` keys are also valid. -| `log` | Boolean | Whether to use the default logger. Disabled by default. -| `logger` | Object | An instance of a Logger-compatible object. -| `opaque_id_prefix` | String | Sets a prefix for X-Opaque-Id when initializing the client. This is prepended to the id you set before each request if you're using X-Opaque-Id. -| `opentelemetry_tracer_provider` | `OpenTelemetry::Trace::TracerProvider` | An explicit TracerProvider to use instead of the global one with OpenTelemetry. This enables better dependency injection and simplifies testing. -| `randomize_hosts` | Boolean | Whether to shuffle connections on initialization and reload. Defaults to `false`. -| `reload_connections` | Boolean, Number | Whether to reload connections after X requests. Defaults to `false`. -| `reload_on_failure` | Boolean | Whether to reload connections after failure. Defaults to `false`. -| `request_timeout` | Integer | The request timeout to be passed to transport in options. -| `resurrect_after` | Integer | Specifies after how many seconds a dead connection should be tried again. -| `retry_on_failure` | Boolean, Number | Whether to retry X times when request fails before raising and exception. Defaults to `false`. -| `retry_on_status` | Array, Number | Specifies which status code needs to be returned to retry. -| `selector` | Constant | An instance of selector strategy implemented with {Elastic::Transport::Transport::Connections::Selector::Base}. -| `send_get_body_as` | String | Specifies the HTTP method to use for GET requests with a body. Defaults to `GET`. -| `serializer_class` | Constant | Specifies a serializer class to use. It is initialized by the transport and passed the transport instance. -| `sniffer_timeout` | Integer | Specifies the timeout for reloading connections in seconds. Defaults to `1`. -| `trace` | Boolean | Whether to use the default tracer. Disabled by default. -| `tracer` | Object | Specifies an instance of a Logger-compatible object. -| `transport` | Object | Specifies a transport instance. -| `transport_class` | Constant | Specifies a transport class to use. It is initialized by the client and passed hosts and all arguments. -| `transport_options` | Hash | Specifies the options to be passed to the `Faraday::Connection` constructor. -|=== diff --git a/docs/config.asciidoc b/docs/config.asciidoc deleted file mode 100644 index c9897f8313..0000000000 --- a/docs/config.asciidoc +++ /dev/null @@ -1,9 +0,0 @@ -[[ruby-config]] -== Configuration - -This page contains information about how to configure the Ruby client tailored -to your needs. Almost every aspect of the client is configurable. However, in -most cases you only need to set a couple of parameters. - -* <> -* <> \ No newline at end of file diff --git a/docs/docset.yml b/docs/docset.yml new file mode 100644 index 0000000000..fb1b1471b7 --- /dev/null +++ b/docs/docset.yml @@ -0,0 +1,490 @@ +project: 'Ruby client' +exclude: + - examples/** +cross_links: + - docs-content + - ecs + - ecs-logging-ruby +toc: + - toc: reference + - toc: release-notes +subs: + ref: "https://www.elastic.co/guide/en/elasticsearch/reference/current" + ref-bare: "https://www.elastic.co/guide/en/elasticsearch/reference" + ref-8x: "https://www.elastic.co/guide/en/elasticsearch/reference/8.1" + ref-80: "https://www.elastic.co/guide/en/elasticsearch/reference/8.0" + ref-7x: "https://www.elastic.co/guide/en/elasticsearch/reference/7.17" + ref-70: "https://www.elastic.co/guide/en/elasticsearch/reference/7.0" + ref-60: "https://www.elastic.co/guide/en/elasticsearch/reference/6.0" + ref-64: "https://www.elastic.co/guide/en/elasticsearch/reference/6.4" + xpack-ref: "https://www.elastic.co/guide/en/x-pack/6.2" + logstash-ref: "https://www.elastic.co/guide/en/logstash/current" + kibana-ref: "https://www.elastic.co/guide/en/kibana/current" + kibana-ref-all: "https://www.elastic.co/guide/en/kibana" + beats-ref-root: "https://www.elastic.co/guide/en/beats" + beats-ref: "https://www.elastic.co/guide/en/beats/libbeat/current" + beats-ref-60: "https://www.elastic.co/guide/en/beats/libbeat/6.0" + beats-ref-63: "https://www.elastic.co/guide/en/beats/libbeat/6.3" + beats-devguide: "https://www.elastic.co/guide/en/beats/devguide/current" + auditbeat-ref: "https://www.elastic.co/guide/en/beats/auditbeat/current" + packetbeat-ref: "https://www.elastic.co/guide/en/beats/packetbeat/current" + metricbeat-ref: "https://www.elastic.co/guide/en/beats/metricbeat/current" + filebeat-ref: "https://www.elastic.co/guide/en/beats/filebeat/current" + functionbeat-ref: "https://www.elastic.co/guide/en/beats/functionbeat/current" + winlogbeat-ref: "https://www.elastic.co/guide/en/beats/winlogbeat/current" + heartbeat-ref: "https://www.elastic.co/guide/en/beats/heartbeat/current" + journalbeat-ref: "https://www.elastic.co/guide/en/beats/journalbeat/current" + ingest-guide: "https://www.elastic.co/guide/en/ingest/current" + fleet-guide: "https://www.elastic.co/guide/en/fleet/current" + apm-guide-ref: "https://www.elastic.co/guide/en/apm/guide/current" + apm-guide-7x: "https://www.elastic.co/guide/en/apm/guide/7.17" + apm-app-ref: "https://www.elastic.co/guide/en/kibana/current" + apm-agents-ref: "https://www.elastic.co/guide/en/apm/agent" + apm-android-ref: "https://www.elastic.co/guide/en/apm/agent/android/current" + apm-py-ref: "https://www.elastic.co/guide/en/apm/agent/python/current" + apm-py-ref-3x: "https://www.elastic.co/guide/en/apm/agent/python/3.x" + apm-node-ref-index: "https://www.elastic.co/guide/en/apm/agent/nodejs" + apm-node-ref: "https://www.elastic.co/guide/en/apm/agent/nodejs/current" + apm-node-ref-1x: "https://www.elastic.co/guide/en/apm/agent/nodejs/1.x" + apm-rum-ref: "https://www.elastic.co/guide/en/apm/agent/rum-js/current" + apm-ruby-ref: "https://www.elastic.co/guide/en/apm/agent/ruby/current" + apm-java-ref: "https://www.elastic.co/guide/en/apm/agent/java/current" + apm-go-ref: "https://www.elastic.co/guide/en/apm/agent/go/current" + apm-dotnet-ref: "https://www.elastic.co/guide/en/apm/agent/dotnet/current" + apm-php-ref: "https://www.elastic.co/guide/en/apm/agent/php/current" + apm-ios-ref: "https://www.elastic.co/guide/en/apm/agent/swift/current" + apm-lambda-ref: "https://www.elastic.co/guide/en/apm/lambda/current" + apm-attacher-ref: "https://www.elastic.co/guide/en/apm/attacher/current" + docker-logging-ref: "https://www.elastic.co/guide/en/beats/loggingplugin/current" + esf-ref: "https://www.elastic.co/guide/en/esf/current" + kinesis-firehose-ref: "https://www.elastic.co/guide/en/kinesis/%7B%7Bkinesis_version%7D%7D" + estc-welcome-current: "https://www.elastic.co/guide/en/starting-with-the-elasticsearch-platform-and-its-solutions/current" + estc-welcome: "https://www.elastic.co/guide/en/starting-with-the-elasticsearch-platform-and-its-solutions/current" + estc-welcome-all: "https://www.elastic.co/guide/en/starting-with-the-elasticsearch-platform-and-its-solutions" + hadoop-ref: "https://www.elastic.co/guide/en/elasticsearch/hadoop/current" + stack-ref: "https://www.elastic.co/guide/en/elastic-stack/current" + stack-ref-67: "https://www.elastic.co/guide/en/elastic-stack/6.7" + stack-ref-68: "https://www.elastic.co/guide/en/elastic-stack/6.8" + stack-ref-70: "https://www.elastic.co/guide/en/elastic-stack/7.0" + stack-ref-80: "https://www.elastic.co/guide/en/elastic-stack/8.0" + stack-ov: "https://www.elastic.co/guide/en/elastic-stack-overview/current" + stack-gs: "https://www.elastic.co/guide/en/elastic-stack-get-started/current" + stack-gs-current: "https://www.elastic.co/guide/en/elastic-stack-get-started/current" + javaclient: "https://www.elastic.co/guide/en/elasticsearch/client/java-api/current" + java-api-client: "https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current" + java-rest: "https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current" + jsclient: "https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current" + jsclient-current: "https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current" + es-ruby-client: "https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current" + es-dotnet-client: "https://www.elastic.co/guide/en/elasticsearch/client/net-api/current" + es-php-client: "https://www.elastic.co/guide/en/elasticsearch/client/php-api/current" + es-python-client: "https://www.elastic.co/guide/en/elasticsearch/client/python-api/current" + defguide: "https://www.elastic.co/guide/en/elasticsearch/guide/2.x" + painless: "https://www.elastic.co/guide/en/elasticsearch/painless/current" + plugins: "https://www.elastic.co/guide/en/elasticsearch/plugins/current" + plugins-8x: "https://www.elastic.co/guide/en/elasticsearch/plugins/8.1" + plugins-7x: "https://www.elastic.co/guide/en/elasticsearch/plugins/7.17" + plugins-6x: "https://www.elastic.co/guide/en/elasticsearch/plugins/6.8" + glossary: "https://www.elastic.co/guide/en/elastic-stack-glossary/current" + upgrade_guide: "https://www.elastic.co/products/upgrade_guide" + blog-ref: "https://www.elastic.co/blog/" + curator-ref: "https://www.elastic.co/guide/en/elasticsearch/client/curator/current" + curator-ref-current: "https://www.elastic.co/guide/en/elasticsearch/client/curator/current" + metrics-ref: "https://www.elastic.co/guide/en/metrics/current" + metrics-guide: "https://www.elastic.co/guide/en/metrics/guide/current" + logs-ref: "https://www.elastic.co/guide/en/logs/current" + logs-guide: "https://www.elastic.co/guide/en/logs/guide/current" + uptime-guide: "https://www.elastic.co/guide/en/uptime/current" + observability-guide: "https://www.elastic.co/guide/en/observability/current" + observability-guide-all: "https://www.elastic.co/guide/en/observability" + siem-guide: "https://www.elastic.co/guide/en/siem/guide/current" + security-guide: "https://www.elastic.co/guide/en/security/current" + security-guide-all: "https://www.elastic.co/guide/en/security" + endpoint-guide: "https://www.elastic.co/guide/en/endpoint/current" + sql-odbc: "https://www.elastic.co/guide/en/elasticsearch/sql-odbc/current" + ecs-ref: "https://www.elastic.co/guide/en/ecs/current" + ecs-logging-ref: "https://www.elastic.co/guide/en/ecs-logging/overview/current" + ecs-logging-go-logrus-ref: "https://www.elastic.co/guide/en/ecs-logging/go-logrus/current" + ecs-logging-go-zap-ref: "https://www.elastic.co/guide/en/ecs-logging/go-zap/current" + ecs-logging-go-zerolog-ref: "https://www.elastic.co/guide/en/ecs-logging/go-zap/current" + ecs-logging-java-ref: "https://www.elastic.co/guide/en/ecs-logging/java/current" + ecs-logging-dotnet-ref: "https://www.elastic.co/guide/en/ecs-logging/dotnet/current" + ecs-logging-nodejs-ref: "https://www.elastic.co/guide/en/ecs-logging/nodejs/current" + ecs-logging-php-ref: "https://www.elastic.co/guide/en/ecs-logging/php/current" + ecs-logging-python-ref: "https://www.elastic.co/guide/en/ecs-logging/python/current" + ecs-logging-ruby-ref: "https://www.elastic.co/guide/en/ecs-logging/ruby/current" + ml-docs: "https://www.elastic.co/guide/en/machine-learning/current" + eland-docs: "https://www.elastic.co/guide/en/elasticsearch/client/eland/current" + eql-ref: "https://eql.readthedocs.io/en/latest/query-guide" + extendtrial: "https://www.elastic.co/trialextension" + wikipedia: "https://en.wikipedia.org/wiki" + forum: "https://discuss.elastic.co/" + xpack-forum: "https://discuss.elastic.co/c/50-x-pack" + security-forum: "https://discuss.elastic.co/c/x-pack/shield" + watcher-forum: "https://discuss.elastic.co/c/x-pack/watcher" + monitoring-forum: "https://discuss.elastic.co/c/x-pack/marvel" + graph-forum: "https://discuss.elastic.co/c/x-pack/graph" + apm-forum: "https://discuss.elastic.co/c/apm" + enterprise-search-ref: "https://www.elastic.co/guide/en/enterprise-search/current" + app-search-ref: "https://www.elastic.co/guide/en/app-search/current" + workplace-search-ref: "https://www.elastic.co/guide/en/workplace-search/current" + enterprise-search-node-ref: "https://www.elastic.co/guide/en/enterprise-search-clients/enterprise-search-node/current" + enterprise-search-php-ref: "https://www.elastic.co/guide/en/enterprise-search-clients/php/current" + enterprise-search-python-ref: "https://www.elastic.co/guide/en/enterprise-search-clients/python/current" + enterprise-search-ruby-ref: "https://www.elastic.co/guide/en/enterprise-search-clients/ruby/current" + elastic-maps-service: "https://maps.elastic.co/" + integrations-docs: "https://docs.elastic.co/en/integrations" + integrations-devguide: "https://www.elastic.co/guide/en/integrations-developer/current" + time-units: "https://www.elastic.co/guide/en/elasticsearch/reference/current/api-conventions.html#time-units" + byte-units: "https://www.elastic.co/guide/en/elasticsearch/reference/current/api-conventions.html#byte-units" + apm-py-ref-v: "https://www.elastic.co/guide/en/apm/agent/python/current" + apm-node-ref-v: "https://www.elastic.co/guide/en/apm/agent/nodejs/current" + apm-rum-ref-v: "https://www.elastic.co/guide/en/apm/agent/rum-js/current" + apm-ruby-ref-v: "https://www.elastic.co/guide/en/apm/agent/ruby/current" + apm-java-ref-v: "https://www.elastic.co/guide/en/apm/agent/java/current" + apm-go-ref-v: "https://www.elastic.co/guide/en/apm/agent/go/current" + apm-ios-ref-v: "https://www.elastic.co/guide/en/apm/agent/swift/current" + apm-dotnet-ref-v: "https://www.elastic.co/guide/en/apm/agent/dotnet/current" + apm-php-ref-v: "https://www.elastic.co/guide/en/apm/agent/php/current" + ecloud: "Elastic Cloud" + esf: "Elastic Serverless Forwarder" + ess: "Elasticsearch Service" + ece: "Elastic Cloud Enterprise" + eck: "Elastic Cloud on Kubernetes" + serverless-full: "Elastic Cloud Serverless" + serverless-short: "Serverless" + es-serverless: "Elasticsearch Serverless" + es3: "Elasticsearch Serverless" + obs-serverless: "Elastic Observability Serverless" + sec-serverless: "Elastic Security Serverless" + serverless-docs: "https://docs.elastic.co/serverless" + cloud: "https://www.elastic.co/guide/en/cloud/current" + ess-utm-params: "?page=docs&placement=docs-body" + ess-baymax: "?page=docs&placement=docs-body" + ess-trial: "https://cloud.elastic.co/registration?page=docs&placement=docs-body" + ess-product: "https://www.elastic.co/cloud/elasticsearch-service?page=docs&placement=docs-body" + ess-console: "https://cloud.elastic.co/?page=docs&placement=docs-body" + ess-console-name: "Elasticsearch Service Console" + ess-deployments: "https://cloud.elastic.co/deployments?page=docs&placement=docs-body" + ece-ref: "https://www.elastic.co/guide/en/cloud-enterprise/current" + eck-ref: "https://www.elastic.co/guide/en/cloud-on-k8s/current" + ess-leadin: "You can run Elasticsearch on your own hardware or use our hosted Elasticsearch Service that is available on AWS, GCP, and Azure. https://cloud.elastic.co/registration{ess-utm-params}[Try the Elasticsearch Service for free]." + ess-leadin-short: "Our hosted Elasticsearch Service is available on AWS, GCP, and Azure, and you can https://cloud.elastic.co/registration{ess-utm-params}[try it for free]." + ess-icon: "image:https://doc-icons.s3.us-east-2.amazonaws.com/logo_cloud.svg[link=\"https://cloud.elastic.co/registration%7Bess-utm-params%7D/", title=\"Supported on Elasticsearch Service\"]" + ece-icon: "image:https://doc-icons.s3.us-east-2.amazonaws.com/logo_cloud_ece.svg[link=\"https://cloud.elastic.co/registration%7Bess-utm-params%7D/", title=\"Supported on Elastic Cloud Enterprise\"]" + cloud-only: "This feature is designed for indirect use by https://cloud.elastic.co/registration{ess-utm-params}[Elasticsearch Service], https://www.elastic.co/guide/en/cloud-enterprise/{ece-version-link}[Elastic Cloud Enterprise], and https://www.elastic.co/guide/en/cloud-on-k8s/current[Elastic Cloud on Kubernetes]. Direct use is not supported." + ess-setting-change: "image:https://doc-icons.s3.us-east-2.amazonaws.com/logo_cloud.svg[link=\"{ess-trial}\", title=\"Supported on {ess}\"] indicates a change to a supported https://www.elastic.co/guide/en/cloud/current/ec-add-user-settings.html[user setting] for Elasticsearch Service." + ess-skip-section: "If you use Elasticsearch Service, skip this section. Elasticsearch Service handles these changes for you." + api-cloud: "https://www.elastic.co/docs/api/doc/cloud" + api-ece: "https://www.elastic.co/docs/api/doc/cloud-enterprise" + api-kibana-serverless: "https://www.elastic.co/docs/api/doc/serverless" + es-feature-flag: "This feature is in development and not yet available for use. This documentation is provided for informational purposes only." + es-ref-dir: "'{{elasticsearch-root}}/docs/reference'" + apm-app: "APM app" + uptime-app: "Uptime app" + synthetics-app: "Synthetics app" + logs-app: "Logs app" + metrics-app: "Metrics app" + infrastructure-app: "Infrastructure app" + siem-app: "SIEM app" + security-app: "Elastic Security app" + ml-app: "Machine Learning" + dev-tools-app: "Dev Tools" + ingest-manager-app: "Ingest Manager" + stack-manage-app: "Stack Management" + stack-monitor-app: "Stack Monitoring" + alerts-ui: "Alerts and Actions" + rules-ui: "Rules" + rac-ui: "Rules and Connectors" + connectors-ui: "Connectors" + connectors-feature: "Actions and Connectors" + stack-rules-feature: "Stack Rules" + user-experience: "User Experience" + ems: "Elastic Maps Service" + ems-init: "EMS" + hosted-ems: "Elastic Maps Server" + ipm-app: "Index Pattern Management" + ingest-pipelines: "ingest pipelines" + ingest-pipelines-app: "Ingest Pipelines" + ingest-pipelines-cap: "Ingest pipelines" + ls-pipelines: "Logstash pipelines" + ls-pipelines-app: "Logstash Pipelines" + maint-windows: "maintenance windows" + maint-windows-app: "Maintenance Windows" + maint-windows-cap: "Maintenance windows" + custom-roles-app: "Custom Roles" + data-source: "data view" + data-sources: "data views" + data-source-caps: "Data View" + data-sources-caps: "Data Views" + data-source-cap: "Data view" + data-sources-cap: "Data views" + project-settings: "Project settings" + manage-app: "Management" + index-manage-app: "Index Management" + data-views-app: "Data Views" + rules-app: "Rules" + saved-objects-app: "Saved Objects" + tags-app: "Tags" + api-keys-app: "API keys" + transforms-app: "Transforms" + connectors-app: "Connectors" + files-app: "Files" + reports-app: "Reports" + maps-app: "Maps" + alerts-app: "Alerts" + crawler: "Enterprise Search web crawler" + ents: "Enterprise Search" + app-search-crawler: "App Search web crawler" + agent: "Elastic Agent" + agents: "Elastic Agents" + fleet: "Fleet" + fleet-server: "Fleet Server" + integrations-server: "Integrations Server" + ingest-manager: "Ingest Manager" + ingest-management: "ingest management" + package-manager: "Elastic Package Manager" + integrations: "Integrations" + package-registry: "Elastic Package Registry" + artifact-registry: "Elastic Artifact Registry" + aws: "AWS" + stack: "Elastic Stack" + xpack: "X-Pack" + es: "Elasticsearch" + kib: "Kibana" + esms: "Elastic Stack Monitoring Service" + esms-init: "ESMS" + ls: "Logstash" + beats: "Beats" + auditbeat: "Auditbeat" + filebeat: "Filebeat" + heartbeat: "Heartbeat" + metricbeat: "Metricbeat" + packetbeat: "Packetbeat" + winlogbeat: "Winlogbeat" + functionbeat: "Functionbeat" + journalbeat: "Journalbeat" + es-sql: "Elasticsearch SQL" + esql: "ES|QL" + elastic-agent: "Elastic Agent" + k8s: "Kubernetes" + log-driver-long: "Elastic Logging Plugin for Docker" + security: "X-Pack security" + security-features: "security features" + operator-feature: "operator privileges feature" + es-security-features: "Elasticsearch security features" + stack-security-features: "Elastic Stack security features" + endpoint-sec: "Endpoint Security" + endpoint-cloud-sec: "Endpoint and Cloud Security" + elastic-defend: "Elastic Defend" + elastic-sec: "Elastic Security" + elastic-endpoint: "Elastic Endpoint" + swimlane: "Swimlane" + sn: "ServiceNow" + sn-itsm: "ServiceNow ITSM" + sn-itom: "ServiceNow ITOM" + sn-sir: "ServiceNow SecOps" + jira: "Jira" + ibm-r: "IBM Resilient" + webhook: "Webhook" + webhook-cm: "Webhook - Case Management" + opsgenie: "Opsgenie" + bedrock: "Amazon Bedrock" + gemini: "Google Gemini" + hive: "TheHive" + monitoring: "X-Pack monitoring" + monitor-features: "monitoring features" + stack-monitor-features: "Elastic Stack monitoring features" + watcher: "Watcher" + alert-features: "alerting features" + reporting: "X-Pack reporting" + report-features: "reporting features" + graph: "X-Pack graph" + graph-features: "graph analytics features" + searchprofiler: "Search Profiler" + xpackml: "X-Pack machine learning" + ml: "machine learning" + ml-cap: "Machine learning" + ml-init: "ML" + ml-features: "machine learning features" + stack-ml-features: "Elastic Stack machine learning features" + ccr: "cross-cluster replication" + ccr-cap: "Cross-cluster replication" + ccr-init: "CCR" + ccs: "cross-cluster search" + ccs-cap: "Cross-cluster search" + ccs-init: "CCS" + ilm: "index lifecycle management" + ilm-cap: "Index lifecycle management" + ilm-init: "ILM" + dlm: "data lifecycle management" + dlm-cap: "Data lifecycle management" + dlm-init: "DLM" + search-snap: "searchable snapshot" + search-snaps: "searchable snapshots" + search-snaps-cap: "Searchable snapshots" + slm: "snapshot lifecycle management" + slm-cap: "Snapshot lifecycle management" + slm-init: "SLM" + rollup-features: "data rollup features" + ipm: "index pattern management" + ipm-cap: "Index pattern" + rollup: "rollup" + rollup-cap: "Rollup" + rollups: "rollups" + rollups-cap: "Rollups" + rollup-job: "rollup job" + rollup-jobs: "rollup jobs" + rollup-jobs-cap: "Rollup jobs" + dfeed: "datafeed" + dfeeds: "datafeeds" + dfeed-cap: "Datafeed" + dfeeds-cap: "Datafeeds" + ml-jobs: "machine learning jobs" + ml-jobs-cap: "Machine learning jobs" + anomaly-detect: "anomaly detection" + anomaly-detect-cap: "Anomaly detection" + anomaly-job: "anomaly detection job" + anomaly-jobs: "anomaly detection jobs" + anomaly-jobs-cap: "Anomaly detection jobs" + dataframe: "data frame" + dataframes: "data frames" + dataframe-cap: "Data frame" + dataframes-cap: "Data frames" + watcher-transform: "payload transform" + watcher-transforms: "payload transforms" + watcher-transform-cap: "Payload transform" + watcher-transforms-cap: "Payload transforms" + transform: "transform" + transforms: "transforms" + transform-cap: "Transform" + transforms-cap: "Transforms" + dataframe-transform: "transform" + dataframe-transform-cap: "Transform" + dataframe-transforms: "transforms" + dataframe-transforms-cap: "Transforms" + dfanalytics-cap: "Data frame analytics" + dfanalytics: "data frame analytics" + dataframe-analytics-config: "'{dataframe} analytics config'" + dfanalytics-job: "'{dataframe} analytics job'" + dfanalytics-jobs: "'{dataframe} analytics jobs'" + dfanalytics-jobs-cap: "'{dataframe-cap} analytics jobs'" + cdataframe: "continuous data frame" + cdataframes: "continuous data frames" + cdataframe-cap: "Continuous data frame" + cdataframes-cap: "Continuous data frames" + cdataframe-transform: "continuous transform" + cdataframe-transforms: "continuous transforms" + cdataframe-transforms-cap: "Continuous transforms" + ctransform: "continuous transform" + ctransform-cap: "Continuous transform" + ctransforms: "continuous transforms" + ctransforms-cap: "Continuous transforms" + oldetection: "outlier detection" + oldetection-cap: "Outlier detection" + olscore: "outlier score" + olscores: "outlier scores" + fiscore: "feature influence score" + evaluatedf-api: "evaluate {dataframe} analytics API" + evaluatedf-api-cap: "Evaluate {dataframe} analytics API" + binarysc: "binary soft classification" + binarysc-cap: "Binary soft classification" + regression: "regression" + regression-cap: "Regression" + reganalysis: "regression analysis" + reganalysis-cap: "Regression analysis" + depvar: "dependent variable" + feature-var: "feature variable" + feature-vars: "feature variables" + feature-vars-cap: "Feature variables" + classification: "classification" + classification-cap: "Classification" + classanalysis: "classification analysis" + classanalysis-cap: "Classification analysis" + infer-cap: "Inference" + infer: "inference" + lang-ident-cap: "Language identification" + lang-ident: "language identification" + data-viz: "Data Visualizer" + file-data-viz: "File Data Visualizer" + feat-imp: "feature importance" + feat-imp-cap: "Feature importance" + nlp: "natural language processing" + nlp-cap: "Natural language processing" + apm-agent: "APM agent" + apm-go-agent: "Elastic APM Go agent" + apm-go-agents: "Elastic APM Go agents" + apm-ios-agent: "Elastic APM iOS agent" + apm-ios-agents: "Elastic APM iOS agents" + apm-java-agent: "Elastic APM Java agent" + apm-java-agents: "Elastic APM Java agents" + apm-dotnet-agent: "Elastic APM .NET agent" + apm-dotnet-agents: "Elastic APM .NET agents" + apm-node-agent: "Elastic APM Node.js agent" + apm-node-agents: "Elastic APM Node.js agents" + apm-php-agent: "Elastic APM PHP agent" + apm-php-agents: "Elastic APM PHP agents" + apm-py-agent: "Elastic APM Python agent" + apm-py-agents: "Elastic APM Python agents" + apm-ruby-agent: "Elastic APM Ruby agent" + apm-ruby-agents: "Elastic APM Ruby agents" + apm-rum-agent: "Elastic APM Real User Monitoring (RUM) JavaScript agent" + apm-rum-agents: "Elastic APM RUM JavaScript agents" + apm-lambda-ext: "Elastic APM AWS Lambda extension" + project-monitors: "project monitors" + project-monitors-cap: "Project monitors" + private-location: "Private Location" + private-locations: "Private Locations" + pwd: "YOUR_PASSWORD" + esh: "ES-Hadoop" + default-dist: "default distribution" + oss-dist: "OSS-only distribution" + observability: "Observability" + api-request-title: "Request" + api-prereq-title: "Prerequisites" + api-description-title: "Description" + api-path-parms-title: "Path parameters" + api-query-parms-title: "Query parameters" + api-request-body-title: "Request body" + api-response-codes-title: "Response codes" + api-response-body-title: "Response body" + api-example-title: "Example" + api-examples-title: "Examples" + api-definitions-title: "Properties" + multi-arg: "†footnoteref:[multi-arg,This parameter accepts multiple arguments.]" + multi-arg-ref: "†footnoteref:[multi-arg]" + yes-icon: "image:https://doc-icons.s3.us-east-2.amazonaws.com/icon-yes.png[Yes,20,15]" + no-icon: "image:https://doc-icons.s3.us-east-2.amazonaws.com/icon-no.png[No,20,15]" + es-repo: "https://github.com/elastic/elasticsearch/" + es-issue: "https://github.com/elastic/elasticsearch/issues/" + es-pull: "https://github.com/elastic/elasticsearch/pull/" + es-commit: "https://github.com/elastic/elasticsearch/commit/" + kib-repo: "https://github.com/elastic/kibana/" + kib-issue: "https://github.com/elastic/kibana/issues/" + kibana-issue: "'{kib-repo}issues/'" + kib-pull: "https://github.com/elastic/kibana/pull/" + kibana-pull: "'{kib-repo}pull/'" + kib-commit: "https://github.com/elastic/kibana/commit/" + ml-repo: "https://github.com/elastic/ml-cpp/" + ml-issue: "https://github.com/elastic/ml-cpp/issues/" + ml-pull: "https://github.com/elastic/ml-cpp/pull/" + ml-commit: "https://github.com/elastic/ml-cpp/commit/" + apm-repo: "https://github.com/elastic/apm-server/" + apm-issue: "https://github.com/elastic/apm-server/issues/" + apm-pull: "https://github.com/elastic/apm-server/pull/" + kibana-blob: "https://github.com/elastic/kibana/blob/current/" + apm-get-started-ref: "https://www.elastic.co/guide/en/apm/get-started/current" + apm-server-ref: "https://www.elastic.co/guide/en/apm/server/current" + apm-server-ref-v: "https://www.elastic.co/guide/en/apm/server/current" + apm-server-ref-m: "https://www.elastic.co/guide/en/apm/server/master" + apm-server-ref-62: "https://www.elastic.co/guide/en/apm/server/6.2" + apm-server-ref-64: "https://www.elastic.co/guide/en/apm/server/6.4" + apm-server-ref-70: "https://www.elastic.co/guide/en/apm/server/7.0" + apm-overview-ref-v: "https://www.elastic.co/guide/en/apm/get-started/current" + apm-overview-ref-70: "https://www.elastic.co/guide/en/apm/get-started/7.0" + apm-overview-ref-m: "https://www.elastic.co/guide/en/apm/get-started/master" + infra-guide: "https://www.elastic.co/guide/en/infrastructure/guide/current" + a-data-source: "a data view" + icon-bug: "pass:[]" + icon-checkInCircleFilled: "pass:[]" + icon-warningFilled: "pass:[]" diff --git a/docs/dsl.asciidoc b/docs/dsl.asciidoc deleted file mode 100644 index 922624a4fa..0000000000 --- a/docs/dsl.asciidoc +++ /dev/null @@ -1,6 +0,0 @@ -[[dsl]] -=== Elasticsearch DSL - -The https://github.com/elastic/elasticsearch-dsl-ruby[elasticsearch-dsl] gem provides a Ruby API for the https://www.elasticsearch.com/guide/en/elasticsearch/reference/current/query-dsl.html[Elasticsearch Query DSL]. The library allows to programmatically build complex search definitions for {es} in Ruby, which are translated to Hashes, and ultimately, JSON, the language of {es}. - -See https://github.com/elastic/elasticsearch-dsl-ruby#elasticsearchdsl[the README] for more information. diff --git a/docs/ecs.asciidoc b/docs/ecs.asciidoc deleted file mode 100644 index 218708038b..0000000000 --- a/docs/ecs.asciidoc +++ /dev/null @@ -1,34 +0,0 @@ -[[ecs]] -=== Elastic Common Schema (ECS) - -The https://www.elastic.co/guide/en/ecs/current/ecs-reference.html[Elastic Common Schema (ECS)] is an open source format that defines a common set of fields to be used when storing event data like logs in Elasticsearch. - -You can use the library https://github.com/elastic/ecs-logging-ruby[ecs-logging] which is a set of libraries that enables you to transform your application logs to structured logs that comply with the ECS format. - -Add this line to your application's Gemfile: - -[source,ruby] ------------------------------------- -gem 'ecs-logging' ------------------------------------- - -Then execute `bundle install`. Or install from the command line yourself: - -[source,ruby] ------------------------------------- -$ gem install ecs-logging ------------------------------------- - -Then configure the client to use the logger: -[source,ruby] ------------------------------------- -require 'ecs_logging/logger' -require 'elasticsearch' - -logger = EcsLogging::Logger.new($stdout) -client = Elasticsearch::Client.new(logger: logger) -> client.info -{"@timestamp":"2022-07-12T05:31:18.590Z","log.level":"INFO","message":"GET http://localhost:9200/ [status:200, request:0.009s, query:n/a]","ecs.version":"1.4.0"}... ------------------------------------- - -See https://www.elastic.co/guide/en/ecs-logging/ruby/current/index.html[ECS Logging Ruby Reference] for more information on how to configure the logger. diff --git a/docs/examples/apm/screenshot.jpg b/docs/examples/apm/screenshot.jpg deleted file mode 100644 index 6ba778dfb5d651ce72fafa085953dab3087bad71..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 324480 zcmeEv1wd3;_xJ!Rq0*tGqJoHkNHn09I``gl<`oPMCw5bh5j(Pk)o)}Ug ziZmZp822a8jU7zLD&Jc-PS)lJJ8>6228pdU(~QVZAgBr)v{GlnhX|Ua#4no@uh|e4 zM+B;uTw_nbzaK6!OWGiMEu&CXxL;`yVKG3_HzHh);oDWuEA4wRa?U(Pl^dKB9(T)v zS)W=pL-Wq7X*_Pgc>Y#65fRWXaJ}#be~?NcYqOaTd?>Lq#baKa99BOyoO@xKPm5@s zi5}LTqU$ver+SE>iu=Hh$mOV9H>Zc~u#hD<}f~zs2m$2)1YUwo82xCD~kbnZ|~=TSd4jbUK!@q)F<$)Eq>bBRBu0Qby=g!#82m z){yw*SAVNCAW$cBIqjs9H*NbIyC+aI-lSJ~j0u805BNsTqHb$RtnSV^o2KYg?YbQ? z1wiKF-%R#fab&fgLrKxK76&M3Qg5f9AanLFrgEA91fpNkczW*JocuHKUfE=KkZ_Tm z;6J18TPEK zoc9iG^B!?WdRf3`$e}8nOy?DdTJ>c-KQr-6LDlfEIHzfA$A(f?dya)wb?1A2MPfgi z2vzwNdZQUXQmvqwsiNdG7U;aAfz7S>qi6KbG)*h5Nnp#I5nvGf&)oe1M*A}NSi{Bx$z+5Xf4cy~gOKx# z1!{)SYgzAnx((mzh?p9)h2VdYLlcHv7@0Ju8Ebz=J64IVMHI@1YtyJ?S6c5<*f~li zwkm*!kPWAhC9!sr_bc$5-lc7`+}YI&1i0St%{^l%lS%N7?h9Hlgs?wZpz;@QEonO;`T z8-XAqr{} z8U^A#QN#S@jKh@GkJ_R_*P^s7Ab(&zUrKujpVE32I)tCid>FG{DT->A<^ zTbxiPNzSqTnC26p@26aylz>Pqg#a!> zAYwD9!}--r>DE2t5Cbu$_HEht8W~rs#FJOlE?4z>zZ%)u6Z@SV{6uW_fXI=;Q*0w7!@q+vZ$| zscw!25kq6ocFPR^g~?Ud)~;zVUox%la8<`pmLLel2S+_sFYQaNe+;2KE*1oxz;FEn zF5|FT{-8}j27Mh0d;?%;zaKY5JqUu^dFG^36!ZH2!zah=hat#Po0jvU% zc!W&O>_y}pq|InQtu4m*kT95ApN~T^;Mpi!PdhB9H0H&}H@Zg7p4S_RFK0-;)>rtEM^1_~+mgw2x1|0$9%y6F&J$qILj?0=*xE z3iNw4O#355$|LZf1Ba{FC+av^h-lER-OYhDFkP05z!x1im$I$H53Dp7Kk7^8A}`ebG5E} zF`WeGj`NvM%n-L1hdyOnrxASK`_~Hh18(-ZeHRy{X?^)#AW7#6f|5y;X4{G0P<6`K zO9uC;qPZxg@QzsB28fCx$|ehrFurc(S2!r*R56cE$3DRz(XV9_b8+mJw5dX9nafFf z_a7womq?#;_LqeIG&9iN^5-;?{+4t6!^DsVl`113n=#dk^h!D1B=`Fvy55xIy&p>c zWul3vATU2Z3#Tyozkhx_Qg~iANmlnG@xKG&oF9MN3yf8lX^wC2RTA7^wNv6oy-c-9 zQU^kx&*RWT)4rNuC;U$(i-Oht6gdyJz{c09#8U4fJ%CMN>Ee(Hu5udN6%`BERHw)3 zIRx$L&xJd6>A4KBZvKbDdDZ-Lz`Qk?TQln@Ve1XJH&}^X(^;5T&d+0bgFnvHOEJNn49mGp@`g)HF81tb;lv-KR}uyd z5Q9*@StRc@(sF*|g`oUS3VOtY%BhjbEnOGM3G66myRo7Zc4O<1C9LgK9?K|*^kdk| zG4t4HH~wv?CFkkHnTBNA4oy(w zAVJ)072Gc?;X@&m$N4@(N0xbqgkJ&<>VFKR-S$Zt11g?~qCCNi=BIiUi zw49ZrXKM;4r`xPp?sCLcNMB_^I*6cu#lYUfMm@M(Xqm*3yLh**X9y+??+>`HXMrR;;szjC(fU)~LyKq$b= zIb)+~$FeBE`~@MVDXFZ=xAXoR72!o6kg%|}Uh;j=F|Hu(Q5VtceW$^#y7xIQf{y9-`JaEN)2vq0 z<^GF_BgJkO-5314_$0mmMG@e={|gqg*OO2(R1VWYBQQCE-$-jM{t(PwV^Rz3dQ5Ao zUZ|bB_zYk{ktSg54mzFwO#G1lR{&I^Olpv+A67nLy%0WfGQ1Yr00Q}cUcUgVh5hlz zNz$r+N{(caUX#|yWq@Y_AAKrAYwo4)t0{Y8yK;j;y?7w?%@$LuWKLt{qN(AM%&>X; z`CrM=q0B*VwJd&J7 z4;zsyVzn^iknqdE@!*76?pGd04ep<}Vvnf$_Y>o{BF+gfth}gOL|oRdq%Uoh=@6R4 zL)|fSk?WR9OB*3t}>{-${(d`iAv!wHd4Wug%YpYd*D;)OH?A%@s3HL*{0G_yqv+W_Z6M67yBy zG8ZD-Ww<2&>MQKm5fuEj5tY9G@Gj6W{V$d0A8nSJz)sIos~d2~H-FdzfaP{X9FIi2 z(n3riw<8MWTGD)W+|^#a2OuBEw;jddhM+T21_#L;b5cr82_4+X=?}43BZI+Pqx?aX zL_8DVz=&G+quD#I35PUp?M?eADeciLK1d=;hE74rR_idQOBEy##5J z6`Rs(Q{iSz%sLo}(5aYvg^^C|>FY?D{b1(4-+O_)KQD=btm!&5rCgunDc3isYqOZ8 z2CL@O4(^=cSaqa4>3-R9rADSjt};v@3LND4%R~|cucB8Gj=UGw?RgQrdd!^3C&8q&a-!~T2`W)xk|y*Nm^+!1D#&- z@EhM9vq))|?TibJij_oIy2N^JJ# zBD5lM0tH7xc|q%Bjwy=|s#hjw>5lE1u8qB2MFoLXDRS%9i)|=2YE8{@rT;^GkWoXn zC(Bvk-_(jN%!#)V;6lNk&`of(Oqn+{>vX0^n0mQ!c;;|eMfr4*;mf&~XI@Tpaz3Hs zw#v-yTJm{X(r8WY=y$}v|KmXHuroPBs)Lj$hsm6WXX`7f4U{`42GyqOG%C5aU3WZa zf-)c4j&LnxWj}aqQWXe^sy3o~>3kNtYSWScty1Pl%jxH?;8J@3*7R(W?^p;OrHjg$ z4Y)}jG`LA`f!nga1T#m261&cs$QR)hMjl%ftt)A2OK++wuco2t)o7L@$57?n;p)sL z2jk0ugW;?<`Q>QS?XWiFld?A?q2Pf@y(0DD^k+xDaegb zqfCa7w26*Df=fcQQsm2A;!Zibnz^wVZB#i|t5K!a=H-Tz`VU8%Tytc z(U@oT^*&(h8l6l=YRAqB4dSP$sXL0-yGhi^D+#{WHXsj_V&& ztwiNmhbSKpx=@)0k~xr3mp01sIV|w;*ZU2&sJ`oodif@=B>Y;GfvTSJv$yNZ=El+3 zZt0~pDN(u2QMq1ucUzkiA1Ym`3ha9dDKGRf&1>ojk*2nGaDCfhF`qdQ#04>;O}y%4 zqnwHzgd^g3*GVCFC66gZy;>u5*mW`JWJ8LILal;W$2xCJWU$b{_&fV&D{9cx%=(J2 zX8M@q>B5v1YR8%6?87a}&%Wq`0*+1z!)h=Qe5W#fEtRR$lVoDHbmwxgJ*nU7l;~5M&EOEgaeEgDBl8JBLi-1)e*3K$RF@+VsW)5^wqj#}woeb&Ep-V09rFKzN z(=IV**P_iMZi5E9QWUp)dqQ>c314%E)^RI`HW?N6^au-YrqcIKO=y(oXhsvr@_cZ% z9BJ;wj`pGdxn8e%52P|k3n>3Qw zKzPvJ0AKe#9LlIQ)A<8czi~825Q2==I@ttCdpauTJlASJFGfT18rfz?h4)T?4|D+o z{pVE-GE-TH=wAkoM@4=~ajK@W#2R}Jfhz4xUBiAzkf;_XU&B7|Fosu)w{B3W4;R-lY zy^OO&BxcRr!&X%eHqrJGCbl^B6jEYfv~wkXKQjleEC@8AnG)i@kNZ2%0xQi@_kD-5 zW+F7Fg%^@KHj8usjwn4`C15Mgg6|$7{33XggKf_H^R56mFy$ihP!Pk`{ZQSp#)d5%Zt0BTE%z7^ljs@xq5{Bi{P=h?2Il`Nk_KV zP-M(yp7rZ~IaxUH*ikT6k2L`O7?bnDS$_pEGQDda8i}0IlUH>Ffym9!ch`FEHk%;b zI@EkxGUeWgRWc+6mFRl^&G6{E!tQ`HhQAYYJ~15#Kwp$HR=8YzDIS1NTuTpq=a?Oh zY_?O{3Jj~H)F%2IweEnx9aHLNm8elc5D1jb7Y>2=~UR2G2OJ~1tw#GXL zM6vbQ^=wvW=pFztIvasD+i!XmG_~%4YDt3p?p*2Tb-?}+2!vG{!;vHbz7ALKc@IQy zh?umBzvesjc?(GUT{D>HGV{Zzdh)97xA%_zjfD1{#XlaL4@>xWfbWgU zKBQlExc-iQr0jijU_DzC9$q`EgPhyYrzB=F%^W4bF2t|Zdl1qE@XAzKny#4e<{D%E zK%*=eLNRkKdVVielmtzr8T~8>UAS=f$GhU%0yH~(btmesYZ^a!h z0)D2!$FPpT_}X@~pa zK?;|Tuzw4pUP>gC&MvBbQ}n>IAHtECkcD$8r#Q@L<;hHfRiOd?V--DS57XjqD1qU( zqDSKg8H8uUeGrP=$gPwk)I)Fb2<{I-j8K0$_ToPzeSg z^;~LZ@o!|miBiTsMVglh2rVkK_7-p<4w<)tACJq*Jyg-<$?>Ljf$BuyWU81PCKfy%~kZ6rYaKTupr!40*k_ zm@Bm>1jk{DKt`}Krt~;kf!Pvnz!3w}*vh-g@L-SO=yhS4G0I9AiZ zy+zMGyl|n8Ptgk`XbE5KSCfs?t{YzHOD8IVq;w{f7s9K^1$1U%uL!%ExYX2cUon2( zSIrTNmJLlZ_D;*Ovx5dTg%%e!1hW?uhuA=zo6lrPbWS_1uX26pnd>-yiFt%QE60^W zGzM_q>EGzqcg?grxp&e z)6}~6*%#Qqi@2BH{l}r3e+2gp$nUVayV17$==C1{z!(4@L_-~(^>LzLYH@u&HAiD| zC|Zd(wz*s3GP72uHG)67%6TFRGIgb4j*fxlyF&zm#3I%$=wgj z;|-+kL#BNv3g0h}6%~hW^dPpdIT%%EI~EbEWglSDTcuL=yN{|3$@SGMZDV*f)hpi) zxe3(xC3QL)=|w}7Q^jcG`0>s}>D#8Jb-F6>JIfTv1d>q7WXgEsNl568EcDe)G-(hP zL~XJ38+X@^y&Ev?0ex?7|Gc35ruavqII+$fl`w(dKMDfKPRTo#Hp3ehUq*xnrOO*? zw$4sr&09FiDd=az7)$*!=kj=E)We8-I{GafEO*dd`x~dOn@UT)VBx(U@kmuuOEYk5 z+bybj4mL9d4#+M<5bq>LL$LM3?@CX$l(#sFam7+lMlCy7&Uw$<%#2%3F4)fD=~Q2v zT1B*Qn`AqzSG=nx2%}4pq2i;&M@8Ir=*jcr}l1c zbJ-?;RQt#)-8w5%M;C5>pq~sbK#8f#%T~^=x)`T+z_mDH`WK)o>IlgtD;MD-PW+Kd z0R7ydLz{{dSaQLc<^=|+(|2Cv);R9EAhaYQdz0keGzv8RBKw>lQ3yL~aoKy-fg4zb zQO4dDw}LHd#@-bh5MrJb^6i2$rI?RIH;d;|g)s@aO!co!*3?W4?z**aEQYazP*l|6 zr^>PzT$?oG&-Dany9KSlV>~O_6kFez1BD=^ms3ZaoaY=Yv#GTmuzBm-5M{|_rEl4{ zx}%)hjy66xY~JJOa+xh@PF*mYwtvjK{@EMosKo@rK+LWgzUlh1d&c6-itUz-_x?fd z-f7j*YWOn)1i#ZTf~sxv9N_V*^HmA;86}r9iMbz+6qFbI>cff#vi8)Xk}HHkusb#5 zk0t`j&Ayx-q?Y@6f^hx>!e)v$AE?uP*T2wnFs1#%`4&0)qeVN{DZl(~U}YgNwPF8+ zn@Z?Q#t5zJFAizl{wgQmMzHBAWuRtx`==A%nP$F~IfxStZuP?MAtPvyKUU^I`c^K2 z1%XqODm%A)wBKQzhl4%}vYe*SX(a1+1Im8C{wtM%f&by)3Dt* zQsaQLhoTgQ`gmoJT)h7R1uA z;F3!Y)S)6nt$h{5VR6$PnFUS=8FYGwN+57~$IP$&{Ttc@7$*oVc6I9&1V9fg5+zLTm@Q9Vb&oY*cP)3nzQAv2Nnr8>%lK|xT-nY`W#^t+q_FL zBLdFX{Ipfd7RJfLf@h@$nB>|V$*F_=3eH3gFP@jJ?^bE)>_$}GcV3dL>uY!91%b|e zC}EjI@TC@vJ7Cx^a5xJBt9oYM)R39MbxSLL^F#sXOU7|PGk{nP99zu-2-~o|+TMQ| zV32wHen9i74=x_aI(kLo2=l?5cr$r+qoyBBO*&zRr`FP`+X-oP81|g&*mwzeK)5dk zB34}}0n-JR>GXB$JWRR`jqMQl&KO|7T%SM!6+wFAvNxt5U^_vUrd_ZPUMK)ZO+1WK zOyKoUfI$Mx{_>`i0Zcn3tYBsmgcU23k)s)#+r4^)i#xNdoI6ON1;`fB_EyiTwFH#g zmA``8q}%}k^i+)SxrDIRcD0uF@e3bZb9+}^K09gTp1r!v5vBxRduc~Xw-0h=mGQVZ z*8XsaKatVTA2FL^rs3N_TjqBc&Q2ze&Q~pc7;^NspQDw6YcX}kRB@-9 z1$V5zB2tgxVN#>?=MtdrES{ajbD*UtoUX*iwu3CeD20GBv&naD$JkX4s&B*%nRd4@ znUpOFR9N$S9Vfvt^It*_l4%-VfkQZ|ku|xCy_GY}MS2?r^3hIP&Du364&tx_Z!vr6 zz^+=c5jWyAR5KG3Z&4+X-RDFpEkLEkHswg6oIWYibk}|kFe;mY`Zl|dP%CR4#T8f+ zl)h@1o04*NkwSkYE_r>kc5gWZ0%bmdo=Rb_?REc;dio0S=ejXk^y*6l_AaH?JD7>1 z!z`C0Vnn$qVQeuh=kA-#;1oO2+sjZ>tCgOa9W73*U6(od22{;DHVj#?T_Fv<`p~L? z@?5RfDd)vcp!=e+%F^>6U)MOwG9|c{-X5ElnQn?-`j9a(v#z)uIqn#;FYuAFH5EJIjc+1ttwl) z-|*XgX?k9LRXu+g;f!|RF)jbGp#jcht9|7IQ|P_%M%}Pg7sl%DmDF`TS;&9~Eu)FU zqPb+jhI0ml=Wg%tTu+V7j6zd)^Y$l@vgDE_6mHeK!-TY)^8S)Xn)QP#aC4lO85^aB zoII7GbDh`{irP?v5r1E8^BL`0=Z#GB8Qo_4p&^p&`hfFI(J?cP_QOGv^A;M23RtYN zs7=z<;`P;&6y={lPA#e9bNSO#S>waB3+c^HyQiiKig$35>)rtqu`Awn_N?7m zB{;%bGna(w1HyJ^a0n;8J|;2l{bHkT)M_Q=)WEX+ClFP4X-S;!P>8;UMP5Y~d}qFg zi6C>s9`tATEXZYeV~U4#_AfhqZyy%~@@sJ=nW}Wn?ODAZKFJG_%v;~iwk`oCcf-b^ z>UIZpEeIlpB=L2%(PB>pRg2>)!ZLp(vZmk)6GvwJ8W&ftK>Lt-#X}0aHixxA)rB6e zID!(_=TEb*ZZUg790$1_a}6MUNpki(xN}v}Cf?;s6GgDR6+%r}c^y6k+p2Qvy1j!N z*-H&my=vAfU%3bCb4l}&BM4_}O>@;wy%IKB4(psqHRC$d=`l1v30JeXY%@Epc<4bA zz$FCh4ll2l&Bi!<2see+#&+XrU5I_9+*}Htan7!Uzmv7)ORD%)!9QJJO1v>SKd&!J zLE~1#?btxCfk|?62ts}hlDfX>FoKiO+4j~>U$?>O94K{VBX6naoNTy;pPH)fl_Kdvg4zD1Zrj^*Zwd_J`{mUy%w5ifeZI0WK*9uJ-{AJkG5cXqA z(b*;9X{#jx5Hqj-iN;#4IP~0vb+|1Ugl+t4u58U=0@m3FI)=^1M{8@)Y_AcC~*G-@g8$CDYdZ$7-4*xb99qy4i5=&ea-nE{AwsGa6L5GZ|>{bLDi8Q{xY zE&f;pvq0VFcIS#i%Z*n#NGx1*yhm2^CI?N2<1(QD*UXgT=BXvpl|m|k)O5rr5D9&) ztA-J;<`#}@u$!nQwP(-S53sV)}brdN!pX1Om*HBb+eFHV}m z8MsI}<@J&?Qu9y%bt3KK1UHD=6k!%)Mo2uxB6beUSn73zKvdiM5n#W%1h?p?f?O=X{{aFunVbIsxOpa$*>kH z=Y~XQlXAhLMj(1~7Rw{2mj<1piDG5%5AVAA&20a!GQO?^*RUOioC=ICflXeiFdNV^ z@C}-(BsVr3EN@=|3h8yU zagMQA&~!_TouVk|87$Gd>f5i#a6N4FWoa(g#vB(nT&7AUE-W)_c4FnGA_F)yKi$kO zH5S5P#9seqfWf+1CV4Y(k^X8Clo@KVwh|K^<3(aX3w?(sp`w>$+@ryu7g`iKp&J|G zIKjh5tr>P^q1Ad-YZV4A6sqLTk%>QCu3=D`%McbaVn;5qWUNl}_Nr4*;B-1zy9rEB zFcSpXS47!-0-1imf?OzYlTmaPGcO<+5t~$YaB-NqTcHLg@IS#?ObGO+7p;9W>c$*# zH>R+tqG2nQE^KgEp^r^oZq!)ENebY_hr)})Qe(e4MLs*W^)%29R{#Z$~iA3 zgXfmtyr1@}tE?`nNsJPwbW^?ot5RfoG+jRdb(2wJ&8{zdEwmaNv(XNJ4h$SnJ>odY zagC9?KiPEwt{{#ICXSqJ<{%F;I5$^{fK#^0qz0#&+(l`&v4lV*{cS%^IKr<>m1_=A z+*j&P;WyB9-7>xIlLrw55vfi{S8-4BFfzUZ1sSbWIv1DDIeEgOK74TSTwYLJU`d>Q zGj%%m+91knM{<(Et&vrj@=WynQjOiR9WO;0%}c4NDd%9)?qD^H^(>x_P6lB$d9Ot5 z#IQ6gKJ^|huyJVo;b=(+G|{lru8nyZls1>re8R=mYo;QtB1%_M)p1)6UNq?{+dE%1 z_X;FDIzlQnA{32L;bcDDn%gihG1C8mQc1_coTWN8>dlf*eRayN|Aejf$w!H9q7OD5 z+4Rh!X19Hpm~uLMN6*xDAp2L$Ty-Lop5E-rDILpj(!5ILpaBn4yCry^l+`B?+pIyd zxvN*pl&ef7XtsIIjk&Lt)r}7t;!VbJaYzdB!p@Wt=i*<}3lm1%DX@w8;?x zm|e*G{EcnnpLITT0XkeLeM11|$Gxco`N)O>#(x;AJA3gE2A!zUK3GKHPR$3O(r4kD zoQqG@z6h?D9xzawSeJ#BSrs|UWaYk8#k~c3hIyeD;ZJ9-7ZQ&Ld@hl-6q4B30Fjt$ z9I(l9b)nl;?wICpdUwvyugw6;9bwvYHP5HKyDOVCD2(j>rkX>#yYhT z+re!K%Su5kN4dtD6F{b*6Z*>U7WCGf3Gc2!X5Vydf-si(zpxlHNBqjVQI-l zE2O;Y#g9M1QI!0AprU=sloI&V0d&v)p*8+1w#SAt_uWt5Ys0)p`g=g4unat4`J6G^ zBh|`oV=i$|9|^H^%A1!GUG!N~61)7*C$z^HoD@!b za*Z{yYc@Oz^{1P_$4geddhMDJgw4_dh8W9vho~TtcTsx7paw<_T(o&UNc^ z*30Lt+Ih?+vWl~3CJ~g}zsV@x6`cmKcO-Hy8OCN$m>lQ6k}@z#(_g~&f*dAONr%qI zz}mPQh8E+q0?W-_%$AJo#n!k^Q@F0xZH141HG)93PcyXp>6djVo%aMq3~7nt3&L8R zg!Xpo;bPS14-1W_Y*b2oP@m_>5ND5G&D4I(*%##}pTR)WJqy0)Ma!~~nL|=QtoVXF zUr#lps9MPJuKX*@#{(iFrqKSVeRehZQ_|yEnHMzF&4SH|GG*1+hSV_5&fMs1F$nB> zHpkkkWJeTIDOxH8Q8lF>P~!9Z^)sdY-f_79`K7ab2l~0w{~f^t^x^#SV>ZCy|JmyE zCkjx$w9`*Ge|9{B{<`YX>&5NeU0}&*$sFRT3?Hu>niC6+HI_}iBimHXx3(3Oy*lc| z`*PHV`b~+Sk&a|`yvls1o@q?N98cGZjkCd6RmlP{T`m{8IFCzaXI;rH;M8Mwe=Nyp z%#wNU+w2{B@LbIww@apgeTO+&p_%wKg9|)xm4G4|0~3f0aad-g9hb3kXJD0!v0Z(B zHUcA7c8sq|d2FXTVfWoK-sCkOzhnkFqbA|BD6A@F;wmO;Lz+C6YOD5;V!Q3tQJ3zX zia6zUe(tLF>omMHjdYRJ2KMW|n|D8yFhL*tLT8HFj^^v&^Uv?^x?5@R_VgJu@v$~5 zOR30r;TIG+Cub&i#z&gdJIRVsaCbR65JOGYg@b)U+6Y$r4*hp^fmFyPxmPl5mvQH7gEzuEzs%k zu5bbtGD^c6(Y!J&WTQ5u3@SuLM5Y2#<4S|&O!O>F_z4byZla3$WdnZd#exJ0#-lD- zJ^kg>J@&>e>sDG5PWRo9CcnR0%RBZE^P6ARadof@!7q5Unmb>@Mf{zr{&PYPR{F*S$Q zHyN~Rv!+BWEq8c1)6wjBF~BwbtJ)o5;j_P*@DaH^`;=SMtwc6 zzGnGO44q3&QHyh}GryCOw79Iby)cV2K*8b4hIi{#qy+p}ZCW&5e_aNHI$kBuQ~aD-ZC ze-|+|Kpk4rF8LwFA_W&AT)bC>D9SN#>_ErpqUQ$oGkBd!eS{O*-R?*y1*!c=_~%ET zBgz4Ae4e3-!XNXI8%bN+Gc z#KX&1@n!}0iKH065#Kns51$t@EYGeivhe8#@pHhaxX`5B_X%k8)dDc9g0An?XiywN z)5NsQ9L~cX%ZOkMw0E3%uH=^*OI%o7V?w_x+K2>PASWh?7S#kVO&Hzk<$=O zLt~J3$oT^RO-@yhng0@ot>5MS20%&k1k)y74nKl`o?iDAkLV;zxPPH*+kBee@cx9KT^wEta0678LO_a7AQFOX1*X*-bq`qyE9+`D5A$uWMMoj2gZ>XV|0Q8j^Q zx>ou%<9A{x3a7G(AFQ3*C!ap6F%^91RL+#KSE<+UE?f_t2lh6k4pRE@i_=lV`C~f{ zk%0(*cJ%zgpvVdLzSCjW+tQ?IM)#G~I*2uJ| z`#zb-kaV=iHU;=4e0u@aQ(<nnox$O~wjEerTT|70y{kE}? zLS-kF-sHeexxhg(I$^~fSMsybmE6FM0|$evgIGOB_O9*AB3IW4_MArJHJ=(&n=f|C zKeF-(qyZD48bGG|Gebosj*y1j{z(qMPd6aP*k`vd+T3H?Rf_pDw7M~s~$)dMOZ+6Y!@Z((6@ z4sWDYujRY`qREsvD+5dlZ%l?Y8yDWnE;;zE9zRU@IIDDa`o7}_@DUld6PFfQ`Rt3J z`s&s~k{UZAGp`@o>2HG$t|jIZi1&LeB;g}Eds}n+0-vAzH>&jO1*V)lqv<%5rb2v;o#(!4w{Wp4ZLB-CD zmj7)VgZ1d_{DTfjUQy?&x>aR!rtYZGqTobH$%Cnc$ETx)>Q?-VgN^1>s_#a#L$%(H z#Jk#vbvB~+xVp`_7OZ{(?GJ@NGh85FsBAMdVW^Z5Qh&yP|LFG%GNsAev%z%j=k}!0qQYZT`V1f56%x)K6`PEEu~{DTaVxiR z$0Lx(eUAgBZOrBSqw9m%pcu9GcOA>?HsqQfII@@Y`))!{=9pDuJLURKyDI1Iea*M0 z=!Xw<9_HW5BkzcCxkm369l8MMm;|$BntgiY)iQ3Xt+q<<_jIfTJz3K9qVEUCT~ISG zluW6bdAX-z{oxXCyROcM|8oZC;&rUJ3(^F7z~fM=icuRc)-pMy9@gj(B; zthf0+fln>=0%k}_{P$+aZszxYHIeV|oBF`Mm&kV{{xbTzD_E--^>Ec#lIkIu>m1eUz)~lFU;#P2i_=`gCBQmlQ8NV(o5#}Tnh!==MFSa zTU7Nv{oX>36Sxz>UyvG{GPW?ixs~q7Wmbl8KM?%c3vH@w&Y<1XpP>mhwU+gHxddFh zpf`4*50ueL705nZDqVqNch6f?29|xaDc%w;H-?c}E#y?hiK@~Zq=J?`1+^CcS6T%l zDIU2CdXNyRp6T@e+r!?^+U?KMziYyOR>6<>&~8+a2f4*TA2Kl<$m%dH$8-_n0_%Ya*q1??eiBd3f_Bw&UT5F{U!~EJMcGaFn~X0gK`{oclr5xp}FZJ zXPwk&lP<#vg|re$zlGBELAlI@?(Ury)d!J@c`E*hQd^JsKq&;T!EU~DvXK7Oy7G+^ zZiS~1)Omcl1%`i!~N+TxbI{SK=)k>@|4@%M4e(BNZ-A1spXweG|+?k9Z zE??_#y(`bg78{beQ|{i3(#uU6OPfWPdCp@}0G4|0yE0>;lq4EyF_e%!*?vof<4SZH zR-4g{oIu1lGpSUuO!Oqph4gfh&2l0k=b0i^-UtKn4}FAdTs0jwL^TB;6*e7R&ZmM4 zLe57X>y`AYS<2t)!o)K2LYcLunk{q@@;(!VZz`I5-9Dw3^Y%mj_>fzvE&39PSVGuh z9xZP>R;@}^8XpJgpkc5_oIe7pz`0xBE{+H7E@08}}sr>ILuOgZT6`7XohFTDPf>MGOO;y}t zRl3R3cH?nq=MJmBi>vl3PPlW;B-ORq-#m*ukhif!y$&cc(sqM&L}4 zx9{V&ArGOQjn#~4&c@gecPOe(Je#i~8l^KYsNFWcG#!1r3O_BIobS$4_0*4SA~Vl@ z=SwCn#IE?m*Jj6OFKK!8j@hk)$;BAfIYX-z!q;xK5~hoo#c667c-WhrR`5x)?jypc z9F<}I-DVU^nx#mTsGhb&MixWXq6#llB2DarVs~jI(G4O-OmaK zLt<%@B^b-|O5v&NWe;R`4dTSm4}Z|KWNANvc0&YqgEl`lYzp{1*Mu&!H0TDP<4~Hh zF>Uhmz8~MO2o?`}J>^@x+7Jk(Q z4#RU>;H=r1kU_Wdm?uTYRn+{@Z)9(leX+WJK7qG-IVw$qAc#VU_fjoGdZY^6EkIyp zjp-98!I>aEU(=#DhcT}|nM*>0Sq#UbujuUuDPu1>7&KVU2U{ucb>y9%^W}pc3d6z@ zmQ+S31Cl34<@-ISfGVF8=eWFd>*4$?SD|IJDH8{FXcq^n^Q?s)7rPC&^%~7@=gZX{ z@27QKc}l|0Cr>(AA0uk39zp0}Lme!hCabkHBoW$vBZ@}hP6-~7uX=(|H2*Hk!$+w! z$2KS*2|uarZi}%zD^D(UMO|6D_7iAnJ8bIRj!|N85^Kr;kGh+8iGH54cF#pwAz15T z6YmXfClP$->72KUqFg-=$SQwrJTpE)w6<&)Zs19OhotijL5SKYKQaHgjGUOd`+-!y zv($VPc;|nq{}N?%qzF@pxo1r9?WZ+sv&$A#IAwP{R1&J?vMq41X^Kf?N8d@;eOOPg z5U8<+UWRdJ6Tt^>)OH7VAOBriC+=Sa^oYgKn7u7N5(x zN`#y@eRog;7=5?46_+FMeRibahypnm$5XS z`H0gStF?4lv7kk@F3UMNG{>lD0h~SETM#LCc3wg zr5L7o2;;-J%%{y(;Og~}sx-DsC8X-US?;+4_-u^o)Y9y#ct8($#_y#fv{3i3i}j{Q zVnd%vPs)>Iy3n44Tevi8w^TKxG3BDf8EvDyR6?c4~E6nEXFsu!XYwn(0O1VO4XrrKr zjTLp}j(nPEqLAmRI)}72)DV}-boMG2%AGSOBfCk-j-$pn z7r^-Hk>Mf4;AID!Qj~bleYYCX7SY2Rxi}y(=g-4JnK9y znJx5qz;flC&V2{bp_}wMS4^y{KT_xNOL=r%cwv|(V$r)gCdoc4M}e2Z%tk)DhTSb~ zme%wkBzkYnP?@B$;!-Ph za7Z<4fkMv!vpyH@`>uELnnLX~cgFJjIc+6dgd;v)n_wWq$OgWh!%sM$>oMR;K3gH4 zSLyR%Mvq2|pY9V#uvkfvC|OUOy%CgWeFS8?{F2tR;+w87`sE% z(h57HjcV=NGL~rt18)1V6&tnPXUNE+9d{klltKvfnmQ{g2Q%8xjn_s2W59C^BFqZK zS`%@9`ADJXn&)(3Pt&jezKnB1UYq1NGX=Q-$@=VyLHllv@o3mhy%irJy@!DB)W~+7 zl}iEqGy}^h0P}g#o33JTVe8oxx!NoDjjYd9kcoQH?}?E+q4YjA5D_^J+_yN#mjO95 zY8g`}Q_Wsdn~`!y&*HxK;?@JtgiQZv|1LA8C*xIESzQ?m1)6EKxeBGPBmHNO8_rpm zGm-GAS_JYtG@2UwUX*{nL{dI+(@%Zrxue*bu88=q%@WZ&noKtGvVm1vGwV8^#+0*P!zX*FWw<>s{Yq+|fF+d`MuZ*|o94L^Z~Qs&JMbhuZ@B}Kv%EgG-(Gf3|q50(!cIU#X}WYbmX znZ0Geb>FS$Sc67!_#I>^9lyVk!Z`K7dNuRo0&%+f2kz8kQo)P?HP67^X2gk=!l@|{ z^J`egxi+iEGHkF?6=>Y*mqb-aZth0wN0IXWMosCUFvF7>CTcTk`D|7_7$f5i$|SLTQ{BaVQ#7B*{kRjMc8N<nQ?6cfypy>MT`9XL$9v2@2*y zY-2`qu0+VjZqEjo6=^t@;h$Ejy#1liOg8KGgo1sCwYT%V2?^Y+JG11Mudw+hvvrOd zHG3$u7@)sZ4(1P9C(|O?=?gA@GYRc%Dq$;X} z%N%p6LOOa*J~H&=LHSb+U*lHhq!_{kbEzez2^toFejE5;(jw80%K4EBCqTq-wst4>dr@bY+xPCnvv zXmb@Ub^a_KMaskTFFJi5oy~WR>>qP*lVkh923vVi=XsS`+was}of_gZKZ~sHSED9@ zmMnE?Q-YTWwl4)C_hswb)4#V1{WSW&*n11OsJ`xB7!@T1loDxa7(%*3x`vvdLz=V_WXf2Y}vY(+Keo*em|YGKJVO9L^`QkX@0>NmSNm6BPkqggrLI40eUlbcu%nDoL}SFEg*=)G%bB z(bD!^7p2R^I1(UKCOolvO9&LvBP6&`JcT4COHjO+N0OztYWD{g4wy0uY{K!L%nW~^ z1VtYPc?l_U<0e4w5#DPiL<&hWF9oh|LeqJm9i@gRCX?YSyvqR&EAp&)T$ z@j_JE@{m1&ft4CmCG+vidh&Lb%NI?~)vU}Sc}X3GKRc?Z6|zYll`ZoYwsZ;^z##)$ zPb?0XJ}P$|LeNLi6ez5>`=WplCG?zb@%rKa7|C%!4DK}=+=CQCpk%_ zb?2i)WEp6oObWaNOIiyC)$a*tzfnDE zS-h0sFR=6I2x+DN$h=!?a>r1ay#b%J9y2I&Di!1 z7+UQ)hUYvp6RTH~q40r`iY6hbs?h&*RWxvtOGX>weTtEc$g!LZBh)ScMT(*!Wvn^f z^~~rAU;t?_NRk5NKb#m=s4L8JE9G|znbMnRI?(Vz-I_a=zpsKsBf?3$NH1fM!oyk- z_5y`MokI3Ti6Dw=Ub)*Kup`!StQRse_#IQLgRt^~H5{TXf35 z$jPy*CNYgKyZ;v%Ox*zl-LCPa9)X8ScF|TfVVtnMaD|3~WO7z3vE8Jx!pp3E>KAd_ z6MPKK+!G7BWRj-^>1W>3q|%|#C($6?l(ZSE38UzS9QD3EV_$-#dug|Oyxv(i@r@na zF0P-VDbC8JqLI(D_<>~$kdyG}3RH*FgR{)2Hncb@F`~Am+)IC}deRcr3ymwI)fN9c z)qu&LeI0P)Dtld608v-3B;{647$kgST037fprABk-mi%YuqstX=$z1{u0*IJ>lT;y zP*Km=S48?Z9eX+RN^v-x^6wV!FfApEH4S_Xmv2>m5FKiJYYv+RrRZ2Qlqzicw18j7 zBTa-PmOw$z*Xpr4g5x3cv^C$17aP9ey)jzY10+bv=W`8$wF7BDCr%Tq*K8Ja9V$(S-VB zJGC`6pja4(WUeoP$b7aZ065j320C|c0yf^Wxvo|pTe|m&QHOImnWHK4YeP7T5OZi0 zZuGbli=|>Q;S6!7muO|uR{4>5%upyYH5X)EfA@8bvX7kHy)@GIm1UXMjkXAyjip|Z zXy&3phh-)f_k^$KMH4=8%!hqzrGyN|u?l(5&R#rOeqEz9hxB@=Zo{i#!5Dj6J(RGk z2xGWNQXuiKN^O;HEYlARxQ{x_idmW0nCNItPVpkNKSeeQ^jR zBns~ucfVDfRU;li;igM_;=&9=Zsy4ktQRVu5U)gvB#C?*h;QV3kMq6UwwR3yO{r8u z2v8@(w~b?oVNW1g{H%*TPwI+r3KXq`Bi+g8>8+C9ee!jkcEh1P!TK<%(KzxOz)nxBhnzdNwiygIyugHVTlp9W-vW0QA!pqDkT_=J+!Hf_ai+8V&K&XmzqQa*Q%9cj%{ zY^S$d$%qPz0m}#Q7JYA22pe_u+eV^^A6R`z>37;dwYX7Qg}$g3#{^BVc_zvUSy{rN zJN|;9MMVy_LIH`J7LOSYRc46*rC0XNI%PVn$rYR#`!+q4j;*!xZi*wMFu+4u2u;N9 zPBBj_We@DkxpCap+7{PMc?X5YQlF2UT5q+1D^~n z574|X(;XQeVH`Q4n%$sv-dFIFmy2n{{NuHN2jb;?MEv{iUZM3IC*dyc#;i27D0U5L z{u>ihbX)>6w9PJIV}>_*AZ~P=ajkSEJpt!jd~`R6p~GhmcS<9czbFJM7v(;k)sfNeG*U8HI42u@yF^CU+Z2rtuGB%@V|Eu?^ZI zEX;7;1|k6^B5X@sC+@r6naRd>D$(|wQR&^uCYB z)K%@Xe}XD)F59AX2;twL3S05$XXGA>Fnq@CrkL`>=uKC-C+$fse%rir@&U@4eq=#B z#cC;<=q(LHg|93KFjTElwu0^09%IMsemd$XU-ZkKJwXhP+jGnE)BLoFCp+XSW*8&% zweb5hTetv;Al5fXtq^=dMdJM3RV6~1@EJemO6tN1CKa?k|NBxUHk7gYxex}jow)dY zp87=!5P&}q7!W7_2blZo6P=BSdoCCg$HleMg|S8_5Q0Biqu!~ZpUblK!s>y=X^{Djvl zEkn0fF?MzMN@gprX5!Jq1x^eAe`6z|Gltv|HO1~%4Wn5X2GQqEc%{hR`W{}d4~NXT z7EKt$kb7_^qG_Q8aThE6GNwFjzJ*=fsK@m34X>8YW~W+aPR7 zd1?hDI!MjP23i<_5qi$X?=iTwScmyzS<<qBG_6eIhoLH z%DotrdQcj=Cx#ZeX=fA2-5(1?a37t-$r>&LUo?(QP!dNAh>x~P;?F6FkX{pno7*8kWS+9oOz`sRCz}mD~bnlOQQp zp*x|Q*-jjVao%h*kdyG>zTJPdBPBaP+I z|H&$Nf=GIWl>e-E_mfyFxMvqC-qylQurvT0=2>WsGxP@z(28y1Xhb??vu~voQs;vn z!1X<+;b!QG)jQZ#sDyVAz-cRtLA8El58P0hBZx=sVmDq6k9#RWrpEH>k4oO{7`dWl;p5P=H zxAuTKr3em&Z_9L=9BECGtdx-HXZsV$UU2F#2%dg{GF)g483{D|urCarIQ(?&PLr>U z6v*^-oL;dY1fa`2tmD3CCStjaRj-nfu4sE#D;?_83q#3S>ubC(g(y>!3jHN_=!7)E zwI%c?3&_LBBV~KytVLY1>6()oi5;?W#GA-L?l(xtW(7~(H|z%O)!^GclQIy!A6TRH z^UR=is^Wp|doIKu%$zyN#iO&0S&!a_b}UtN%jyOm3KZB3uD%G643_y96yoW9?VR_Vg5$_VFhL`^q1Q*GLbwZ z7RAXKcn0BkC~#fShbZx;PMUh?if-wsK6~B9EA2_v+cz$q;f?et4vpOlIs3GC)i0wwH|npC#Ro)|54z}NZxqWpzIFuO0hz0KK{hJs z9U>Yp_^P5)s^?I1w68Ia-JcJk@Z#BL$fel|W&!|-XEbVuCqMuD><)c6f@8x@?7d61 z*lMMsD&GRs0B`j_2Ybs`u?2#Uf_T=7HKK%ii`qcy_)rZF(Mhs?{r?<7h{x$q7k4Ks zv8vD;^*A9dc`dP=Csu}Lj$n>HY7XD%zDctAgK6b zm%!$^(l4#}6EK~GHnT>5jQh#F@gyFk%_`^?h~Bg>iNOk3Uo4mUTY&&qOWN#-wVFMd zH@&kuf3Xl=WKCw~+dR1_?$W)XGh89jNkK6d&8YxicQTLD5ma|^5=4`2xq@VCj8P4U z)V3$y0tR(g;r%}KbHxC{a8CZ-0*06O>?e<5YB{`x<91H8toiy`bETf5eq_1#%~bfU z7@7SvbXr6WKF{t3{{Ws8vKD3zvOjPe3v_ggb}Ua>%Lk<>{kaQW zD|OPVjQY;%fJm~%FQXCvwgwgT*hw5cPezUFP%GN>yN#*Fq13nO*BC&6;0rmYL!ju5xZOKmO2(I)J<@b zeB`NsXjnu58Kb)R%LXi3*z{89s&@bM=gD-j1<&t(@*owog&*>0o*}kQQj)$x6C5*i zn_oLhv!xeJa2^>7`Zen^ejUrmJ$llX?O!1rxgfR)CYK9J!7i=aIue_S9Rut@mw#Z* zqBmh5&{26=-EK0<-JlMM7=h#2j|9C_`J&Ig?z;GX3}%W+4@I@zddBn`D&|IJGQhO& zpSkVAnx(sxUS^XuKzK_K?^%G*=|uBa@M;5Q?cdLN-L1v1Kn1<1)*U(xO5}x@LUOYT zu!qb7aaPGlPJc4+{qBTzCh&got^4SQ1IaQ+G$7G1LxCrz;^_r_mu&ZB=v#P3Swu^6(mQMA7(;Jvl6ZARR#HLSawtoX^1arXfr1^8vdYF2 zwF(HBj7`+fQUe5_eV^C=59}qf_weRN(4doOS{4d5>%_F;pWI%0*3NRj!Qmyk&fRwy zp@b|U2e62qDq_^szBl!qwt*_bJ^@jmBWE`Y4YKJDB)a90LYKXUR2Q`e(W4N&ZxKm!>a9BbP8BgMO_CBJZuP_jNGD5sC)em z(s)0jYZz=)P$~pSNTw`x?0pF?Xd8^dgc{w(Ig-?7?yluZ3cdDs8aqBJ)p&LW5I%y+L-9&RBtA5R-J6 zY-V%y1%T>oXfOT3PWuPe=9CReawguPt56z&iSs6;UnA>yd-f6WaJSqYgFEy(y~00V zvFTrM{=-jJ55VVz%?E)!A#p540S|L(OAz+O>ZWQwYzwTEQB3wC90N5Jci2eVZ= zGAtu0^;?K?z{iKnK}K#1t3R;3tI75z!yFE%OC&P$peFD$^)!Xmo6j@urI1gsJ`dgt zC}SJTQIY9i)q~dcvBV*nC3Vuj4yay$kz3a1Q*yik6Q3=**yRwrNubvH)9s zdGrTHfToRQ{=iyAp~-!!!MUnn#J^fD_^IR7FNw*C5~@zRgDgiX&tN$z+du6a0-(JP zB)cK+M!|z#2?y|m$v`1TGr`fyPYvC5*qELf z*^L<+)lYhsK$62oo)?_IsJ*VcVs6tlpq>G%x2@m&P(*q?e;;z~;%G~2U{!f7J2=IZ z2-ULzYk+eEb4BiFrVJns)MNLj6x9$#UiBo41*YA`&y+u&jqy&6=% zeAVzYqmuE=(xGoU3uFw#H8hc};Lu~QrG>oJ4Oo7gKB_ao&sFl_2iBy5recjxcg8++ zsGsH5%lX4eW`{>5^~J(XWiS7-&H`po#kLQe+QqVQm(yd4&=YN}@Ev`V%i^D={flT)t0 z3!3-#x`JXag24*SLbsr+V6$4sPQO)39}W8)HPyjQjvypE<>I+L2%Z!v!n`t}@j#i* zSXPHCCFMcd@K0l4dEVrz>K}+wQLY3UYI5VYG#rfvL35h&5*hdn4NE_#iB}egB=wKT zI}EGjkgZm$S?f(P=}!vFsy;vLVTy35CJEO!;`>lwVxwB2q80@!xZ*1e%B&JHux)tZ zG+DZm9tqtj2^gEO8g{!GXw408COfOF0aO)xqST)(`9>bDs`~k?PN44CCetpoq}WaL z0R>{N6#znpnI{0nj>T%$cO(rslZ-{(A@AYKsw!11N7eTvm6nx?#GZ4BhmeL@zmr4N z9E{IFH_X=btnc}-<8N!}%tFG2IlfgnOJKV#jb;mtqk=2)SjA*$OG!6}#~=fE4(c#6 znRnzASFxOXsQ$-AuOi^vD4va`ht#7efa+^VaQXBpljQe7W4*OK9FboV*e(9-A5>HX ztGHF2Dwv-USu|Lhru3j!2Wq8YuiAVqtRNTtI_n44zEBmz_1ub0FkU`!&XccoS|VpC z5E@LU%F#RL0<0?l)AMm;Co*URks11#8vE{9-$f{c2gtEM<5M0*0H1>r8N#TY6uh&w zjfAJ|qDsA}tdu^?@-D2H!cUs0D%7An3mb{uc8rKiqzt5ThdJHb%(*$Pb55=py zkP%C@CK3~llRa7Y;cz>qR@c-t5wk&#ZV^5Lc(SNO++g-g?P`DVMum|%IaYG6s*_nX zQnw%3;1J6%N6H$l=BM>Lo${_6{u)+j-{(BfruOSKx0dH)(`rCyG8jW|9CKtMn6lkO z{KBN;r8T_QCA+GJi_H(TsW^rsMm)~ICEv5omd~<2C!KOnhARFY8gD{`TZb4gjQ^RQ zU5-r}wZSTLYAR#n{n!5fgjeMEuI$qVlcI=coz!`d&ul`p`IXgF@m4~mVjITBq;XP_ zRRZLM0;_xK=30!*0eE-#o-Vy|n_2rQ#`nH*|G;`*y%GK=k~r20#(O1g9T)bo$G|wU zY*YTZZs#uf36wF2zm+N@DDDor(iT&@5|F+HwWds}&$~4y@XLg{lIo^EJuy4%{8P@H zGY8a*n_X&6H?+g;RvqYW{J;v6%R9+?e&A~u-d|0R86`jKWs7=epBH|@n+yNQ!3zBJ zKv@2tDDo0s*v*6Q7;#QP;pom2wg|kSFA3s$GA@I&nRnEF<8lszC_CB??z8{})P1{) zytdEHWN@m?qSc$2#uf}`F3ZInjNh7SOsMf!7XCvgp~CRGM9+uQt%DIFNp$kjYb_V7 zpVgwQ05Y7AnoXP@WDr4*FETOc`omL~IVcP4kp;nq`Y**72{IDt@w8cIHPRua@*owf zW@%>W@8_;t=Wu{DlYQ%VuR2h6St*;KGt+lsr5UIhF$Xk1C=zyo#)!!V+fYAje9-KR z?;q|VEwWmFACfCv02(CmZR9{0-+@}ZTK5m7L$bQbsw%)~y|{$uqI_vk>u0RNJmqx0 z#B&GaOwDBV3;5ZaC?A1@8EIPhIFCE91pWgHP-+7-@Bu$IAz%L(6(h8XuF2XYlR5m0 zjC=MTG*)Dr33)5SasuD>gIbe>v(<;ApgoKOyYK=zg9^EXU6099Em0Nwml35Cbttl2 zXa%eqfcYe`GOKMI(XPk#ZhQ=5Skv zxW(OA35ginK<&@7(c7Wpo()6kG6UtJ{z7_JYPIw^P@k1D7HR>Qv(?jL5|UosckO=f zOhpqOH|_h3)AUn7Yp%y__V6}rP5FdU zr%Z2!?2v?R7i?R&~LsCk2YxU1&_qOL?!k7b3Sve6BxVj{U=C^!Hh1B~3WMhXknr>rZH4RJ`P%W^Eu5Pvx^99^ z_L0Mn>HuJSWF$I0P0!m)s$1F%@0D?$6fbp_E~J6JMEFQNo*QIwG>4{h{%MYT%y;8U zx{C);vJT=~jmxHSXw)^XcJbX_&(VE2mMK!)^0k{9J{^7%MXxIf9?Ot?Z&YN0-M9Tj zAzDXAo71G2LYM8L2G${vIW}#SxGue*k$1AemTOsek(_tYQU!=#S1G$9o;H?OCH}t$GRN$`HZ{Szdu%ez?2LRTlXkg@SB2a{8e_c;DTaZ0lJ~&6ux2S#W ze(r#|iWs5PX^LN#J(zEWQCS#H;b@)53Xe^+f_-;B0rW&2F^&|}qSP|aCNe4*m$!cq#9mA9Si?l3Y9wyex$exeqO3t+~qEQV{|qt zcNkk$&W<1Xg2vDGjWs}ENc-ih#CzCJ)Ih2VlK`VA3?)cmUm$nkNhB1M2-=l%+@v8Y z2eQNc6iSli@l6*YCU_GlD?{_SHsvo(6rq1%9_31%PVd0w=eyIF+B0OwKenP~7_3=G z8W}^*M`cZ4al+iAP=fAKfE*;#@@HUzd7z|c_J)4)E7lVQiVDJtDiyf>V1q1pZ~j$@ zwPN`PSVYc1p-t2KeiK=D7Mf@Psf7tb@JpN?g<*8GMBT;@td~*On#{GSAeDN=d2Bi< zEtVa76VF@3kdbe>c~QK$E0WA2bDzSkE@lLeSH%@!GPDR<@zUcvn-uwOZkDLR9DA zvJOc!vx2-GheFb77eB4H)w&KKLjDJq8r7d>c5KuLw>v;JZVT0?#T1C`k4yc(xZ%eV zdI;bB*G-_|Ut9jUPPjH<^uKtaf4ng~H_l%Qub0Z>J@-FYd0Sw{HLHRK&U`^t5w%3mG`kTbxK`3LQh`28iqDd!q(F%a7zAmeYa|3x9sAbKX{i^|iyU zzI<^v$)X!6B=xeU@b{}F_V5xWKi#41`14LAI{D{>li%$N8dsKx+?P|o;|3*qblejs zkGavjF2_kKP)xYZZ@1Hvv3FOzC>l+ZfD#kxuCvLMCvJ*^5HZ*%{A*wSsh3Nq6>bVh zFWn}$5l1BYIV=DTwE#WPks137ge=?VhUdED(}E|uBtuKO_CZm212L&+D(>*8uMUPr zN(!cpccI4`{Iera` zo?$5h37%UvU`>r3S$VZJXXexhk|k@!FYWW82YpF~H0q^dgv>urUr!V%p5Um{h})ue zyTg>L@JUP9iR@$mhR{9}!}Lmiq>&aEJ{XoraR5oxer^bfon9N%%s=#igeSp8)3i%p zFkq6r4dk@zn!?_{7{fhF69Ss!x^?k~shbm0ERXa7EOFK2^5J6Q0xC>f#uzjMWr1_7 z&&8z-Sl1mGj?I#@z(o&sl+4LPpjVii+OFJaXaBIQeKCBfpR z>{zXJsI8P3MnF`UD%mQ^)p($4GnuM841Fo{aF{^8?E};qKwa%FiWEE@dePRE8f9_5 z64i=&tB}M}$u)t1a1DNDjqu`1`n92T?yTZhu%wmrP{ig}@!GX>c4w=HBe#qq?i^Sj z_!bEODAp25Sn>Vi%1`%mh_1E-m-m9PULY-B^ zej4hbHWI8tvPTU55&j@k!=j>(bhll|KG8I*#Os%-c^RwnF7GEYxV%>Nb?Hh#&v_Kg zC8aS_ff@W_GMDia6PZzR+Zzc(XX_-dP{Z!xdDcP(1g zXgnVNVOI4Q!+53JNajXc?m5S*>WR>~#4>{JY=(H&mUt%2K&A?`DoH#sqIM9*I9c3fb0OfdGI z63W_|*PYP@slt?r9H(S!*i_C9^>|1yy0)$eHg&yc2B^y5WknGvm#pK9yfV5tiLkm-mI~v;EG#aOK2C21^H2xk1B&Q znptH>acRS~xDBtqGV9$dG&r|dG4WXUPx_tS_-TLk8J_Up?UQF92*nh#RfS(}iMLGm z?f%!^R5{cPfj!FM|E0IEZ`iD3yOw9c=1hhWf39)#*J?-qKKj2*fi-Ltde_n~_>aUm zvP@|MA_=ff{(uPLS60-o*gG+~l2-KH)Wkm;<2cLp*cFTwJmpfl4$lr>VWeHAVC?#l*c77WI~aI`ae1fSd)L1&uqDksc0$W$2a7M}gOXykHV z6)=BdspT8h9+ka2^KP5CywJ2~W8nwY*)3R@JaRDl{QVv&pFs+rA8CBJ<#-;OV3Ax@ zXO^|XRlUQaMDKeU-hkzGdQml}hriU*Ibl_O8AeV0YniwQnn5dxzNWpWOxYQC_N0M7 zqh!JmrEsNXRw|}mGA^3IfB$%lG2W< zXT_pWcal3R8J$hUmcsh#BW0gAnfNv-EU~GFwBPK0w~a)r?jWZ}G-IPs9B(YcMyu%s zlJBIu29Xc*qN5;(00h$s_2^_yn^rGSRbq%3GjC zSo$4#A-+RNu4X*bs>Sq_snl~;6c^aNc_o<5*Wj)F0In{*C>(EfiRUOTSLqIhR5w$Uk55;Qh zip_+&@)xZuwR!`4$t?|$OBf3;EP275J$*2-)7Hb{_0_>~-NVCx%yYw^N#Zj2l7)%t z5!@JOy`80!Dld};!P|Hm1UMNW2>`pHHmOP?J7u`)D zoxzQ9(VI9K;TNmsT5j7TW#^+#a%w=Yv;G-6~MH49xYDuvUs-YsmG z$Ya(fMJOsDII8K)OA)On z>rQ7Q(fq#_a*oQZ?NdL4l~b?H8@Cc%{FZcj{{WyhC5w6ARGL6jUX(A6?`|XrBky z0aoOb`8~9Wi5vuGE!5p(7E9eOxd)0-w#6rS*9@!_1|tDYLgYGcNh{Aei~`%fMr6iQ(WETZpg zZ9RgkOTG!(bqxpC#!esiV~KH|(3+H3BOzsn(Juq`Pa&I+~@-E3)LmAGy6k$wvfO++J}+_C+q&MR(#vd%$w= z49tg~k*aYuG;9!Ewfl`7uCwoT=ydMkbMxfT1`eKFT6dLHJs3J+@U$}-1Haf7_7OP; zERj!cj(*9u37~2b)^65vnN_)i~lnu82McaV^-1nWw&s6c`EvPB~54Oiz;-M z9B6WLGoWJplv$GG*p$5LCKxM12hAO;IWiP4G6M}z{^MIbZ;99PH`w%_ss;tv4P0i= z4p>OAHiTyb8}!Jw@8UfiiKR5Fajw&BlYXfkN3f!0LGDLzJcm^DdS3RHe^qxGztz5~ z;V54d*%y@8v@!4LEG|Mz9T(fHv|Q*m`afu(lF0fU?F^X95IGBxZ6#?c5QClEKN^@1 zuZ~ASW>-wo>%CuuM#iLEV`pYN6>=(W88)eZZxUE6ArF;&UHd|^OX+O+GQ}D8n$5EQ zz4whFSNGD@g>3URMv;&7UtouqkSX$(b{d%DyUb*Jf@2C0IleD)_ORRMaI7%0oCt-(v*b1MOFsM$8nAWKe#cGlNNWao zIEYf^-^KqC643o_a0b7c{mt-HMM-9;mG-+^%N6qD>w{7D@*6L@SX#fBt)>_jLY^4m zeiZMzu70qrq_@K|>Gc^{@}6(%0f|{26@Q1-aA0Fjjto#XJL-#Em2B>u7jES%=o41s z9Qc;;-y5*M4QY90k3Z~S%`g^{*G5q((h^Deczg5d-}gT~2-6M(XC{2ZN9CH#^w3!_ z1-f0mFT4qd7V~i!GopNbZ14L<#vb*a-`CMiLwQ9|Mk%SQgb1-tP=4Vl0+1c()Ne+# zxy;sX{9(El2MJ)XnrH?4;olgFe+<@_im>19n!mqp!rxq8;r}P6t^H<)Vb*K=Wsm(? zx+DA^!oM=w(;B6k#{J>8Yt~v38))yW(pvexPA~k+hN9o@J#moufkpb8K>j6|lj!B` zX6>8=g)^x&2us4p!xQNo&IY#5c&pIzToE+{D4Y@$*GfSl5YfV3RQLk;>}i-z8(@ zH+OqhP5wXt1WtTAy0m+fiT9D5wx!@>3s-k$`GkU+cYC+)Jx@}2I`$I%>s3{l-;lX> z^<)%Lf|~UQK0Nn1@(BQ6J#`XJ6K}Xth|b1xYjIs_oHKY_Sc2^MTD=iGyleK|3=@cv zwb=gR%pz}0p-y-^;vjcK8&p0J*LN36U&56VJ2yJjo^q!C;pl;Fju&DL@sx!0W-XB<6bx-2fmhxV&U~91yIcO%(+w_~=dP8)V2D>oqYbcPy(?9W@-(Aw@R$`0x zK>n%Z8pw{3U-1nF8sc|;m_M>*nrkLJNPQt?&ys|tCp>M{vkmVHY0E&9Y>wWcKtYKT ziP5(sIZ7hj3OP#mz@o~H%y;&`ZORlG99mQNQe;0rW7}*guW}#Tbcjcuw`!f`9Si@! z(*6qQHq4<4olJl5LRBLH%?v_f?EuNk3!zK#YG*nS^5cGkamzce3uK#KcI}=xbN!S zt+h31`5<%J4mLx*O8g)$)J-a(KtW8>G#BnW5}&K0@c1hIE8U9k_~^IqyLH{5t9UEc z+jW`4mVS(?GTjo9%Gn2X=M45cdC%ka1MT{4fg{0fl4c(9dn!kAo~@Kasd>7%=yeH4 zXIxyiQy+&PScokn2dYVjjck+j0dNo zJ9f0DeqcT94x~Jkk||Vm^;)OD+LjB$Cu7&n|Nl(!1B>9cb#;T%bA_Z!h+nr{J zj>Z4|L*%5BpGBd&j9Y1637v4S&-CkL)o;_JudEtnDCaZ%G!vwPhwhYgyxutu>=^B+ zscr1ovA;X@>M-|PQmOEfjpn3EpFka|Nhfh#2>R?1h3}^oG2_er2u0oHz1SsLgwEmn zN;GOoh0s}|{^HQJbz`Y8+ieSf=h9V2q`Y4B0BX!WvL__EF-ugN)`ms<9`K$hPwC=q zn8viS*@%tW%Vw`-rst@jqSwWR>&4ed-%OLJk@#-i22k13#G6A2XD9D3wCC5h-6I)W zvk@tU)wUq?>P5B*WQZzMM4!WQ3@(n?V$x{%y=mJy%Qm(kJZp6~K4lq;eZQ?aIzG7< zru5M-F7;)+3&<(IXk#sfAQZ@c!lVDxc={97C`Bn4I3zhAz!?Vl5 z7j*=(*@dPY@$IZkA)8fS&jYiW!38^%Bwj=3(tuYbR5yh4Y(9{_5QJ|*G|FP|pExCN zL%yu;5HaHoc%dNrvru|HzEH}|nJNO2LK|1YUJ3=mC#Y2Sp0wu#wp1zp63FVVCY8ww zLoPR+cNzCBsnF6|cYYs74jwSC+*SF3#&UpJOgZWkCQO#~J0@wYw(+cOp1ig8R?qj9 zGRwlUA6QYx{wbPJ3n7s^eyrxiyr?C+Z3k`AB;PD4{b|(cor|nbW%Mi)N~eo2W$JKf zRsfQp#y>$_9>^g5$+c!ijs#|(#bMnPxBl8g2H(3EK@@%t)tUvwr6}|J-EnvMLbOFU zLA-y|Q8rC(#-@H2e->bPXnH9$`rht_pND2{R*zg@q`?*y6(b)k`(R}9nbLcE{^BJc z+$3AXM64d9LdocUj>n1S$^g{J#)CSf`rCH^S@xW~y~#5i0XDv|(oqyUxJX&3bApWw zHsvJp!NJCsek=Q|Sf>Q`k!O-{fdg(jE0}o<^n6P%W&a)^oIviOfP)Ljxiv13_f4@# z1LxT*gmhG?-?;}>PvwY`g{-8Y#-SW=U_o!f8X z?X6Q^`qONzWFKYYei>oj7RY|rNweMA;3{3mwZi+fXSqyo#G-cGOE}@%$;RTD!+HB> z+uL?IF~rhS#PvC9(m86_;aN^>yeZw0X|c%I6P{L;P6B@|JyospP6w|?t|3=R z5+^~imnk`I7|n5|{g^81s{z{r&qK--kUc-qXtU_x4RIeHTM@dtYf0-i+Fr9RZhe-s zdEFale8*DbmvYh7abrfB)2zS_>13Lhs!HjXl z;-l|u3xmwkW&*;b^B0aYM{ZSiR}i+{bTpFoW`Gxl9=lq#ZLH45b>yfl9eilmrSJZ@ zv*?3f6iYrx!9!Y)J$(GaFwoVP@+teujB)?Yj>=FV3~ou!I)aCZ$(Q`dft-;y!zlYs=45S9Ce! zy%c-L-{v#(1-KgiS|{fnB&nZj&VK^sE*qt*S?VB67E7JG6bvonHOO8~Rn zLT6Ku=>W8}j<52rxHMp=@IC!m-VZFZAkmXc8d^Fwt$jMzP%%DgrrH(c-O*a+uR6&M z{?O$B8PhZ*Q%zHsZQ`^~rp};zP&f{obEw5;|F^Iyx_eTZz2BR@0s``Ny=> zFY{_0yqU>y9q;Hr$DiC9bEV*Ay(L2w3J8y{2+ysv=M`V_=9q-l;)r6Oy+Fhau|X_v zuHVOP%Wv#|D?P53byLpu^pqXax{GS|kFr~OeWA2>}vZrNJ^rZ6bN594> z13Y)p`<%wyZsd0Dzbf69I z(Geg#xm4^hoFY@p+%XSSB}C^bzPYr`E}o)1MkatW@nGnyo-!%VNB_&M4{PIra(t{} z%(kg!Y~7`+ceKCaeeiUH(;Zq(l~FF!mEWT<9Lf#-^7VvHLa&6y>!a}8H+RZesh6?&M3n5k3j5#uz!IIa zb3jp9DVw$zZS6S80xc)Ys(Q+(oZrr)v?v00?CI-8gRw9P(~u$k^)uV`Hr_xd`mIy^ z_r5;0&$Ahm=lPs%KVB@CT3a?Z`S_(sa8kbSeLcBMWAbDzj=RYn%gq!pY=+6Cs>bny#*FhOS%sB+!@mJ{jLu<1%f9PAYD!&Jn7WA81a z;tINSVcaDNA;AfOKxhI1f_s2q!J#3zOGEJB!8O4H1Z^CeZfGRkjT7A6o#5{7x&6-E zJ9p;ZcipvSeQVA4Xa1b7KIg1+c2(`Fvup2XKSgi-oIeFz^_;Kn;SpOU-;*V>3eOkI z?&V@*v||N8Uk^rIc_m-##>rjM7HmQ0<0qohPMqs8bA(+~j?=2mjqr99*{A0`nP}o) zi-xsDZ;Of$T#@se9J0^LJ8g5X2|2Nkv3#)_yD9NLIjOCs;H`S{k*r82CNq3`i^)Eb zJ{dt`!gvyRI`#yx?KVv-xS}R3vd%G-=i$BcINPjkJiuL6?2Zk>U%T zGLx-YE@a|K$pq~6?^DO+>dmJdBF7eU(P~3#{rR8k=)KHwmaKqKquh8rHmCPn*ZX%p z)1$>hLec>M@L;^35`-gK{xZ$+lH<>(uFp6=Bi5KOXI0y$mFRVX=8u)#IcBo6c}6y~ z#YdoLE+0+UT>beCkFP5CKm0K$qzRnQIOqEa&g_0D{{a=0!vGXCk!7AkgsR~7X+6?3 z2Gkh%9Y%tnI04W682z}@=%R<=oqXnR^WsVaQS-}5k3<65Ghw6_uFW?nKxW>ipz#_G z!Gmg5jDX0koERnhA5Kw{1LoNh_0hyw2e*I=)tv2Du~9QO`DE>H22CAfrUUT|9v9Gm zl-+X<-Jt~V^!uJZ{!wBx_C#@99!|@gEeKAHPPVhod1M+QzB+ezLq^u~9B*?~r`xFY z?1Dp{S&`<~Ht-soR9(%f=H>A0$d##2pQTT)6CjaXPTWr+*fy$Rg>b8F5xCLDd`u{x zsCXb5>T~?Q=2t+JbF$h`YF!P^$M;IdPv`wiZr`7?#j^`P*n+nN6MbBT&c8llsVt9m z5fA3R-Zlw*y!lvEDs;XnLmP(7h?(`BfR)I6B$tmq04|0e7+v3ex;T63Bs}OL7|$Yd zDaBAA%!y(5n7!c#!2}k++39yD7EHt|&-fjG*9I$y<)O-2ZGl}UKS#bC$S&<7KZ*|B zn?jZSvrM8%G-UarxfGnFBJqzeIo$8bnfz$|RR{5x$fc6@7DgC`d_;znJ+FS2T;5P} zOyTa0$=2YqRDg3Ax;N*DoW(zgChpK5XcWJ6ZZkDm#2lmF4y}cY`V;Iwp!b_KW*gBL zXKKnSJS&S+;Myz?n%`t7Hy0K0i#jH&IlO#f$=_uW=h~^TBYt`)HOTySUCP!`0Vyik z8!KGe4|iMLK z`^6{Rk4||{ic)!f>GFZLNoWvCHFnJFGf0!xxl)0DDrhH8{yKQgn+0;BdP>s ziDD zmtCw`Mfi)Z9?B+CK#f49blx>zwQ5xx0+#t|-d+86xn%0DG03p-DVmEWomnxiyJwbM z##^wLaZ8jG2i?J{Z!peZY?b(`_s#nBl19ahkI*k3BEC?u7a4DkPeoW4ysrTvH$(IL z>lXa}Fsy4OkuEsY-&NU{)d;axZPiJ(b+6UA_gpO3aDv%eU8hb@kE90KC)43BSXt+t zup9B+7~q-j6ivz2Wf{Nj$f2QKdH!O}go%8k3+#8C&nnQ5;lFSD?*{pA4f+2v7GV6@ z>TPNCO;$!7NyZx+nA(fme1B5^Tszht(+^7aDGA>v>wrMD8PZQ-Cgi^1^o$hOQMFyy zAbH85|9QP*c*IwScAUEI-M0^I(i~*J`^C4a=#{+}uVkJ@II#F6V!9F6i)tzG&8hFI zfWE|7EU+hPeRcfUWsdWX!uG`)tBM>g847TRLeV3Di0~S zYerF^gw(#c{L>kWPa`lj$KoBLUGsw+Mf!T6pplDPoo}vY`j_bi2Tq9s0}^*u%Y(hK zYwPmkC-SzTgbv&z$k!M~PMK=uPJ``jU&!ONWcd-P*&6Q%Td#0u7P-zNRa5vw%-Fv8 zp{2PFBrAT4Gv=js;Nm7{g+*qP(*NRpUweM`j6UYiO?pP${NGZh&f6@ve=&GGg|5Pu zf3q{?DUtYArmDCvuRh1y2x)2S%&tQh$}^Yo@y#jjM&KG1nhxBvwcy^uchU%`XxAvh zZs^4P=+V2#TXU%a<@JlT=46$IG!LY0HBT_;#e(N7`n?H!AbOGD;<@mvt?hEBr7;+iackf=ED?>8x_=DAjGLoXC{qDXak z?f7}df`&qC1o^OGUvO-zgoU0?sd`^^ESZ*P^TA(CmRH;TUMNvmD8_Hfr5(SX@hbBW zG)T|2fNJ;2qK$It5*s)A3UtcUtWup)8qVhPx?>ZivEQBg23a4_{`UT(#|7@qU`tqM zUs^Dq+~*d4^vlp`pm_H3T7$Zoi_TIZk;`r&Zu%;@HY?qIL4$Q+$x}{sJ`+=jLZT3T z77`^=eivajzR`Bepe!tlr`Ypvai-Kv2w#{3H$~IOzl2apb;o}T0(6-{^|KP$fyKWE zPb199K~ooG&W?81)S-0rDcG4bEHG^&tt8o`Tk)|9sIPYmh!zFHU+yq=b8*%?s%@z) zxyJ=Da|dNM$VUygzy-npq$F;ZyQ&C1SOD4i=gQx)5_##nZF?aqHb&HdNx{+1J=WjO z!bgkPCb7oD$Pj%Tx&&uOd!>nYElehk69rke$#1EC=DcrzxiqizTh4+E%ki6ZMkY%p zaAlqWaZIPUCdgZQp`-VSxV^qs-&SC_^&(b%G2+F%7@ynS2{`$Dr@0-SKx@7oz~Smk zZ&M7aHR3mBC$+s-c$#+QJ2ficz~R*)b`A|l|BV>X`G^g>w~`6}lJdHDLg!C!DK!R*!eTaW8+(2dZL+f7GvFr$lu&AIoyd*|Cggr; zZyi2MMsE$0+?xUX-a1+RQJ3p%r|jicv$OC3jBAo&F|5~NWUMa`Q={nH)FMo;OoSj9 zDL<&aXANBoUN_jfN&2udt((P-wkd5!-bG7_n}`zty?BYBO3C@)9uM>)T{yPxj_7-c zW_p%g#dOfk%{9k&y=kA33JvGFuGO(0 zCDwk=je7hXJG@r~;2i3Wx_E01lsaqkmk_NIh1QBsXAx=!FOY{>G3m*^R3&|go5WI- zBn8DAF0R1#K5XiB@HFK|Vq?~zJ@)Yhg%dvoZ95CnqMV}k*Xjj)RtV&6a#dUYO|K1k z=ETXOm%dI3XTk-frZ(>}EHe zt;2hO0dseooDYv(W9db8lIn>v%aFJ9fZqxWqLlh%MO(!aN&}i@PiM2w{H&{-#TAfa zVwpb^ipQ~ESypPp-!3-L?W+-95X;CeB<Ks;ysr=?6-QQ;rR-#cC5#V z%~J$5clyARt(7*vnwVT$AEn_K%QCM1W!rh-LZg!5GVR$g47U!E!4cTAZ!^X^N?1Lr zmn)+2Fjo&IbeA|71L@=jK$EU*Po#$jtpwUvShPMArD%?-l60t7jF++qocLvqadYe1 zodG=LC%IXQ{GMHGlK!Kn&#_?B3~jyU`DcFeZd7q2DAghTfDvHCk}+w?2IbOa^)0F+ z@{TrHl+-S@oh*52dqeCAYzC|{lA!aExJ2Z50xr@aU7{l5eVO}4M9@xqJ43}x5w=fb zAxA?1+~a*a-2Qno22YjAHgY4`|4@u$eVXS}sRKe#MJv-)_J?JWP{ktgHt}n`Tkk?e zNXTSD1`r=L*ml5#P}iIaKO6JTo%4${Clr#SFSZaT5V>5l0gL-j6Wb^`XQJ-z?jF7S zZV>`nD0=C(R6X+SyN{8Dq|c2&phb*DNuzc8ZsW(O8IPyzdKrm=5V5APvNybxeM0S8 zi(zOYfuLz{en67xfwBXQ+_`|o*msshwlEa2tew753_~HLIP+38)5}1kznSx0xW*2# zn%2g%bVz2Vo}p2xsC%xd>6h9&@b+P2U^Cfcjn$V(l-NqtxBer`n2+-p!M{sJLiKEf z#}>nA-=Wd)YTn+7tJ~njN)z3!R(?ZS5-cm}_T5)mxecU?ajw1)%=l$zE9?^YSYMPCfqk8o~)}lWLO63MzB{dzHih0Y-ipabjN3( zxtk3qA&BMv>kcu@kymvuTJV z%AZ3Ww0><#u3Jm?2TLx57tgdiqw0wm<#iizOA-~+0p6ZRbH!0A^sJTXH@x97gJtfX zN8eF+A3!?}`gU2al-UVgaFHQve{OkA>+k=VIpyGY07AkGJh1^bpD`KRck*h;{UypQ z?&MCu*FZ4v@X^=zz-DQ8-Fhr_7f^hOUIu6#f$s_XNi(p?qh3*a7*&xeg_R+kANYia zSji}){k$A{W=5l9v!q9_G-m4NvdOQv?c(#?y}rKPetr=2q2E(HFb7nf+KfD>$dD^f zvVppY^4!V0u6P6p75&sWQHeb-^4>K6UF2lj4iT#9SxVK{++$#aJqxk#nR1X~oy{#EMw!JlLT?UuRt515cqNEIFmy zDmZf|s;Fd>O?YsV0qf|P5_fI0yAB73#QgUU#PU6mme!7UcagdwG*F7HhKHYLgC4t+J^E*+s8_WYmmv?ns})s z9*5;02_6rn$!Mm4CYD9*ASjuZ6G;U_L(yiz&&JO^u<+IFA*Y?toyRKVN&#UrpO>@ko@;n%OFE>m|CL!59jdJiPP_e z-8p!_d@H+hifcI^1Q>b}ccv;uY4{0-9#687gCm!1-B898GpFO3tXb5??H;KTC_@vg zk&VX>mYc?$w3vUciT_pTUqTx&O}?RtXgub;cl7m=JpWp!OKMH@-Z=nm=>PenHcvgk z*r#;u@BC~qX<69*`uggH&C}TdtY_d7)d`5*7z#9t+}HPji|YLMiT|?pfU1j`T~hQ6 z(BUMTtA*42&`Sy!1B$S%sA|aB%;OgTFXss)(HBLB`Fi;xpJ8oLN68s~|K?$enb`2_zKKLRsynEKs>>XlZRjJzQ*L0?ucijfTCi$UMkhNp;nVV(T`Z7tz$PqgDXtBw+ zXU*S*Sh#>3f62a7!*R9PR~4+2zqJT~Y%*TSK=%2o^ZX*s8XazpEbrE^Y*=yww`D(H zU-u#Q$<*USbLryL?mXEnE}{huiLj_>VrAVuL-%YT555mmAX+6z&x_(Uqpdj9th6Js z*v;gq|Cr&KuUaEna+yx;tuo=~oot(03%IfneZ<;}7kGQOGD*zoLRAtzW0ep7zmMrc zPHTCO=n$t(cbNZN>;LIc`2YE2c2)6P+D2-+MmuN|nhMWt=Q71g(uL`NzL#!F@$LkKk=))9K+ekmyHWggSvo>IH>WfQtcRzZ!c{a z%HpV2UO-%H`-H*XXZf-AM*FsAKVocG(}mJFwAt5# z(-^lpBJ$wlTX2rgox=LOaQkhd%Cck~r^6*)s3Eq~&T%?%%y1A{UzZT!vREoOpegP? ztNQF#x>&(V=rqo?4m*rf%EMw`#pNa||Do_XA95~`?3%deJJ^CN>mWG_9moI=%bPT6 z))&~QJ|MgKyp4TrrViBBL0_ij_7hI$)7~QSBn|W=3N5G-OzK3!%)7k}1Q{N!vr>8&2QM~HW~StRCrZCPPTTU0Ekxq2-PgeHArCF^gRxAVb@bWGAD3-B1Z91QTU?oF@D^ zE0VFk>#2)@Pkz&4tkBoZ*Q>kP*(Rr&$-)S2&oxe8lN3y(CMZ~)sa2kI+2^1M$-<{7 z)t#^^+>)n+Bc!0}Z2Kd9X_+~wjQoiZ)y4Qmk`X^2nCB9oL8GLiEAl1=GRPrWQNmB0 ze{@+?cPf*}F!jypL}E~~vcdiSq0meX=Te3^nJM2bAQDhk)4Hx$O@);^z&WiIY5M~@ zPD#techaE(>42(hQNhqanyX~Se22ABIu^j)^la%}_e`sEhgLB_;AjaRGr7-^EE_+< zBvT?}{0IxuUA*A|+t}v?lBsNb)(PpUZ$3$ zpDy4$x%P8hC)So$iAqQ36(@D?Vy`}ls%h-UZ^lls~s1QApQ*GifWQ%s@#?m?OEQSx3;1`mm0 z8yLY_ODkR2>$Wgm?D`S92edbICK@(RladO3eQ$NIG%Wl)yzu2KY`v9JGcEsw+}=Xz zX?r*JLAbK<7wG|sl0%~+ULXL(9=HI?OfUNv>22_v%WUx;tn$Wy_paW!d`DJke^wi-lK$VA!`&v8McRgp(H2bCVHR(dz6;F<-c1|4~)cr`>rP5^pXhEpH2? z)9XjBDxI~W_{3pL(v*Zn?A4iI1)>i@n(iA|<$_MQsz9CU>Y%&tLATDpEUriMW3=wM z4U|W3JeB_bqG3r3%Af@swsVXa3@CJzI(d`1{Ajz0|H!!^t{ zn|L$d5~#ooRF^g_p<^RekMf3Zx2JVMvyY!c8}G$?kD_`Bb2fK{V977ROEJ%bLVAnt znVkY&yhhIwBIGmtg&VtC>7Q0cOIz*V!SyTc>8Ji&(ip$ugX+Hz>3yIf;DQq(s!$}20?OUu`zNqZmjr3ry zY8Ie_OYd`Qy^{204zkEz&NiAV6N_`Fee73?Q zP-DYdW|zXbk+b9`6Z-V^7${!IK|noQ(tMrfGv}I7>K5sQ9s!Bs)#>`he5hZ0Lkmz% z&SJ$rT|AxGp*8HUjgRlxXYM1{W)x?Eh%9m`9Y!v46W76>zZfZq14@-yOEj?<#{H;g z3cbm1{@3Xa_OVUXXsQa$9U_R>eT<_@R))_+`4QtXQO7!4PSHc}K~s(X*Gz}|v4Ed8 zP6r#`X2n?xE%P`eQ+~W8@wzT?e>UP(kJ#JK-&r+_Y1{vE3zX>4?G=UVz5bpAdjb`> zmqY1KQ)@5ub)uH@osPml8(QK-J!sbE0+k`~m0^0Gzue~1l zo905E@FsCFN~o<7h1fG=850B3Lmfk710-W*-rNL@2vDZL!7=3MmY4;P@J>$f<%=#{ z1paq_TbX1lX0xTju&mr2ogofiTcW;$OOi4K_`1ldDVkSn0*tDmHi+ z{ve*tcOiuUo3|RfI!#<_q?0o@_t0PtogK7#jvv~5(@ca)`5?ZPE}{$vbQzMhF09>? zWx9cThdS0jYnQGedkcZ_;Lxvk=gbi>-}}DJugnn#g#m4olKh}LD@+VQbD{h=nCShE zOEx%?I1kHnawceU@c`fT4V=Lx*__9yn7j58&;C1^!!i578$qMi8#Tz#qrgN={cR+l zaC(If6MrirqqTVJ`179q!rN}Z8B(pjMMUI_n)0De(E_@^OPlm^b)NSW7hA}cc=7&n zub+m0`tG=;^OYUwDZQ!Z6NfDuPgybG>8$T!^=>#@@oeR4D0nCg-CNq718UX5LpEcI ztoW!;?Lcvil9bPf^oGwgdWwBSCzU38NuWqiR-U1axMv-=GQbpiwzDi^1~RuQtWs-^ z*reqzUAVNOcD#zguCmWk0fZE7nu)mYl*zPAZ?E2zlEc_uDb72IwPbZ@jD5;V{(N!( zR2h+niW&L24MQz#ibding5mGS$=UVN3Sg5ZGRW~T)gPtO_9zNgttKlceT4V(3jmM~ zGy0)_C6>cU+w*p$i#&6k&d=?1_kJ8{De@OXv~uNC;o%jYnSSW_(}-oF&|md7c6rlC zZP8bc-Uo-lj<8CcJWD?CsN7}70($$-(~0s8$BXr}p4Dm;K8tTF&e`Vx#7i!VGX zHT^zCR`FGZxI_GnDb)4zIsG`rL)GBat|Q&EOlp-zqM4|+i@?%`pTCP*7NhbC?0WR{ zW&WtyicxYSxE+!WXvN=6riG>5vjC{ZdGG@5#l`IA9g@@?&yZ(PezMchm=*d%_$WrE{)_f`jVia)EAS zvze^DY#N6;5;DX$(q#km^8CErml%fT9(lyd48)8{Y^H#&b%I%PT#|ouJA%yU{`)xB zq$hUQL}mKwN{OEzkD*P1c3!F##ntJ>ORiKv|J;Nu%w1+zh~74;hzN47O|LcB>q2^!+-R0sDU`0JG*7+Y0&FIseddpR~!s+A&84~~SH-$`ke zZxVQ|^mZSsE4?J)kbAl%XcgQA!?xf#aDiYqlodDI#r1SqU6r-jV5yoHi{p<aE zYlF*7j{eY>e9$DoR@dG!5|K-t1*_|{OasDI34Z9K%@dvUE-Yu+o-C}l3tiDQ}-?!2P zHe4l?QUI{YoRVr|9-45d=0>Zu|4KEtXtzZqwQRSa2T;w${w{sokht9r2+~I4{UjVu zvw3Pv4{ReTR}4zQ#eXIujnp2MiRaEdxtok%2>qHW-xK>}ldhK< zmiQIPtVxga=1TGNHW90GHf7!w&d!ImwBzYr$kR*XJ}$h5Oqm==-SPbz^7>`CNzL00 zK3I0BU%PddL<1o6^g?pM19EC`pBW|8ztrb2P zSNr&UVCNEIzIwrV;s}%^*PY>ONxC%tauxHBzXV&y0S);1mj_LWu8@Alnl~MlqcCdk z+eF#6Itky0p3Es+UGT+TPYZBUK5A^_dV!TDj)Z0c6%De7MvHe!vgQqN$|3Bkc;H@c zypkSBb$iZ6ID>+%}+iwL&11x4O`F`l*ie|26?RRq^+Kzf$@EH9~+crI><3!Kd zjro{u@AJYWxbOaAkT>c-RF;+_orv1PWV8lwAg-kjqJ%m+g30Gm#E~hKBd{T`)wVXitikeQ73@kol!sk~3QG$(7K$7PAKjzwEQ zz34CP48MKH3Ez*laJA0|OC|lTg==#Y*X!~Lq>ff5z66v)ALMEl@I$8g9MEM6+>6DmO=O5!YvPHuYu_TUG{4w^9Mz7O&zmYys zcXp01uX615Gi{?TY29B}ElbqJF5(fd``&~4UUf_Bi(2YNA_K$aqH2UVxY*%KEkx*84( z_eM!qZhKnR;@J5~rNarAfaR?DJB4~nFr-%F`QAD0FCxSY*fygs8Jw;(;H1Q#X4|9$ zjkcuh0Qsnw=ph}*?aOgyGqp9W=hd8A^x19gYQM$2McdQxavBv{S4ZM(i-*L;jB_1% zp$#;p1ElwtHZ1{AqO7~~x;<$Sn6PSw``orzL!70=-f@;Lkc*pA!Q;oEB*B49q6M3M zLJ`MQ!D+%1U&_K+pO@8&42!h1e95yEj75|;F6WfeL1n7kSWuO5u*>z)#4m{q><4-L zr?y!4QbZ+&nxutN>*XLI$4JfQ*rue;z;BdpvQ?3X!gA37bDID}*AaXMb0eeIfQ$5R zOb#c1_HsAJlOfk7B{Ry(7qDotUeki==84+|d@f{+sqZ39!~+J%`xN&68h7j#d!{O5 z2b>n2K;@!(sOkJb4N=q*E(bt^!eRP6@eks&TDFWrUNPadKeZAZPa^9~VafDX4y*{V zd%Fq60;028^d{A2#Y-)4iBa}hVo5xu5qYVr38+Z-h306srVVT7Dl#w~duO!l>*Bf< z4A;?EwHciuMxi=Mb*~g=UlpXjuaoWr7&M3W15y&5bT{AMP`F=natv}h5(YNjNK;z> zF(X#S#_ko-PnE^ld3ngp4Q*1G0fOCASu6Offh4qFcJy^6dvIo@c(szvE#UZ$+4a{AX*`QRF$znyAaVn#}rWQ1gVr<~*7 zqr7mC3i*-$&8-e72g2c)2!C#6>tvzcJ5sf6t8L_y%06W823XBp;6iS0o5f6KD`-8R zOMTxQ)tzX9IiL}WHYHTv{Vc%V@v|M$v>f-lBvA3nGo&lm5n9krbGAqWO2AhjaEW5G z=-#>;$j=vSWAFUZ;IHHuOQ`_K*jRoBD@%`*+`08!G+f+FH=c`B>&|~3XwnNQ1j4*p ziUmqkm^Ab4w0iEhwDJDX{F*P;Aag^e3G&T)_?*mY`38^lm!;?W!0+=SOW#p3`XETLNedUi_WU-mS6BWs)lt47AS{P7fow<&~>T7z0Xve(d?3<}L zVetIZw1VPE2UVmYO5%c3h_d75=&Z%FtaT8y5Vm;~3yhA5)!vKog=lw^88wExzw2qk?| ztUL12_!We2c2b}9ULb9PgI{j6d4S%!oBHdXj!!2lXIqkisA*zmM)@q;+zPgjt;BOd zcZFL@FTs zKElV|7OH7!-U!5yI=16)nVN?FTH0P7Mzc)~BQdAPd67>qUJQ?52Y!2`Wxutz@v}0x zs4s?8F5_cJgQuoNbUcidBJBN7BwpGSI3;=`g5Wg`^7=6V%sX$Cwp83VUCj;UuKI`& z!_A$6lS=Xn+0uJi7FX@_teniM2<)ols?^ocbRyD)aM`j;#3oX(x2qtcp-2k0umQ41 zTI^L>hFrE@bwCkSywgELE{nEutx2?ew=p3^Qx{lXul2KK@L*20>f-w0!5Ljyo&ZWd zp#J^$vG@J3rIFyO>{7IQm$2-Ovoo+nr2ep0{Ew#nzAb$n8s7u{FqK}S>+Tl!O%9rO zbO8}+NTIZl)bq4uGEkmmwx)a0$)sDlD|1*M+--d?o&zzgL~p3S_68mi`q_7=)&RxOP4s0v0G>F@An zMF(_|*z3G6v{GU=^eh3Il&1$oU{06JX4?j?aRPCf<#kEy(RQkkkeyCvfUThWEwHBJ zy|U#9kq}qLhqP)JPM%$z;)2eZ&eEGJcFCA`@3p{JYL&WpV45$nUdeLfH=K2Uu4D&a zX_el5b~8xOVKYQ>L&i9ZL1%dvQPz>C<~xW{_w;j{=wG|H7z(_UJ_ksV+Zv2aeDaYg zkQN#A3XHv29HKgW1LW`4ZpiRy67ZlHwwPIrrQdZLQv1W_z|~ZK`RLZ7Y5w0rEJQ;} zC>z84^dl8S|DyPAi@?x3ugh|rIkAD&MevzJGaF9->+)2H!=^~DaD>KA*l8P%u1=<)5?T0Yl_1vw~jIILd9xvxaU7S|Xd+CP$#mL)DQNi?1 zj}B8q(_0j7a5>`}PzfVz^{tuPenx#GSLqGEL z#z*v7c=C4#E#{-IX8;GQnz7PF=K;yBKKn%zH;IHpAjd=nxA8mei{>j>6`THGRyVhB zOxS-^ga2d~Pcr6H*=e6daK$ET2HnUKUAXk#$v~X!{v#iq~6u+vR(G`T+3fW z9ew1C`Fs4WTgRxbsF9X3G2^hTkA{BGu11HQ*uNM)Ld&O_`Eh0be*S{;aU-iX!9$$` zHW&GH4US>iaoKqOT=rsLjkH=u5z7Or6fLlSlwko9kijR=YXLQR7x^@LTu~EcU-6o& z=uJZ9jY@w4)wy!=M@)&Lev#|b;PQf@A!`PvjhZhEYi>?Xm5i<)e!rR8tE;CGycz30 zZ++Dnfwb}nuCcgCS9<@}SeHp~d69V5ycS~rn4IszGt_%ztdS&RZYGH{#3s_a_%xTi zWo}Q;R7~a@`e`=xO`ElrM4%(j122E)n-PRRFuA@PxZvH%)b9k{0R-uxr$(#+T$Qzcv8t$ z0rzJb4<~N}9lj=089~e)=+%9d$xt(?By))=JCre<+1DTXHt?zq6sM0tWQm4Yd|0Mc zIFOi@Pty0f&t`nIu{tsTC{a}Trgw-e&TjJSzr0+l95RhsM&3#Is2}tH(9Rque3z7U zHWU3-6~slW>@y}6IYBJu;}-?m7Jpz9P?)utOvm{mO?6sT)Nj$ImibDMNQyrGw!5QIcM+TUl%y~dj>XvNX)R%NKs#6c{AN5bVSV65eiE+e)63goZmak9 zvv|DZpf+9EGv%O%PJpZb}ia*fx9-pje}9O^=X`&%>-`fH%dff_l&ebQnBn0lr_Y2yd# ztRbH)<g|C+3EoPgBD!6T^_Y;%Ppo z?@!QTxA}UvdDt$UEW%g3B%%s>&!5}Lr~A8y!TBua_GQx525oJESrnud zLrGw@b-ecZev6A)nH6d$HscaLIN9p*c*fh5f8;O4+N(x1=WBWRqcDnAM zh;kivJTk5t}Y8llei$v=dSvebi7M%S~DO;;>T$C*Fr zF06ZY$ym&JqCA)R-?E7Kv)@lmm&}#u)4I<%ujLag#}dApN|M4h@0TAMWWTF^;@alS zFdQpUyWh3w^||V1QjC2KE>KrhZ47OxZjZ$~an;CH@_f^yJx{9<=ec~P=2}E7W5aWL zqHRY1cqR^wxLG3|rrL~aeI#~QK`>N}4 z)7~WdptLR7Hk+cS)UiMC&Gdq3+HVpK>E4o~O3po- zA_6p_J?`_B*tL?xe=%C6&a=*%?Ih*P%mkA?_@R$|wUs7z=QAC@ZDq9|e2h}fCm?iT zY^Oyh;*1fxy`Qup%S%VM1EO_Xl;tM0R0?Oe&$H2J9d94pQ*`#_+qrd6GBs(F#5f7^ zaryMOCm2)sli+Sv_xF1M!nNH7{8A;S*O61A$-Dpzk6=HIL*-X!e78Gm{4(=CwCXme zNCXs7Z~FSg+FkB0ev&`VjwPGGLh_00(Pc(1D zw^^BbY1_Kifg;arpXk3BFm-Mxk`@+^H08Bt;J`S&WR+?vTExCdUp)WjDNO5H6R&0- z=6d)S<1zktaY85d;7A>Qr3MQ>m?FZM;Ftc!J`Ng;7E($8#EX}gWjjINNDM48Pu8jYX2JL%>N&?eQUuQ0S<6D~dSZ-R2=3*?q4$GH`cSkEuT6i`Z z*L{*R510)M$1L@AIn?#m6u{h3TmSR$0v~F;zPJtgi!m+@=_a8ilt8vPSDWJaEMt<` zdzhwkAqDqScVinuUS`Ezab2!90@wKmAA)v-^Avx$cP>8)44PGgKNe&YxD9AFI;U34 zGLt}wSTig=Mru5MOLbNxj>4%J!YCdcJ&p(WNj`nF%zT-`^m>T}u8FuUlh%Rim)qS| zu5AQn#=rPRoZnG$_B%E|&5bKN_-JbT@aiq8f7V}&|N1gOZB)zt;=%H8)`(kWgksW4 zlQn<4E=h2w(`#2;Y2ubAdl}8KwN!S=Q!(h$?0bs`KneWn-KZvp^Gp-LRA!~qU}J9bJ)Ft*dX%303YtAB4;E zTi7~0ODH7`XejSYL(iD%x@9uwJJ&NPZrcIY=&qqkz0Um6;*&G2D+HR=s!=PYGQYgK zNQ-nMSYquClr?mYgEL`DWwtNLR;lSXSyj|%B1(ye*XASsJ?`xX$tcN_+X-P`8j)Kc zEAB;G<^#3y!Lhx|n`A}+?I>k-&%0ta8@)N^`zFy}s%ydW>8m^4cYC@{V()A(685wQ zHn6-njg29ChqtJdZmk{qKWP#f0MldkGm!Qs@+o_Tz!H_S6sy+uFNm0u1I_0aIJQ1i zLA)^E1nuRL(jvn*k)y^;QJ2o3nG336}Ce_2sGEx%~;^Ir^1K=Srz%eu&jN&#WNDn_O#1)Ogh8!VB3pzKx5;# z%c@Pu%Kt=Mu|4R8QlUDqXf~#MC3C4WrJm__WE5pQ{x1XJqxx&=z5@u!_zRm?BP$a( zCh{8nwJB;XUiN2~chAF{)B^rrMamyjooW6|#=6Pt-v91!H*hdK<(6qK73|uab|?+u z%E;PheDQhKqeLd8^w*f!e836avk2O}3^xz@^r69Dlm$HLto3PeI-h)XFXave75qMJ zj_~a3*l6XAt{i*#L|BVM%Nxy#s9fuPOCYmIvq_)j(8u^pq3G2v?_?Ip#pc*{BE@oj zxD;;d8%0OZ#)RFlT8+3&-}0Rvi@1Zm&4?A=(Qzq(YpicUj%^-Hd?0Tv-I0Cmx0BfzL+{tfo9e{(_>yg1 z`|Rf0gl8H&5K??gMsTgmPVVi6=O#d9}&}!}T_5DHpd*t$eT5s%;V1>2efLX05LzeYI z$%AWgg84d&otY;=HvU9FWlG1es~vlWOwB2 z7$v4i|3c*+ym4kG2_-v?T^w38OU2%NkZ{$$P8yQ8L314B4zfAypA@^sP)}v62`&P~ zKmtBK^;#rI##+gqdc^&E(SIBrY?kAI4Q)l){7y0tbV?MTn4mofKH!#Gf>mN!*(Wg_mLq z6i7f{zU}RYX^!MMTyh`m%%-j^v&ds}pvKS2n!k3zLDU|1OUUSYf9KgSIpOM{7NXKG zKkHd;_MgV+xaR*ML{V#{S`j6xSJ)lS>>R#tnPHtQdaw`DowcAlkv%~=W4w+xRk z2VN{R3i%&Nqv<0Kx_-Q+B%ppGvE?nC-!p)rWFHdftlxb-w=#L7(0#Ur&wnR1?q4M!4)u!J4F4cxrCKqPZ)Gf_U3;v|j4bgx}yOyCNfrkXm_Zs>6dpFa$-gZJ?4BF%%oH|Cv6{NDLF zEM`;#*6R@LM24uYw!_gzlY&~r`|yV;ogzswqH->%7}l){^{}&_s8DvBoAl8r=H`wuiYhURkz(cP_74RSFFD08*3!S?RF%q)~W@Q6A zQxviWr-7U_tbg3d4&cyOt|zk2y!A$EN_+SSUAPGdb1aw=RHNW54Hv}PsF6Y|)ZEfi zhDKcc7|-pXH)liO4-93&_E=I~l;0>BhIK|SX?;1%n3uxRgs<-WLg*Q%rp~YDE1WZ@ z`?0^VEF@_DVkqeA>FwKB;Or2$dNfHoUjoS8w)qG91OLy=i|qa#Y*j>dv=E6@YOvo9 zy?1Q+J7+85o>QQsQ92d*@|@W6T#GI4k|tx61l+%&-iHzz4yvuia@}bo@mF$Z&yl6z zqDEU)**+-V`zOu()%Wl9_4qnQ67bQB@eW{FaqoexSZ+j#Bsh|fPwIZtGtqhHkZ@X% z)XVpN0hWnXY-+0t{fpt$}M0Oj|gX642k*V90a#fU(hb8D<;8 zsAwo)0dvQT(524BR<;d_|3Teb0L9gPd!i8BA!u+y5-bp$#$7^ix^W2(O>p;M!3l&w zaJOz~+$}f+cWE2~O>l=`na=mWGjrd}oq6->y{b1;MV&f**!!HV%l2Bo^=db#8F=rO zxv_t39WP(tH1ei*llO0KBflxEJDEVnf%M~#zu{qaG!GK<{^VR1HX*aydmh=3ctQy_ z8jtQf*r&!90cl5EZZ6_4y?KA^I7wX03B(aNO8>VwrVQ&WTD74U?n|#&0Kb1wA9E2{ z@R3HvwPWbObduhzP}d*wRC71Q>xD!i@up1nVmmfSSIQc%>u^+r;Ise%li6#%K?l`s zXK;Jjk>k&C1^Tgj3WzMPKxHq|X0b%)kKXUk``^w?GJ6moM0K>(1U&*ZF*NLw6Rpb( zI(#xAV8a52cHfEjH}LjAdKSBkS`muhoy;d`9Ao|DZ_BTK%lAtzGyJ2Y1(n zlZ7=7v9?-jmZRRK(K(T&{kRr?sg5alMIy=r*9@hTW)t{JfD{G3MV<-G9S?Ex31bpy*#*9ddcu>-6Yt zn2u=3niOmJgCa&}(YATW(H`{h;y;Rf`}a)q|4IS>|NIryql-jjR{s|wGa4=)))R~; zm`~9DDZyUK>-*POoi@={Jap?eC` z4fwJ4A4ujW|3EUkP{BqW{ac4V2+*N=m+YCa+$I~m`gRT&RrV_(U=gs~Drss!nM>cF z5(u~7B)}5K?_1bD{eizCQm~qi7GtA#-Kp|)OHu*n+Lo;;mWKmhtx%d&B#~<1#e+xX z$3xBN*ueUNPk36kZ5sW@Z@RVRcN&vXg?u!5qSP^9qB7nQ#DWP0taAkvXQ_(llRo?= z@j&ze_E;9xb+-CmWJD31G~K{4nJPgLZ36gV0B2Y6Nn|LUxX-Hwqn#|7z-IAZP4$U2 zKy#EimOO>$Jc;7^`OG&>KA~;Tin(XF%QP@*R{r(@8u#j#V_|>diycs9BtPwiFL&iz zt~rY}jyS$@McW&Wn-CwH%t%?eCye>OxVCvqB!Zl!dbl2>hTGLh21TC?nUTKO%#?l+ zrqO-<+Ecwx5My!ngo(fJ$3?)8)F-|z&f+Vjr|)DSSHT1NYVIv3S5f=KB_x+n;?AIS zzYbi-G_YAKgF%va-H+K*S-i}oB}p>A^Zo0_pKH%`6cr5-^G0X@452- zm)eP3BDX&*Js`bkC~ue_5jLYf4A-I(_DGGrdGXvt@nLK{{Y>)6(|)#LCXifEB_aYmuY!WraR8wQ2PtDmuO_K@u^1`e~p*tqf9s`X!IYWQyovpuKY=a zh6JviJU)LUd4#Oct$Iej5s)4x@-*6Ot(XW{iEcve79`x3r9Q%1yn*uC1MNNPyuNyi zsm*FQ)_E!GsheRZYQ{oW%ryH8GF@#CB?(^B4;u4~Uo~Hw+usQ+3$mUp>t7FKHIoys=V=Z;#4b<%RplUwg5%x=^OYI;g#;6>ko3 zE2f*Q#1g!AGL&^k+7|d?T1iVO8Xh*Dxv@7G*2l412Q2R{u5h--9;nr(RF4y)3rLLY zh-^I9E;XjC#0IenW+}%~b&69Bn3_}Qw(valuve}9#xK@{qEXu#?%it^KXbM0Vy9AU zLa?Ho#i#vdl+1t~Xir#E9IJ@+0B$PYp^lBcRBK*3`lra-ucIn;wUhu?zy3Iv>G^L4 zXq2H)aU@K(h?USWim-q51zhkRcZT_cd+sY{TRK~dlnIeZlAF_P_KE&!`z9)|Xu!~< z4ZhnEEoOz>zGyljAlAY_(5vD1RbZ96S@C{}z~(iLM$;yiX5zU*FhLrX&E*N`^}579 z9aJ}_#f^kiEb6ey+(t1N2~)Xy{R^{5=jdbSEXgr2PG-}z%I~-Gv*MZZ*P9cj!e$`> zdF3ypc{0Hu4zW3lXDPnTqN1Kmc6LcrI0I?CO>PwliXufuAm@+o_jUY?rp-zTMK0BH zu>YU{kKzw^@GwHU-dC;aBNJ)vUUR4~e@}(pn~jJj=iEjh#gsn%$H&|UNjfsgVzCN| zOSvAfwn&rg+9|Nh3NtjLNpWT7W0dp+Ht>6q6O&i-Q%rEe^F<|w^1ro%?2gz!rpzMf z;G9^GnY9|YlLNa>&N@LIkcaQ&inlpu-H*6^RTE=OEk1U0Tg zw>%1X75z)nPQpIVAAtf7myuy9Ug{aEAbN49L#MmOI(wdsubD9=MOXw~2Xji-1t!@? zdmq;~YTv{w=@R&%2vyH8i;2wrgu8P{XEqCz%oOf}&SL^i$qmX>@xB#~4bDJ;#bA)P z*n7WzY)~P%VM0waf)zwhCm%P*(oQ`p02Z!{66p;oOA*QAKa)yH!!5D_l6>2V5sn^V zu~oIw7;ZF9obkB0Yr(BEY1v$tOU&VctNWtY4T3mCa%1Znu}JF_Z6&s!sL$A3PGm*x zqLq3=D6^^tEU$-XJzH%$!?^v7Yu9C*u;}#O|66BRvrvs zUG<2cAz*KYM`miS<0Mm#exxO_0p!W7C+4!*Zm*eMu5ss;qsmLZ8X5C33eEr>8 znk@e?JwpDoy|=?5JV*Y}ZxDS9AR;o&Mgg?MN3&>lB=pF-h(}L){Dqs$;uzdls4%ab zr&ho&NaJolK!{wV*qYw8yqV@)S0p9flCz=(tz%Q`j!D1#6Hy}BisohMAllC}emqkI zzi+vgOi%>yHr;;^PRe2w$Vbt2nzK-7rbD+l0vQMVjIC?XQ(cZXL;2BmV4-FIIaaW? zp4|wy2w~}!$LVop9ch0vG%1j3ASeSpxmH>bP3FQ-6x%0RZBq3vU4CR;38v;DB&SK$ zm_KbL@meqvgVezJ3!bm}^zl+1PS`A`b(OP!z^WHBvBMclsro>F205YA$WcO_u^DM8 zSnGHHgF@lWaIf|`DCgw!rP}V%Jx%cQCwBN>`0h!bGO44+UdaUpA-9X(YYJ*^Ei-)mHy~oRdOEIu_^~cam5w}PSbog zqQ@1V|GYmEyV+0y%hERc;d|Y-|IPsjpp&}M?rYr6)n9}+?t=jWYlhlQ6SeWlnXl)& z@NXrsErk;X=+%7}G-Y{^MnG{ov`Gg2{4dws_Awxq@#>PH1=RG1`ks6|wp6bp5Iifj3g5 z6~25o?$6Z_!>-p}ePXDzJ*_^9cpo?XB+uo%gzB{~f{<~R$P5oW5U5K7^h$X3Sa?KfJ=nreyck ziR*1L-Q;9M7Z}a@3(J#uq%gz%8JR8Oq~P~=j9-f9{$&dzKGE)W;zjdkR2%0Ci7W?Q z%xR8Jt%2M!$%^LG+H4&q#L5mrZ9Q_i1ElWw+OIF!0af@iuUi&{M_9D|(3@oVp{Os5 zaGf~YFli=ZWaFC;c#iZ_9XWWI!0iyrm(nx?R0p7rA&MkEk<+(?vwa1;+9CWnGTI~<{PQG3<&^Z5;JOrli z#aga2#}XRd%>^u3e0%8QHDC|&YI@aKB6Cd{%645b<1%!t-z~mZL1YPTU2ex2W+-TL zTIIXTcwC2AkUla@`~5+gO0{rfS)g-Xb1&$$XW{6)irW31iw6eoIQal0pQL$eJ+_$< z%ewTC%r|C$FN|CVDj$(-_D;LEH17JVgUS4R6U}-*<6s|!*+Wl^Z5rMB1eT5B`F$ocko_xDg9cG-=*57KJ}6%=Nsx1dTQ^i=JNdw0z`< zrD@)J5nnzXiT{Q=603-U7*RXrSU5pIA!)lmPOoOAI%(5(sOBjyan!rv=H9;BwJS2K zUi04V>aCpdhgQo6GR)V6-B-$vrzicwns%7ESNJTEwr)J=N-8ae3hFebCaf*g2s$~T z%Jmqtqhht^>QcbI{on(0G0C2CRM zU#ttd#v5;3nvKf>1Ryh4D#gy=qliW4eH9^plc1ic!(o{5olv8`GjlHE{Yt&UD{UiV z&?zLeQqwiAk(#d^T;H8YanG>#2)RXa(dS zy5ekDSu&fRLO*iMxSekhw#^F3FWolS-vkkflr1k6Zsa9%3G~=rhaLg#k2F82VL^CX z<(Eb?nmvYA;Ld)QDu{Z)Jmic(>Qe`>c+y;BF7@F3rxg{Q*M4wsgW!q-RA}svYCGgLLjJTEe)P z(*7v7szTMR;>wx))MkIII%N(botyp&O~^n*B~31%;8W*n)TjhnB*RA}lX*^eic{df zO0dx&N(!LK^nD^CtnG~&oN9dSAootz^QrHoQ0BY(v^cG-ZabQ{e3cC4q;Z>@9*Cis zs8V=_1aU=7h2w(w+hxJ#lBv!t@b48Qq$pj&CnEbRrqCtrMc#}~F6Jqc87oxxF9P|N zy<+Rjmi#X;W6k@#2Y ziyo#fIq)-+>m(>L{uX%q712&**-lfMbq~|1mjUb)j{XIBnZh!rrbm*5G#CeL2?{;rN!itNpcOo+fqVLuG7NQ9&2~(89Etu#vO86%Cc(#9=9KGdB`08VwDMcVP3mz3yXX}T6zRL3#`0`K zU7bbF-5P44dd-(KTUJmjtkdS@8G9_++^Mf zicp$GzUiCL?2lX{_PW`uE3_X1-&V~TF`Q*mncn&#)pPl~jo*OK8K|VYPv8m*IZXi? zyQjVU^)f>A3n_qKUfgwSE_1QS+1f>Hi|b>|&hNP`35Oa~yWb`6=LB;KmKwC*$x8!c ztI@O^i8>DT-41tWhe|WT8`~)9n2`G? zDEY`KBv?qmY*n;3x%B)Yz_mCaAixXRe7ch@);V!yw{z+O1=9gVe|&Ogox6Xu&Htgm zY}WR712E{&{y|A3%ChWG7>~BIql}mD^`KI<^RQ4lci)OIZ@==O7iS3Jj3B8ZoD^n} z1slyamTkruv5Vx?rh5{5P#yAoap!JhkW)v-daf=bk=W)9O0MDxH-2^Qe0|Y8y6}>a zWPRIRv^??1BoU2?t}SM=bYnL`q_;R`dT_24roAx;kRzRr$oZ!&B4c=&o{@(@>qxt2 z5l?-hW8&6r_)ZQ$W?k2OT-k%+x`(vtj01YXI1}fZ15?2hf@fpwcTq{@I0)))Z*+bk zpnKQX6Z+c{ILQ*L1Q>UG#On|kIPCJkh&BOQB^{eYgPFYS`)NHPqA(7Fbe{qa2K3a0 zV){!I#e(UO@y3&h_J%VV_yID!jD!Ue{)qj~er{uDb%z0C$)r%)4aVo#^3UY^}{~9kj{$m@6hjASO0S*sK?vw{3GRi%9vJ1)<`K6Zqh+J0_tSz!4=FD?zT=n zZA!zu?gt6Yb}L2U+#$@Gr zw_Y-1vH7*OS?hEVatc^dq#q5l1W$~h+Wcb)NYp7ul781^J!cF6MJg)} zHx$6Xyb!BH?52>hlzNVDk!@DiHk!$$`sd7OZME^_hf(8vA>@KkM=Z2Nbu+Wj9Y~`azn3S;AkhGRy!u6mO!l#NHF@(kS%pZsTEXYvorh1e~Uv{k}HSz@$7)C)!{;c0eWudao!f*9PYTKD>VMrrP%3F z{mO;+T+NOIS1Ft0cETGW`wz6Vc}`Dsm%dw>X;Iv#iVNi)=An0V6UXr*(Hjd zHVp$CCi5j4h6WUAZshNSHp5j*fkeayI*506x_0P$35@TFOQRgrM3y0U@0_VK<8VW@ z9GKK85!H@6Zt`_&gP9wujRr*m=jnvZFI$?aqv}aR!KYPhGbSs_8D2~Qiv=1(7Cqtf zmT{TcOvz2a)Ns!H1w41d{8AwWQ|e^Yrw@^7ys5jLx!3s7D@KjF92?8;8`*7`u?3Sn zl-s5=WLlN-Z-}{ZZ)Eax)7@<4HwsX3#=hcU1L2{AgZZAhCz%+I?zS_Ig>W^OuvVv0KX zW;4<-Pk6IqToekE*$fUF>g5;}u79VXYFO4#!VMbchZ9~@;kh@5a?6hf(QG1>vUzZe&0DrZ-sDH3;J2kS5Hy;XnzjbP)vXj0L0_OrQj%jQa2 zKGVDpOP;Tk!*Gfw$xUreD%Hp7TbnBK|H>+MU%6}fvsZTW<5TSF?CSUpZ=0}+<)3+_ zarC`i{h{TKMcgPAmBZs*wr$GcE@7^uJCruT{@muBv4<)4%tGxd@+oWD1g*>p?h3KD zdSG5IAWY@BXHXSV1^t|b(oK$8AA~<0cgUaP0Sv;#ynEU5{7mBolZL&T$04s*Ew#Zz zsi>J+sm0T%EMA!o&{>+cIdp%(5Ba&b(my#T9V45PUz&<`D(S|5lGIcSoKY!mq1Ywi zL!d>lk1M9v5MucYp>9BnhA84Eklm5yuD64LY8>!y{C@9J@>m&M`MxBHp4~Z z;^~Mn53FaV{6&|@iugMgv(&t+mQgvwmg7G^nvqHdOO*dR{`ZggGZyOIsfcAHTvmK) z-8RAa(dUj&ZM}D2eH~D}7$vS>RtOLRqfai>{XS;urEkSP=i_^37OEY$Gr~dnM-tA)sqGkEg`yE z6)_j}0|pxxX!HgxMeZMJ3UYU4jRqc<&&16fB6E}BFc|MeHSIL*LBuJwG5RF}o)c-@ zv;7sN5l#>_q=XP4dRJu3{!3T61vFKW>|XYN^F!?faUc1Y^iX$h<7pypZ?{!$Z*Pwu zMI=1hxY(&uvCZGV{!Zm~uJ4oeo>T7N_L_CWSe8K)dEl29g$AbjJ@M-JO+SS_x*U~+ ztG7@hvEzjY?7h!QX6fGcb!k8GQ>8@&CU1R!y_E7Z^{iMke3gKJ_n#!(H=+=7#@s$% zZ4heD&hxRkJK9%vBhS-5Y7PN?mU~MV>XjpR&qJTdGQdhLLY}GJ|AwO-7^u+-S!D+q zLwaZOccy815uV!<*|Lq!JiKdH7I3H<>SAZM_r2NpiSK~SRkOv~sj85%NcBBTmG8JAdN$_#*E`2qy6|bR&1iGZS2I4ws{=H|o-0!k``ks!V*eyLIyx@^ z?x9t&mq0Z(`_9C$D2Ceu(-Zvlo3Wn2vE(_|3QiFL5lVa+V!Mq zOXoMgyMnXTL#WV~@r&1m5VH|~b#iQ^pnf0efAG%{-v9LC^|$=qVDf)|H2%M9mQ?2N zahIfC46~_6%;vdVMCYPh9+sOL48=js8h5HcD*m7l+N7GVHUrHLi`lJwD@_XD2wwyb zJ$6_`@Rq)rYVrY5QWqtU=Pn1eMpIJsNC(Jk=N1zX?uAgdjGwT>-4w~`66evBI zW7UdYG2wG#V^b<9tE|oygnDTKG6nZSnvyv{uw8r#dP1ZH^V7Q43i)Evv@ zkdYh?NI8d_ipnBSo42uXO3yap`p3l{=-sDGZS1o$n>+$l@N{AnSCaprq*FF^D(wLa zwJb71z#QUnVos05i(;}6On_KAc0088kCk$$RXmx;+! zAQ+ik0o+uZO(dKndv91;5Ifc;LYCGJlS%S@tOE!Ks)`=GG?OS2el)|=-C^!XM&2H0 z^rIASMzr{Kuv%RHV8t2U*WGrmcY?oAm$bQmwYexu--J}}7cav~?<RN){dKG3!#Q=W2g2B%!lP=9qwm&@UPMg(By0IMMJ)_`x|c= zd#gq4;Zay}>$PotaU|qa=bnOWFaZHFoSc1-(P)?4HZ+<6kzL&|W&2}}O$&b&9I1eG zvy?dIu(PzTmo0A&a4L{E?cj8wEhMBSMwN8w(u_Sk8 zd*>vW`eKQo0`C528d>jN_B5G{c-F{b{^rS#qx`E+GrENmx=tHqqo~m5P1Hv))LGR> z&_@Qf5SDSL(LP9DxX?)XlU>Dl{_js{p;p-M&zi<}CgdV@^FsJ^0o>jx$ zE;z*}Ul9su{O^{cCXB49GxtY(3>*oWC{GHc{Y8WZkfeV|;PEVP+bPqpqOMtQ)%0C> z>J&w#$PsC%yRWW~SDHAj5otPIx^p7#yLAk=WP$4FS3koh-DSKpW$Y_ouf`K$&;w+# zzItz{&I@Z3Pv(Lh`+nuV;V-7?zxozsC%4*?)#dD3%soYgnnfu{HjTMoM<_fc7b)Gp zYdcEO!xc8oiK`G{e!@?WSILr1h>cB>_d6v14K+hBA+T3~mOlUTr|SC33#D*L>rYRJ zg>b%h{UVcF56!EF2{g(yp(4L)J+%!`jz?u1`!v+#K{oBJmh^YkP_J##Ywl#OcN+bi z$EpKxXhsw5=%~1H`{vB=r45)<0;3vn`{rlexM3!~}cd*%xHnin(OUzP4e zGn6}!qk@yHP59Kdg$ebU6BR(SnwZeuUw1GBJur=`qYKgfN-c})g z<7QdUx}}RVNd7@dfsKJA7|;2=b)qYFa0eb4ALI=?b_q4I!eMQ2nOOvKiJfIMZM{WW zeP&zBgj9zO8gxAhrcreQ z5vpT4Lf1m$}v*FFpjhcs?!oC&SMN*=TN^u4)C$BZu{j%+@ZNv?rtq4QZh zw;^?A28jsd=nfx`{2j>Oh&F9Iw;C0gUUOw2fk@kI+|L;oi4^hb9R^U{@?4g0;O+F_ z*yX!W+tO8w{Kam2yF>Po{R;z7X&+^Pb$NWcms+_<-9$;NHk7ail#@4ji*{ z86YBMqp3Q_k+N7X|+NrU&;(vc^V^CYIup$)Sxl2|3!oJ+Z>FH!*MhX z{ydxTa&+qQitJba`@WiYBfii50+ndG6=En}3y2r6o;X;1wS~pyCm?j*w6svL8XO12S zHsF~7iMY$J#(sh^YkvRm-q>=qCZ(r;BgFX{rdCNjghVv5C_USp-|sVw)j%SSeoEYq zJIp&m<~p{)kf}HrhI1Vy+Y?HOk|)oXa+hgei*T`r=kjchQ(1{YC&R&NhzXYlH=)(? zRO+|~<;ge$)omj~Q^3R)!Ard`{iXcT(7ncFZRk*~^LGApoU&}PcK57y3cmrTXe`Q$ zyX3l1IoE_zxR;+S4oOb0Z3BRRy1l{oZy+Ux<$C(p2KoymL^Wmn)yjitav8zMV_yDJ zjKNAFhiy9HPgS9hA{++Bswe2d>Gq*v;fz!wb~-+#?4(`ppFhQDkBTVp0oX@R#cH05 zfCN`^X$H$pr|Y#S;~d?4_z$*{b-JgO&hssvmKx9)y#o~&Bjm?)td9g#xujtIua8uT znS^c|-QM5;LKYVMoI$${S=OX|0QcCs@UlQ|S&Z6jq+_DR{ug2-%sD%7@SklqY(uQ$ zln;zdmMJZgoA)XNDK<=6yQNhduoID69Xh98&Di?6vMzFcu@h@-)`yA|Nl;i|*ar-8 zF&VJ&hVy7P0X(6X)m55b)X72) z;I&*9$!OmNG|SzYEoRY_>zLXJ8MN&KuESG3L&zH`1X`6Q|Da_4jV&~6 z(t)bnjtb{3n-y}Je%rJ9%Wx1}M?@Z(r>5T|dfES=OsX|~c6Bp{QPc3qISPiVPeN9q zbdwFf;L$4qu!h)HYVmyGwXuCznItAm$93GG0iY_FS?rr+M`K}Zk~GlENXfvz$EOvi>{qnVH5aq37Ot%A%)GLtf#RBkJvUa*jGOh zvlNirWL6kb@ z1Q;!qYb~_On*9=)QrbMi(BW?vNcFeK?bWZ!$SbzFhZbDRj1_KbGpE{UhZ~$dH*0ka zg(1$F8Ns^%_Iv7!oC%mm|L*yOF!K(i)uUqmG1V&3VJ5a6Ct6beQGFAaVFzU4!b5C zueg*cNRwMsq_^0COgRWTTD-LM7_$0&0iux?Id?AeP?%mGZW!09GiWqWE52IEY}QtZ zQVh38d#@AR($U(Uh=gg`5_FD=1x2SE%aq^BQ{TZ}Rq-Fi9k3p?szhSJfP%0y49x&(o?8Ye|$eijK>kzD`(_n6sPZB(O6piq9vm zC89VDlvn;?d{2EN)InaHd`nm?$ibOkB*NMDgGMH=6-3DRh(cn;>Xb+6k`S#Lr1I&7`^&gaHh2#oh z^UHgFfb%b<3x}Mq(%gj{n^aE%FcZw(QJ*oH$Cw2|K+2p-m5uisakwSvqrZdcRjTGvPdhrrpi2+ObEWtCb?K&IS2jDOE4 zEF%Yd`Z}LKqwmw1ZJB4@Ue3i;;IY_9SUBuJBYu@sUM8M32ldJda|vW02VLxor98cC zH9+Q%@B?wscwgSAv7(@3Xk}T8UqJ8~Vh`Y1QkqcKT9geqNr7)w9v^I=iNg(Vci7EQ zT)D{ln^t8R{r3CxhUnz@f2}vdzZyi=DC#rzSaK>ok22)CLHIsDO8*dmpw^F|pS37* zop@9_9FX115HN^ybd1!o7qt}>*cW+EcO69%3MLk02WH3z$F3TnPkR4kAG)cozk71x z9K#_|f6OuA;1X}~9HQ?i>R!4(Hmx%Vua}qc6)dKzZ*xG^>Yqo#nw>AO^H;;CIk{?u zTuP^mc(-*7xC*Bbr&&>x8<-ISNrxEbCCzhCK^ZsMzIk>*Ur!gZ?o)QZieJ;zC17ic z#<<*9&ag^RlnE(M48ibM&+Mgk)t^q0$2RsEoR_leh+c%k&+tBpv%v@`6;c}N$H{Et zP2~CoGh}HJR%iXnFWGt0I+#}>`ip9*C3u{d#YxaQ3YSkz`lZy2-^{nNBdQjotcFJc z@iOIgs?^R0V=Ot|NMZUC5b;-CIPvu7B+nRKF86LJ`-7tE8A&P;uxTKZdwdT#C$}WA zvEe>v!L!|VYS*u>)I0ku;KXq8^B~-^cgAy`ZlfD6YP=_E^yskeeE`D~BA;r5VZUb++G)Ytol1Apb=atUO zC|*Gx6h}eUyWOMEQKiX3s)Os~s`@Fhy}l^u@r+l=tw`*H=F&}7eV}O&S@Cu*l3(43 zN-yuPJ+Rc0TRIGjVzI1e?>B&BAC$03b{zCT`A4Ajdpk-8mT`C$z+9y?M}`)@gJpssGV5^h_p@ceM>{9ZJdLy za!Ow|V5~>aGRRGrTaEA>(~PuT8N71WbEr497aD(3wEumZ2hKC`$fmj(_fLm!WHPd8 zyfR>@Pb4uktSb=j24bq~w8VhY@0b98OK9zDNWW{bFcL2h2SVPlJ?b3t^w zIi`PbFaFBZ8|?P0!%|T&q26Z_oWIvUM%P1K=iSG-)Q1QsrOg-yHH1gy%|*yPfOXWd z^~ z<~QcHD0#~hed3@8bTc@>jQ4P`Wh3=NT{^^JlVs%Bg z;IgV!KLOL6v1>6}?vH+?s#=6ngTUs(L|r~XUEgop<8L?=!_qcTH#>;jn-^2XNXj?c z=)278W~v%vPwddCIl@`lgElsUoVvNzG6M4b z=~`_8aH_4;7?U?>eo<{mve%jJS@L>x_?2M&Vq@rR$cdHtzCAP(y7~v@ZSZ27VEXf_ z+HcNdJo)uC<2I#mkTJ%hokPvoZU5N(Nk2@23bWO2VW8L#B`2hM>5VtQz_iq2GRO7A zail+CxKF9n}~#>uPn_U~TMN7$_8Eo-IqQ4^IB2KpwU6^#vYj%9T5 zpHr&})tNBA`+%6{jts?;wG|$1-#J$ZSBPSky*aWu!cfk-Kf#`6x+XWFF~TY+j!}5y zDJ^{DR%vfK^LchHfAXDI;hrBz(D4I4bpl5J6SsFN;1Du0uFOR?ah!=~2OagG)7@voR7CA1DkCs#A^kf!+ z6RZ58VQ>wXP~dFqp|FciiC8Y&|7QMk;Ne(g-1gyg_csrotit;z^;!LEHf4~h=~Yos zYd6^erBhV)p-rB*Ov8pH1PI2~=g{-wP))AwLLFWDiYJ+gC3E{!Cmt)DRTOR?p~F6Y^+*cST|jO3PBuKa=a65WHWH~;E!ol; zHYBQ{nWGG0r*5FO+#{I{@#_=(*2-9Z4e@So|2^ZAZDX}e+A-ZdO5cOC&z)wpP_C2C zxh2p`bZ*&3_pTS_SQGduy8>r=!(b^qy6iV|C5FMbXpx><)zxa;B?k(@x)m-Kjqzmt zL$X6)pMiq(wDn05hrERh;}!#ynZk+Y_OoPcB9NJv+Ep{B)Pm^@{;QN?o6^90CS_PGykE)- zY=T{Aw@8iTTixO!4&N=DYUh?X#f3e0Pl8t*DEzply^;Axc0NCnfOAg340pySBK~YW zW!6Qv2#7)8aJQ##_Jmu&tr#l?`0MMEDK87TN;IIrYX|#UCoG8MVcYBeKPbQIvXdfQ zYeA=G4o)@iT6&@U_xc?~UVuL+O-}5q5Vgjzj11F=t45+|`%pOTa&(@JP1v3RSf{UW zg?4mts*T3Bbe@KwW+Y=5(^q0=NSe_7k}0XbplB_Fr(W?vRCX z&d&E_f;?ABWgLV=87u26$O6db9C@$7D&=62tuxlT2xBQc39cYa0rI!wxB-H1$H+#I+z|E-MG^HcA2@*PcDw3phY&$rGDvxGj^ z0-)}rGHD7M9V#C)fDvn;RO(-j@-D1y$4D9@_EOumdNznj$DU6$IK}IyAr{12V#Zb@ zAbWD404_jwOK9`)*w@H$@knRM0-|lbF;FVSKp%D|-_dKRGh?97ZSI`q`(Q{2F^@=4}x1NWU|6!T9;?{#)oWCq>Iu;x}|c$ThSBf5jnx z(l0ca`BLbm-JK-PL{J^A_^m(7)#a{Uf35eq&}N%JI40=IWE!67<%C<`lDhZ{;Pr}# z>xKew#c-0UBjvjo*6;KprVN&!v%Q>tq0jN=EUo;+>u(#}(u)?EfPfH%RWNRLxtR%vakF2Sd}@+zA=f84A>-1`llmS1T@ zJyUnFlZQ2V`n1}-l1`x|x%Q#h>;5}@mh$eZMC&>ONGl4#QT3S#4q-WXDeIA`=S~6D zTgy(T0!g}}=Pp-Uk4-4w7uXbT>~W zS`!m9a+rqhwLmH@0tQ5}T+hzKovLH#!iytrfQMD!}V?zi3QAL=pJPw-r|HkBAk5|I&~$_{)MKIpzZcQQ!f=K zI{hPu>7r`=Z*N0LTHl7Dz1X#~uFqFse(}~Nsl9lIV!0GLvqJdHZYBM=?L#FMXLoA& z7I{D+g7TRNYABOLU(3>x-Gvz_aCh@3JAl8+X$f>dX#nDDshbwwQxgq!6pE|#pQlK} zjs^kTaA8t6_O8@yz~;~z_OhN_A*NhFBXJ`*d&=(g)3Px1s9odOoA61&C5vw9p)Z~0 z_!b>z85W$7=RkkgN>O{W`~r)Zk&Y9YDj5p$P!mjPs#?V@(n<6PVR=X2y_77#o-8EW zhCDnu*%4G7^tCEzlyB^+bC@t?JfsnH z5-z#nEdd{D(4mfxu=MH2>moqLCJCq)BSg!gUzb3iGS1isEKAIbnzfNh8x_(h`WMy90Cls)^6AQK+(R+iP;)peiD)hu_sQd;>qzp7IH1PKZzp*>45p>%oxKn{c} z_Bc8ZW0*|>*u-t#qITm}FZ^1tbL2mp+>rKisXP$#pv5g|_0~Uv4uya1Cy4V??;-`|vhs^D#eroX71RJv4bEo3o^47-p9oxWT|rCDr= z&xT@*fB{9L<7W_GZH>?(;fyj<5wlAepO(fH=iAJNdYft!){2}s$Z5JbK{v9D^7 zP3)=G^&KuD!U=3kGaRrbMBV!QsN8F4+n`%lH|)*m@%C7!5>vAQNX|}L_0bI>g&B!E zX;EZbrdD=t{jP`X+7LtMOkIaP&iPK%J~Q8s)VBQ*haz}@a78o_cgfZ!>_~6-8DYqg z!oBhn?zQH;_4-9}^XloUsb$D^`$=3}%0SeG0?fkvqyQ_bp@^xMlZh{yAL-0|-+8U> z)rTM0{1R0-0DNz~d$N=iQPDlSgEHe5b##;W*~rTu_~Eu2$lm=G4QT178>a$ zN}J+|x%DRyopDfjG7pA!nN4BmkT*)3b^NSyQFn2x9qUDbp*ZfK@}jKB2&!Cvh{0xx?Zu{7INyZtWyq* z&QHkkUgFDB^oS1qTg(3A(ewP*&~ldMJQFhPQw@sA_<IY%hq!*Te%EFM+kVmd%!_ z`PXW&gZb}0A&!|`UtcdrTBO`qd_e{x+EV?jC2iZ*Kq9y0jyQQJk6N?%LA`EE|c_!%~Lb`JC9oC3zgu{zq;8-|EcdJfDB%5kF`)}(syE}nxtA;>*s0v=Wz2>g*~+; zA1i_d>{ReW;txvXDp`O85(JxG{S7d{^VK%(;{&3Qi1k=@YWKSM0HHd_Fip2cu--K) zR?sel^Ut&E;!|JD6Dq8N)yQC+HLqb$QLHX?`09ex;dt3v8V*#r z(hqL)f?&(pmGM#@l#3sgJ^_3<3$iZk#ad<5u2XA-r`)JeF1f9{nu<8Sac<= zn>Dr!`p1}Rw5yk;LCGJ)9@ftO6MJ6)6<4>V2??4&0>Og^3+`?qK;aM^3Q5qy-8~Qp z5Zs;MP9ase1a}Cog7F+|@AX>UGyT@O>)d;8-Kx5E>g;p3eEZu` z6+17H=NQWNQ(q{_iL~~h8*o=qOfW2eMlEPTSm`m##*#APp1QbI274GrGu}DmdL1zs zp&jOP3o}>7*;(hrh!mLD2is~USZl2V;~uaf&)xtx%)Og!W%?_Y@~X|7eHpm{GJ~mz zF*arv(keFw=?!;Q_VpB*m-&&cW%2vsxmoP!JfO$TOQkqFaXbl}o;!!Sp@y-$GV#CN zY3CTgcFsStBshZ0&T;>zGk05=k+vLf5k+_$Xn=N38UU}N{YHZ@jIfSJqvcHQg#LK?)eLN10ypF3@dq+QIE-;A+)8e*5; zOwrxM^HL{R_ZZEe$f!O!;=o4@c=5&PP0E&z)cF;P-U}XJsZb)3U}KKzq3emGqN6Xz zk(3E}3U!3?_fKwjIK-Wg9Ho%x-lUfj;;6iee6RaTRG$zmaE=|5Kb-6FB9v%M9z8I_ z1Et7Z-T94dBC&kFU2|~7(k;z1pJ@t$cg`EnFPagS5%M|a1a0)st(z<}^_P*@7hn9R z0HQT`S;T$Qg8Zw`XNO*NE+jvPY{N0LldW)cW)HJEWtwFW#8wNX-*X3Dh7D794bh-8 zIW{Ib4vv9%9xHl;N(twWJVpCYH!_7;G$&qq;UY;aWU!U$YXzlRhz49Zn~{}f5ukO1 zT|JARXKa{iF2y{wxGHq0R4EX}74>8uS3bRb-1M!hUaUv8UjNOwwfC2!JuUu*xG64C ziVJT0w`lq}aag|Q5r#5q&7IBg!CW|?R`u$Uw=tg5_6t{msNQU^g4lV=y{?^p4i!%` zCa7rkM@>?vvJ$Lr{|26`ow;_JcgJ5yS_W+ezlC?u?eioK-tu0EKJ;x|5r*>G zb~J{>j#PXavC)8g-tz#-Knb$UR9D+c?G6aD*mZ|`;ery@hmOZjjFbb-e>_=Gj-+xszqZe>t|goKb8c@mp%O(X}cn zk3c!xbrOPyWu{YJKY0}J^*^Dp{7?B-#1HKn$yQzc%}MarGjaaJTk!whHJ-J5G>BZY zbD1fb-;m_YH8}2=B;A-TcX|Y)f(zpnf15=z5$q)zw({C3L;DJ6N^dd}C0^NQ1OMz7joRBJFUZ;AN^o z*zR0*WE7fv<}$UWh)^TWgm&l8H-d{~-GT5ZYgGDPS`0T0Z7a( z6!zF(+uVbqKqXjFoEs0bp)tr>?tna{^pm>zk5W1T{Z_$fKV*p*m@~QHSK2;~A42h{ z=cML>Mvpz~Lxx~aijZqW1CNe|HQ&s%j!bc6xky+BZFeU_n`Ox@Bnw5!#yJ+3V2!UP zIA;01RB?hn3GCTf9SA`7I49EBd74@JR6i{f<5qg(Qdh7G8nEqA`KbTI6Uu{pWBdl~ zX(oH=<<~U+rCa&&dm$=F$N4n5gY4$9vON~GSwTiXlC<7+?8aFt;4u_e{5^{FERHKc z?Y z7$xi&wzwvvy95WXyOODAdL&bdT(01NPZsW@+4iT3hbU$a2sj^hJKo@+sggCMX1N&9 z9`O55yn4s!|BN%sK4%*dLHJW%?u$P$d;Qh4fd8K^`3)PJSg`lUkvDsph*F)O^R}$U zXiwQB#jZhOys<%mW9M|m>^hkn!`SWQ5S2PZ(nhnBVyTE zN%uVhoM9=8pO|vWjcnya_{~B_UCqUy8C{#%iWzgzrtrDW?f8~pDgUCss zdU%pV;4pWz#cv_lN2W|}c#x=N=>209FYIRa7ZOw1mlbd8&z73xZkgK8W!RQmphaCw z?YC{8eDT*@V*F7?T!qkEZkwiU7?ZKX$0N1R6P9tlPF8wn!p{}gl0JK@&PQvvK1LFT z%gCUwXHa)r)cSS_eqO5(_j_>ujZrE{q*Mtt;)4P{%;JC>nl3hS72lf4Os*3vmtGm~ zFu5v_k-0jRLWh>fIHKAhRw7N;0!5-@TpNsVO7$qvIXe@vDI%ZUT0~wT@EMdIe&`>x zB^hXs8b_~~;D|zQrL@2B3kkiymdN!L=tT&MO& z|M!adbm_qQSfiI_kE6ae!C#t@-)t31e0C5Wq!fCSWLnD;3={hkSbega$C&O9?We4+>{!P#hLvFw zn?OsVN6#7iL_PgGi<&&Te2hV4Hzs15R&1;m-m)S^6l>RMm)m^;CeaNa%BuKoeM$QE zQ?=vOGomI4WDJTlyT*s=!K{`igW!kb97<^c16s-swa!XX@+Gjo5vRay2qnrk_Eaqg z_sy1QT$Vxx=8TNT|4wcn{b(}6X!$0ZRr&loV~Rj;^)aHZfN96rvft-d_89LhXGKSE zt_vN8BwLFQ`pT9+29V$6U^YuqeG zDDdNAYu;)TFC%m_LuRI6Gn`aq_U)N8cF}&0=c|xO`1h7rNz0pEL)je2y$d_-y9K`{ zf||i0(Kj;(+K(CtzEz?+Fn`p4vig?}IbwMe<(Y39|M2KTYLtF#(KqVI_Aa+&rSJgO zN(tPc-_JfIJdMre`}Y*V060MN@e7ky$)F6GzdyVwGk+ zCXZe=3lV(ae}fKLJ}GUeOH|`E8~8X>%y44eb_^{O|9M@6LFOn;z{(a2$p{YhG;HgD zPqcvFf4KQ!s12_2bpbQa&WSZ?C+;6m8ZZySFP~Q?8cy9xf(73*U26{_Qmny=K4n|~ z+(8(0Mq^S0s1olq{`)k);j6z%P7v0h<#%@5^*3b2y2FOv0lh+vfkl!owCGVV14OAX z4y;|*7fg0G-DOd&PMmt_$NCYfCLfysuP41_QOwh&dkeP@xDQZ@IEObd0GTuBNq1`NYEl&a&7>IEH-;Q$`y z2rFHI6}sJJbl~n(;cT2EB``VewXL|p(*bAmc8C&$MyoffLuxdu&@??iC)*^!r2eki`& zp)&WZ$`A`|A^XW0Wb!z~6Hg58n+xR+FX$lvRC|5fv}|HYm0{9nn9EkbTmK3TRFVgM4~NGdo2(mR>}jKj_Xo#Nc} zpZ44JdzrodY6`mb$?Nxb zhNDP|8L)X+2tgCp8B4OH+VSOWeU_RfP$=0r)Zodk_S+_c@0GzW%sKzMBZNrs^Rk5b z($_!36u=`XvF%*oB#LrO!cEKjR&H+rm@j0vu)5Y%kgjm2J2C4HfZQ{q(;0GK$Ri6o^X53Z8u) zn)#CzkUr-&xt+socfFz=#&LRav^mH4vihx+;S92Eq3i+%2)6GNh~PR`(j`urT#=q- z)Q(U5*rM1`y~?P1uA(1m=eews>-sEK9tAjhivAQ#p5pV++JCAicz1H3DDFHUI;zn# z%jf&mTl8U5AbaN*(*F6O$_6>1eFKPN+~RiUJiGJH8d+EkH@wzs(YGKH+q#NuXpj$V zU&Wx|9OkGU-lDk~+JbfzWOH&Qe)d=`W-d_h6us z(4wNd@Mf0Z{FQ5ypHt=wlaoL@0q#h#wUZvL&msUd;qKB2%b5j}#ueK0%dzH)$@7HW zc*>95#7qusy{ePRedag~-?_3YA%}W+&zH_roD(@+N3ty_#{3(fFxWg#TrVkpEU3u5l1goIlt@{_JO^7_Sk6@@u9%{!M1|AX?p6 z0b{3>IvzuKt@A@5^vS5`kg>hcKN z9iH$yZ-|TFxIB5fZ_JDXq9&JV26Quxj|ZuzQL4fd3Z{1VR-> z>G7s5&q6C2A{PxGr^n(oQZ9`<8c}84p*=7FTpg-xM9mFC+y8}>8Qz1!KJp5bc&`%V zKRSl$ZCI)kJ~P9l{+5>2P00X!MUNi3ofvWoVbyDX*N5+<^p1r6F)v%YSFJ#`Pn*`k zVQEMtYpFWO3j?~RP0>yCDoKsH)j>v&zp|J|bx1hoeZFl)`k~@|YstNm6b_G?0(In( z8HW<%7sa0tUQtCyOO77+iflb48siwv*AM+|;q(q!{Wy zteQ{=lHKqwXAN_6&+~kh#Enkq0ZY3Q+#Q@SLPh{j4FwtN$?))kdXIOLSW=#le9}L% z)c1t`%)4fE`QXKs6zQ4;Ig~!*7Klh=;3L;gh;&#NSpJ0mh05MQ6-8Y%V+9j66;@ZN z3SATgSW6L-C{oae^R*4b`e{i~A&}@{w8+xK#i+t#Etx1%sVys$2HcRQD3+V)jExXa z)09xO(O0v3f@Ru;1t>u#&_T7?%@8(+$+`w+K?(fJybS%`*OD2-b2ANWO5smg;v}qI zFfhCnR&Tv&n&kd*7(c-C759@(&xo(DOP*VqV1#9%J2!CRC^K4kK-gbTBWid2R0<>`Rb; zNj%gVl8W@uapBi(s}_q^r}vhC#G}MX0Y(&Nm3kq!B2fsuRzdQ8Wl-W_hnMlJX+Zn( z-d3rMKmp79asRGPilNu-qxL~xEh<+?P_B;wQ*aqeh<@9K!&_0C;d}%g<^${MbF&u0 zFk3XA8zhJt&bg?|t!83{3BgyYh`b%^eJinEEpuGt5aHpqkRmIp30W@LNle50k5=3a zg^a06#JhBXiag7ou`OhcYZuyNO&%uZ)GKh$*>(e7V=FRGUzQZS0(~(I^{a4ACcx}I zB@28`g4tXv*0do_wnLsa%@(y5F(Pqnqd|qMYq+acp>rf|F^&}b12Z^v2&!EVB!TN& zWQcmySfs9f=gm{{0(&KcRh2+apCwrG?KHiIM>TV|@$f$kJALtW8#-Oh7e&G<937*1 zE)4X*%4ryH;EuEcLfvUzc&wxokielb^;6+7^EO9k0FB_LPi2t=b)Q%!yQxGE-}lI{ z7LH*8(I*Nlmwtp@Fvu+^apE;jK#NL%UqO-OXTWEtqW0W|vn9k+t_wi>nsXtj>_vX% z=;G_lTV4-A^D!^s%K_Tg%V0p6YZ>_neswn+14{2()R0!4O2xK!6GKIo zEmcFJS?5Yxjv(XS%t2-;bYvh+9H_zWN*1dul2`0WALjsxEMF=s_eA+LHGT6kEpOi?7 zQ~qh0oK0ax?ZH$1@4WBp^EDFeNEBG=t%EmS6;V>Kn=_xS zxZb@(COE@2cRD;luNhd2U2>fcYs&P~J8BQVtB3jHgYrF1=?nJMwF5+x?)L`{eMh$B z5Y2hcL45+nkRN;#aU*B>zndG*xu$=){T*@W=V<>Wg3}&-RN0pO7ivnQ@?J%5$H{Cz78Qnr`4Qah zTZVR52ux553{f~Z(X$y*w2tZAz5PLR``G`kYy<&>y4Fr_{e^V)f4sPqS%Y`HALgHO zrWAn2A2OTYwz;(31bfeIEP%%4Ss{UJNm{a3j%-pRBN{VwEA>gk!CpIYAj$Vxa-Z3_ zVXHz``}-r@=9Ze{8`axn2LB`f)9YJ?n_ozXTM#y{cJj?xpVYZ$D3%%Z%3Q9Ws?Z7( zG+eah|CDwx;jDYB+mslhyCqma&y*3Y?dJ^MJy0E?l3^V3K`HJlsXo*XaI?6m3zz5o zvgWxE`CbcJ=>LPDv7+JJFlKg6YahG%f~>&YJy0#|$C6Fdm^GKMZIoJ|Hh)>G&@Anl zL7F8sZbj+DDPA;h73gGWKqTGblvy-2^-wFvD)Id|{^h9BmICN?g4gJPwJ%$2t3s@q z#~_2S3#!8cB1Gdv71W>1pCEDOE+fQz;s3nmc zi!Cw5mM)9%sjCQ*dwRM7t~pcTKIhFVS?DzOmO}Ze|6yD=RrctHP5d}HXDk%D+61vGW)-NTyJ`{uyB?nPMATDGl6A3 zqHeDR#V#Gk{5Sx>A*@7{Rx&F)RnN$y%UreUe^D>kjIZTfyFitsrS#!~w$fCVx;geT^*~J2%#<_;eO_^zd{zIIOV$_hil>RP zVMm{gQnIISMqz`~0-*3$eBhE;a!<7=mZ^uKefZ53pPuA`ToyX>OeVQOPY=|<{RU=5 zA6L#L3S-C}+kd;I_R2el*qj0G@w8Qk`bEAIBsnc*JS~*iW^zHcDTnZ9D~awhaUmpO zeVem)#49q=>Y)76sAeE1iJbMy9As;|0ADTd0gXqfh?p=ES_yKire#66dXL5mBeNp4 z^U}G?B$V)HoCA|{V?4+7AqCc&+(RfQa(J8~YTSl-tt5*E_#;&PH?J488>Xj@rG0YZ zp3lc6t|A=1{i>1YMu;M%F0@Nuxf8{JqaQj|ulNKm%W%fX%AL_lLUlh4Cc5BGQ5qAoL9ZZRvxRb4KaUnr--Rl;%>6d!!*+>6k-QN~-dJeKB{MX74v z7n!$5;yaIkVhgw(Fgg=O9A@|SHOG|-CoCZN)>kEl3r72j?$6lgV~Y>68=c%A5Z(pK z=iwR1BDq&)Nyf~%_bx^Uw;GZls@RJV zUak1j1tB!)x#5yIly?ZinLg3yH_BDykhpRL0XUC_ypWT0! zcQxN>8NnWyIgWlI5u~{LN5`5Y)RcvsZFZuct=x$?2Je2G&GgeQnj5;|Q8O#g zyKGi%p_~vj*-e)wZ9n9;R@t3z)MC1UaiJNW}`xaEwCgHGUnr^>Mutns{V61{+>OMk&ZKp(<(N8Jk?1mHeHTHZ_Sa~tF{h$ zPxK3k?|l%n6qlZ@8#!H!JXeiEo>P%_k0&DOPW)l#M8BBOa~naqOPlYUj@Jx3%-vi$ zd$@W(o_&9O3EmyMf4`bvD{`)jcpP|wmBv)XV+_HCX>d*n&BSAGnn9IEKbML ztWl3B|NN#&t64d&-mnSYO5)`E^Cf8x&7^GiPm{6|Nl;Yvf^=GLk4%AUt+-Q?b}e}p zP3`W3mMyhbs~5~k(MclDoALYg@J$MNX>?rL=osmgh}EsyM!Pw$exb6+yxr1lG*@^h zoe`sHINH+_mAsgzZ4Ivh6WTjQJ3>^yRV#sZV7r%`a?jetWfl<5NzEys8&$@-SQY z=X*^Y`x-MPXk+K2_HhzZ3Rx+OYxa-aw1oM>`z$mz#*1b=k$uaF!{BB`?pX94jmnGLZAznpAWK2}OH?4(k7-#{<6vqiZr%Om zyz|X80{`+3!A)+k(WQQSwk`@M>S!2LJxuRhs)T(bLi?2rKWzBmJ z9fQEEX-@b!k5lGZSsUAxUQOj+R)h$GVw+luMt}qZh^^j=dp)Oi{#b-lI|G<8aO#I$ z{j`lhKM#~OV?S{DWr54nT(_^me3c;*)*%3H5PhxgOID?Y3tKBCx_s8!#%JMxz|BCIdsf=dN{wu}Gj)`5 zRGC?Q5k3|8FQnE7Hwukb$}ho*tBznHC^*n)Q^7U8+l={v-J0l{AFk>IVq9R&v4TiR zoyR)6s;5ycYBLO*vYH2&n#@WfXqzc^4B5yEj657pb0aUNjygPAq|Qi0ujxc4h^#(# zXV^ws5Z1za2H>i?Hb$SQx|Z+#aJIyhpdQhT7)wrW#qy$`2FmZib~QalU@>NlL{qqM z)8?&cybR8K1?Q0D)T~TNG7WI!^@1=-s%-boa{1hA`f#V}#e-uVTk7dOzZpYz_SbV% zVQ|r0Bvw|jC(4R7uHBLzHv@}AS_)*NbSyNkOC0*Kc8?-+tADUpi`AF8zJ7vv2b?#L zSHOalao>#dGi9d9ft?LUfa-@QSU~OC5fVt%u)s&I?<#|Q#5vz8Z~!+T`+9XYRqM`^ z5!T&e<)f~Bcy7IuW1%iT}L2kH7an_GgkU*V2Y&ctvC!Jr+0f)^OCb0h+ZA_{c z+h&vuIyvRc!#kgoA_ZNJSNjhSjucMLyp4k|HaxUzCadikD3rLe<^Nf`-rs(h zXaE?s$4BIG{xF1J+c!P@VXtX#we9}|5BbiXzE8RZueY;az3=&FdyU|)UM6i8UQc7! z&eTmstJNs~V>jfy+R*!WB}&w44j_d%b7C2eIAa~T5<>3Zc1>3e%<6Zt=5%O#b`LpJ z9kPXrmT$~F>Tn>rwOmBF_ES770tbhfS;}h=arS@g{>l)%fO*rWUhW(Dc-i;}ZB zX?KwiY5eFeF93=kY(37QU!0LAS|0G`7w2Ib|h%sh5D9BXom>=q_Auwn72@PX|^+M50czi5|*vr zx-u(qta2W?b}CBaF)~6QeW?{KH#T8mDKnxlHGhF~b$1vyp-xsC8TG z-*i9W7gH~9#d0Fk&fvTWZS8U~ig#CRDrpAqzOR?9_G;VRVYW>H>^dJ!yZaTYHh&2s zAq!;R4Z~}w>$68GM58D09#3~I$qWnJ*eg#cnk%4oD)xhsf`CxjZcVHT1EmrLH)Ek- zi>>!igBGb#f*ny!EBN@m8MgdeLB=12q(>{P?yB0F!m7P}pAxM5Di%^Sk+=tdZDkkh zxp@3W-V1Zpd6#AUgSgw)voRk@I2yB>PTstH>o6g#nN67MVA3gLB{)9N%!Ekay4YbB zB~Q5kM=!L!3tnyoCdJDu(Z?Mwu0Vqci?q`76@dU7*brdUE9A0~u}9itNMF+%tYpRI z?7pozr@ViaOGUFCY_;PWyAr$6#BwN8v{1-A<}Edr-YR-6%N8X3uH>?)4Ioa-F5zW8 z1D@UDagSMwiQWu@Cu-n}n7H>yj>bgEd-)ZRpZVF$x{}_h2c?I$Kq`E7m?NnTEOqR) z-#aCcHI^SLjDE=;om8h>&<@R6=~AA9u*6HN9+J9K^H{!hJ6H}TEHp6y-0}jGJ`pZ zW!Za#>ykEn>}#D2V<(MXhl|0&l^sSwnlN+YoR1T81h8uA=H6=FPnZNdUJB%PC7@E$ z>IZS`1GSq!Rr%5Y;SzKcTp7A##wDHy2%8KM8yFYI%tYOsOqEXpw=DBT-BU}-X3{(F zD%RumPfLIH@ofh&*!p@<{X#lNK8B7oo7%qrp8UYoE z*US`<>T$e(!B20uw;F-;3#s-7xBbem5bh&Fw1hgguMRYJAfoSpCCZ{?L+8cH)oTGP zV^QUrmS8A%Lv8biN`czw>B53y)TR^VQLKZX)76UX#0~YD1hdGF2f5}=Q#LQd_XCOtB5jBRn#5 z?aA;aPh1RguL+y)$wbV3b0c%}j^dhnyC?9D)s6*|oM+Hh*B+q~KG$Is((# z;PA}yV&m@RI&E3qzUq1Xrde;slBWjdMl-`Jl|jqd-`Fj~ub--hh4uWHFDn7keCHkb zW)hxFo+()r?ZbzyfA(t}za;-?x)XrFR(lH#-r?hgMPZ))r2%pgGi z+%peumnqW{E7Xdl?iWV$0(M@AIcLdouRZ!gO32J38tntuq11icby92;@3@MFtj z=CIgsa%$FgQ(F6O5hSV5B;2y#rpgWBtgSYzSZ-2l77IlD<0I%9b1cKPT*E`$|JeQ2 zA)wBi1^Q>0r6!r{rkellyO{BP@VWk9e5d~t8f5p%HxZf1Gnii(Z_89$6-!E@tneAAP48lR_(G5r9muZzJSLG79#++ z3SRZA74pc#?#nkugxI87`yZxn@sr+@(btj+EHz9wJ+!BUQ{sj~x;IEXdYA!~ZC1FD z0W7>$l8uSleILRg6^iT&_l3(IhYF6cnZsGW3U8brMNy=4me^?}S)Log+1S+FnwF*s zG|~I9stGUT1oTrX!#H_`Z({+o6ntoWe0*NB(^t6`peSuJJ5o_R0AY%3r*G1Um?=G zOAFk_xy(t$%DXGxHQeLPnzth3qr`?0De3(X;Dwg~&dipj#!?PYGIyfAOf72VH8kc4 z)I_A|M>wE_9Y9iqP~MHjG4*CeG04=dhW6`PDfRRS=xB?JD~W$VwmFIG%K3Cu5p9MUJ2W~ z@6x);p7#27j&+H9i$n~`^c-!WDvGMu#BYys{Oi&Zu<48<0%W5&S}WmJhcgv6V(b>? zxDWH@Ps=^_{Plbvq-*DIC(p=dPd&{~OW_vP)GI$L72~QSvxGIkG()5*&jl)*YlYbi zk{ENLJOK;k-vv;&ZS?e}ZE%hnOaP_}#K6Cr9MLg(e4(3{gyM1VsUNv^` zNHK%x1|nc|UuqJN4`!-~^={45gfl%U5quL32J~6Fh6k#ELvi=W=#|ZofjKK5P(jTK_Kx~c%xP<%e zx4JkD9J0ebBg~y|?`?h|nOtk_69mQjIQL+F%0JDCCOmM{V#toqsZkKklTsb9CYM}* zf%o()cusk2jWSnpCwR>f28gL!D1@hk;L`26dJ`f_XPkllB6Kb_!HA${jJkgs8B=#D zeJX2=yatoO#+Za;2(&|eP=AcmTJ-Z;d4Ys@-5QK5+L>b2qjPV3FgnmCyR>Cpfzx{a z$!bei)b!}+LHpuMx2O6|(?RU=HFDe)|4e(H<3fd)ps-V@VcG`jfmf=(;!=QI?~F39 z4W-&cgzney;Tc_6Xs4kK!2RXn9(BSmq|$P>OA||$8E!X5Kw8$JP$ufvG+~j69=cnT zT0<;geKK8ZbG(gKGmSj<^Vd42O|E+khl|(!-mJIX?3NE=sumA`^XcB?JO+65nv6vL zHHfGTo2{39kFpoM1+?YpbFx;b9n|!5<y{ZVk#uW!nn`1}o9k83ip+zZ0+ZHKh+kiB?HtP` z017Nb=QByoed*o~-0atjGxJu0MsLakh|npUXDST2jpImtUPL@MF*a_IPWn`_VY7Kv ztH<))qf4^T*z)m|V!6Y}fQ&h*jh&VWW9o4$v&@0kY`xU1NyazRwuN@%2$(_H%^Qxn z?JbT^9Y>ax5t8nu?Pyv$Y0OF9N~wpq!_qTjqc0IQA_56UBB*aYo7vMeB|}M16eg?8 zDlkkddH6i{b3$|+?K2gVMwSt7(Giz2Uf!C7uJ|Y3v~PRe0#i&tm%8V#%j=#gFpPh4>Q-%-u+*d=G{Sh|U~OZ_433~t!{i6PmhxagcB`cAi|}+=HA^W z@G^Vj;)6Hqsx=SFBiq;HroI{={dg9sM|=tjita0faO%x_+Lz{a9z9l9cFSOM=7g=J zH>A9k{d{hPM)Y3Oy4zV}1F9(4Swna~X#HRwzTpfZ!l;FWM4&(z#dCN{I`AQ4ZVmEr zVS`jMOm_5iEx9gJev!AyThJ*n_d{xm^fF;%$!F*yaEsc*lWTzIM1(UkhCID>h~SHMhIN&T)IhD{rL0)wL3^X-&4N zU;b>JNJcMgI`UpIr>1L!IPU||EkV*W_Z;!{8rVzCV~ZyivwTzr zQ;;CjPo_(j^Q^$@+!DriD13gKCAbk5@^=5{WNn988k`5^Sl&b{Hv>}7Q)S^aleVvE zg<Q5ztv5z(#OO+9T_E>t2O#U5}R=97%p)Q4qfE|%;LCFiCb1>k=)$=Y{T z1lEh+evMPmJM&GJ!0qFncZro(UfSQBcP$gpWr)nH?c_^;2c?u{Q=A31l{P`<1%;Lf zF<8ctfAA>L^zT$u?`e_Bz+>hM<8%(rq_N%_X?q!h=u5K%S;a)YpZTR{6G#4_P$<7i zj9^XLJ?yY~+)0RyTQ#d~?OrJt;ykXG50&b@(%Z^m+P4oW0A=+JN}ET?DsiVbTp?+M)1tgGTKX^Xk9==(0)4Nt|pssWA|1eq2WH*}l7r>a8< zvv-T7@JzH~&IMlKNk0#43%n@QS$=Y#(WIuV{ufFNK7pmovM&w&8$Eb z=D4e>wwOQo^cNeq%!nWoG@PvsOEwPlEjMrf0uG&N4GxCT?uK zfV7>r7rFomwty~#N^E@TrEARvO^@g&Q8IeRXJ(Nw&1O&CB&ZGpSjqCZ^$!WwCvig! z@rq4K_P%bR(@aW|09bd&r`*QKpz{nE7mAlAM$>Kcqr!G8J$k^J*_k?6s@Iy?-jEttnKEKxn zrqDrTxnPek7^7YtPA^B{CT+*5qNnX^=T%M-*$TbEW#A4Aye!%W?H%U6dV0f|@HV3t z-PQo?Rhmbg;KY+`&rxe-SJ_%hJUA!e#mYV4;tQcRIUJ<;^`NIRl`dg2qBnkNlZFSVr zF3Yy8CfdJfh9hXB6(hH}#=BmJ{a~BfuQ!0{e2r7=8$AMbw7WaadH`w%bp z8USM>K3FeG@|Hx%>4ek^e(5Mu58o#gL!Lr!L%8Di8=&f$-x=-kez5J&z;j8zz66kh zX|Ty!YMN0@JohxvX0o(G_+sHJP168s6k~?e6w=J)EdCIF^lm#S4yFVNh8YNL`-(ns z9X+v1xal&NFOZL`yOP%cV*o>zCJ1LHv@vM3PfJV}vm1>T?nYf9Nt-|uxjSsCVe8>Z zN0w1!@|Y+GQ<>%9_T2ypBsN|{*0B7bFp4oyj@r8hqt&jxf>^>b#2KrLEJ9gy?+qr> zAb(D1qW=5Yb1z|~rV&tFVk1i~dyhz+wUk!q{0~1GV>`^Xzw<1Ts zCqRx^zd6B#HUO0dhW4sp=fEDu`FqXI!;Rd|($05${(f~(;IPgpNdD@rY{3M!H>JAz zAjL78tWKL6ABg^-lJfb;)8>8z>Kx~cHK20Q)^;qmz41$VJL)}E^_wkxBP);Ybi(cR zoXs-26k9T|@ZHC8$aH0`(}9-Wn+0Rb^^a@f#Ghr^_1_cDluKGe#Y1)89wvP~E^wPV z7v-QRECqqe#NWr-Kt}pAQf;p-8AQc})IqZ&Q#szknMore`mm={_v>J921pcJbV8(bOmV1GLi- z381x8#>+V^ZBr#@Y^OvOy9Sv*xSIi&EJB?e{553yX9R2|-4pWi8r}H$pWIAW&Tcr& zuce_yxu=mHJrXsBPX$ieWy`S6gb!eTxr-4)Q3=AmxoLOl`7L9Z2=j*7I^>lt9^N?3?z$*GWTI5P^H{30_QSq?mc_ac~g1j-q(Kj`6>T)^c*pW}lG5^K}UNGY|y?^es(8#uk*~iUIkOuSo zM&8t$!fb;&_yYa49_^%@_2+a+xK{$7vLwCBkT9<7cBVDTjm40E)-roJ>9~uplFLup{oEalCT|y|d?b!{Wg5wt7NVI17 z6f1`Y;-&`j&hLqey%othIzdc=Db=?GjuAR98}{y&np*MQGOu(~sYN*O-xQCNWPFi?BfiDA}*59k5cJUEkUkjF81(c#ysU~1&EV;UFK0qSl3;$H+=&Ci3RBLP2KG& zw6z{tzD`bWJ!j|l-bSFchY?uqR0L9+>)gG~Z2Q<}=pQftV_5#{O$TKzT^^PZ;17}+ ziWk3y#A76B7r0vOQ{4NI6>V_3f2;kv$D$}=KF9kF@t$#Wxm?@K4Zdj7**q*22CXk4 zL3u;#nfY0-tQvsJ$Agxe13;N>m7!=yzIr&MZ0`T`EJ(tZ^P4tMQ$^D1D2;Gv{~cep0FdFT3-3q z!2#63e*HX4NM9k2$p`aiv+mM%b~3`%nia@AvlRSxBl_F$GAy@Sq#)pNz7zS^(aVK zu{!V_D7p6e%BCrndu)Yms(H>OpUSYX!7(LjKa^`BfXlPM-q(g)QB%(j==8rSPHO?6 zXAx6;uwHx|!;gAIj#G!a90=IIS8j3&B{FF$#>4Z<-o1L|hHF=^9gxxoZTWn3_H@BN zIuWmzujbS6sA`Bw4@;yr3Covu%(1y?Tr}zUOGioSV*a5T(uGr93gY9Lz=4ICiPCfF(6*3<1JjGL zB`cUc(Bx4I`^<`{F80TE%W0_;#EU)=RfMGz!;e7hqQ|`6iMs{|JByU7;bY>8Lh}#J zZg)EzDb3lt43*71>;U_6xe89`D_^xBA5A?ykN1CCH1w-@8y7~M5|VjrXAtU8{otVR z(CcHCyq21%v%mZBDh9DCY<@EBWck_D_I>c=A?_%@n_bHf0?>J?X$ZyRsmpS%y>$H_ z?7d}BTW|X=N`)E)N@;N^g+eJ_yjXE}_oBfm?gVLp;_gzkKnNBBg#amT#YuqRS|E4{ z9(vOE_rCwV&pu!FoZ08gng2{?2@Gd>J-1P%B)wHa;(;@dL|_?b_p7;;c3DjMe!E4}j;fN?wU9A1}% zNjM<><$v6&M4Kj$e{VipJMBPLbUADnFWO8# z^p7;!6pZdeIcovyc#X`J3I5;(4oCWf99jrTL5}YjNRMV>> zjasCh$U}@q8-yP6(kkYfRbidi7up43Y|B&AB^>X?sw+4uuAPryuV`TzxNdWT1zWWd z<7Kjg=caWh2eRh*mQ$M)Di?9&o;*lCe#jjzQgS855b%puD{X0=Va;tK@qg@ zA197J!CDb2Mwv#LgIlAP!F;9i`)DKE+-2hZZjtA5k_}A=ftH;Urz7JJ(;w50rm$8s zfADxJ(95qgt7omY)tjbjW|$~`(G_-F&6)^|s|kgl+iBs!tui8wAwCz+SgFnsv@XqS zOsW`M!QzLCDr#thi3G!$oZke{eQN1~JalAsIWyXfgHKi9DcS*NoRv#o{2O(WMyx!uJIW*o|gqkN;5cqI5FNe68W$dQzN1U;{^l zhQhSvNksLy5q@<^lX5PkIP z8SEvJ*gI;>H@{U-clE>&OLOf1IcfMcB=vF&D?K$(byjXQ3dzCU!?89ksL`lOKgfoW z+2dx~CGhL4q~0{!zzxODbFacj0j#^)j$vw1S7J(QqZAN-Cw>;)bo)}y=~u^OF>4s+ z=^oSMy=)1E&pZ1K0#veiJAQfXk1%}6L4N!#W!lb`&N1(PkGh^|F$JC8bZGC?w|eX~$%g&%D|cq2lq!?Jm$BiF&WitJgFiBPm_gPQ z$fT^>aAs%*9nq3Fk38erb>CufVy%Q*eoX&q!-bPeeyR@esUROTdied(cTIu>_cj0r zpLwBZaGx}v%+a6_xxrRQx0vFKFrKCU+)xcWO+*K zy;C-Q6Km8LYX}^LHmU8|B@AYbJuq^XO>Y@MTzrjPMdSS(QXcrtduNSgL zX2VHKu=XsynNz}o|M{Fq>qmcW_ zzSKQ1646!Sk^}Z=tbfWm%}cxbvAdv;?f}|;E+(E(J%3}=5zTUQDk_fD-)+eMX>{V% z)vP%xXKKa#O^qC0-!qarS2NXs0zhEvakaKMM<&)THcP36c-VENTBYk*byL=J7n$he z15APh?bmnE2f)6Gj4P^3<~;i;k%AKLxO#=`x7Z2xyJByMoKPP1{M|jGL9R&cAwN|k zZ$ONeJ28K~$WM+WD-@imsqNzmaMW?9_=9JSo1@C)F7vALBvjJNpl7ol{&gnOecOP( z7W1aAq2xk_t{Sb#-HM#$juj&_LDTHbBlJ}l1$Pte8q!%$baz}nw)`^Yyo})Y7qMtQ zrEBymN^1~^I5DqjCcSUoe;+s7T8c58pZZ51_13S)Wd*9n95oZRY)~U`dUSwtfqesg ztTy2okpROQ>}xp3Q}W@NI2gS=6`L_>yP&pBHX((l$=&08+j&_MCC}!c5ksjHT8WQ|tS||VAPUTH z+Oa7UUXOO4mJE{KDH@v#Ek9S>N^WIPH+TxppYXa&Zd=iJ{%}Z+>^3#2i%)HbZ9H=e z6~+%X1J+!zXUdijhrf(HPG);m{4M4-8bivK{`1{8+bJyi+cOK2C2y*ge>y;U8?R@q z!QmxSsEZ~j8(R+miYm$H5RnE%A4PemL#^{k@{y;N4H_M^s@pmG6@-v(@Py%#@MG0u zS0jzeb1>WNw|aD0{1|)B(emlEo-8L~ArLII-x* zMc~!%MsrWUf%Lnkm(%?UlwbXV&9K+X+9bgt!y^f&%5{X93MI*aiY#$hRrzp*X^;#G zSDN&i#EnDTGC|u=pWez6k$boFG|;?r*%`E4emVi$Ap@YAFBQ!jh66tr8MLXLWob>? z`7vIGO*>@D*bRpZe$MU7ogo#Yb(|pgs}3z_+i6aU3gB3|P}td<4hOq6`{Y!IHnv>n zOF+|;doN$2?++@=3Fyb0SE&zM-{gL-iaP=lzk9-YYE*T!U%weH=o1!?us)z3Aie;| zR!-YrS(^;m|G_IaNSlE2FOCyBtXs*QUl_0r)5W&eijjeI%L+E%H25T->6&zSkTax~ zgKG~^;#Kh{-~7w`2n;hE&jT%o8Pv`SQo5GeHI30$b(U9gBqg-pYA4VKY)CW zs|(~S=rH- zyjIuYZCmy}QN2s#%2$t0T-tft)iDx6zl*CXA^-`NTbcCb;o6|OA)4YjHb-5kiq;>z z2+?ufh(Snt(s%)wQb}B z-9NEy_T9aQaBWbNk|UQcek5wKoFyYS0S{gIIWHJDo?nVFYI13t%(0pe@Rl^Sxs`bZ%(bc)`han zv472Y8Xt`*5YX_XX(}amh(Orc5H~BwR1d+bekJq>LEE=?y9l=CAsS?Pa8`y#T{I(z zTM;(C6os5K(J>p=*|xj9Q`HT()HaZMf@i=EllodkzD({wQ<028CBxy%$sy~n(|qcw zX*0Vhmdj)DG9&2=zxL*HhmWBWj`bHp-6A<1Rfbp7G9qN(CI8?}z*!Q!G;W2$0s5iq zQPCr=F}>&CH~ThDPa>{1qCe&@?y6O@PdV!!I> zhK^N2|$;W>RTiX;h63DV3PZae|%(s!z zyZ3k&MvN+J4>SHYieJB9Ct)1qyj&nmI#@m{v)#M{9 zt%V4>lF;-*Ukr-qrcrDAJuibZtci*QkWf+&v0B<(z(w!EW_4cT1&>qtc_vcKAu}a2 zWm|H7>yP&`m{%@k#UMH*2d!e*iuHYvGUu=hJ{~KVJ{wQj&oJtN!WdF-kvE^-bD=tM z#r3}>B^^?Vyn02${h`NRt(YnCD*vnJkt#3W`j$+0dqH%H{uZb%x((!v~^odrHWHTO1u&UnNWBk2Bj7Kq|6Yat61C!v0TxBLAkCD`)WiF<9$=pdG&> z7ysbFr2a|kM;ZiR20d(0m+{3oblD@)2GoyxwpE@LW-bd#-NO#|j|R7BYu~XpAR}o> zwnmaDP2cEOq&6;5dDnOE_Atme$I}`i5~E$5YYGEuMiAy5>3py(V052ES;OBa=BFA;AM@ZXI@S%bo=)M$Fyvov-$6AwGt) zC?z=SpLnFK)aw>~0_5}>M7*mV|Gb#FR^iT{9KhbROE$ph@q~q(phgN%Mzz)aq$te! zF*36R`hNMWh==`T$HB5RUUMV!=eINz2f;Z6*?^<57x%b0s-$aBa>^FMRwsgym6L7m zRUOt1D&)JL-U;Q_mES@!!c}^%WOkI`TOZfi5MT*@Vw?7lS4(Ghri+q)dwErQ zDNX$8!;Y3OVx)Qn?KRtw*H6^%GW~q{yBCk^J@*@mgz}tw|BsdSsdMax0>wjH12W1fLq2pMJHfDdvtDBm};dCn$kI!{J9?UfC z?^{fD#DE`kG1bVixWVLV0xsLV6&u_aZhznNFuy*~v0zoh4uvWq)6i0=hi38s4r;Bc zIgQLVnQR;lL73YlxsHJJH_yINkmvZei@%PFjcuypAXEpNDyx+I!_UIDSP}eJiDl#t-U-?aWMcsvP zB-SZJ#~qLOqpb^YMFBFClbRqUr2oQn4z%_={u1NOuc7edrw?e@)&VNwRg_hu@RHs0 z7HHfqjFM?;WPREWaTV;g1gU%YiInyibIVTzBL2;}o>C0ygT|)nhgn5Q8?9?ah=4Vj zxA(O6E(R)Ss*h3#IoHg3s=pecR;)nJTr>vnvX8oLYk|gF5K1q<+*C~N19Q_w>h-wW zujd0`+I3%~oKytW@_av3)40n_`B=Tv+)eY9GS8d{B4Fx;yoU(xHq}=WAmTdz z8oJ0^qC#{RLGHz9$3Deq=_rDZgZcywgjB?|-M=**9=K8b{%9%P81b@{DsHDo(e}fG zsNxs4mhR3C`qGBNcT)OYj50y04vf4{$Mf!AH`vanRNk@1EFN{*pCVO7>PC+U{=G#}gi-EBiBQ_h@{-HGY17 zzTD`y*ek2f?8@T%&0piClJW|2G1Zkp@OMw{#fBY;rU_C(9aWxJ1; z2*csBzfg_27}A_Q@mJ(rXg~ibHHBB|SEXMg;k?7zYRM*=oJYGbJP?D3D3crcK_2~E zo=yWJI6^aS;y!Ll#)7U4di5h|@QC{P)iu?ZLAj_mO!!QGaRrack^^E_=;Ery9MLPk z)7>4kcw4Wkm;BQevl$Yz!(Zg2A$J@!6UAoin7ZFyTA&6>$Gb>*NQC<`(Ni~ufBkHD zZ{ftOGdUx`_5JK%!Ewa@&6 zpYsE2>A#;>=z-EoT(@3N%Us_e{m6ji{AdZ?|3XH z7pTsfKM^TyNci7B{tuc!%JlO3TQ=LXNkikS@lsQmft$B9Un6T_J?TlQQWLn3%#|(G zIc10zBJ0)=%&mc9U)sP(IBYzO=TsMPR1kBnPaH($u)U4#{V8CTlJ?U$wV}pTeS84} zQa>?p7`AVE9C{<^F=Rvjy3_X1JunwUPX@m;sF4gN*w+YO+Tk+y zhu(`x=~6ghu2tCNoI+RP6qx0RYF72Sl9e!>qRVrB%66}tg$KZ-9wS;uvF5ir+=cl# z2AaO6%R^)1)$MJoL2ck@3#<4^v7%uy4sT^e@r>+)ayEcG_8~wMj{&$V_e_vNWn#_mlXDvhIWl*2i0jzjIBrYg6(`?P7h=#Z|vb4;? z_E`ZxX+EUFt4#NPH%LlQ#jli<-ESgoo}V8y>$i!z+C;47r|-vA0MR~|lSXC_7AH8o z%Dzv}!rqj*l1HaFW@OIa+)SOiK82h^+RSK4O@MWzhEBD!nGicGi|TH@q%eU7Qd8DU zs^3lilf*2uat_l9V{toYudJ8vT~G?gx^0(-oK^M3YjT zR>gi6a@_SPL{Kld0DLSHi=!A>>5jg~aY;DdSko?5G0gAay4Ntwm#d}0@jThtgIn<* zIKSC^xIP;xdfmDGqZuk(e6H;oq? z?|@a)EJK6HWA7LlzPN=$1#*beYo>0u24DfB?Eba40?Pv{Jz-H$ziCh|u_ z;3sd%HV7uaxT`R$2BD6;+sI$`@z*~cALfRp&oSVs{k&`*o~c68KTiq)eX1Zg|OtTr0YTm|8_iCmn8Q^q5iN87^th_vX1) zxO24h^ZfA6vBD`th&G0k2l>oB;@VCOk*6&a>7tmx zGX?>awQ6cj4vj0Vl-ZRd{H)JuVC8e>R}OY;o7NTm4(?^_DC8eZ%z zt|=mFk|2yf%Rmm-8+>Jk7}7%FxOgpWl8^Pi?A4I`Sd1GhqknGax{Y5LDQz89g-QG2 zsOCmQwF56o|59SNOs!g)Z%7wc^QdO~ZlkcPVQG_Lry<^cV|;>{kGB6bo2)H#w)t(Z z-n&FYu&kZkVDsTrOp4m@!_?EaKFK`}xLM|T)?#YSLKaZNs)+$RXCWn*4qo&obt6^A zYs0UQ^Y$>k)?4D)w9Z=+^Y9XP6qrg}BVwAz@J6@$^JR6Df0(#lG-Xy535C2PR4mt3 z#3P2#RToPJnfrG1z2BKISeQPaBisxzANIglo12Rr}hxt}$zwW(Vh$_g{?Tl>}T8|e< zY~~cUYCmZcD078MJHc%u(-tR38it%XIMB0n?<{t(s{i5zO4@$f)2?f9u0V+(9H2Ym zgy69b`%k-&=2q8=MG=HQ|Be6$_+L;^a+XibkC40JewAVFQI9@2JdPJ#+4m~V?z>wL zGi`U{Z4-G@(*ua+{XV{kXB*I_I^Sx#tLFnjo_<+%gzih*iZI~=Xc&A^YeCU+@xzau znTuNKn$HWjFWKmJ&Y|8`En-TnKwQn9_QWWu{iT^z z;5R5L;`JKEDp@felrrm~yahx~N`JPO!GYW%alLjnc6~(l2`s}u*g|<3uH)x#`-m+4P~S<&S!@y4jK!9RjoL)uv3EUlV&BRi#>rZ4 z;O1%)db3&`v5Cj)x4qcPj<{(@6hpdbNU#b$pVJC|QGg>~mF&IHl0w9vX)`$LW>YH@ zQE6C~As%kMgcE4J{f;2o?+#8@@sme7mWgD2Vp-0zcZjnx7Y6`kQhfpX__l0~ap4 z|FVmU@`rh50Uq|$#;rb;hybXQv36npBoFGFl^?xvgHPp205p(V`(NA;qxa2jExEKi zfAFpY7DQd7Y4kIVPMFT1K@Q_mvL4brLNUA^IrJS*>`FwM9Hf;zYH_6#R=)WCcjC@o zLGa3ze_Yv+?`%hi_4wE)DDEt~w=eVbNkqLx+zNw_EwJi9UK`0uTj-F)&w8Y9Mrow{ z^PQOPbfkI3gROM}L~-7`Iy6=vw;?2O(C9_&>#C6MX$4sfDR88FPP1p2+%<(c{AQ(C8jXI!U|JhrgqKNU&!fS z*5hTdWqghNQxI_E;OCux{_5saJ0^QR+hv^{;H|D#)ya3pvO)^>CD~p5c^x~k;FSP2 zg+=a;l8>0cl_3VxSgIq5in~c|%L1)js71|D9+N1lYK2!(Gi%HsQpRi#yVb{vW2z4u zlBjjRq?z9({o${WaQl#Cwv1B7EI}4)Z=M`IBfzr@leY}2UdmJ-dVV4DsvJi`xbmfc zddwK0GyMGQD}slhjsOjC&1^~}t#xKLF8_ehjlksZF77lv!z$*FeW$$@!Ru$BbhLj~-?Lc#Gb^@Pq0GQ*)0n9=QwIJ_usU`lb z-6AJzZpc(cI8I}M=-Z35b|kVGBH*agK}^5gtUMkcAQ*eUfkWQL;*CaC4^GO?`C#*~ z%clOpfJ*@*+3f}E9pQy)x_c5jInV7jgoVd@)d{m;)K%>W`|t;QA(QtTP%%e`hF|OX zY#bY?Yq#CUv#aAu5~LkIRjZOCyaoh-HFoe8gkB8ensx4~%MK#rWyhSzK+90t@@3;U zu?^vw=pounCf`1#k^PgNaU&btpq%dM*jv%n3wDF#HLPaGK8560oe84bj zv5o*nAz21YU7G#jYV$jZu^uLvUpt-Z#yvz)jyy}PQJ!HTR;*I!{0|a}7iV8f zR9!>|E%FZ@H#{=T7pO>i4{4Im&41;Y%klt4pdWdgc{lg?my$Q zhe|}IFzm!KWu0oKbWctuE2;7rR#cw>+#@EflfE`~B<4Xyyx*m-*mLmY7%Ay@$G0rp z4NuMf&B!KdsYk#QWyH)m?e7uL8i(hZUUBc%mFZopa@q31rGe2ucxBmzyJU^Jfuty> z&(_g{GMCJ$O23;NzFSYIGl(YVc%@XUrkso`l45f=2;*P2cn=s+oe~>8D0cix=#`~L z7gss*7FcdpfImbQX8VHGlj;f|9^K?_)h74Tr|6Wxm`(I0`_aVp`c0HDcN4i@I?b_` zz?G>y#q#aWesBV#Sbojxo>@jH?Kv}4e$tSMvTwJC4{;$#jlnQO-|KNlt9gE~)UTK- zYTz|>clmfKVH7cBb1Qp6T#_BX9delwXQVX1pDzeVw0zp8u7$&2wl{jc%1L2(IC8Iz zhmLN@ACb#`;JG*Pm=8@{)hsuH3Mr14bgkcs?(ZB0Z1(+qcP`hWB(uf0Uf=3=zIPLo zu6G=R^Pc0OyG=WB(5qKr3BMzNx_OiK4}bP-?Oz4|!F%BIE&;xOF?XM3?Fn*{*FT4g z{?4(hegYJN6?8m0zOBvtV2=zy1xJ!!)4DskW%fVe8Syb|FVo~ZYgeh^O(5I%atO^a zlsj=X*Qz(zO-X&h9h;uD){~!Q=(oCro9)fY;%5UjA}l{1(e?M{G=RiA$}&R)?a98a zR-M}3?Al?m4wSn!$~KubJ!b9WSK67pp9+VQU;ZS5+YaGogMTkL)Ki?(Fut{t(guZ8 ztI>~jG39u%IT;XEGGqqKX@j2JM2xsQ`*WJ4R4hN7+XdKIk@s|7VOwra-m7Xd7uT;Z zDvANDpp^9WR5+yez6QC@sTMIbACzWGmpm>!M0zD0{3rlulP}ah-@Qm}9po=Eyoj1U z@c^%L;D#WU=teC17kxPF9>r##SjQA5Fh4oKQAA?^{6mwXqbU)fl&#lAu|-L{fV-ueC`s>&qG*5Cb0 zU;Ff-YkB?44Hz8m=k8=)7_C^ahge=;)Cf$Xlnd$} zyf2py448&97|7Q<|ieEgHGyR^Gcm75Q%8tWJUH= zputOF5oDd*A7+}3C>N6!k1`{xYAlCOD}<$HFPy)TVJR?=(n*J2d~b>Fp_fQA$RFf6 z74bKnQY8@k9qgGb&TQ%uJx`vwSW{fX^X2G`H;CjWf5gq{7pHzxJdk>#_vWkjx5ZYA z#UzsneS{Jyr~#^OFG0C)8)QN$Rz{buNtV!BtEO?>R`rdnyy3H^52hUatVO*%vbN>= z6%IhK^#fNPkWVeRHn_2iUBvlI&$mQ%%pf-P+Fh{bsYy`r%D)fx!PDw43jC`a^H4Aq z&m{Led|GYvh1}$WpPd-T{`_G)sg1a$hmT1fOR4+K7}sVXlXmgiZXR zv9l)LtejveMIRZa=Glfl9kq$*+%zppZiho@cF%P6^A;1ueAS|Djl*S0Pkzj1cmwni?NA$O=&5iW1W7tTN$r@h4g zUL!*L=NuxN4NC6qODh+tV|0f2J?gKjIMrMj(2GfKACPWsMKS*M0(JP|5p(HS=4gWKnZ>Q z2ai?4scc8WrrmZCsJHdDQP8GjtjQ^CUPt`9>GyN#e**LoJ8H^}2j44$E8Kap7FqDU ze}GAUCs-5*nw`F`dz>G_XjMz zGBCo_r_}W-@IQNWOFmg1vC}h|^6(C1!HwPUnn+INzm2tJ-LQ zvWeVu2}UT=Bj=TxpQ^!XX(dKKl@JyOf6>OIJ++2HtTldZbyLs~8w%zZN-`WNLm8x(G zlIddfeGz_A&nw{$DKPET)_&@U^GXTXFMSJk5069OXAr7%<@XcXUni%AWl4jKn&=;c zkvg>1WyIq@t@^s`PIVXOxP6JVa8wC1Wu`ir1LY0G28zD^?K!6$rrUh)P}ls^f#5K# z5*PvWhXB)uQsK6@u5~0Dm%(wE9|Qx5F#H8WY<9J#>+uai%G|Zlq26uWddunjSA`L- zf5C9s`tiTsz+mF4g$G%U1U|rbgg&hWB^ZZBPy0PlkRtTWlw4u<`L?GQAH}CdI|pSb z6`t`bbbgjC??X#3(9*tiCnY}iQ?5b)eTPjwM!_dx)`kSD7KA9G-u z-6?Gb6C4rHDoP5o^4?!i8h*X=P+U$Owz>Iw-Lhq5WH%Jv=><5|XTN&P(SlB%YgDMr zsl|aBfQjmqW)=a}V2OyVz6i(`eiS=R zkDUqn@-=zmVIJlVRD62)lokCfehjLRoq7(cc?^EFNlRCW?y8yk~S*how6o%7CNb%?8c0QIZEX$VqKvkHWp?sUJ@6a6tjCe8k zJP(Jcj&?`G}i&PD;W{v9};!=zMzlZY6nnv-{86QUe#H4QN!!I z*w`v8Vr{u8@_f3nc>Fo~v)46EzQpRZ6`Ny_#qGlfA@*t+d9eH7F-;6jSXHTVjkJS* zh2Eh-)?!>Kyevg*xCU3h(9osg85cA0aGNZ<9ZCtcTl%lpU7V-e$uI)jri2B z*v4EF7D|@`8=UPpArT zArNso>BRt_e0gTuzPc5k68^{A}#jC(ewNK5r*NdH8H!f#CfCyySxr zU4!DwrnsrGOVY;FfXi#L-+%C^_IsGji&8@kU+gfpn|9VTDVwtSfL;~WQiimW^<9SC zIRp8g&NI(cfia9PuhP=hzE>X1U$&A({=s|P{^&)dTqhp;eo%vqx)48A1BprT>m5JF z*zh*gm#;fQ_%}$+Zrh*kHZF({u9dweGH!rzO+$K%G%}jDASUvm)Z@@786nMeu!HYrv`$$0?2AAav2DSgko&QdrH80G| z|5b5Cno-tKboEh>T5zlPH#Rn&Yk%+d)lhN~#&J$olsLj|UtdnreYbMs0o*ykk&Q;Z zB43s9>`}5GHJNv;IS5y5_=ATbB%d_`73mY^MG@4^sRVOj(oTW&tjy&jNg$v3`Bl7k~O1LTrh^F-h zS5&E)qY)Z3x7DgQgymG6_LO2yzhc3`1j4ZET$4!`lz2^atujI@?gpt>Ukr=8{nk|u zC#M);RzubXozlJ|W~Yg0sVwAnO-m>^uTM7LubwAvle7&qaz{Xpyew0$A{vf`Jp z->anSh=)JtZG0Oki0Uv9sfJ%)>4aU*Si!o^i)wKM2$YiiEsUV?wYC(;Pup+)>6DN1 zIbAppW~X9gbYZ9|y?4u#JiFSxZmDW(zK+xKQl?;C>fmT{j%sizg2u;qwHhnUfK!*f zr)}1&uNe}XFGzNmBW=>KBqW45^H>Da@}+>=gML@T(D>Fb^6PzBvggjqGKbr@pagI& zw~3{O{@Gf2G zCxyDX*!TJg(T};G!HeD%?>-*M!9!AgxyZ5Ey3{IX@AGQ3pB8JTCPDn)Wjz=G2p4_h zUY!OZ!(OkC#Y&F^Kr6h;*C*^B36|#&)!jTS5#_RfcvBZlxSZ9ds}VqWh=aMoLKQaL z+w6BI-k&Cn(*sbM9gF_I=-_oa*%2Q2GZC-v3XQ3_2Y>0k*aNCuslGPe0+n){R;vB%fPhgv30n`{^tnTx7$m zcXWqW*c*lh-d*L;PEVlrpSEwe+`GuI$bbK6gRbNUgYwT^1o7DC!D0ipo3aodQqmaM)h20?iZu9ZB!C4+R>^jf2GzJGP;aLopk zHD3St2h~tB2OQD>rb`gt`gh)VJz|cE%i{?G_^e%|6~dUlb;vD*E%Dj}BboJZ;Tq+Q zT^E}F$roGnF?$WFdvL;h6`mpljPXhMW$|w`MexFnHi)tP9mBcrUx?n{(%&X7-0XNo z5Inl67xf3P@2cSN0>m1;Kthfb1Qyh1?2VgUb|3T&yuNY<=KT{0kB-RyFsgi?T0^bT z2n~)%RqXRaOj{zz9PRRCX}{wCh~}hUuxM^Tm-wxuw#`Qw5%+#xj=D zzzpI!I8HKe^S8=uR&yIxiG#LukED$+R0Qqv>)$>#&)48aGrL-x@cBV%>5hMEgr6Gv z9S6x`*}GQGqnzh-2`hMvwv4!Z;@SPLYpj9*%Lc=o2ZP1)TQ9M!wXE{!?w+&PyGLS7 zX-B&*Q1)BpCKPka5&PWtGGc(wMrI^JS1m8(9KM%3?P1s8_cRredti}X{j7ZS1tG2? zxMNUYwQ~_Vk%PZWVloogap1*HU-VAUC(-Q-B-3*7{+;wsGdo_BK-BivdeWqP%Q8J} zL*rLe@2{?jY|mutJbQ_Kal~{^dXr3F(0lAhQXKc4DZ$gYrsElXnE?4d`u%7W&b`P4 z#})l^AOViFxncm>?XXccsx!{5SLpm)ez8OYCW`n|^dXmn8C_krORL7V5EkNCCvW z3@uJj6-{`b0QH@-ZVry_Vg;flPZF*SbJkX(2kuM+NH4TuicYn7o=C@kvMa!Wq>buB~p#byduD8yq4ye*Nh=y+-2H~Ct$sL zsclDYl)8&iqdH}kEBu^hct#cqYni}L*RF^B{(Xt@sK#VOL8PP%_V*OQ{dvb*1X z;UQQgcYrj7@qD6EmZ|Z?pYn(Y4Mze(c28eE86#Zta99j3l+_#`rCvxDJTd>FrJ(ZS z-NFKCr}}WWV)@PcZHDpLO%^+w%Y_>P!h(|&2;9RF_~KvtJaEgnO^mJoW@zWoclr;W zCQj&2{binJPtSs(dO4aJ+t0<@_G@Q%Pb{U$6>mFza0%Tj zjSKE?y5u{gO$@7d)zrfs^^6T|)Aift4FaDCZmm{N>-EnGDXh}FJXqd~QrDVA$ZZjwvR7?tZlL;pmbAf*n!S7&MSN;Izrg1>&}!q z+M7)SYw`3j3#(Td<_l*fgYW5^lA@^ZIl#RA6NLfdenIWjOnI^fOZ$h0A9mbvwK~h1 zn{>cD7h$Z3OxNIVn${$w^QsS|aPovP*C2z9jWlQGBtU$>0VN8`u& z5T~MXRif{4Fl|NUviV86PA!vd_4Tf{F~iyBDn6i*5FuuE{WWeCxd&yf zJMkSm5U<9MvJ8qs{nXJSWsthg7gX6kNVSC_S?5osT>I;vycDnXk|Ksl#Yt!#Pb;J} z#!)W=$~cb9xE{+pG+2Fn2V3wcjqVf+nI7<+7s&dR&FRq)smFk}ei~6H0OD{gBV1p} z?gI2?DgZm|)ELGwniXmrzN3BY&M|NW!m~<&Mn+O+gjg{})m|adA3R0(NR~#+Oe4-U z;LX;(dlv?@@dEoh>I|c+d;?EBn$kuzLW;d_E(OZpWiMe7d>Ydb@b!HXs0=DToKW0x>klBjULXnp{TXsJm6}-l`P^d*-P@5G0MMo|@2Y!6 z7ESiCR=*3<4YpU zl1ETjXB24rB-f#MTyrCB>$#Lit1O|NKAYa5vHEGIz*~E2inutVmTtyz;sB5kreB(# zer4rOY_%Gt;$tr`Pw=#s;Sf_oFw1#80fpD^(%_CmIZe{LUoimB%Y!U2g(WZ|SsnCB zpg8R)bsiCQ#RP*I6E^~!qg8Kpk0+TGLcYZ-GJN2W^~!IM=>W<7Tsvh`S&UgAo5^-u zVkwUbP^{Inyj+z$J9laXR_PBlr~VB!-Y;m%n?n)3Th3J5GiDEocVb!~3jvTjJfZ$m z^>6_V#}ctmMG4>>bKoa>boX8l=>krTZTFt3m*n%j%uO+86H1sSA?MHaaiLQ&Z5+}j z$!=u*ZJP~oSHB0%IE)@+Gy&PB~u+m>e&7F!RU{1 zVxVxt=*vj6Pcxmj5zqnVuQ=%@$CSe?HL+Kf%xP1GfdUd&PW*(v&ZlZ6nI$bC_VU{m zsQC0St`Az};pR*>kl&AEVL53jq}#D= z>EpS!290zt?)*A(0wh+DmehBJ{^u0e!p`354cpg4`)^V%2<;!U6bBvtPHS^7D}n^5 z(sd?rDL{0|bmqWkAt!2Oe5gUZ4kR7LLMpU@_ACfl z<<`S8XVntMKgp6}Um<{YroPUN{tLi(rT!-t9mR@p>VdxIr@DOHXd|d)Obh=-nOnI! zvm0u_EiU%3A*0uT<{;`XRoNQkInn!rAdxf#_S*G|>c? zD4@ViHY;v3QXlMf+NpuFh#{b3=>vOeF>>EZQmd8GVa?_q=bFxhZg2+d?A)yoVI4k( zpg4e}X7OxG*cmz;+V+d(Llk42-y6W|na~)Z7{n6wVUpM7uFjH`hb#wkO)PLKpepu6D zogDaiQGZ~$O5l@W$om)AJp-zTM}{tP8+hsnj;yDuu$RtCSH+%QjKK!12S*yupp&rq zpXAPmZVgx{8yfO>0j<8|cZBLc%7j_fVGB3@Pr9#dGTdQzrleeTaNvbZk3-)UPx40aeGc!b);gmxMkSYXHS>Z z!#x`u{NiB4U+zjw@9%3Z z)hOo>W-W4RH`q;=;YI>Mdn@0J@IO5 zBkbT3F=Isg?T9Ez@%BwOB8u8CRL$>fKl6B_hvVAehG+a?`6sr@7FS3{SMlFwK)w@l z^!vqsX8Vs)Q8x{%;}5_yg&R4!FvS7q z%73lcreRJ0P0Qe`a4TwqnctHBQgvRm^1U{_-*d|^Y31cVgc1J4T&sJ$>~s9&u%S8r z&wPKoDaL8ltJp5gT)uD5h8{n~%IK^dD$NV|(9Lkg#gUPE?jt9C`F!&1Rg+|LCW~h- z>$~yI?`3oqzqQ-n-XO6FbD%~UT!~l_^u_vhh7Etg(kD~npQ(kkzZPimH+RROFGM`& zlx$exY(z?0P9(}1z38e@2mhI>HBOYXe2o8tIwbKeZl&U9rsX=DYUNdIy(5j%R^Xhe zA=5pg#J%4e+P~t-_&JDWw|x~nlWgK5!>__{?o*6lCo#fCAoTyd%ZfI22P7+NS69#O zwv~6=*TgO3U$P2F><`@FE>Y|6P0&`c58fr#1w>ULo<>~w*D)Qt5)lMD+L4y^j!K?w zytbO>7iC(_zj*`x%=_;rvK^h~NUAyCdYnuuJ zJ)538^=0jSkztbB`^gdyFNy>1>#)<1r~mO&v`YH%As(9Go?$kV-tN6hi{Jr)+uD?- z$gi#DRMmGKWt*bIzIw4*ku99;Dc-EJ)ChXo>9L^uRfsOcD^oppGhb{O_2RQ48(Krm z3#VXEGarqhZ0AeoZthkw$ICAzor~{ZBGlE$OVEz?mkqORF7>fRFH4*(roEhx6evdV z={IpepGP}w``79Zc6NJI*XkjN<8vWN7v@U^yt(|TO-L+$?hL~>>-L?;=4Aow=rYF` z)ePA3igNK-Ei(ei^m|{B>l^45#)CQe0ju7;nU1X>>Deu>tFG8BtP)Xb0wM?S zIa*9k9)w?fGX`0kiKc(3F7xALNG77b2657f)-cU{{aXKLq77cdNnvY~#Pn*E6qV9z2{f+&+H*-81mI;E?CuLEIKWov4G7wR?y3LW$J@=hrpU;Csb1X{{1=Xxc?wFyQm+Y{pEhR#>|rt;S|;RB%kF7DsA}fdS;^dF*csBuMNsG3PB=ZaV=c=)hy)Vhqs|GKu<~__$g0ubDruZP%4l64_r zNlNCcvQnUyB<+l@D^+%Zy0j3~qe)zZ`>L~iO>4VzMi$@(#%W=JWKYC39rQxcke0W^ z@2huU280RpmT0tn-EcZ@qbhNQ@^2sYP?B?0t%vS|;-yz-Nk=*m7qALN!}qY_PHH~Y z80hV_UMCE{`)a&aIdT7ev$kn3u{2JONtjlDad8pUmV)3$3(8p@F))Kv#TIpr;6Xb- ze=?s3aY1$KoQ| z?5GF#8Uy|21P7V`Af3Ni4Pq(ROTd>wxJnPbLseCVjaN};ge)PvZn0sZjwB}Awq?3N z2m!GjQhT{AlKTcv`-6FxzB}VfIt-C@Jm2ZMhaeqQov~7Wa!*hC_T|K~N;uMN3At^(0pg^}{}N9PVP?SX44u`4eucFY^c1 zNutjMY$npg+Z;`(+YAiK?U6C34h7GkMs6Ka_pohK+}e8AG9m!xSzuj*F8K`2r%zs$ zA6$Y!hc!B8t&TBhkP)Bg#jXE6$FQXjy@R5gVJ z)~{=xYm>YCBiOAU|BBFQy{hB^T|oWyfx ziB(gWyx;h&4pKy9?o$=0R=Xi+;bLag4cca4+P|qj$P+KtGW0IB6zJjYs9cY4j#FEQ zUad^xMIInrm!T-dE_j}Mnn(qwKGg-;CWP%KwX%F{(0g&t>e(XttZ+Nh#?OBDeV3VW zO%u}Fy^nbs;Esc1-#h&|UM(66)>@ly2Kn$c@X3Ke7Nqmii@N?8W_ZpOyD=hl*za0%BxxK953(O`dm~6#y~U;A^e{ z-7sniJ9;SXCJ|<_T^#iD*vi3scBYjZWfviEN=BKR8W9=}=qW#C^gVPTwP1ta; z=HAoMVbABHR74yR3oCC)bOp1w0}>}SLHmhf8GMT1EFt1=s1)g4=EcW`3t`(X6`J0{ z?$K5rJ(B@~9CdOi1N7^FS>@?etIz{mc${`s7juG7(z6a1xw4j=Ch42HqF?o{J;r~9lpPZOj{LLwi$1MZ;ja+YZ!E-qP)d;)ID1LzYOb(L zJz}8BiRVifxJn*y3kj}1)L9#=zmqzz#z26NI^L4amy)H+o^Vex1w4a{3(-n84^uIC z1gdw)1-l2x1awj3oeUeMW3i<5D?Q|V6XpY#x78e$bU&KtH{_*OnLsg)J$cT$aDVJu zQDt05&e&qI9hIb_$;8`bW}`E<{*#>Fuc1#L4wZab%9GhWyvS~val>(L(3_NS%z=Q# zslMK!9NT3XSbeQh4zpPDAuG4o+m_g+~$*VKS%C3)^N)^@qSM8 zc6+S;q02G%6lg}|US|1#(B1OtLg6YWN)o1re*zfnC*9`N+}_4N$X{Wh~yu z9R-+vCx-4nYpd>g$T%ic=A3CVbYAFj&dZKk;UxltM`*-JG-y|H^zv78B|)lCQC?A@ zYG2_1KTk`7q#yh(iw&nnQ(w)?xLXbyhA?Nc^G?>;RzVr{k61c6SFc#?hm&gR)_U1v ztxw|abe8u`>jm!~?``~Lf|OPDbzj~$05V%MjBMj{XbN8_&d%M>Q+HcSRXh zSiaY3S#y0XP_8fbOYQSRn~=DIY9*Eri21S4RQ|Z$UM^qzdN)fY-wnxNx7VyQAe#9Y1*p(7iXv&fEF+VZA85`;q#s*o8o5-7}a@ zo};vp?Dc9{YBse})#rt!^7P8)YYx))b6bQ_^?K;9C_8y_!_O?aYRDFAK+QuqS09eS z5e|NFi)=B9q6LSf;?(#m#`Mh+jE1q8&v(gL$gKSO@}b0^SmPx#T)Wvz2m^nd01Z3Y zY7>U6@u{#dT?i#VCLg;rENg+9L3wTxGdM|HFvC;Y%&}q2}t_sp-9S0LPQLiIo zY8?c|3iexBmmDsvJg6>~1~MdO*ksfXYXoVWx`8X4pLOG2vj0BHnq*kV5*vL?G9xRj zv>8)X+a#?n)>q%=MZ`czSg-r)wJsYox`?uy2w6vS0ePGp*6?7e7LThrUO0|o4-bDv` z^>og{rK6Ke>H9$MriMLj+xbinuEraAr~ z)&PE+j=SjWQbWAxyqhR!c1H|Z)2cD;aOOV19%FSa116WtvhDKU#t{Y6ax zM14~L=Ic}uI|}EY9?Ra3+I1)juB6iG@>r2sTv%f1Bmx2nfsw;crbbL9oeug0ljSGv z?d=^u8$LqJ&>IFlBGm^Nun)XyB!RB3RVv0U*~sbq8&Nq6v~R;1)n$|V_7z@%b*f!Dn!Hfu>%vlw;+^=$ zg@o@bW2FhA$HcOO+utYM>YORnojsr_k{&RvE)~aY_lc`m7Aj>UU+B!q*MNK|vzLU5AVnETFD#|EPsvuAAdSsc4p;FhuT$YWLSZ0GxhR|X`v$_-9~vYOt9Rs&mq zyu%L&iFcRrtIg?eLhwiV?V||QfCc16($HEoOAaLCN4QuYd`K76Hfr zWF?pzlV9E6MJ&4`fh^s$#Hq7~ap?=vE!;X-l5b_4o8=tEGFnxo8kIDK_ES=c;6?B4VD_7>pS|CZ`Au&;Td3QOG^0ux<34`%1x{mduazQw| zYtzcWQ1QI|^UqyJ2a7H(nhS4Q63sbExgYYM8!^!kD*-?a0x2q#?c$9K;g<*X9D|+y z64vl>o&CV(D^lG7$)=Jt#ts{gf;@9H8k2Ku65bc6HNr~$ zLgSJE;hmQtoH+a5S{O>P9$?@lag3D*9N^mLzEHS@)Puq{+IT5+k(#81pSX1A%=TC( zsnpH_+MdYKUSQaFEl3`wKXSom8xbI$*y2hEF{J952QN(3j&SALV?fd~W=xQd#hw+n z&mU&R*1m7~2}64)yD%?0)Z{ia9>6W1HLhjN7CqyPOB1QJ#}DS&E4<>+r+dmL$MKOE zGBVR*)Q*4YeOo=fFkEMOM*&$Axga2U0?60bn`P$I1oX%-f4 zrw3=5=<6}VRu+f)r;|*mt*x41&-vwOI0CY0Hx2r_efM(Mr~O=GYO4ym_+-Sc`J-UL z3d^mA2Ds4O2-K{?Obp`U8`L8K8=pr=^0@eD@~*fNqRNP>Vd@)WH;@djEW_KT_O{Qg z;)m}Ij#ln1L9I3+)lA_gFJ_b~(s*CXJh`x{$1sH;eB{PtJJs1a(3gEu(_f^lrPmTgM1(`WJ_ zR~1s^1rtY??IH-&3&tJsa*!d+F|%l{JCt%yu)^6IsbGdI#y-thwuImro~jFpwx$;L z^lrzB&@K!DQ^8)YvnzQ!v@V@g61-Bo1g~LIA{=IAo|&X6`h> zZE-?sDu+1w*Pd$#fUR2R3_jOi9?Q;}xN5o*Yw(8h?_sneS}1bpJC>ly&wyp;#Hj6P zMxb?n?bxu3WNCp=yc)C4JlbT==Z1yc_ok*ATXbCSJ}fSsEJB=0nn624shc9`&w^~1 z))y65YQLcxzBQdB%iSiNj}$jkv7+Y8B@1Pt{IYme(Rs;H2d+Gkw5hNE1Ud_5a;pE* zzNiTsQ*g`(a)vpeRG3H(`@#P7=#2lgb5`GVkzKK5aC6?lLA!6O_*R@J-cU`PR?5-$ z!c6m-;Or-y2RbV8j;6zoa^Y+`S%_q*Kx0#czVY+tE)A$;_MT4-*7}7K-wPiqBoEUj zO(KbA=0(>r%_cU1juu?BVuzRqBsd8#(NswV;qT7KAW?_paoypQ zu_0O1XJa+BPuqEvUVK}M({Lv%Ar5v`Jun0}pC^U;Z*Yi?6?G2d8T5A)g5EE0wu+26 zHlw9hlS08AXNz%3VhejMM&Cdx?XoJhHc|<=*{{t`%6s6ZO$tv+GBg93`ELe2NL*jW z*W@q346V*S&Y0BMIVJdj_O9C@4ae5)=0M@Rx+ek?6H=x#hVF;d`f0+kj>xpMBXJjk zE-MI4^vxi${MmF-GfqHcHe`-!uI)&7r8elDA!{pU|r(D zoW*(fh~T*XXZ#jq5ZVeBmqm!po$5#Yr1hjp&exB}T#Di$z=v7`#1u{X_j`vEf-1Nxh7Uk=VJ(>{AEzb;Kr zmv3UC=rGUmQ6V#rruW5lW`%S+U=ADJj1?26Br=M%Dz#$R?p4*JNztX=S}NhU3PBbH zx6pYloYZ&$1}vwe0siTLl@DTVsHS3E8)O#F2x^*25CQ&H7J!rGRsUr1H(OR9O9S$j{Ap)#o;aj6(J$o zPOHOD_ne56dW<$pyx-%r>?gf6ccdsuiLFZO(x0#GW*yf;D`qpF(%my|h&o&{(mRxM zrPfQAKtT<)F%mOOwt%=eU*BNloqnQTkMo$o{{4NhwaCiPUsXzaH`M=DX`ajon{=X72{fZ}#RCL;k{m4PtV(`3R5tTJ@nc2!mOwBcq zM{u``L(mi=kTS|Qd_y2<+Itno$_DD(B|k@y;ZDZ?%5uG+O$)zX z^wjE;n2Brvs9qt0g&`pR(82Z^H!0coq|5h*P`ng8_<g3aSIdrn9-9(Xy*>5*zdH9P|@(|0KMUSlc;1*0GRh|GRN-ny>v0aF$@$z>-cO> z#t_7qlpj)FPwPB8qpYsIoFBOiKcLZHctr!*yEoF9%L?f3`5GR+$W<(t@WOM{#-Y`5 zJMnhv1nuhTS4>_{jvlq-Yt!2u@ZHVO$x z3;xp;VL5+^@RS7k!*r&fM}Tl*D>{X8uVKUD&QZ$pbN zTyO?I!DO@Ggi6}Fm@MuS$qRfPOLS*3|Gwf!`PV(f6zR9iDmb;ot&zK~UJ)%#jsk>x zQVO2+M)+-|x7l7$7x;xK9$<7HKT3ItlMZm?>65 zN2n#&x6e|r6pxiKT=k7kaPQjO^~}UcjE++1;`MzK+w<27a}vK=cU(u;MZDus$fX?R z>kJ)IC~Y;ay%>wyXSDWxH-jF1yhgk3D$drhN`39NUfuy_Ygne2Btu}=y~UwY{DGki zMxEE7%#eAV1ZiNVGpAU=hjKz^Y-f8rLxO~L?Ub0I>l(S>5e-b< zHTSxHJkhyxB9-&sJdH!L0RBK?Lwlgx>ikE?_MPCbMn3+0|0+rK|6F(buTW(FyY&B_ zoLv6he0!ZbUCpN|Ac0%oZLu6%eusf}fhR5Ulit?|`q|Ebkc=N#k7>l3;4CRTX0PhG zd75BmsJ(-|0V~(0;5vH#7ITJg0R=H-Gc*%ot2Sj$S5UScsx_dsb4iv`2LR^x;Aq*p z@-=j=dVrxtEb$ve4ln)5g?-oG2)~&XSC3wwx@FuP*w}H(pikYLkS(90x}}C8OW)@U z3sM)vsPmTNIM8|)#Da-}JxfZ7lS(m0X(uv`BYEmz!<9($*$oLsva{J`C)&L_x7Y3LsWdgLyDd_J!;@=D`~v!#n)4i~?eRC@elC9jU` zYP&?7lgG0je*re-&}Tf#?4)o^F#UPrj*!B{^x3;$(!Kn{)PAGO}x~)>TlqB zQ3lbagiH6%OCl`I`?2nZ@n@aC;-@lNmQZJb8uOY*t(`(K_OT}yFJ?p(c@7rtrA+Fw zvPI=zT%e)^@S%fC%)xa5OJBP8@b=QIdEx6*v|^{U1`Y@Le+ z&1<)&)lRT*geyRbbk1j|prPT$@*U)(W6BmajTgo8F_kD&NDDM9xGM%>*50uD{H;Lq zkl>*jmPvuoydR{?vva8ib-_E_By5{7PPc^Il`gri>df$5JcC0=WUqMxR`J8Bv5i@HsDK>Y3+iG{wIP~{8y^mI;kp3E}ssbw|Ff&m!&b}QcY>emh^m%#*4Z$ z?Hhj#CwkTX)7s*qaN~;v-N!$k`Qba7E5{1@@pBYXg0AvOoD)%>&>{J=?7s*c&GCo6 z9`NyjONDjZLmJAAb5c_qKeXin*vV;RehO>!A=0pqb3$Ry=7(}U>6_I(zD1l#pJLpb zo5T!r_&d_7tE_e!QgoIX*5ImzwQMC~_T6!nD)U&5#u6BMU`1BKSA(hO&ZcbJS9{Wp z*9u%N#;gfcq@NHx(KV03R-PA2vWMTek|iHv=bAiH>!6x#u&Dk2mM9AN3H#N4hhF&_ zhj8xn@O_bg6j&X(|4syS>Ofl~a%?i&AJf?SDM9vDQnHB& zhz(*p5V*bQN#_2!iA&7eH5t?v%t`(=#J}gMlT&ZwFLRvt^hsvcZ({ZS(q zRQ;{QW+rolrzRky+B)+~-nG2+^O(Z6%alOpq_0%w~3c%wLK2PM`Z1zZ10e*WvKCWQykX=0(Om}u#oY8HmQ%%AjmS9dkBG|Kmfye4PRjq&yP{A*<;~nsf4K#`;<&=Ent`q!_qW;&y{oyxek>Qr=wz7p0bABsAwAYsP7}%IlyP z3kj73SGp1sfS6vQ@*o{7s4vw_s}f^7*V-9KSWApnim7gzxt@ZgQ&c5`c7s*M#no9D z7xM>~_tq+ZHDBnQd~OOM7?AKv*|ii3;D~UF8XJaFth63WgJe2hnzuuHj0L>f5fWjG z#@2^!vBcSy1$7V=X6^R=eg*SMwxUzPp3=gh58p8RErDd*aisTX;>J>=?1A1b}u9I9vhk3Y_Gh- zd@)6+Dh(s5qr6*`v0LN0fAcqCW`za~QwdZp;lUSvoAnPcAc!I6AK#?VCVDG=0xyZz z^5(3Iec9stB}mQxv+?*Ov8YL|s;EoXObvGoGt1oIB}3qR=hC7@I5iXYUgCFkeVA|8 z~?UEKRn4LXl&;}6MAYotwT%h23|;u9A`z+F87ZLPdCZeZ-hQtYJf zMhCvs3M4a7W80+r(64fV9grHJRMMAdj@B#&0F7uns8iqi%yDuxFJ~n=?o8J`rBVEY zl;n5Kn)7(ze@e$l*p|lo+amM;Xs%G+^@ARK(1-P6wE-iH74k}10%xKex8=fLVBf$SO}SH__^;aE$M_+CX+ z+1_!dsomMWK|BXmW47}`WUQ1B3%&cjgM*>P`Rk23pnx19K3h@-BNgc+t1wqX?9uW8Gb^hAg+Lx|h0A9dYC}a#>5xVlpg2iddMUAF>_mZK^ z;>b+0#{bpX--fz-w%M&2b=PhUEerpN)c9S5Fi-xuMu4y8yMWelh`i<-=GM{MW@c$x z-^jISOma+6}eX0uoYNcPt~h8KJyOo-H@MtP2_ zVN~8Ge{7ZIAL&jKZaMK;B?XjxCt*vaG<(po-YS3fS)4a>F_`TjWDrHLm@Q5{!G1Cj zdZD6FJ2y3*xUVVXj1t_?aHI(|*@dj3XRK3sE1VA9@VRKF_}~d&CS5v%i&@_f;dod8-D;G-Fa`$f_@EihPMD zD>BNUS(6?6h*Q#$LrK6}@WJQ#0?XEZkCr)QmMOvSvd6A1P(m~E+4pTnr=J;;7QrIB zK(d+Wa)%R(th;yjq`7iw<(^pLGfl<+tYcu=@9}^1KK`zQxQ>r0EZKHihDsME)f%ey zTC>jHH)ZCsc(n**cr6B&7@83%YgEMU$zE5zY^v`;6;dRhp^#CGf3ASDI010J zEP*&3%(pA7U{Q%H6!T%O(#B;{bv+x=C$q9Ya9;=%?DH-wXAG=^y_B)G_CcYG$$i z{$g>DN0!iv>7ki@go!G3mxOOoie$CUt9-zC`QuxrT1)Uu+Kv6-2x zvZ{JK92|5+<1}Au?+My!9%1;xR>H+W?EFG>KG>fftzRZyRf{aA(oM4LYLV92(XK^V zbG4N3xd)8CGt>DQUfrC6U4~`4G&vqCdFqNPbnV1q7K54}`q7^35xPT%v4`Aqr;Q!_ z+gPd9pV;I-7*6k}5o5pKoVWkVk-Wy+8u2nR`*T<0xoxi6lYM4Z#$bj+zdNICbA&-6 z31OrUz@-)zL}t#xL;5D}{CX;rQQTqHhsu#vNi zl%&~&-1*sYbSHHWu$VvZAkwI+VMKNS4|$(o?lL$T8f|?7vSvvVZ_6LsSCrRsZE3+W z^P5eoIFjZEF~*dR4!>B0_6Yi0w`jPeDE?>_*lk-mZW1i|s6_f1p8i%5e#Q9ry7%FA z9^O9oy{%SB?o`(XBkKeZB^S}?CFWL{gb8f za1r*^p*%$+&t*Mo<+B5rv4f|~)qVLZi}n1crT>a!cU0~h=pU=u(Mx9v%rh&-=9m1A zqgc85bv39XF56!YrH;;`ZX+&o+gijq_?57Sw>ag`plyQLZ~GkLzF*k~Gbevm$8aBj zcg%5m%1Ch8)5n<0T04NhNpg3YX;BV66dg^8i5!6TSO3|r*6BsovVAMaCL2Sp2>B_o z;A5P}xX#A*)>#WzN<{VxCr0{_3$N18XsIP9jl0Y28Cq88=C9bc{HG?%l0X4Z;2|pv zHD&=WZl5M<-DW`dK@L3v_Gs^@cEOi{RdxK!M+=FZ(Pu3;?WE%Ynv<~Qm8c@8Dx*%l zVQE`4H@KYu-*PFdn=U1{h;xd$D&#SS;eK)RIIqe(?AOHcqsLFoPOf?OQ4(|3c3QB} zQ25t4MHuP@P9L}a0(gsXUiCZG?Oi!piaT#QwcmR>HE2>B{O|XY|4Bc}FNFJtE)FNE z&&TfH+rL}jUu%JZ-zD&$OYzq+f8}!N@l(fHjNe$N<_fiWX_rx-zR`Dc<0h_m(Bq!+ z$0=IR%YSqQ7tkruCnU(u=z2P@Is4xDX#6Zb`uXg4bNPq$F;;j5yHZeIJz8=2dO2+8 zk1@qxdSzfFMBKU0e&fH=H=(@^|7VAzCLcIg$=ne5@PA+OuQsyrso8f6grhF4Uj_kO z1OOytG!zsRR1_p6z^^|f03id=>hw%TXT~$Nk07jwo>#j`+T*Kb=r1b(OvFh@QVc)O z8d6tKT5g>-Cm*SXg$<^dKI?8=!TQ>I`KCe?Lp{H@@#iY?i98f1d(?UD16yi7HOp8=w*(&2MXym^~X+CmvJRp6Mdgv_n-;z)A< zYZ?5e8I1KXS)6xHp`)DyFuAO*VdkJBX8K5+ZPw`{n9e5ul+#2`HHM+|`A32ytj_07 zwI*t@J|a`h%BgF<@%b3HAH9d39-#)YL}#6S{D6G6ssa#tLO_NNmY>HZbO-PWAYlS& z-&uzaeqhJ|pi;l{PQ!r{hMpuPMS3t2t4mAs_IsxhA1;}q@PZtpC-&F99?%GI0V1!X ztGb)L*`LJN;1$eBGs{pYd)Zj?AX63+Y4vhGe@XDOej`Q`KSog`T+r*Jmz+qjk(W^} zah_lv8>QLG>QOLCOrnXlH)=vDZ|JU~7bf`+lxj&ewntTsf#iHW9lL0k^JI;r zaA061RJSJvhK!>ocu}BRJD&z?3!J6q;nfg2YabEsN!yUn&FSwVGjwz3`{3yMt)hRk z<@1eBVYQm-OTDa8_*zwpm8vX5A`D=&XyPm<;pdgb&>%>Z)i>@P=7C207=KTU&5SJX zqhTbAji!J;#RPnz&I%$l^AKL z2H$5?Vd9(glu4-5GL5#FTS`P2K8vo{`+RSic=`(sGS0@#Bos%nI_{&CnNm9YG#3vb zBN4$Cqa_IsuBASOytLb^nh(gt1DkxJaRSyy8_`69DH~yU!qQ5zocLo=3GA16s1&ok zVo2P(mZuC_qf&l30*cjQodU{5Q_lAbu_Rs;KTZ_?A= zQvKT@>+K5wfcbT-o!>o2&sVcw0FS=k7`^I;{v=@9`>gOE6G^|EB1j3M{(nry32q>CK6jG|V7`bR{Xp_n0hz^PA@-yg(~3mk z$$)-9E_j&Hl?uM{Y}@^g;DaO~ZW^8kRsNS7f`lIpV9+V2Fbnd9V~P#91O$kN#OZ9% zD}NpZROhSXSXV3GtL@V}_S!|zH9f_`=T_L(c&7~1=Ghr7#vx%XRv@4lX2a==MZ2`t zo7EY`U_o0649&q-eIw4x96wVXF4*uo6R8v~i=oZb3Z&o_XD+ZE$9`P3RzM)A*Ek`q zuN*NTL!lz@xPsY<6=?@QDm29xUD^0!6am*`jb{Yy?h!}fy^B8!uO%2hU?=JfYSg2C>G8pc z6vABY`FKZ5MtoyN2a}rY-h@?#S!B)6om$^6r%$!9etU=!@tkE#B6W~SLg&2CNQMaLJ?WogHQBIf zJi~~vK2Yd=<*AhBCeI&Z-PacEvpts1qMpNNJC@E|SaSMdP%ArMu2J=CUp|szBQhZW z^{CRj5_?94WE+x^?qRI_X{&EOblFT*vga}V!wbyXRTuC!V?w#*PiZhdFHmJeHtbQf8LB|<-%8U9z?8!oyUo!dL z6LCy$A+A75B6*hhaTz4~_LVGq2bh53(=oYa+BxACX=#yA{12CM1xtJ<0f(^1yvQGL z<9G>m25x!MF`o47Bf#1HXr5zZM3#iRrZ}_6YHuU@gG&it$2|(iqwJkd&6~LZaD*-u zBazbd6#wA$GM!xs!_$kpM+zlG!SLa<4{zo5 zVh|$7nv%;w^#?ONsnme;v9x6yR2ePZ*xy@xm;7U!qv zZh+VCLeWP>2mqPbtIxvG`UDc>oD06@-(g5np;8o!`iGyZ;YB^-l~MB8(6#ft$1auLPY4D<$Lo!Iv; zwbBAZsga_s5E$}DL#BPj2^;9lDnzO=Vs9(i5+)PI+^Ep|Fj}s#I_M$;lfAypQ`Np9 z3PQK+CyT~K^-*NlmPcj;0ArN6H$o!`kk4T$(MUG=8}pwZyicE;uUbl@%%oCSa-Iq7 zlCu8-X!25T=k>sYGW9rEMn&`cF$lX)S?*DjGA{$8S^CIdDKeS@!`{BGYH0xl-{SaCY3d6tgfx_2S8XA=1F4Y`f0D*JEZAC z6DeC2Lg_FETc;zUayNXvn^&C2^%LKI{)l~pR9p$JrmcSMT(t7*pGw|zMRV2PW7Th* z^r5O{D+b)NRp3mu)@rjd-Q%Z!Ke6IM|EF`|q~4F}SAtr*RrfHd-2ZZt06yQg0HJku zZ0J$HV9HU|qGpHhTz$UJVTGC4{$C?*DE;kt0Oswq=Y?Kc^O})4jUJW*GBYysV@@cH zI0CfzCQ@s!eO|C!CCT{^;JvFvPS7~Ud2{fj6=gx|I zB*})%Dy1cyMbh^6-kPdVEOvv17eJ)*mR>~Ak26_T$VVWGaU&HqfV7FeiQB3wSQ?35Vme%9DJ?=i7**cB`hb!uQkrWb*_h2Up7L=uD+U>A@7`->g01-$ z-Z8xNhudDc1e%FrM$o80$Oj(@5_P=6QFb+aMq@YdwGzNFl|iPHnb4sE>#=40H^-4B zBto1CBtV+xq_E~qqCg_}7eH%Akww+rU7Cqvh?WhkE|M4u#Q)I^Wxp3=J`;n8a;DwZ)8Tz!MLI%8RE&ptX8tDgYcI!&m}cjM?ya!E^eqRofn7*e^)ZP`B) zDyE=7Lx!b6?woHMoeV_A(~FeF*W;s2olUkSB;MIa)o5eSZeDd;@lnX}jpiS_zKTnF zC$9hc&Ibuo>N3<~$4Hy*QpuKgW0Nob^+07fZL5S-E079_q2W&Wp$zuuLF-FNDz#Q4 z;KYUmm7vOyUogd*iAXZ#QXe4w0K`b&i&ke-Y4pWe<%6}Wts6OD=H&3IZ^@ymovE=X zELkSAS4cCF;Lx|pjf`620&8Jp{VpGMIeCyL6EK@hz3MJL<|U6AP^ux=vAc?Kq*$Lf(1fR zih>}hpdg^A0Ry6fCQ>;`kMk(blV?W1Tl7p<;+^;Xd107RBk|_3n#g1VDJt9IbbOOf>1KLk~JY z!Fcg3{f;FI01%K=QE}cD0IcUR^L)C-$;r4_W;PbdeA?m`wZ|E@@6DK}m-{;wQ0yTM}tG4U#+7cf7d|0lk|X$K#%W*eC8 z#vl8?U2!|&nE9Qp|B~=udi~1^ZQMKF9~3wkgX#AI5pq=7cnA+=>bu34$edio+cE4q zcPL-6KF|z>UoTsHG;4JBNL;D{HF^GV#yk0g=9IT4^(;dr#?_17ObYnm)$RkQ{X9=RQ-`&l{X*iecL zW8Tt?bjJLdlRHWmkVyS%?V$*eW5v(lZu82u`^GO1nK98$O}`WtFKStFR$Fq?_?&AD zTeKoVmL(PIOoK`?=j0sTDq}FCwtNxjs^i_npm?sIZunTCv69Y=wt$F0uLw8}309-- z%zkEE<2b80PqO)t!BS6^=e3$U*A*?5_XhFM_mOI)0R%}i9(J6cU#TND$tN}Eu%5_M z2u1@k2Sp&!^mi@AK}>rxnzgE(?*wWvIj|qlu3uN+p;Tz7>g~R9No-OXhZM4c^VW27 z-a*~9?pQ;>AU6~c9^$%curC(186>SbeQJiLfyZbv-a=5&U&dGPy}e}RLqlO0E^GIc zjVq^lVdN6q(PnsSc5DT@5Ir5!y~_$ld9AyJ<8OgUu2n`Z*q6Ac7U;#u`wVQ~43~?dk6SIP`<|?W^Cn|KUE*ZTtRR{I?wbD@x!b zExdSSeiVf2qS?>o^7zUVr5?S%5FPZCyMHkNg zyZCQ8{H+8D&5J0+a1~OydNd+vmBUv+od&?RTB0_7PovOMNhmM^ios|eG-IQctFz&! zYl&i_Kb7z6m#1O!snVbiV7;{LLo$MMu{d$)?gLNmH6c`!+_Y6ffo|es--R7VZx{;v z2Jq+ap4>=2abQ%|A_13OTp-;Yh^`q#L0{qZ7!zxKD@y2tWZq~~WCilPi7Q3Ro0rl@ zu{mp?8oQa*H4<`mPNZ`8$>~(|88rJl0)I3I*q43omqqbqffc`)e;)mQN?;Y-@o7|L z9Y4v@I=>>LEGg{09_yW&2abA}M$FT#kCWdS`24M5?8$yygUGs$ zPI1>{mimOZ!W^W+AQ*a5Sz)64vD^G^8qu=i@Y?O#u`289q*tm^P!*7JXEsj z7XB12l+Wy_mr?zuG>b;S8h=9?ST9PZrjGae{ z9`c!vG`RRa!uk0_+&oEOs3Zo}nq70e0$G7J)`4!SSg3Gss@$zpG-vH35uQFj%sptibL$-^|SR}9VT z!|JbQl8vYBikteul|-l{lPE?GavrFy7qmr58xMm%=vaz~f_Iq907yx_!S`t;XjQ2u z|1s{aH1Ppr*yZ1V)#pQ5s2|l~07zlO_$%a$ILa&8u)EQ$tt4rG(FNwCU(sgQbue)dw#_p?dhkn5=V|>q! zJaI4qCMzto{;sl00xJf2&Da7gYMn^tBJ+QaEUOjLvexCOuD9jig zY~PzUWpfm6S0PoeyOu+@r9zh`$4lPSm<()1Y2}qqg>_rE$(}QOw#Qb_mKbV#U?0Nf zrIQY0=$PCMW|@!j)>Kj)ahc&A%qY*0a0Ej5CI-a9I^}wDA6_e$^k39vG%3I}k|m3! z0SzA1gaSPQuL3F41mdA|v9}PWDBLN&7o7Dr?vU>NU6$vJ24phtT4~Wd^8<;9ji2*# zcdC}}ypivGd~jrZ(^QzOo&IRrHm$Kq{k)GHgap8gnav)?EnS_Dgu#++YjpI+$$-pz z?VbHi@y`qPRnCLP5tvDwb)3aVUSX`tNqVI%i|u{}M^wjEuab5vRtOsCvPSWZ?{!Gi zEHY8E0rVJrN-C{mLLcW8V$pRAO+N0YYL(m@RRTYX9jq?|`5>$$l;5+oj!toF4M3QcBaQ5521_t}tn5^k3p+z2e9LQ9a1KOEpd&eVJ2@_G7R8mSK^mcO)%J(L{zP@jt~&vYL@etZmn6ugC3T%Qo?dU ziKT=U3m2%+vDUTO!u(9W4wHw{1%`43ChHf}5|_@2?y%qX4u(?g*n4X?78Zy8=@ToL zt8%tO%!2RnKHK!eSb!aC=q;jSyPCB&=I8*Mk-nfxNc1jlT}2;FYF2rP?C>^JQ{iJy*AZ!@k@L|LKBbu%yYcKaX2EXU|V?=TwJ}1io3d>Uq+18%37K;R}G0|UTjAL>0+R+b|Sz*qEd9C3nH2?F+TLN0(TBS1~>lhtWHq3Q^O4BloAJzDqE=|)E_ z<5Oq8n4Ny{$9TR&n|+%<=CZ@yKBNwg4Y#C(h+7MxF==^9ay{tYSm^MRBAq+a?i%jO zUZA=`phb}jx~LC#5@mRooAuH!gDO>Ei2*A5zRG=P@44qNnKRIvin3BsH^K(YlR?n9 zvn+bcp)dO>ghRQ8iu8O=LU9}p(rGpw!Y$BuC7CHBIo?l?dJT&hRyP`IX+wa`sx8ZO zo&UPe9J(N(+1lccdn8&-8U?G#@}Aowy+oat&p{i>np9#(;dCDATRgr%jkvvc&PcC` z)H{LEV!g3s?c?j2$T!-S*{Y~;9Li(ks4U_UOgQL z8XV7>8hz1BCwJJtWf8St2n0At&@c#K$g;9mazA}3y&M&1pIncK7cJmOnt$2+>u>zQ zLa%b?1tkF?+|49@F75x#DLGyQa@o}XTGiCp#b$b~d2H#;q8J~K=PPG4Ter63#f)E9 zs-Gq?L^yOgvxdKIz@%YZz{Hs>E4er(QCv(`twTU)GOyRdp9b* zkhL`q9}|QH4IOBCzNjCWe)!$L3;(MKfmB~JH_mX(eevSfRe}*ndb{tJxZ_uDOGC*4 z#6!myO@04DUn_;~cgar%O_N=8bWyd>G2(WyB4^@Eci+dr&m3_q+4v0{+IHiJn=tSZ zD@e|~{Tyjq(*%I+TDrlbTiTl!+K{o|xxe4&pv_Lz_s3+fS6=u}R;_F)BmL=r{7#_b z^dCJv{V^uyCEs6NV7>XaL>yMh)k)g;E6la&ZLcw6M4?Cfj7kXMgX!KqC&-gtDG7~} zx5lTy-WJ^BOQniSWFSB4A& zL#2f}iIc@b{3^s>ijlYO02tsf43R|Ss)D*Om%+oDOczer@w*#dw%f5EEAel>w|?V~ zlRv*@byv;KtZvY@hEhl6WDBH%?q`0a`9GqkhqSu=?a`!qRO4~Qbh4KQZt#|I20CG!iycGU%G+?{t;6)_TdA}fu~QPIev zI_Wt@9A%TgE3frIhw|Y+or+wM`VTwmV`v5N?mqb@d`@(KY`vhtkzmSkg>FH=U!o>+qz6N)v2{8^ zY$gbeHdH)v{YKzgzvb(%a^|!LzH9Gg)hZM6Xbl{wINV+m4*M_4ufJx{g4$gi082Y z!^-=&wlPhb@xuLhBeZiiA>cr1ugJTRxA;bv5YxT$}tu$WfC z)AxC=^J=th=G&Yqv-nUT*yrj4(m8-oi!P-Dk(Le`<>N5~-d**(_2Q>B_=&b)%K1mQ zM=JaDh;@4N?E6^Mb+8PZKloFym*zRQaqXW)vYV5xH~o`!=Q=gkD;#dDSMIOz+{*7h z@~U4TK*u}s`u=1C3Bogr{0)e$==o?MU0`*gw8JL<*7iMg)?`0+0`#=5I$2a~YZISj zLUfPC@RhRmvm4u=c{19Zq3~5bA(|3clXC=Y(-HZaR6cIy?F}D}itt`@P5d74s{#rl zrPD8`guVoAZCg&hRx>xbA&(?5Hr(`7_yQd%D{Sd!5v22j{w?+$B@|cLF31WPWW2Tb zJgrL9mSu{%tCHJ3Qe%&h6v7%f`$}bVy!aH(eY=gu6a_wbQPzo8{n{aXdmoTAI@_xH zDCKxW+PxdsWgeu{b7_nhKIV!9)2yap65EDQE=Mt)cFve%-}`q0yWa0jEoFBtOW)_^MLX{{xoEBu70V~a3v4)CB$n?T zM-pb|goJ;uNW$LXNoI!a)D3iWN(pw9d%Vktr10$M zEXdm6%48otSvhSC)$jEB>ks>6IRL3eYohGXvuK&p{SEBTT-8f)yIeW^-n`en*aUp6 zFy@)9X2t*Q2%eeC&w zgKy%yK~Tiw=*LzSmdDmf?p}q;!|*f7`^0O05sPax>l7B5BZB2)6s%KOxuaz zCh_VYp2*f%t)5hZ(}Lv&#*rJoUCG5Ls&;WXX-t7%oQ-CwTmjF3!3L}b1^KvTcN9@~ z5rbzaG8uFxwgxJ^-;*1g_PIh2p*?MFb(hn3a$a3jC5=SGGAMZ98`}S@N322G_pS6Q zgKBEwPgnE1sz1LNki%_k2ZNav)+x&W`%;~%XZIT0qxW>D+6`w=x`Q`in03lZO zWX$eoAdzzl-uD^`5cZ3JTI%!N+5j^`L{?~59A8(mV({I>u!D&!4$e>CYZuWBDnvdR z-<=iGMgU^=h3}t3hXPL8_cD7%`AoRYSumqO*OJ_l-0Xf_yvT%d<~u;#RsSw`&g00o z9YXuljK>kc002JSaJm7HZ7>~qC6tn8h;Qe)0#-mVub5XzdC#n06n&=N%I_9j_4P_3 zx9pV>tm1o+97fDkdsNsQn>FN0Ost7!DDRKn@h^qzNPFd0rb`YHB7{ zK&x=y%S))X+Uos(e(CQ|XkvG8<6fd^zVfAs(#5M6{pRwlQ~O>Hy&N~i&{iBG93reh z_;U%<&rSHVVTh1zQvGmv`oU;*S*2Xl2ar0r-$4N;&{e+(5_(PWdGYx-UjYPQz3A-KU z?W7=7X`{Ya0YQkCOQ~pu{&m=oC}Rn+nle$i8=hzw0+(3%fSKJ6aQv zFPRoM{WY+dmo{)W!}LN%nAZcm-Fu_)KcC3bit`OR>v!bd#_Pe1S^3SMo3Nc)Rn}?I zELiJVn^&X=P=AVw3BJ)Gl}S2aPjfqKu=4|?jH)ubOS&iB9@#^*7rg}}l9R5a1G#;?@4rOM!-){MgR1w|rB4HjZHuosub? z;#N4(*_ADt!LXD{ZIUiuBM!LB(-vbh9c|5SF1y?$VdKahcfo4uj=X)#sib;#Qu`Lz6_T4`{!X=I& zDf|{-B*CED+>nglKo|JE7j7v*#iVk1WuXSgE{^M(Gtga(t1Kj5^Vkq?rtf2~bqo)o z5yjO4S4^LXep1A`ul4;BTnT%1PuYnapYXBFS|isuv`8WdS&)3U zR*4tCr7jv1*{E9K2L{O76;H~zu%ep74DUbI{NgE~S7+E=dJh)(rr z8!bC{Yh~k+fN_mchg}`mZvP%BgR{0;5!9pj;W!0R+7iQSXpnN6C3ctCKE^LMi6|Yl zbUSF>lBE!vc=is+_IB)U!?}#w3QmV~FxsqtZ_I;5>}&F;Ps0PAU3NN#}^{KpIA@AB`TP*up5}v5*47QLO<6Wg+%*);W z?m_4FxqrDn|A@*Np8*i6P_}H`${Jy9T*>!B&VJj2|4%P=f7rWKwbxtQ(|Ek(HeXw? z{j1e^@@qJY0QX>Cm4&DYLjb?xC`eSmGLs;Cr(UXL)JoJnP<0ufz!Br{u9CRGuJ~lEFP$F2&X=ep)_Uz6v%Z%En97VN^Nb zuSyEa+mY-HMF2E@CO9opv7xUROokr~Ynz++6p|hrF{C|KxQBE@hM^=?m8gI7QGreb zp-Plm7{4mtKZIdrJ6|GO=sMX%N5Y`+9RTGyFF+tHqw%$E4Hb3_B0&s!hrUYVw+2;J;xMnHv` z${n(D4XP|;=<7k#(JU3{X=4p~ti6XHeZ)#Z%z(kf4`S%bLc%S09K#5z(HW>d;)B%I z0E|s41ubN!4U_f`M_w0ZOX#*>1!LD^cg#XKAM41)3^7eyDnn#)L_F{0$>n!$UrYwuz<@*!} zk_is8c2LbYAE)>nk`~X9dcs=;SziIM&C8Q{?jwt$#LJ{0YqPg#Z8AWECTb`vLq{GO zoy}7I;6tqBC&OsD@}Xs3TP$>&NwE?Fe}%Cth~;v!1i&YBIDb-kvHNJRXq|&}7K`YP zLdH@Hot=#fk%$*22wOv=S3Y6>Uq5cKH(k4D!8Quoad^uta_mWVvYkGz^qr#1;GlDF zAGCP3Pv7R*k+2t8F7Aom{21_I@>OU&@tyC%Aj9iYQb~&mDmw^uP)q{GU09rjP>~!| z-&66!uv;okn_yIkGOz>>&^p>?xm`ksBsxq&N5D|qB1_*e$>-vNYQD-bRW-4OfDe(9 z)FiSVPm)H&3VK!gZQxi`-z>`e_+^CpQb)+ze=2i>%0f#b~-l?|0E%UWp4E&!)Hzp^2w&FEIeTkzs%A*Z2+4h-!@ z{pHmZbkmh&2nZKs&)l5;Hj{-(bGJpvgjP&^t^)^&g-06r0Reg+eDp{pb|IBe49mfM zT16O&eWjAuZZAQG!v|0+rjg<$G!K4??f26llnVR`_Z9w@fVn~*Z*Dl-$EeU=S-Z8 z$lG=Chqu@k52?^*am{urS5OvW2t-`2qpw4p@NaVHAbrS;2u&|9d}wgVaO zgQy+emn9xA1obU3Q%w)O#I1b4OEb-9hNFii^Gf}61;;eUO^7GO$XwDU=4?mFvs;?{ zUzh$HorsEIp_fCHBj&Yk^lbh4jwTf#wDnKkwiR$tI6VAD~f*hR&B9XXq=`5c|~ zjub=7-gv!W+8L{^^Sd0*${cVx8?+B7sh}pa6xsuefmHHxMWHw*}rxn!oKFwYspC zi1LSU`1Jo}lH`$tTX>Fr^pU?JSYY68g?Nq*asqH#tLXO8LfIkML2DgFsTlDo5;EW| z4xY~ni($X2v&ZdboAo}%&sPLy{`hoE;%W4o+!{*;%A=0>_N!7?--cCqfs&~4m-wXP zfUdkd=_iUwTbr9-VX~#qoBRfP{z(j)@8&-o3P_0X<#xV{VaQyzO}23VG?A_)cMR-C zv;&OeRVESda9K<=bx12PLo@w{;yWC6bjNRCmv~6=5YKwVUMx9qNK-2wS2WVtvmVrY za|jT@4+)4&??vB?2_nD2b3aI=oFN# zrI@j53wy;hVCex&PDqpZ>`#RND;A{2(kf<2k!4o)Ba*$f%FqR*&ON_sM=f9 z4ME4N2)k1fPk#Ic#(4!<{18Z@19RrrzB~yUL#o_zw>4PO+(}#=>%@0IGkMettxvAN z-M`pFplCCuP?m z6^%gkwt3Uf{%YtSAZr<9OHNM!5Fb4(7DNCntK^Sq+T2BgwW${{5CK`5!=nWGFSncN zHg711tPC~LJz2(aJ#Q#PMq)5#PquW{=HCe*%fZ1yX$1HAv=1Fjm=87VkiY$+cWUf- z6ESW{I-^G9Btb(5r?dP-kjp(cuqNcI=>ygxQYG=780Xt%htL?Cz&v&VBNj(aW-EiD zPgM9?1PmFZqf<`gnKuA9a0IZQasnY;bze=*E(s$UYno>ychNhZITl=QX%F-Lp8dq{ zn!m>!215oec16S~@RDTvV3@7$A)|a@z%v_J+Ws$z3t0#=q~i3ENpcIp_AdmBB54nD z(X`Ae*_2>134VM|6+_Nq=BRu z={JB;D}HWt^|afE+5y+XYJG>m|D|pPl9vB*+UMyqQ%(|mRX&|p_zLsFiYelJS!DO= z=ZN@uKRe@XvEG<5lgbl;p&J2HO*>OmDhKfnHD?03^$Dn*$6oLy)R7qK5Y zt%J8y(FY(17;t zYuT*zupW%B!+&)XJZ|-E>dq2Gb|^qs{xf@@WI&SBOmg;j6q`nOSQ4{KYTW2)KWGeu z7R1TVBhK+no+`*>sC-# zm~cL1o8Afc0I+kzUP*3HsWpFEypaS-J)qha%Pwg z78g>UyHou%e0seyP26FYZ)#3gs*wcM-8b5?Y?9HZ3Yb*Gy~|NWf_0}_M3*QZ9gf;? zew=d3F^pi?vn8(5oy?s`tIN+|lZ-a7kGl_Y*le0T5{KmonCWQ=HRjvIZO=7?)eUz) zd&MuWx=?V`wlsa6G{``MV5#u?@Fisd0tA!bf#4?i%XW$;Ua54gbIn z2@=7CJQNv-W4_J5DtpU|UMx?uV0tWJ8Q68)G15oCmk#-s1mkRCDl}T;XY|&u2(&oW zpB#$S`urxEqn)csMC}1n61L+H&u#%{zduQHf5qm1N;V6c#l-%lUyDx@cSV%G?SOLJ z76=@+G%e%X6&|s%evjt^wyqu?ad2}nR5{apZ?@~t4#|c1S3!rO(H^A;26LO1YHetj zlY@B!6vB$F!9)C6$z9dmsaWSK7(qSt(yCTU- z_>G!g$FDdA&sMLaA7>=&+hh87=%zCuGXd@GpTUBQeYxlsFL-4Q_vP5p-tq^2;?s#= zrS6?`d4kF;fmGJde=}5!ET4NXVXHpb`}4rQZ9vfvrOc%2mJlZuN9Pb%d_MMYy5$&# ze?lclR^AnsW6-Q>7tN2nsh;qudffc zfk;-xo`9rcYzOXU_~Ks~2kaoRIuTA$1i3s3ZS+*`aj@AvkZG!Rfy%-4Hb>@n zpRjEA)%G|)mR6Eyl3dR*sq{p&*fy5$A`4mpmx4a?l9rrc<)-H&JR3cRi!eJ&CZ!$> zSq5$Zr>=jAu6$O-pKqvc4pJs)C(ir8aJx4B+KRg5cd4bvWCChn#U|8 zT%Pj?{mf`xyDdJVfChpNKH9si3L1-guQh#Njq^n`xuC@*e*W>9gwh9LdKtBKv*jLek^}M;Cs)fI7rb74l>|Iu#jxr4wfTDq++0|vVB1H@D3yX^rlp;Gk z^pLt3VR?Q1=o`64*Ox@!_eMBvg(h*d100h*Y;x84#pzPU6wcY?D44uI5C16gfDm zbr;{5#(U!A6z|Q~0uDj?4eO|Toe(Alg| zP`yRcx$%ebEnBgRf3dxr){tD{=&o0%Z(`Us;rRpQ4))Xi5Qf2b|IEMJHcXJ3e)+=U z8)mGu4CIYQyJeIrGv&B@JhJHlWlBwDdzmYtVxADOq6;cG+NPF(fq%1z*FJZb&7gf4 z)2c*DRqQ;g+-iCk64`lVUhQ=pkZUZG5hPJ-1@6n20deKt@q=)y3Jtk-BNugUjZx!w z^~~-OS;dqTto&IqLu+4zGbek|*Ki!(kz?*YWxaq4vA&l$c4pLD5O}1mC>)ttj`&#Y z(8fFzkcRSrpFR9gQZZ6u8T`%qSZ=Dd1A;Ds z(~jJfgrC_+MsI)f!5PW|P^zC}-s#^$Pd^k%7bdb#zl{C#$LIPXwdE%LO1J!yy>!I) zyYOktSEbpPHmxiT)}=oEZHR4P3gMDwdzidPs^imN7bi2Y2j6T#@qZ;_b_kL<;SIv4 z+A-vd^D|zz*OhKZ5u)9swSmiG=M}rcQYM9OG^BoPKhFINaS&Lm-D9-7+pDt-cx{tObFk9JS@U)yPJoP&5)|YqdU!?BR-=_1X$+WR} zt?6^B9N)nkQ2KU0lr21QtzyI!qI2WO1US`6@x9fpq!)j|h>1&0tX;TUzlyb0n(>?e zymT~rhH(*)Ed;hqnifwy>6x;%I)m5}f?3W#a1tl45V&@iw(T=;O0IHi1$Z7BI`H&N zplKlRQ$1evv&5^KryXG~>r3+tO7Ig$7NZnD@VretjoXJ0ze^W58Jsm8qc;_kuQ z?@T|<|I58K2N9b#{_vE4ON~Aw59)kT9`=l!^!nq1j1Q@FxZQ@w4}vw}R({BBUN%9y zy#B)1#2=}>4BkZ!Mmciv`5Hv!3ixv7WneYb`bn~ zZ@`r~yur9}O`_~Tx{rQb^czLWd6lBtOL zc+4pMffIGExJyxYzI30<{(OgM-KHZlo z<2AN_oY^7x=Cb(zun6;pZy0!-n5ANk0OcbXFv{^e(Q?^Gn7AZjb#I!#Ls>F5ISzUf z4!D2w&d*krK$U2vcwK&U)yKW)p#t*dubltM0gx2khIMCi@9q&E|Gzj1SGO}u^3AUp z=0GKL+>uia+G}!NN!)U7^pCek-QYFwM^JF}MKKkmPloLVPDXt_WbKcC!PoauR#~64 zeKYlszY%-y^XX0$6Wl}I@;RJ{)=bm(`FyH-&GMrftA+OEDuDT^y4UfAK^Qy6>L1Uf z+)KnhY$E&=^HJ>-xhptP1EG)iFyFfSpS>2R3x28fKn1}*eN@b_+OZTJH|_P!+6kKm znuaHLeEor;7C>w6cy~1?cL3d@uSb z>jIXL&X3~bVc%o51$4FZ3#qvOZQT#SD7P`+SlZ^rfBFLXuOxDQ!GkHF+IjZ~dn0Bi z6_+gpeUgRc=hU%y*x?snDsYBACtuXKP#QI? z+WA7!&`RiOcfwu8eru5k43yti)ZyqEC{lDR_C8(3T>w8VszZ-;=n{!|(o?nZQ_YzC@h0em^bYLE=vq^Ui9E4XpquBDCZGZhlsFXk${0W}dR(&BsM{Ol zM!R)bC*>UjcisD8HJUQcTH=b-L8gXUNPG%;GL7Y_+Y-yo06A^$a?Xy9kIJW9-lR+K z_g9eGa~g~~G+)HzD41lYes@GjJ(PYh{^A%hHkyRpir)?k=YUeRy5*R7tX^p_W8>EM zeIa5ybxauB2svW!ln4x;A%7q^DAvXFlWJY5pFRJ>Pivd*vdGat&Bu$KQTUFIOP6(U zkFd(_Ism3@rR~^G+ne3wSF?k7o7%phW;6U1X}8}@OceDS;&vNDB{VVVt(YL~BLa5BUrune%)Z{h6(l^m1q4Wfv$7+nKUyOBexhZ+lam^+O zEFEBTr5LeCeqh^JD(=Mx(aRJ7*P;#G;oz8a@)Dyppdj43S9-^CN-hT+6*uhSQINSH z*M)Wyx_pUhKRhxkKWBC{=m{(iLmy>I`N=m_N~J|wcGCAqObne5+Di894K4OknZ+pX z3iK??d=}~iO6NRW5VPGG9sjio7X0@476fmBkNT~ay=p75`Zjyq*lA(=#>Vf7HA*jkPGCV)EO<8-6XoK*SJP4yce6asVl z#Ntnw$JM0cFefw|8yij^Iy^QVwY@4_F|0Cs6i~CMTD+Q~yy)a4RX=Ey}8onnhKuT`@ z7?BleRFMT;pZl)*%Zu&h#6D8AoO0ip{oWE@bt39wO-_GRw7G4i0Q-ys2Ic!kaC&dz zGhV@LnqlB)9HAAbijdDccH0%+APgYCQEX+CgdP;*56Q1VDtO61b?Y~?2mHEPNP*Xv zDyk#MkpA7omlK20=!9M`)~jpA} z2+w*K7GYVbKoekmEwS%Tp0XwbxL!7ab~jlzy~&e$O~lOA!s;qPV3ui?dUR7s8ppMS z@cLD^aqQ!#H}G{LTexRnMzX+?Jf&IzmG@t(ZuY|$xHd)MlK4hNqVA%@>@hl>Fvh2HCjNm|v%~f!x!m$;{R*$}SW4X}@tF(tE06AF3@r45sfQmvB@h-*XwBf{$&+4nysDrb;zQxg|i?6x^_rY zv^(xt0J;<+j{r>z3Bf07P&$3e!mOR>I4-c_8!3@A{1+nIjH#6hGClE6r<{d_Lmyid zzKutVaP79akgKkUuE6d)?-GYunn+=5N0IJL2KM!xwpWd{yI)sLUD>V++@Uf6KoFLC z=#6p*-*6iuB&cwAyjSiP)V$}WQ5@vvu@fm6@X3Nz36%KtGC&9<Tc1{S9NAn@GEnAuANc70@2f8SEb-Y zuWduUl5B98^s;IQ(pc16e!Bt608M+_&rsT6g|dZDS)BT8?{e|rZQ-Hv)76XL!fe)G z#GrFdW)mVy4a0hdz#PB;*-c3w^{me6RC(7A8F}hHLgWW5NVN6!#`Q{D2|S@>`tp7J zxThRb;erg~dl`dWad>~tp0fb)Slm!W$tEc_G3((t{0ms4C*Q{9H^44xaX85@EmRO2 zNO`dBaW7IW}BC~|8!Ls(05=iC+B@EFtw?Q>uLkuJc zAb|u!jmPa_I|=_0Om#pk+_hw#e_lfigIW zuPgH(s;q4ekW4}V96&W;2L@Zf?^t(fL)hivbsaEmS?$2t+TCZC_2w5;<)4AkDbF=s zpt9g+bhGMgX|hzsFzUmbf?GpsyEb+#1kdQ*kQma#8`s1=EYInTAH6@Vt0)rviLXGx z>NhYUyaG!yyf|mb3A5r`BP=X%KV%8haOIf>D{;7-MW-df?q-h(yx$%INDkDi653a7#aOe>X2Q6k z_6JiXGs0B?0N@0eRf>RfY{n`W1!mRWjzsAqPZ?#FZ^j_EE%h&|U|I5p%=v$qxL>f9 z?;)%96nME-mJZNlGxgF27i%+>+mBF;Y>8=rbK0!~IhPfgyuSJ?X2qgJ3SSVsl^5!e2LJMQ zuIG7DZ{<ze>wghs2?D%g}Mp1`m{A#X&n!2G{QfRisxG=jh2-p->N~rlb#;_ zY!CH&*XsaZ5Ea~Lo$8FonP^+$-UJu-?vtP#)>d3|*b8}nYlvt~4B@I&6+#cP#@x(r zJ7Uf@lZE?{xxO-)E<_P3IMm(ASbvQk@8eYPs`{s-4kL4Gbyy&(jGdO<+{2c)i!G|# zZ#cSz`(!?BAGO3?QrFB{mR*`)MOcQ+?}o0AsW-q-rRkRHAONAkA8Y_`pH4OEnbHzeJ) zf1c0!haLHB{Q_d>tVt}6*M$=xpY%VZ#+-6mQlBm=vC7pjIV;S@IWy*3%*K}Dvp7)x zm^{*&C}eIiX%XY0`*yIv6uj-F?K5x8QZK8Z@j#Arqp2m`JqSMUNC!?GG^s4svz3^& zqM(7e>G{gpEENkT9;d;r4(`(8w-YpBg0Fw*X}lpOf>^XMW#J`{yuj+T#m;~hF0s3d zaskoYQ(8~Plr4lhh$4z})DRzZ*@9RJZLChj(qD2I>^pJzO%5reOMF)i3o7rhXMc2p zD(5Y3vMp&aq!1_!MLlI>9qxdF`EZIOWX0E^d%+@UXBR0Mo9Vh2DGykINz4}lac%Lq zLNp=)TEG~)-7^X$)L{th+A=w)fI&~dd91k1)*icmTeo#4gTR5}@Ivozcq`>e!f~9r4uDKEbfwk!xcmjUspN;%+5x5X`?b_l~;)=JJe(Yj;b#v z)qX2eEz@SUdkN@75I;JZ4vO_4_442s{6X7V=@ZFvI?kiHM@O?$Mvn+17VG+?ad~F4 zkvKPRI!`5z%3M^^4_(#9tQ@Zvu1&gdb_tUR$XvYq-DAhxiU=0PB>B)eYv=|!Y_jNH zXWHXu^XcNVtM4v558WEuRnynIQGODG>P?t*NX^v|-Mc?G*yr6#b+zcjg`-EvN50n% z%h2Qx7e%6KUEs6l5&DV{nsDa}tyQ75WB1PE;d94j%uja?)js&lRz%o;+N@yZ#&#Tj z$)8yMSuBcb^*!gf??(2cv(2AV!xXX(-D@voy*|VZ>Ns*J2Mh(u!Dd+Lx1`LZV=^xu z+JbVeXw*e=yWIiA#xrx(8I&btYTn|X&fenm!AnkGdB)iReOsJm{bJ(H%g%Ft77om)q&XdIvM@`!8F%jlV4f^H5BFxWfl6H zc|#X748jAORy9A(V215J_z1pR7p}aRM>%DGF7cX$IVJQwg}q&>xBAQ!crzjEMj~X* z6ip2=y1kZ#VfIYqq{{58Qun-%P9)V4l#LK zjXux2z1(o##Omf0#M^e;!h4&JMj+;x?EJzs^AoyHH=DS-R`7gI%1$k4p%ZlNYR}hh z`^A)dkG^sCR{3U`A+GZYH@#U6kJC2EHysJ3vaKvQ1ifT1L+TsQlLCSuu`GyY;B?M% zX9Dtrtl1sY-f!7C?67;eP$=(6?1;|fkFY$2yqP8rSa@dKvPlfF)hYmS`wf( z4*QT3G)rB<4s?d5a#@qpp~55B&CLxl66Lp;$Yuk7kHZT-KDNdpAIfJj=(qkSuPpz~ z8w}tTZeH)$S{nVV6;W@HNi@xR05AE0<^X)EbVp*cu>kS3`Ytu+6V=Q!b8`Q3 zO7)KCXPMZHG*t3D8}b$QAy+ZOW?h{{MjzYML6+Z;WG964g8PD3Tib4T z8eA4$F^nq6Wl-TaLgn&KGsLPO&Nw8t!>fALvxYbZw0GA!`yg9vp*e{p7>S(2vZnfOWC z^KmKW>%X@LOPcEP&<*@XBIM&VXmLqwFY+C?TZnVYhZa9QvN`JD&=WY12sr`~z*#XZ zIYEJydO7Ee|3@H272K_vZ=797vwwh)XJ6QReEYo_d0n&ARvoo`ZwS^`rb5TMDK*v} zOM5ROF)Mr4WnZj@9uw`3k7M(OcT-i2CdKc*7MW}BUbcz3=Syg2euX8!qQD#U}OF=GOSwCuA`qrF=f!))N`!x8R%nFxQ^`xmmNS>qpp#v4Dsv|VLGQQ#n3|!BZ*;+o)gQAYE$-wFU2dFnW(?>92xQxhui~H6@2ky@rNz^NgwJ z7Aa9zOIXfEm=$$Wxry*bZ1MytBn<)-eeTzylK7fm%t^f0c#4l-=!hUFpHL=cZ9q%} z-7cDNzn1HMZJddtHj#$1)kc}k3=HWD#E+xYh;$@{Xv)BCcF|AKE7N4acWF6VLgplf zY@4-qFV_WU3ZO$@yDKKRUt{qJ(~pf;>5j}uhv6LO`f1bq+bMDH<=z(&1ni-qpFO^E zz&+1b7y2rTdtWYOF)FRyk*o>!JER-&r3PYn4YRYCn|8HIt8 z?(M7yhW9vC-cix`uq+V@HD@%gSI{eB-*}1(9;sTfvF9H5>izLRLIl)^<$9`-8^lDx z`##4$-u2bBqp7B3adY7{ZL|vZ560QjHCPvSD~tARTynn#W^d3|grd@dcIXjGrsGUkV(P0Jd8%T-xi_S#qT6Aj;8G z4CTU+zmZ*X!*GQPr%e>fePB{Ef|7=rmbW=QmXv8xs~K-w9(F1s@%v1N2^@9QVAI8u z2p^pm9sAIIUMm_cXE66Ccy{fLW|?GV0eCKE8l42x->_C1G%C}n&*$4_r<}lX_C`>K zyVt`+WeE6i*B+`JI~i8NqZ%F09(pi(DYU)QuKhVR=KvMq*~ha&Z)^d&Igu#5Gu_ww z8xv^s!obNc;kpwZ^P2N+*-EQX<3QZ-vS7_`FDH#|t7vssUVh>GEZU&#{Q?_U!duAptOE_XgG8Cf# zPDHglQcNMDq`TiTV^NQw;SfVO!#EzQ1FcPhi0pLgJS$~*8f;&1ck|)<={=PwIK`pp zc>??sROV2rBfJ~rtf^Biwi1{oe0{jGV+|qrBA5*YKN>WemPv)yJ=t`kyg?FykbDCUErJB%f zACGyM4Fh6rUD|rG-C>rLE9vk=DhsLx%{XrPbjMHk#SE$XUk>wrHfXXU^W=F#CR|MYeDnzm>th zP{Qz5MVhxVORTPRVhfytLussGxs#SU9L3-4C z;OhRN^&%dG>biB}qJ7#~B9EjSD~N%(WIqxlL7z8pf)D~^lq@@z$pygnXx7muwX7Kk zgYPOxP`8)Vxn3)cC6n+l)GJlhD+ z`j!rjdWdyAEeOP&j=G4*=4^1#zx}+rS5}D)CjOWZa=2Y%I##e&-$8ph$^>hD5axg) zb&8iyWcF1ECF)TS5{nHZ%;Q2!5z-r>rNz`6!za}x1ZlgIXf`;!Y?PG43DI%7v7E0f zjG>bF=Twq>aAH9gov51m&XAXy4^TVdrV%BUo*G1GiBHsed>wnEG;cdXXS`T zaS?{Y40>7O^KVto-6xpS>6fdnK^}nFi>R=mE-ukOzL6Y79oY$3gz`M6K?-vMk#CKt zJ=CPf<&YPHz456=Io9aH=!k}9l$B37AB0Et_fjYy2%~~mW&6{IF%~kiDG?@wy2Q%m z%Ye-tJH2{nga7A2L>?6XU0MgX@E8K~VHd%qbPf|Q$t6S;tALGaCoJ^@&W_nm zXuT+oT!>nfdq#XzEP44v9L;g=s@nZ{nNvXTgI6vk(0KQ-@b)fsl$)qGr;#ds+?trI z$#gd4WnmjMg1tLV5>3NS{J5_X*rk%}sP|kIK0Jwc|I{>|v_bOY<=^L}y)N9uV|{}! zMkeILRmZD`J$}0|$I<0rn_U#1&}5r(o?>hVB}}aMkSj$r2bxGC9M2_1#?ehw?>Nd| zzoa4iJv%coJ8vz*KC)$+XJ`n{OcbV8#fx{Gm|e78JDc^=8(`kqzc>npXm1XK)zm5T z()5H&AMk>=%Xcas#Ey0g`4s~{^ z2MNLBVu+l3c|$gU{EmzuA~e+88EMxi;=+M2%&LAYp=pp>lc#xuDWX>I&0fDXq5M-E zp(uk%obN`uSaT?Os9Fk)x#j$98&9=%*tt2aW-%axLmg#~Xq$J8H86jp8ha4P?(fM#F}9_u86EZ!i$Cia=K$wPb;$BhMqulg_oJ0^f^L> z5ZZn^N1A`eG@t8io@}=8d*gKIZjz{1yZc??VL%uy9kUz}s%uh_`w=Y8hTDN~VlBDK zzl?P6E?H8MFhonnOlxeo$C`>ZD`|E)JiTWRziuF&1LTo6Wm_LIP`kP1jBx80YthuZ z?tqW=m|YEm$z7bUFTaGdGQ2UR?3tyRn9Y@>Q0nr;ejh*MN%O&*ooCG?UR^0Z^?xLg zn7kLj=)p#liCh0~W&98NC5RwXRwzNoz1Q4OYR*E63M5c0S1!?7wce_=@FNj=bojnN zLsX{ce}n#~GU48(_DG#;U&q#F32R(Q)@Fl9!}_p!{}PYm^z^dKnc|MZ6fGCF|17gM zTzUJ!7?nyDqY9-b0wmZXjlm5&)E<=HlhCGCs`QMibUhg%iVabkBfO)R^H}xb@+m;V zxsYHYR17uVN^EkL+&d_uKs2jfz5%WtBvhUGbjn`7ms>$bL|Yi z)w#zu-dGMX!~Dv#c~ryn?03gvI1M-4!S$_d&4b`IRURxoCcH(4V9ufDA}Yi;xg+`R zC2NH@QSo(ic&t{fp2Xt;;Q4y)T7+9QEy1{oPMuR`T@*?SoYR2Wv-9amS~rmjsQXWz z(cm8DeQlUJtWraizU0E_T&O`)bmo9-UQ{ZC*d=)}6jpGewNIJW32MCnF3(7cU~Tbf zpfkSW^PcX&6|$~TBtWtKOx4zo(hOT~l?)~ZchcC}Fm-xs^8s*+(_kSmV4h%sl$M9_ zWY%mJyQHmg%v-1mW!vqp8$@`H% zZs^#MJk&wlj(%RrUM`?EIe-J9E{$5uek)Lyb)S@x{amT}QWXrm2ZR&R88)F6OQrPQ zm3~@_o{08NcUX)jV!ST`wGw~i3h9eLc?D^GDFYGZr|D|3X52%wcLMgbTtUc$tm|l?s!Wpq6Qt4(>UF^|nTOKhbCx z(7aq8S6pzqodwmO-6qGeN*JC%iDeX`mqn@cDYpYaOfMY-o>nV_M}9{q=kUa%@mOU6 z{#2rogIl97L^}a)FvaE=WPpWH?qjA) zwnOY<-rV%rAL`0Y*kXfOXtvf?EP;!8lB>RQKqvSOjwQ|*W=-31Vf6hIXpRtxvZT7x zcp_CjVOe#v1&l7?c(1yvTldC`IoUk)=62>*wnxmQlBq8f;pnaDNSP*e*9rh3zEnEFn2IGuosU-ez07Hbr{Z?B z3pYshvOl)wuiOEd(=#V?|3zcRE zBqAvZTH?fu3KS=n_998HIMp-r`_Jr>9Ba--dO6&dWg;Yreb1Bn)_|0RC~``JnkX;* zn!a2iZC_F~+wrGZpW%0v0V!paoUsbD+?`ps6?t*{Lm_wj<%xoA1P+TVrX!XCQ2++G z5C**nW2PKyyATw+xbY%t)xa~|z%yP5&pl5h>ahAV5fN@d1{_1CDkALs7F99(d1}+m z?PivfsI^rp|*Bh z!AZiElQZ*m}NsGr?&>pF-WL+gyG5?fk@^7owv>4?VFts zWULafUr;(=d4q0i!*vC1`AL;!q7pvkDH|ZprBh(KndKr95FzD_b21l(ykeKLJ6;jl zvQBd=PF56Vr=e<>k0j?F&ysJXgk?1IM7JnInuC`@38KkkjUl{O?CipMy$jR-vCW%~A#dR9sO(d%BXJmJL+;_|eK zF-Kvf(N_ux2bSc5VwFPQVbDlOp9&30eucKOw*3cQ;aK)FZ|3Fs+zu$(;1$$FX?ik` zvS=QQ8#z2^Umzs{<3^HDmv=}&VKSPsT%8Qzo*LpJ)E^pX1zkTJ1osIW5#v*`ZNwmL zqvf60VVt4>TOXrzo(N?xgKAa~jxs;t>a^Pk4RS(Hc^yRyQaGB&56`;7T33`A&W z!chQHfMT*A-Js^fy(O+7y!X5%%IqU>p5t5~W#kS#`mU$UiYy*^`w5hzBd+$lZUao&2R*#x(HU>&gT}B zmAiGxUEL;@@K}Ym+VUp7Ey5GhezVxyqgf3;CFv&=1DL@9x7@a_B3@~!#544%?O9=- z<_!1AZ@Ha{LDvvwFNJQcw2T<6b3k_Ggmiu`EC4`$8w1TngU|VF7vwdr9UI|K9f#sE zBKfaT_&bIXB$u9SYZ>2`we?S7pq*W$HK{z6hP0RM<>*jthP#tTvM;e~iv`o*AxJgx zP^Wk=ato>9dJPIZ`3(|IZ>q|(2DQ>tr1Jt?;)s{}YMo1Mn|Yh#IZRi0PbeRA_h9Y- zAowk*Y#mOcCM4u-Cty_j4#!W%<%bI?Bsv%{(=ViQP`uQMi|nj1E;(fmozTFSlj-AC z<%pLBngvu!)&nwB$z8bCKsljCxAxn~UlHiAh_Bk^xVzUh>yoIMUFqjj6Ff(f&qd=> zHu39N0P$ocIMOjL6weVDh%Yel#%W$eJfF3}v5)BQxgQcvHV=>uH?r<)b!mYMh0A4+ z^;ujFV9vh3*nWp7?lyNyXsj+QzL=dMOj-7Pi`dMay}83Sq*DZu)5yf&!Y4vDaUy;$ z9|7IHm%(?*<$H-q6vf+Q=(p*L9J8ma)ejd#)9WybI2I6cQ!6Nq5VEjrLBsavcWsC{Zm>w3%O(YqSz~cF~$>KtMhFFO3kaySl%SH z*Vl|Dx{H`wWH&ENMGJO2Bxbj~8I|>6Xg+S^!*G+wB2zCpakLqc6)K?LK+{Kxctk&w zN$*J1Lety4@09>ky*v0&+jeJqEmhQTurL*0_GYrTjNYP2a$i!aXll=h)d5#dn6lcb za8D)zSr^i;b5;~PflMKI!J#+6cn|%SCC_`Mxymv|0 z075N87E08p;BOak+_|Seju{8lE-QxOWK3{SoaOji?!#DKR; zwhdh!=CVvEgxp$dR?|5P;I<*-y(p=*7v`Er{vetdkHz8fWY=3B2UYi)Mm|l2cJ-r$UZE_vsPg7T8-3#8^cERJqOkt%ZBz(PFR zBQ>??=QJuNq?8Vvhs-#X%@+tl>-)`Bb)(Nv|9PsZY+6Gs$}(43Mv_IRV7TTgA#q9J z*mT0+Yk_Hb0ZCYN!;zjo4at(ltQA!^3xkslxh8jMF18Fs7_>8SunK9XO}wKeo0I|{ zO?-JA9Q{}F8MG*4H5Nk_z?(FfyB{1A=3_%t5NB2L_b6h#W8641CfLfh6d=IOlr2*S zI5P=kJ#y$G;g+!wZS6^>)%C2jk4j_yIxtd5x&QMeRJ~v@XO+LxWc@b{P8nSITLNxL zvaKv|tG=D?Gg*=dWHKRkv{^Ra-#JNT(%6WDm^6Eo>CWb`aiO%2OiDV{VNwjyK=~vxT4ZV22>I)BuvhlT0U&{Xm@yS zy%{RS9X(Q>r*^uaoQOjy@pGkjRJl4Vv$e19_tz zp%kA78@4JKm1P(shnji^9&$hie8n{^dG-MxoZT}LP91_y_Ae~DpC#2jwyTUzG?EC} z=OPk*A>5ojp*I?}hia^zfHAPXEsy2^ep(Mkk_e-r4w;F?LsHwJOJei;kuhoHP%_Q9 zb04@Mqtq;TFr_oSQ9VOgLlPR^<9P%Ac~Ht$GnBT3uC%^03{w4`9qUo_5imbUBtRcY zW2j7zzCHV(ds54rA?6{Q7q}4NRuAKmw&LOoSd4<`x@gLY;%;0POX5o{E5i;W`icy> z-cf48aBp46JsPF9@Dh5CZu!z^k8nvQE;a8%Fa7$%1LKLpM(@)23^SXuClJ|}-VPIq zcJ@`4j@N9Es} z>SHE{rWFm)>0-)6rv&!`%|2B9>_HmnYVdnlcb`GV+r_#)zxmneo&8Q0?SSpX1+d!Y>obyttyt zHhZC)NX)F|0KVI*y#@G0px`#?`VavTaJhb(a?u0-Q=%Sj4CKx!ExiDtK^BMZ$hF(B$LuFUM?}!a zR9GxzI(xEdAGT2_B;35JqgaOHA?TH8gM`LImE*=3p5l(mX`Z%;A__;{KH}D=FGd$j zW)I6mQ4Xgix@D)jf1qMU#BP)~9rMD3igN%Z+-chRjJMtT`ikMQe$y=p*;s~=Rea!Z zUcssc&@vq-;tPkS=Jj#{YkSA|9sc}>y#=uSOz?m0&i_(t^Lw_wXLp8MrgUXu!)*xq_VUdU zXcvkikk0M}$e#N|=UT^Ubw^?nV+9ZFd@nPs!ejWADv+Jz~L%;i7IBED(6oT|+p^Yp! zd$8LOg2{nA<)o6Q)o;b#uB9Q(9y)V}kiEBGypCm1NswVellyFGHi}UC&n?9lR)kgn zb{5>3X6GIntSbCW>*H$*iIh?r#n<0!v>Wh5p%ugg0SUz@q5O9DD4F(?A@^7;i{zSX z;dq=+jtcs!0LthBc2%1=amxt_>cpsNsCf%l56s8mF%!4Lfe^&ROWQ005AFp?4I=z* z-Ml}I2rGWeOXy&)W}}nTK9oP1#!e(ki(aOdg;G&^M%wB3)|Bu<1--&=D0P z%t_>7Oat=ImBYDK3}v)b{O0DoAHKb(cinxbeOS-F)O9~vJe_}~Nj=%ltmgoi+o{UG z{vjv)t!uc#j@n~zQs5)Nb#A8WLq-Vp?kkH;9i<+pcmECh-@*aj6s;@Ur-9SfuI7Ij zNp03A^;0RT&5K2NtB4J7)|5Z;XWH0I*coPR)<+~XFt)h9oS)k>BgsTiYT(c{Rnzwg zVqv^3jA~IEzO}9XZ#S?ij%gtxN=%(Xh^uZySv+hleeuZ5Z~2n^ThlWicHi0D_1{0f zM@hqtD65C9(6U}PNhY(0LQ^hgV( zV?)-ye>WEl8PNs~(b;4~ZLsm;dJgcVO@ebVS;47HxxWB8#35RVqEPKuQ_X;iMx(%6 zf!KcrIoCb@pHW~n7R|r?z!><<*f0L3^8HiDX)b>s+2Q+Th-!;o{fR9$YM9)wwQajU zM~Kr$09�bndv8R1``Yu0uA0+7rU%ET`}W-Hxc>c1 zJ(jq!KP^`nMmgCyfx;dMI>kViGrE73;o4U-M(|KU!7b>sdyEgil#QC9Q) z41F2;db>afOl)83=dQ3L*S~cCIpnQE{KM@3R7?;#_}?Sr>Xu-We~@l`3lTfU?|1LT zM#z>9ZhQpTwtlC;EiYeed0vP=`%*W*%D=fS%U_`#*ploWzi&e`xuWR^$pNki z5x9K!>jb~ze6!|5BYnsFeSe0vP0&AADA4?0nro?vpDL_dk!xO|QE6YL+CoXK`=_c% z>Oa=%rS|ZZ*V^+ce{$;YEqL+G5q(xzT)m@ zPyabn^v`K9?Q_`(_}Se4b$pMBw0Hkhsr%=6{t6ihj#Pfh$92o(d-~OU=4?#tS9NeT zCom`ZgU>ks6Ub>7_(L3MenS=?5}rE-E+7dZ-TU{YmwwT61Kfe|k3^4&$qqlgeh6D| zVf^nSlit3=aO_*;zYqAwQIqDD84Y>|>$>kswq;pa3)4 zEn?BP5_0o7mFr2Bzq96ZU6A!Lk2bYyUB3-m27~>f!NRaJUb@F z{sAi^0S2U5{~J_*c$yPwV0U7xao_HEeQxE~$3%Npu%gXdm%N$y+lBv*2jts@-*5l5 z&(K@Ho8x2RJzf~Sg{>T18~Qu2pSb{Ykou0_59|m1@mT-G?El^k$@#^|e<+K;W$WMc zfO@s~vZ(=OMh=1tK>rgCJkTIr_)0j`b+!Kl(LMrH+roWai~oa!1AA(}cjC5-;(wHI zC*v9xMDl!oYYqN$giGV&_bp;Qk-+p*!j*$#(Z6?G{@2OIw#ysl51qo#Dm}7k4I0Xn zkHDKh;&^5$eFUEU!CL<@0tmWuY=RL#AM~I6I-di+{w=w&Rq|!OX}`31{gy+wh1fuV z7|}_OFTYg;x325DDLmW183B57N}fDV=|aeZL&QzeH|Mz6PMzEI-h$sO4iA3F|GrXd zotLjlc=NE*))l@jz8X!=gk@omoVW`bVpfNloQ|J=AI_#m#+0qM(%1%BHxv=!Kl{e_ z@U!Qub%E#Y8!^P08^v_(Z`RM!Hd>uXv?Wo@xFspJjeOJ)Y|nSTTP#-D`i5ob_^IkL zQgiC!>2lL_qSB7Z8U?~mk?gtb3_~1l9h~DDj3y)OQBDgQY~?(N^;U4HJ}3Vz$&Y)skS~0r$zO&1tp;l9<^LB8w(UDlhRU%UGi={9t6L%7vY^W@2L__a&9+?XtqAB^G0@e(Z228OfG#Fw3mH@Qtt!FD z|MnL|&i<#6|Iq=*mzK!k7Z9;c<>r zve*wKis<$p2g63=NSHq3XlO1Is5R;AE?+#vh98%|2xQk1-o;5 zc&F5*Y0SI=3%^z&77nX8xt&TD35K}r)QF!%KD(W22e~T$DHS>qJ6t$!vfddolSqle zGI5ED;A%l*4hsL1$U6*dBlCO&2p=24BnFaiEu5s=44z5TYQ(y;yo$=7+O@PKtMIeX zIa@+|Z$oqCpk=k5a4lR&7Uq-C*Wg%E3AobXy$RlR#IT<@8laH#H>8%<-G=7CqTA1^ zanP0?BtRpn&|CxB5nL@OR-y(hec{0F`m;ZYyd^XR^ENWY4maSMf*sF}`*|vmGx;Zx zw~~u)l{+k&_)EZV{Xc=cg@!r}x;9&N1&e0>7VXQBf6a!r2Nu26;HT{%56obd|6Sy8 zGzzP4LxrACbrA!Rv%pg{DpwYT1$L0PPXFTjCo=PZNf^I49$ICYTcP_eDkzxcquQ#Pcm zDcP2K*5c7D=};6@kEf3a5!rykXt(cbcD&}oQCzWI>b|l`-!SuiHq>eaJhW`Ib0a37 zo?bmA+j{%#Xl|&A#G>dq<&)2lDl6M%9R=61$M5+}4;<({kqNnSmE#Sjf#FKwk3c7W zhiEXLm&Cl_m>yKCHV0OZyBy8o??at@3?}M?N|-~X>iiILLg)8J%4n34xWaZ}-J1IK z0M)~e+C&3e^lhu^M`TX>6J#vgj)u5Ev`rAr7<57F_DO9&g8Zju6n_T<0-|wm18(7e z{(gyk`IbWldP{%|@ZTQPA?;^d(PSN?zRxoX3*EtiC8Ha60PE4PPsrNU+sK^B=*46W zZnN;ysy%|>C?iMvNsv~dFaL8aU*Ukf@wx9Ki=?3?whV_jhuJ>eq+9b?3zTW|eJXVO zHEPy0*_~p?Uypux$WSEz>Bd?Qfrplikh%{7jnWsx!#eR?F{AT1}s7f>^*y7uuPYtMWfE#%*T60`P^HD#e%h4`eQrRhW{L%q8UZGE?#-R54 z$GkmQICz{pjiD$tIWp4%>`zAeeGfTntE}yOce)r`{<+^3hyi6z5Np%Dawx87aGw2<@p?gEU~t^k&Y2oJ3TemA(aai`wpes!@!8X zEw=AAmR0~nPCGn9C62^q1N>q55Ae@W>C<5qPg7o>vMA@dEV{=*JE-V;GGozFQrer9 zYOYwO##E)kQ~OYOE?jYFnq%67MqnF5{;3Y;K1RLI<|gT(&Dh5vh6=)xkYZX2U)Axb z&WUSkuXKJN`S+av#>D9v)@`)dTPWYE#Qx2;(KxQ!JBYjB9HwtWUvzU(0w8EnE2Jrb+5=D z$?m_1vsJynVD|DniDVH{5JUodVVF(Uy%F{Bg?7$ zP-fAn6RelFM?A8oeg?rH^UA3Mivioc2OjrIWh2cmso0j;)#=BOxe`1F2DVg5HcANH zYU$A#H|`(h*z&MHx(Xlo7J2KhU-A70S>)H?qPf3879-2*M5q4{JWSzJG!k$v#8x)b zz=1v6AMX*(e|rJF&5(rZAG!c%kJt`P&%-~xKrkiefE4Vf@5NM1&gk3KZLyZ zn9&Zhp5-Tx5TN+4Mc+yD@4MfK{txPtt!#+%$I75q;3w|z3O{)SKIwC9i*t`}q!v@m zlhpq)RjQ!Hc4*^2x#LOOxVNRs7oUsE({Is#oM&}Bqn*gQjGsJ5KdJLiB>xBb{&A`Q zI_9^0u$2uM|ClB<4q|t}gHM0*Xf|TO!T)yEY5EpfG4CwxkLgi0i!*1T0N1X z=ETw8?mB%}k6%qleUj#wp%%C{Erv-wvGQE zSuc-!4E*cNZ>vRHTx=(%cGV}3(qHN`fD`+J$mmd`Psk^BJgJ?dU-wJ?v||3~HNGlZ z5?F8%&X>pk5`F$nI=*6O>-N;=9_Ef`?32#_J$#Hdit3+1PDP{ssi6pH&Hovhx9Z2& z$P+H#sN!47b^fTEuT=Hv^c!TU@5lQQtUty%`>TNdzv6ss2ZSiW2go5%JbV}g9|D1Z zeM1O9$u4SWtKx+SOU+wGUTNtUQ8uvgeDo3%3O;a72!TQ%N{ElZiDz;b$A|NLrdHr2 z`_Wu<2Z&8`hp#S7H_}PKFV1@9H?khWFD$K~+i&M$ubEsse=?-*s))uBRY8?&(uV_P zR_(8*}8l2MRJNrjOZn9^09^sOGNpcyz&GMaF5JRl|9`2+!3z-6wc%NOwH zixmto0;Bx?4f2l*EDY`$k1AGQR)U_0q&Gg~-bCEVa@3sHp`I;p<+|W|vAE?nz2{aT z$4SV^YjRi4FKUrpqY#s9Y3O(o5$1Vuzx#=f>_HS0*)V_E)Ur{uh4Q3am(haH6YHi2 zBb9qL^HPkC+NIbfyz{@>Zh4*V$^PVZzjk#pixE`R%Ek-*({l{T=l##W=`id#oP^(+ z@M>_v{qU@3?D5NE;su(kjO{7X2A8Jio1SJ`+1K7PZc$s5TAe5a&N4%2yY znZVq;RdX!)WICD2CD->VQRnOKm-di1t9PrM_2w$LpmEtFH#s9BDxA>gitSU!m6F3k zOc$RinkISFMfk&qeCAoLtYlB+<#Lvjuq<}E#>nl>Hq?Ha#B%U}M|Kl-fm)SCL*Rwu z1a@{c^ubDN`O-@PLq5ijz@4~>7n`MWZ^at*Z>X%u>6K7)FZ-+vchnr&XE-$Bm3P77 z22`z0UxN;JKI1&;p;x&aXE<=A#K5ufs{4V|YAq&Y0Mq37`aO(hefP;~g&WlHcnW33 zxfcjVT^V?a+V_qS<%;UFEpc$-d-6L&2l#N;AeJuh-y_Xk-vPUNSyb``FlCf z`oo!rQ+Pvjcdr}StQ=oxyw2DsZ*DE)-RXZTbdCV?Z1_2TGH1VaGd{{ocMl7O3q<;9wJp34+Ab*>w1-|NL7?|U5`^Zww%DoaRu-+B_oTHU>Qxef1eV;8;iQt99i`v1sBz2GB|ISB&> z^^Tu=7Q6F#8*jT3l6SxTof5cx5lO*t+L0=Y>%zt0-gMV5X>R6u+_ahtHhtFhUQy9W z_z6Kqo~5-A={v6e=?rgo$vs|FH$MUnqqpf=XBJlz#PLgpOQEN_PFoSL>|biU9GlDg zMoIDwvrH!ObNeQh=Y9uaUH2&FK=VQEC;5qwhYXZ(zok zs>)TgwsJ(bX)M>t@3G;q#LXq`C(utwrrBMtf7V*z2_)U@j_z9U8%izY*s-!QCfX$} z)%;UWD^~n@0w|>Euicb0o68ltW|};IYw!K{c2{0o;~Ro6Y+O+^8?j2@eI@$hT}g2X z@Zzww%u3k-%jF}-ivV~=zAwM;826>}h%&d2z(RP&W~bQ^lPeDlB&|t?%T{e|4iwJU zhxJ{wbiKTnWWmH>1%KVt|K-uX=iX9sH52w`S4a{0gfzQXZF>^Ltmr_yamr?>1TgjY zdn`^`GTL@2PrcRl!0zg}DYS+au}=p)`Iuc5nT}Z2Rc)h7qq~th`nJ#b%Tpb@7aM}SMGr6J z3S}QB7ofLRnG3Mi&rHHS<7#HS%*HGBb}Fav)q$lwTy`(Y0w)^OW%E$PhN>_&JaNKE(6 zX;zPWIofy~!M++;w!K(+tK+7P!UTn@ODl<$EeoGct-y6Xp#&ey%Xg=n5_`8k8*Btk zfsQln6fHNZn;%-+Sl?gGNs4*+{9aqF!)uBvRs&v1&~&e{dWAd3G+nA3@Iz~xMfu%) zcKV)8=J0vxheT(^gIXPh+PaSpw8WMil(KJk#U zG4ScjAZIt-*YB1?QV-2f(#^c5Z@?d-2=P69>-eFXOZ{~bR}ajbdczPQv1f?&BJ1%f zsU-C`v4Q1x&wohLKFpN!*!ZAU(#hZx>x1vYT#aP_Z*D)LGVeN1T3heimw91=4VT)B zr??YrE9-^L%5-(31dsW6)Sd5JImBriC#zvKnpgV5C!ss3<}iE2Wn-eiy_uq;ICN2s zW4MGvBB!=u@gDRML(Njr0^5C-vy#bN&ql_tMa@T%3=7G~v!InPUffkLCG*C=jO_`b z(Y@!Q{dtGV$)8shl~tQn+K%C0z}?=%D7V1Ol3a*0H6@;8Vh*@&mcpor^XITAPp_9l z4A1F}6r8+m3Y1Fn6BaIJ-nnoqY@XRj)PD+c!!j$Qg!MSpFtkC$zo*HK$CcIloSWqo zPdBk};Pd4%0!g_5d30N&St$-ugL83 zPVhFnvCt+y(9%p_pk^_J7`PoQwjy)pRm^H1>5CUOQ7f+=-g7v@;nv0atAom9vCXcD zTElxR!^6tq`uW+(E4%Zbq?&oV4q5nRIBB0s$5|bLYYLYO<;4Ts*@(Nwk^}2Q+<1FQ z=uR3{($lwV3agIw-6<$3h&zY!I9u3p2=`{N>*=vg;~Sh~MG8|Fdo&jeW*c6vcT^iJ zu&d$tPwo${WV(=VZ{8>NU-(6L^o8>zpi`=PRfEHB{5%j`C5-Llu?{F);tS?(TH<0933?H8iSLBp>; zKlhgR%~4TnFaN^#w?`>3`vP^O`n*aq_cgqkgP5(DZFp=nBDkWIBA+c6Nk-KBEBP?4 z`DBD$VV+N@nmoF^*S&*JO1)f|`{oPb>gz{LCL*3P>fJf-p0LqUG}V;d zsMGrV_3KSnaEqIZ{5kiY9UMt~)!P^`UsYrM{39S)^^Tf7rhGiOK%b1)ckb<=o94LO zlQ-|G#b+2Ni(gP$Sl6YTy|R1a;nm>j1Hr+Hjsh90F9gwpOWKdr>|eaQFeD#y^~1t| zptXy>qy-h}VEs>pUBX;Ls9y>HFo|_|M6}-pi^=aJ` z)@%}UP_>YEb5CdqI#9G{y8NB*vSl0B2JXLA#Hr#RF?oC4e#Gcbh%7g9m7pQ_F8yjY zt>%ZdaBq#_H7@RdSAW5-cuF!|NSgX%S-{1p1?^A-g26oFBZ+KY`9EI+q{x zV#IZ7V(iUj*~?FS-txS=^r-ZzLsO{Pk^P#dOuJPHi_>uVxdjFHq{9);*1>OvhMhHs z)gDB#KRIIiywrDgZ&&oA7tP$@4+EcL5zH9da9Ofu^FC@(x# z=K7KI*qe?M-X_$pr7td6!l5_<>>kmiL?>%p_2DS9wIFZ%*ho;t6VC~oX-5)iBds~# zk;;z9@+JG6zEd-8kJgHgqDE`%M>m%44~3`som7`oJgHy9ydcTna;J&Ltfz)5eoXHE zz(qqpxus}gZcHaOiSvv-cmy6?U{1fi_snj3-e`$a@$YVcS@d^vdvxDNp{R;jt$y*1 z)4>Iyxgeo)nO0*rpFahf!jd>LJYC+ICEUvLS0bRPxsYX^})5jC|YUu00T^mpZUB?Hzi zf^#|q=`7SFBp;+MCc^0b)LsxJ$(68{=0i;%@Hb&XFF>fJq83c77V+ocp?w^Vrtd}i7#O@fIq?na#J>C+0_OwaY!5<~m<=~v8H?t1m1o;i<&Ksc zvh+se=DNx2VoHf-ck}C-Z_G!J^{odV9aH?7?{1R|M(6jQ`XBdmx%_;{GL5iU-KpO4 z!^iov58iyb|Gy_c$ARst02}yF>Sco)@2HG<$#N&>PD9I!2HuTUFR?$QapGrA%@LTl zo0HD1a?|yICrsCq_$TivSDfj}N>PNuH zIphjO$^HxJm-Od5UK#fyW*v4%)QSdPd%f!0r;x;bD34}l@Wt-D0lH4ewSLj0 z6DaObv^WV69EyhkK@ucLZ~DG>?0v^Qd!KR7hkHNVan{HfdGcgssCU8Ni|8eppDHu*$Su00zUh4&(1HJ29ZW7T)n_aCa|Zh)BPj!O^V_?AO2+F zXD{@s77CyVIzJrwE6ZC^FjN0NaeVm(_dK~cQHwoMfMV~x3{rigQ478#aJ@qQw;#5o zOsddqg|)_t3T^p2eK{Owy>h+xW)$I8If5?~At}n22Si!kAW(%0LhxSn^^HWXS$wzg zUFVr9!J-uxoyXpy`^m+gRfw(@qWj&#-Qdo&2_LbvUAu47TENy)Q08p3ra6T!=^Foz zSc<#zwL$NoS@g&=vZ1`MQq6WQihn7-%??Z4dU`T>IEpN*6-3a8n5Eubrm-LT4ZX0hd)K80z?5y{2Y;j9iwn~^ z;imKd5$<5HYpCPIkTv+W!5Kq9I$?J6SQ{o+USCpxIH2{o`_R5OSD#Ajut{rCE^ZRR z*+|^+;nR6t6BWSSLq_S7)UmxF%ninRzOP|w@qxC%XKD?YD%8Q_s`ql|0ULD3n#m)^ z=c9Ndh!(|NTqF*b8eGw-===kiWMHA6-!pXtab08_Y-|PkIc}|0G2ALPO_di&Z0DB? zTC7avYU$dq2+PqR`Y$U<4}xwJ8_(XsUt5(cW$G=bW|@i&e0xxZr=OjUv{m()iBWAd-~1E3uY=kQ%brD_Kfu z^HVc+j=yx|&6it!mc3t;>LLfP2Jc z-dfnb=}jn6@wb9XB!Cm<@-^WlglD7C4`j(LhFnfXnYH#1MB@DYuZPDF;FkV@@d91@3 zYSg@k$*X2&ef1-|bx^yC+->*FKZGGv+aRi_Q1SEFcULGdTL8otovZc-Fg=J)d_BWI z3_FybW?&&LHMTpQaj)o1eG5qI5t=Dn^)V1sjNeiLA6PBwzcPH9@N-hhgYFNYmP_hE;6 z`s$+EQ@e0wVZBJ!fj-h?XXmPw1a6f-r)ZXBY7eaaE4`Z=phdvWrinBN!X?r(@{Vx;OWl_)x%~RLtA_ zrZT^yO}Pb^(R4!#sMiT*Uv!yCyCU*@XUp0iPpKL85177=b5@PIcvv~J9TB;o*WrF6 zo401StGNI_tbJ53h%`?cKX!JLIoKkSt-ajq|E0)=7GsL85R3l-AtsV9NadZ+cEY5) z?6O4qB3=w~o9{MnRN1eJxipZvkBg4LDhQ&LChi6{CX>O5?%}YVGJqjbPDjl7*Fspw z*5L6x)8n^OTRSD~GWuH4vS6=)TaD(mAG6h0W@I?%B<@VwApB~wxk9h`5zxhnAl#2n zY%F)r3QIV9N9uEu%pk@l`ikmy?ys^x!1?z74ukv-ew|-lA{ZN+0j_eKOZ+A~hVcWt ztI66sE@^{g3Pyu<@t#a2f_}?V?ADKY`-B85}#-?$}9Fpms8iJRAPT4FEt~m2BdpgE-h6)h9S8Yg$^z)`3A&VW*cc@lUVynIIL0E5qiBYTqxs` zk~sE!c5c*+3(e4^mpJW6waoAEg3<)^KIZ2HLSWFM00G;iH{A4L6UK5({@Ty>G zAWW%H@aA794F5W&LIA02Y+GlTWOM%I?|tZ*a-WmCfyH9lJ@JccaCcMojOXn3d#5)( zJhvYIxzZ6Z62Tknm#P331ME1sdAG}ICxvz$mGT_Yg_(Iwza{*~=|zAc@Mn z@Ze2m_t}GJGWwHeGM$Eb-^T1Ug)IRy$Lhx3@)=HHu(atDE$Uq61hvzKwL6u`YlYbQ;0;dEw#KqrK)&A`>2$A_RW` zmW`m=G!ACz{O$71~WDYiLYk(~C`G-*tY3 zy!MktKL|rUSY8zR$7-)H+qe;RS4ArFxzQPlhbW+A&wR3@vg^&t*fDbToc}{YLlLuh zrF&^VL3HgE8^C_8p^`AV2Y>v=?`Mqo(-GbS1TTkNNt_O^ohn_0!{DK~w1>bV&oRSv z?{mgNDns=4h!m}0^5mzoJ^k;V23SE}^Zj)^8;&>Ls1+~u%Efv-n;ZabVH0ibRrgS*nKbx$(!@)OEZOPH1&Z3jPU# zrBF;-BPjcr#*RBC?k>tr)^;+kRqVSL(yr^b=vDw-DwJS5i3?YMv;c~Ntcbw zRZ$1$4s$m{6$O!=etzc$R&sro8^x64ul|D}!g$skJA-0vSi0)TP@*@RwBPqSY*m+& zpuF1Q$@6{SvHdxArF1L9e|& z$cS6RXLJ|ZRE$I4u}44%eEjw`KGDtTQMc37?&(dBf{IZqWcLW>xe->fNBSi0fpdWJ zdagvC!YN{hDW%=+7F@d!IDV5S4zPQhDNxqyY7R;Su zntYsXfeh}m%0J;d-E4tzSe-v~p0QK;dhqbZZ*b#DL1EtH<)EgY4Fk97FIy$=8*ujr z_)NQ|@$X(!Qc3^u#V^fDzrs_4a!2o+`ml=0p&ph6PH|I>R)GAHtbM@H9W9I6%nSNSm(#v8f57?Zi#|`Iip_;PUanm? z2yz8}JCLIG3AV@CXl!gXDP@?yWSbY#kZ{%$vADDxFviR>>^ z&pBidY#n@4CRk?YEf)P#p9ITYLInZs<9bDGw(oR}4*Y26F2}f*P#J$Ul7255dHN)6 zC-Cc>=EPf@%$>Y@%$tjI$(jN8^FbC4$_TAJ|aLe)tB>CwXEX?858yE42)p_F}1KU*WCe`Zron z6}AMTuRuA|&?{<2rM7jiwE04`MKNX6)QTk0I{(Zje8Gm)qTrl+`FF)9#B-u4#*pPz zW+jQa&dvf6!P6sJ!^*2XXKYdNK3@n3(jz#22Z8VNIiDAR$j$P3#qq-cR=r`U9ZuF=J2CKc)`V=w={_OTY9C zESS~*c?%uAX3>z9-3@|QtOd7EwW>?zXA}3fjd3*Em^Zz^EZkE--wb9a4OCT)A4N)S zNOiTv005K15(JEoFT=v;-l0Ov$1G^|#yf2d!Q>ktAuWSR5=OB@H0G!@G9xkRW?S&% znIyBcAbZlwg3Rx@68?iL=RbfPc23x`DeH6M17W@cNfGPS(E5gzz!|zd45S{`uZGOEXqxOP6p+01Oa^7s{V?-qCZsuO-313i3T@Y7Ra$qPQBKk<;D)Wv5HNQ9cnfcta^4 zY-X+V3p|Z#L9OUTb&p_^zR|DjqR%&3<57JP>-FY3 z^Tp2T;61Kb1jyI!te^4Sja0-Qn}sKx8T2-fGgL}{Dx3S5chEviRwW1hf+=exHpk^lBe!_Xjphsf-qpT2H`zLJJ z!ECWfhVcRt71KQ{WtrD$;yzm>niG{<_bvg!_Ql}=^>L|^sFLN@9$qC;Rdef&JK zI$CeKMB%Kj#t6Tb#|WjfZ_>A|uE_Cli)oqwST6E)goFEpj|imric3tn(jh9N_S0_~ z|F~ZpKJR4-j4%RWGa{0B3pnR-jxsY+q{@bB(BPbyG0hBxE{;A4z`wCCS>2TalS~fG zYHBzrFwrqjJKuc%Pb$oSOrQSun^XkOv=6(jhoR7{i{zARvw3#UT_U41WB*%JZT|fw z2mVX??r}mlp|C8nHQWFF;lH3kZzz^>tKauLB99Rr`+6$;Y3?ioYq!W(O~;u;7c6pO zSo$O1#pNl6{DGIB{{E#_n&)6E>(@U3dy$KOr^u${Zjw6iIx(Qn`27rwL1mv%INX?? zh&Q`%U}oxbYgSOa+SAFhVwiBJN>{3i<>+CP5jk?vSz8N_a`Tk&3^E^n2B*HWE8csY-boTe`W`(+=CW(Kv9#f9rFr5wF zIW+GwXsGVptPfZ>iV(&AfY)Weg5s4tZuJ+@pU^h_1Nf$~(iwO#`&4A9bKxe3p-)#) zxw9WWUiZ2Doan^w#&+hzZMi^WtIwUQ+Zb;_Jp|5blUT-#f5q1eT^O7<5Hx+7uVwM` z);RDFpi)@6KxYZShdliQC?p>gW(fm19^!}Fy<*aBKlm*-c(TddcYu}LT4DK=<10x9 z;yal?{WzgAC2orFg}=O2jhT~V^{MZWtz-?!Zi&37MoW>b!e5-2oXYSz>cH#}wAr3Z zboqEnSlWM5wGa4(zdfL8TbmWRUJ8suWofm>^0VOG2@VfosW_SnDoBWYBWr9VJpmxLY|46 zpFWVVm{4`3@IX4waEmjy;wdl~HT+;=CP9u^cFG#wsqQ*&J6R0*_PBr}ht=y~^p~lc z?S%3|4et3y3&}hwjI$v;?WShmVdfq)tq5p^kD2s0zT*R-mOP6=i3m%KV}`=wOLb=e1sEnksHUKF!jsvE;`~m+63Y4sd2Tm;1+QIi&MhODPek5^elWT;p+3o{!tOq%{K1!2WwYVfsk}Kv6IwC)lC*L!xHKhveD>DJ#NFST;SmhY+DrSj?~Zw>F_rmM;G z^0Kdc2(-$Om(?OW2}}*pze`N_lzE`pZRX`TaC3X_k|C*gxFlT!MsgT{+0SnVuk5Zm z&CZVMY?u0A7--ua;~~p?b>Eb{tGBHf9mk@?reM~Sv9Ky;<~tWci3WrYG|kGMAWH=Hm}CL)50pfo#?$c2mDf+_4u0k+OG&n%ED@^hMaNYkIXAuozn8^=XkMPDc^GW zm_MPn3^RKMEm$1m*Khmsr2LH301;p%FyHFvt_b3({fH*vWo7^tE2B8GzRnNpakl+x zK|Vi8aHdg>c;8WW5bq=k#gN^d?cZE9h@^M0de>5&cm<~-7(y0T_;nZ5{tD-cnARh8 zjWbyR7P(ZuXr;EsX4jW;w(|L>uck*uYEAD`1SZ9I5-WbE@!a!S6>cd~tuR8Ic+CmH-4iuR6GYoBuB zF$3uv#giE#i*OX4zbW)2L&{VXL972wcdN*|Od+wKIe}tH%~pICiy6QCR9c;CVw&J= zndHs*Y&_>{ay41B>^d;pj=ze5IWaRN3OHU8{+N@Es?-Z8x)`t{xmF?IiC`XDEY!;^ zQ-8vQd)l;}L;}U&8vaq&f{gp; zz4Y}n+D!vn+D#k0ynI{x;Ul-hb|Ifz$4f4$F*=a_;^^u0;-XX7qnRB$1UZ$ysScu; zn_usJaf(FBN`k1%v9^cnWBXv8w%IQOrc@Ztfy`+}{%gZoFR2c<>8r96&Yyc5>3PDf zE5}``%WkU4BQ?^90~!L)Je1X;hu8fwAUwwi%`Ex{K=(JWt^3LCU6&yCyKujL>Zr>% z-cwh;TV%tIVOdZR%I?`yGU51;I2`rh37rjr@N4`=jy#{8x0h~K2~RS; zKx^kCG0&?6yz|cKjU9&_Kp?GeF#dfw3`>f*ZURC7%7s-fg9NZk!SPGZPf1Qh4o zQV6|cofa&-NJ>?Jvkq;%2{odej@^A6T^pMdekXvwkmO7XpLgbgCEntb!#@BSh_aa) ztIuw}Lo-|51Sp4z7a2tarM=IC-%JlZiQ1cloHdaR#ZE<;s)D|Ma*KBJz9Z81v+Z|4(-;^Dlp- z((3I6SRA^MqJ{83k1mW4R?k`^9N+HhBEzerD}FHo*7&I~WIXw4uu7sN3pJTto@*cs za1?`b%G1Bzs#>7LEyOHMT{*^cmoD|~Vn1duQF5xJPH67qz`j&kln?kkWGDK0EZz?; zin%UMQ&}&ckTWyvYyjriH-YV1F}1mY-Cmt+at#51!(EEGa~lXyE4+B^=X?cPe-m>cM_>&&I!YepF7?;fObA zgLtN3=A&F;{*K#+-wCZ&gp0Evb0GN=FAVjF84)~h{&}`~kC-RswMpg`(@!{=xGOPX z49CJ_IM~b>(iHy4LJw6k{ck$11g&mvew4IQ*5Z-ObwB<~QbyU-l$={u@*>dcZk`B@ zU(%jnQ3|N`CEb>{HS2U57eI3n7mF=p7I{~xAu`g^i@H1had|-6>_g*E2QT{FfTZj2 z%-2aC>eGEr{M8&T(Xa=2&DeE6JM8_Ye(W}YThWUQJ_noKHg-e1ylO3ysK0tQnl!Sp zfNHc}@k2khFIR$2)FXMCCi+8%QP9&QB6j=?CVBb+g}vZk<<;IA{yTlTdpfh((V;)P zQ3c39fVzfFda(b6w+N&b^?UFn_;Ff8!~_-bu70#7{;aoq2n)rCtkUSGv3EhX_77k$ z&S_Z`ZnosyIu!#I%!*{0Dh?s_MgFwH-=@aU5^MYz#Yx@Wb-*ttaj$)<@~yqYVKLKI z)fj4yD5w#YxZ-F1X{z6g?B~HWA za`fI?=uH@KaHP^mwFn19HfdEs%So;U3f8-r^P{Kk!pGF~z>7sq{!VGFxJugzgHmDh zHc#Q5qnj?IIttIDD zvY7G7p%Q*m3{I&1T72e>a{=A&@iF_G<8^&cw5M+8{jCq7=auR?|LTR(Q`f)%)n(K# zfdHw#p+^3uIGmh)rh_4Bhh3}CtRDUA+AR9>wRT!<$e+6f+~mKQ#`fsQK6ovuDn0mi zJ^->)WBee=?>tnbK`F4SEO0juMH$JZE_9CZBPv~*h&;35ZCXpG7&-sfNfi~%;t1Av zWEMQ}mjpMTr*`JVES^#Gs8KI=3mT!H<-TP=CZ5|aXkz?TJ5O6D0xvpSWs$VS2+aKH z@pj&M)_s<=5V~jo>`Qmw`p8a)JhDp)@1xyg(Z3#e zNZW84B!>@ci{atbHuD%6mhK{A^4^{hDwzMou*;yLddI2atcQZmC@ATH3%Y62AfW#M zl*EwqqF~eGccoU@TQX9G?FI-xBrSR=vAXwA0?+6fY3|0udzDhO1U|WbEBqL7>dWy% zN|PIjrCdL+orBn~Dy(5n6WKwm|1yYKr``TVd5yTekM7XC?fR3w9a)=?Fs9|`5i!VX z7w1i0{^3-A=*y9OmZFz1{|M_rGI{Eyz*h=NfyBN=2iFoAQm2jZz-dMBX+!EXgyO2CqfSZ|SIF?V>gRQ^?dM#%BqqJd02X>zcvGVIl;l6?K(#vP z?I_E_N+;eDrS17k0!iSNoRG?(Eys-J=6B{1^bzBNDc1Iw?qyTM)G6e+%0k;T#UN_J zA-wHJpZeDRC!>y&>}lpTSA1^r{#l z6d+t4K};WtN9kVZ^WieyOX@Xfq0t>lEo0Nlg-A0$$4Sq{Yi*TF+rRuCq|Bk&Y-^7t zXphQX-pNaHO^r9RDZ-$oc{;!!y&UJH@r_3Xpn|VR)xC2rj&?XV1^)nS6lNzhqZ45o zb-z&6aMnnU1pmerK?i}O3dnb!0HoXfUE^IrroC0g+hm6O4TI`NDHe5_OP)ukb(0(( zsc`A^r8e}$I_F_IoHTap3p$W&qC0V$qiBMiQjdPTb0PTpm0+rry19fT5!z5IKgIhJ z)(hp=vk_IQ2&QQj_)stH{wV#5STnOIpkOT-GdN96t9s&l-t(zw+ISADHjksU!TB`{ z^H4{{DOq(2tI# zT9CcYBY4P>a#Rn-wuioK@$9^qov`wyW@mBQ^r2VycB-ot&&K_e59*py5qwRmnYL#i zYxk~rKl#h;BCr15m5@93UV$_Eb5KZi)#mzP%f!JzmOayA`5ypLr-`hBeMAFg^YEgX zwiXuqJtsZnljDVNF3vRDR1CYfQ#veQW3+^K;0S1A+1K(JKUZ2|pJoe#JzUTJr3=IV z@fu2KHelmRs8qC@spD*VCUlWG=7pK4-+IWrI$bCtw|E4>_8u9}~GP$6;rgiz99bEzruO{}wN0c~rd*wnKO{)v%xhs+5bAz9C3OBKoZ zv4b30_YZ2fPc$(sGZ!&ovwG;@M_1Hk?@C*f_IR!3d{k}Pd&B13Nimw!k zpEVfn2*&}Q3XmuI`S`#wHQ%8ShV1{MaQqsC+)t6lQcO6OqqCZu#+27t{?qY#>5As;yS8Fv@iOPGh{`(Wm2Fv`Q zkU+*fDhmtl$6s{w0x&-k&~ zXSI5Vfc4u^Mnvd7iL{5=y<8yK*&QAg2tPrGWe!?U_{F6n-+0pqZ*qe=JQ@C-+8jyA zqOK_|G@{hel{Rqs!b5184M57*8d2qw#88)5&+J!cfW@{~^WG5VxP9k5Eem3)DJ`3J zch&Puk~v9@y3nhpfk)0?x|{D#F*ue4Kji}3H{I-=AH(atBG?;{we@!r zn6UjaB$)$m29sM3Cea^1u|`o`*c$KK%(GWG`3gn4*2^(3KKuRlei0c(W_x>2-qc_v zC%@dtZN6=desL!fjRT?=IO^T}%l5c#Rp_vyLU5Wz20wO*xAH1Uf3KXuOdf%^W^^C^ zATDpi9-}#|@6C=S3)oqCFrI@EI*}TjJRD6d{ONftqb}JL4zo@pJjV!9d_4|_#}MTA ztZf+Z9NIj7U42}ecR+1e>9BO=jHxQN|1nDHbwu;)Zeid$xX-}e`iRPXi&pt!Gj1ct zO0)nSmDq4Iv~mh6{XF?QJOZyIT6N}C#bYx&^Mn6$!GlW~W`A?iuo7)a?R{%k7sk5R zdlA&{Ch~Bevo@dG2i!?NEls3D)_oc04`>->(ex(45AaauSOpgKdcBp9Pm_>cW?Sv+ zkU4cb-@l-G_hj8LnkuL(zxI{DKF;w%VX9%<371me1t<<7G>f2gzMfi?l*xT z`%mzQgSEeqr+~!}6>GkO zI|@obSFELoGrCQsLQPn8MMC;wqc1cWf~z&|0(bYx@AjT`NrPz%erAV!rc=MG7D%{u zy08-P^5qfTT=0~!TTuJo^c=KJ`^1~ZRkXrASP6|7^6*%bcD75Q1nb{(e}b&(jzY-9 z`}2DwyS#&`&}Mf?2m+C<-VP#|4x#*O#y*E9=k0Xc&d!`dCWntkK3`1}*xG-&;*Z

P&LYoy0um6B~q!h*qStUG3)wt-}*cr z7xoPJ6ik`7ltCG4tfCsd%+Y(ruI7Aa(ER6l$eEXtWUtg<_f$h3l^#P5dmI8y7)T=p z$a8$nF5K-?nKR+Z`$}`OtE2ac4y)lg_U^lfskwx+dx6NU^(EJW(~Wf;mYgD5*m+G{ zJ3~L7la&0+U3wAe#S1E(Xk34;r)T|N{x#3 zc1m40gI3a(Gn3E5-StU&<;UE1F92HMPmEBPl~ngippm7r?AY|8Xi1cK~1T z!WY%s^bPh*lMa-#b{J0_y(^4J3sSiT;FX$&W@mPDrLJSWbUX?<+@Z711fWSK`57clkPl2mbLlnu4k*CE&j*= z9EyTT$1dU?8lH?Zc)mwc(96=Lb_%1W-DadDb8WcpBT+H-l~@pOZ$ z$VKv6718!dom{@tU~mbM_XFTvZwx16WP7vpzE=ju$G{ED><_ndD3~G-QDqWvTl&B- z{diTBas=uryTQL_%%^Dju8JukyO=o%Q7~kkW7;%pRc@RRTvD_%&fYp=Ltc>7^O3mZ z^%I&`6%Bs?Un1>X^PT$s;f>>G>0o=x>nZlB^5?HTtXghm@D8!k&I@D}W!oQsRJ7sr z?Yo5z!a3eR`^|NSXseH#e$5l#hP6?2U+=?AEEDy}gcNu=D`&-ok4{oc`<_Zl%G`X- zEXuW(-Kl(mmQn`o3|banar~o4@>jpz%R4=~Y{i9iWzaQ;t!M1z^GyWgPowm{~)maN=tyq-Zq4M=AG4-bxEqbEV?E zE3T2Gy$WBq7)-RPK}FXGvYd7GiGy=q-yRGn@DQUa z4k}B8O}qsHd^;I}lp{#UDPlYiw}6VTdL4D=xW_6kd6eu=d(!_l8ZY8CzB(dzNK z&c{!RxkqoN)!al7uYi66xH6EpdAups)cXCsuYXX_W?u^DvfdTaDLn9(s(r2%SQk4_ zziaaNtV1`+I27_OND1mm8xX$g&TOiL%*6*Z6K{gAK=vbm^OzjB0Lpsf%7mvNBc%3y z_`av)V<$x%#rk~wNIH0{^2_J$On3A)`G7`63`o||)zfz=h%5YruY}6BA{vNK3ucZq zo$`KlSt9-bRtd%Ix@>aniDyV9Id?rGuPN=W{-t#{Wwe6s^-8;}h^czvKmP-myMJjo z6W|FU1(1M|0`T%9lBM&z)z$QG>%git~1v&k2(%Vsr3-3{&zV2i6=%B6pD_ms~@7-we z&Mv!uGRyPBEOC(~-pK z)dr@@Z+uU`T3R6Hy;6tL+s`NZhYq}Mdae95M*VuLmG`w&X&EZ*k3H66NDWIum3!rfYlWr=Nr4G=PXKk+Ek#H*{-v+IAjD$=ED@ar^-tzyBA{!M{cWV zS!bw}LuzmVpd-r$a0f$&r$_ZO<*hkZ^x3C7ts3XG=dW60b+R2Nc>O6d6`z$lQPowK zB}zqQ*h9}g@yjFD?BC)Qs`K-KXkaQdyUXSsxTH^*n()6~_=V~0etsWr-WF%r7oZj6 zal2I#+L1rXnlm*B|Hb*Vq5R@m3@3pNzD&7TGvQ%<+r%VHO&11#PEq~nZXa(IIsZr% zDyKH82vtf%v~;}Li|^4$zQMV4qmSF~Zt<1?VJrW4vZ&rFo78iViz!611lLZ@SyP-l+?m;b{u>##cU>2O6ln|)u(AR=RlAdc(1zZA0D&NB3yW9Uz-hC zSZ9_11RWgP7lpG7j59h(Uay@{78skAp*q_{I2}&fW|OM3M4+NVD$C~h)zxL_1#I() z1$&2^SbQ-sxBT{5hCS{yi<3h8++fwBZXx?XicI`k`=qvsp1hi+s!Q}sOmYP`TVB|A z|A3#doCW{3h9mwbF)!cn(r~tyo;#3*m$Z46o*)pIHs2s(3YNB}|Js{X!K8y3eYx#F ziXVx4wDBtS5Nm;~KYbz>_EzNT-*YRk^eCs)qV?Ye8}b-^KS7wf+ObDP1$IUgbV+G5 ziOvG~D?e1S=JmLI8D1EkTvgApt^5IlOs+M)bgnFtt0w{Vh?3ZE`SkLiRxlW)7luri{2Pt)3+raD|<=|<&l2e~*@nLJfl; zmBcTfY)bWa){sa<3rG7410e*4jFS{=5~Z*7>4T$~pQa-Dj6Xtng4Ye7YL-Z62p_ie zgCyU@C*pOKGXLJZ6Rvxt(C4KER*$<*eNvh~) zBZS`72bKFlSx*>vdUcS~wF`0nwgLPPGs@437dtVE<7tC2a8K?5oFpmeP?^#L>~k+1 z=+*aR>v`!WwTU&lHW{^9=$rbw22Cfa7qIV9Ci$Pm)%&OFhm}j3g%!lG$ee(0(rtJ} zbPv>;g7y-!1(TRYexU;B*SW-b{a5tPcn>cPe_9l5i!^&|j^&rGW@|Qb!st&!ak)$A!r9*S0Kmofvq9xI?>@&to!x$czl zvcsyJb%n9N2JvLUuO^~o*Hu?4E@;!R&ZhK>u@=CjyP9_q|h-8`ridW>M|A|Ax$}#`CT5Vi6fn?L2c0gp2=_qHMNq zv80Esv!r&(U+gFDEJF0<%vl1;;Wo9y;dD8C_e1zujW{=Lr>V<=oiO(*QHqJx3|bVX z;m6v538l?WsL(#x31T<2*YJ1HV6-A=Qm=utfzLT8oLiFeI2z3q&~@~jpOjagtQ_of`H9drfLy|7-s z$>`vm;d(qW8T#tLMWnpbDiYVsg$ihyYE(q(PLBUBb*@XX*9{A(PzF6u9w}MwyARQk ztf#@`C+gv{Qv>mC^ad@_`{@fbTv0zu{T^YdJR(U)e2|{Ul@EAz%`$Sftg=m(Xat&U zz~yq)!g=TH3UI??8YpR%x=H4N?kZlK982gS%tFluaXOy%tFs=Yp@-ItZwi?DPWIee z%X{!$&J(Sfijh4Q9B74QSFkA2OA=HE(`^ixh4Gey0*J<`we??L~4*Kv+^YU*ql zJL8W{KG3cBbpcArL8s!0_CZX*aJF4PI?XJui2mre*4Uph)&)J&RnCox>0T8A4ezh{ znqezn%n25lu+Vh11%@i8-2@_i(7(cHuW?R?O{KrVtw@~M8v2{a^Pl-en>GT%)CH~O zk^a%gB^73`RY&$n4jT?2c9qZ40)lh2%IH8seIM>JR@@1!FYBl>$s>-n0Up? zkhvObs(;8KBq~ScjIVvm+%3iOr$iJRhu48;39aqB40N25aos3oAbKG49~#0IcgS)V zv#s1&mV(Hoiug2Q$ZfU-nz5+p1Di`Xr9Nc9)}# z@c#qoa`M^YWmz51SvZZYX3m&0_M8DTkhW*^?9w!;ibVU=PM0g+kug4Wk`!sHlcQ+H zdyXvA<0yac4^4DoG@5bHBozGhO-%?O3mt)zFboJ5sLS_}s?8+!?6>Zi*sobH8nL)a z>7oFYku1%Kox)k~3y(s*NYCI+g2as>rFCPWmsgZcSzK{?l7ZLlhsEXnB|$>S2zX@; zFeeo@5_~PHuO@A9wd9G7dIYv&%y{sH?_TyotHFrFMzf^+bn=Q+t?O_$x_{mQ$h*BO zT7fZT)|40aaDz>L+$*s8@>rxuFD2O&*{w{{h~ZQgg3m>xx?l<4KwtM& z6p;knUWR|(<*&aZ$%F%LRa>Zei2o@R-+mTiq8G#@1QzBA9s0PWXJT`do+4_$hI=JDxYyAn%n$iIQxr^MMemLm~1Z)Kg>&H!&8bBO#3Z_SB__VQjgLk(60(m^pkdw z>MI6Dx=%n%w}iI#=TUeSJBR+Qm#7s09+=~s{@GKmHkO2(lel2QuU~DtH-*k2_I67E z`_qv(B;zZ_-s^z(3+;7RRs|aifCm#3JB@6_?{cr61B2_Tg}+}8e4%JdN>8fKM|HKi zwgV>4aA|nAGQ<{Xya!N{kD;6}mg!u(lz71wto}(i0ToT>*QBP#+*hu8nvjsd+WqM) zSeZX8Q+Oo4mbZ%GO!km6Wl9;M6ToJ$2(W}y;tAtz-m^7!ZZdW`e6I|iZxB{Z6M74^ z(Pzzq_`F(6r_}2Rl}rL~tFK0xvCUatE%g1!{l2;sYj;3axpF;wdy>U^c6-aLWUpM! zJ+iaBoUQNsxqsf_LSY<(;TVD9P?-2Zq(x-g8obxzj{N0TGM|v1HqVgOso2YguY}>58sqZjwl} zTrVyQ^HIqd_zvH``WNHhoQ%_|Vh}?eN*T$h?zsneifv7q)v$Pb-6C^96*q&Wt&IL= z#f+La!l^C|Xm77#WIUUK@p$gEIzIHb$5_dk_TTh@f6Kk8zj>bgS1f8zf6O~I8uO-% zSpUC2uni&o|KMN#<1a$uZ~IfUIlm8Ezerat{{P?L4}iYp?1|h>Opq>`A;j`;CzctI z?BA*0B5szvB(ood`E%ltOK?-*- z+#P~jK?HXRS`=Qm6ClB@a0*Fqcjq^id_6tWeY@}N?wOuv=FYeNIL}^BLDf0yoW0K4 zd#&}pD3MZD+if5twaz-?U(Nm55fypr_+M?^N9K0FeQU{LZ|e<=)lhQEPIW7y$*lvC zt$SEqD|71@6h0SDYxPnnmVv|oY45xiM)+jt#pNxXz#tWv#ZGdh7}#>PcC-K9K8WZ( zYV7E{ZwUb;*KvrCKf!L|*h(nTcZ_34uJ6o23h1xUDAKqwz&X;`%mEd_E+kQOjd?0~~1r zoW!);4m@fd=fQJnOcS!)7t`BwT#uOFvc1xgDL)N$<{rPQ`LgLIHYu zGbX1}n`oahNLuXn*qY>3E^;@f;xVB!C{?#9wd&_9qPSzH+>`)Y_p&zgCTW)rBYHCr zpyxz9JVmDLbt1{|+>}&1H>p*Lp^cmjo0s-aWTegx&RrUo^!OT`{yh$>o+&G5eL7uz zRE2XjL$Dl<#0w^+PJ33Arq*6;R9fB#h2hLdjnzz4%IlKI>DOhf64kJuQ4%WRy{&fG zmQlpgp5lJ<1O!W;CYoTws)-WLFWiSs>_0+Ca*@WaXZ5h6^rIm{R@&>1xPI}!A>@es zTs!98IL65Wc*D`5?79+y_*Of5H4&Q??_z$<{t zkv+fkS!JUxVxUG(VWHMf!cC);t1x-R<9+p&`?hE3n|)jw5H>ZV);w5>!M&?WJwO7O z&QBWVnV$kBQ`Yx=OeGBy-Yt6Lp1>^v?+>( zM)VEU9H$TFG|Ugqn{Mgw-L|wBj4c*+dgx)b)X&CO##J7s*j7iUpS9ZA`2Cq$f zp%#!}SeT#21;6jAw#7{k(#`!;i)9(^c|f-EowJKmAu{;IzA$(MCAYXQAyN6{R=Gcs z4xFak#2f*so3YC7I|hi%pkyCgJvEKsIN=&o%U+}i*pO_^#JO#4fOfLh#vvubdq+^8 zkl3t<3^!6+*~q=tKl)RJi^C!vLnZsJ(4z+TVz-i-Ef=bcc~71sL+2Jv^=T3NF5wU= z+hK*A9ARBi%SnV~ORg`;T~R8gZKF1R6!D>!^9+hSV2a;fhpSb}qxehNGIQ`k>YEZE z3?OFYf>u)7$S(4JeB%5YgMnU?yQS}z31rt^3!Pq!)k(Qmy~zwF-MYfoqbQwG3ssr< z&H)&nZrtbZA#TkVVP78tEjT;KfAT4`t(|=GeG9wTK8WV7Gx?+?fyyt-X><6POk=91 zp19TMb+1R-^Ad7r0g%?%>|&kw)?@8*58v$B7{XGTEK>W4X-+^MC7~2|fhB9)oYHyG zI_g*8=_aw&S-H}v>dVGuK|QkutE8aQ4l$>q#9eHi(|JahiuSP>o7xb-BEIiWa)(q0 zmigpCZq~LeUo#3Cl(YSWjq<{o9YcNfpvW&^OI=PEk708dB2n8uYNOO%1H*$|cxht= z>lL2;{CSPNr9Y%;{iEnul>lHVe@;RsEXFQuXM64FtW_qMnjtTaYP^*z+=;%R zQnt>;$s09SG*tXY(<_3w0uE{U6eE1VXs7wYH%zErMKC~1? zzPo%tpJUd>5U!ry{8G-5f{@~ROBz>5g^qV)FpaLVt_!{DKz+@5c_pQ>3t@F+=I@WqK#G`AZ@-E>(S zBru*90Z39wNTGi9;1Y6{HaV^$sf(j4=<=k$_Mg&)H5?vWll!&Mcj_kN)mE7bj|9f` z5b2=o>!Wv8ip8ZK9*EdIna-}lP#~=H1A6XbxUp~Vu1=CLivdyD*lw_3+1GqcML+3O z6pj^ic3PYOluBhL5pb~hI1?U7(ipkqV{+A3owUv;^oC-8MS=X7aCgpp`IgeQJ|crk zk=N7x>;e44K|(n@N^E0IASPFs(&bTvSn;EAWHVb{QQyRnVV0Og0o*qS9uT}IrOBVs z-q3b9gd}XKYR)Bm-;SMGEZ2PM?c^`@hBEbJ&>s6Oc#PYZ z{Z9?eADF4|r+@bk{|nrs)9+1{wI5Q7x!PboOagdI%65{qAcFe z)@`or<5*~Q%GXc4ipp1~7Kgs+^?NA0#J#c6CvhsHEq`1hZ&)s-fTeO#f zu1Jv1!>h=y;)bB_w8m5A$DGJZi@mHbe;YD<`TcNsr$W7n`SsEun6X~zC7S#{Q5=G8 z1fsVN^U?u*fa&U$sqK@UK%x)ZXuW7*?%L3`W^OVAB>{GU-d9i#L)kp{Rg1>17?PEm z?~2rvFepP#iI|qsm|R7v71y!r6p5^)c?stN2mS$HI$%>8ylF+*305e@!?$c|<}jhi zUqrgcv=?7#sWX2P8=EV}b)^N!HOXjdDAK(C036l`=cxTRcoHm98&Mxz8b3Rk6bzc~ z!yf^i9tpvn;yw8Bmma1IMv0A$gm%f)LTaxyrnuRw@~g2W#*%zewruBSQP+F)a;L0_ znlx{A1iFh~@^a$t?4}!@>bhCWM?H>kiS(EO4p!6YaO{5iW#rzMUyGIxuk;*;p<|Mj z^iF*jN6?Y9T#1eD-}T7+nP};b&uuoA1hNuWg&Dg=7oRyQ+TPfoNgWER zH@w@ZESw<&?#f=!m;LB=cPYxSv8}GFC9_sl-8zZ)_(}{kG`K{dOGle}NYWPi6AGz- zJvNRIS0PaV-u2`*AUqg_MU>y#vLe>$Z@0I?ai{uABK6Me{QcX z2ST^C*2n5(cs*lKFxlzv>VJwg{*;^l4chVFJNHN9n;+92V1GPqoL6Jp!>s%ml*sg@ zC@=uLC|lVq=tp^e-d8nY`jB)c-7^e2xb{fMC#AK+ZuZ>ejDe5sO!rk3R~#WfPtmtD zCM(=8t@u^WF0;CEM!&uTIP0i&y=F2_CA0`khmUdiveI22{e?0b`QR^cx{7RVBD}kz zLW%0#69fAE6Y;kAeLb|y>_(XQq(ydJW=k7oB>1m8sZ1#G^L<6OtiUc{k8*E-uzzz- zn2E2X^NZLq9%`zm*H-QF`<1T8u5khN16PQ<=SopxlB{-+CMmNgF;uz11svrz3VB~S z{&i=tnfa>dK<2x3(xS3OSz#NxHNN_1xDZd}`xi!apRARb8PKx>bZD8uT@OUodAr8l{=P@6-b8P0EH&(J5sy zznN-*AW3%;Ip6sl6gN$m-AJXMC{J-NIpv7mH!jr{S)VL z{C&Ruukc=1zw7b;ETxW_WKFPQr5qj?$U*sKXE5LtEQU3GpZX%ns`UtVl{rS5;X`fd z9hPEukEU+ewT+bFNDh-tnbVp!_t0s-UWbbGZfq@5CcW{jS1X&8-JQysVB}Vj#7a?g z24yT_y_dh|-Q=(WXNdlwcnp_|irvmn1;99fR^_W53`{gpsa)Pxjvyz3C+BHr?ASK7 zy1U!q6uW&z!%x(8FdUyQZ6Bh3W>+-egem5rfH;0YRu8xf!+>%X#ZVAFGu?L18xGMa zLihb?mU7FnoeLy8PvbNyQ^Hw1yg8dDrJ(O>8e|VyJ8Odh7UReHDHKK5PZTK?D8&kKBdyH#O6+NNT zK-hNm+jp@j-?c(C!i&?5rwQJMDx0(^S>vU0eYA_BPlHY?(#AgN=X#>_43kEo8gl~F zshnLqXP_nh-hu{p6HX9HGePL+G7VFW(cq5-1{j4f~9Dm86Xk>JqGUn6d<^lqcy`z|Yrj)3kcBif*9 z^yC_61kcA&NZQJ2*JmG-q2j}%*4?TEnxOV&=@qE@e95;ahNKr3hfwTi|42vwzycFUmk|0(=`UdSwQ*et0@Dn+>3&95ep zaedRpO)E^>9*-&G*?ZzvDxI#-)Ro$MIR&r2U>>W>EgZ*zS#%b~S1F@EL029?3#+3K zfhuk3sMi}yBhc2cx=a9M!Mn;DKhl#DP*_P&LJe(rxb&s_rI4T@FTd**FWrYnYXHA8 z8<-Q=+YGdaOISH%DQ-{t`3rYJ)HtTd-fB#gRmUz!Ysd-w9J~?0v$M9!uE?O6&ch7R zUXRzsG*_pL<6wi>C#`!3j1-=2x3$xlz)MK&@Cr(|wRC#-^H>Y0T-NV#CY{aInKBn$ z^6d5M2ej80d-3-0JbThPh7CQ!tu(>SP;P_5Sz{$~9LoI`kMQkJe9P}Xf$)ZToOH`} zWy%Gza9uJ8mB5gwCouKj>wE+qXZ1Zp-fveWF*Wj5uJQ+6V}RhgtQU2gKMGF?%AV~% zpAbm>4@lJifm1?J4|fYwve|W^(45Q4xcdZ8mf>T0rvq4b6_>_J?s$fLcuD|kR8M^T z*_fp-YLYjO_QZFOXQ6YzVI<2#8?v3F^Pq&fCUwUcHpti4DvOtWkliuS))xxqI>YO7 zRG%wU#6BJRZ%;N=gIf9CGNdHgm?Da_vFe~9LCQ0qNnYyf!6U>s6>`|rB%bZ0N`QZUlxq2<`l* zfj5dA$e(XV?JU)C@)RnO#eyEP0>&45-K<83hEp8|^_S7AWlyZfH)um2>% z`v;|R?DwuBceKCan(@=ClyB`!$A4G;%{KTm$^X0b)=XoRTqhf>xFS-|z4!iiRm;7v zRibBXuD%gLMdb8vmoU?~3bQFOmV^r2j3OiT-{|Z78m#~43*m!Z5R%`S^AEo>#&3pa zB){`-(5FBA&Qj{8fB2oN>3O=wkN(E*{5N`Mw11#?j>R~Q!ZV$r`v5$typ;$Knl)KU zxXmF#8+4zXd2e@h|8AR83u@mgs?=G=ahmVSf2Ue@Pp7P^;Cv=-$Ze-hd|{ouY{rXA zbOdi@6Q}dho_KUbhh?Oytc7Rt{U@|;#Aj@xnkskPBhV93YSWuJGEwl0n|kTzt}O2x z!&eSEmFb$0ue|1awM&DthjljKn31_32<4FL5;$H+ZE52qXZXql9=q*V9ZD_zddGG| zU>z5Jy?@PxxD|RB?V+)`l(SrK8$qeu-TO8xRCk=2TtmmeR1bh4edN3!x)ExNU+Xh| z_8PzN$pEKf-*G!CRFBW2{E6GPurU(+AzWL>c)OV`E)bE7sNa0MOC}diUnZnk{g%t- zP-le`oW1dtUnf?xKTv+PIxy{IxSO<1L-#NrQJ5L7%Ww1b`X2C2D_uoHDdZYn25FSz z>ZF>_fu4~%5|OE)DYG*TT1j$KDmJQNTTSFJ6a@4tRkg5g+bxB=$et7bvS-bI;&IyX z2udIW#r=t~r1e_a$u<}q9W*>jcvC%gmaC895v^K~w}q+tqN{&pEU7)Byof)?_;$Ax z;2-!^B^)vuwz|PkD~jqKpk)mYOeiYOi)_}~4AJ_z_92f96TW?Y1u+t%dZD}iCNBi#?xybo_J0KTV2uP5^buL(iEIRzO zc}}S}azT76s;gCAjZ=jUq)rzjlS>Qh#rq0ZACu?`s@E`0zeY;&7Qa&TPn@3%a{f>CHmcxFQzcI?bR3D>QZ&uV|G^vLlSoDN`q{ zJXG8FB!a?8Z|idiSWTQM;?-OVZbO(sbu{6dx|EjySD3nTL(NovhZmt zYPo&@4WSZ48nD&%;Ykn@i|^%8$Mqvr;CAU2jQ%eX;~Zp3ZY$ko=tIV%=s)u2+rMAr8-s;+izLJu|HyOooO?Re zfgm~(@{UV*o+kwFPjIPB-L!_ycu9x17`rI^i_kUc#8#%$w(zfeGz6{}b)z-Cdy z03~>_7H0gjN1L+y8TUnVWntrESH}9o@{&`4k)0J8h;HiLz~oxU{>H@=?1Lv1-+#5 zq@EjOzb)y5qvsVjH=7Dek}M_(_@w@1qZK>PI?wgUP5(}G@@o+tG;qPc{Rpe`8Cc<3 z?9eU+-BymouBh~#klY!Q9A<&*;TO8R#83o-N@#F#(p{&)<19tJGj2*sFSd$lbCXGt zG8%Vuj|e4p`z1iJz&+JeWhavBYZ>F-^OWrc?DMwh+Ae`2&s6CX{S+x^2`_xVok1#m zY^!Z(LWnwoYC`)7R}#Ez?0OQP2cCr6t_YJPUv$2z z_^^Dk)bZmYof+j8M)IOJPz%04Y>k>BhAv$%J&bOz2Iz`P`;z3CF#|vXy68-pPyi(l zuN@I_q*Ml{#&eeIuQ`L#+ep8CeTDKxVQRf7nEOQ=!Aq;r_DGCQ4Yr-#OZ!n&nYc>K z*~W_(6>fBDKU)nTN;9Yx=*BpRq>LWUaIcjTyj|gBe)v?|l^;}mc67`ND`<23*g9zD z16slUBL5S9xM-HPevDjoxf`An^Pt)$RYs`~<9n9+u4A1=DnUTRD=nvL=M%w&XBEmK zSgk3l&W!J>ILEE6aeA}Q$w|9I-Cs8lZ{nvZM!#v042MRLutC3rqFpc)-F!HH59AspGB4~`tefE6_-=x;#{V$F*3U_5rPlmO4ga25}L#5_Mfv# zCaaqbrlb(qG%(aU+`X&F3GMb)eY7h2GAtl)W=W#od1&%#BH-=5&=<{_n&pqGN<Tc^x*l* z+tBr}aDn@KH0Pvhh+V1eMDWF6Y9~(F>iz5Vr|k)sU{-F3g41Yr;lMTUHA}PD@y%B5 z+OqG>Gs@s`JuU6FGOLJGzq!h=fK`>wwve00c=+vGH~kC8%cXLV)Yn*|%SJ~ft}m;D zny^jOmdXo0_0pt741L5@XYr-v;iP3pb(zwk6vx^XBa0f}Prn#u~|%*JrBK&WZ2 zjyIo(wjRQ!$$p8}^HSQGuLx!QtQS&B%R~ zDQtq_Xvn(NEql6Ox6&?BmpC+w1S4-TiUX*3g3Y_~Iq^z*GwLVbnQrr2=A&!kHl%dq zRr&IYyg@;CrBJMzk1g73O$d``jP^aD7gbkWP(*}hm-v_OPjWz%D@>~tPcNhQh0%<2 zTIKC^-;O`+4;M@IjpQt|{Tw0GB9_{xKNn;L7d<+hxxhe6b{RD~>4P0?CyDT5cE9vL*Bze5wEC&Y%9L7n9vl$#+gStmllFG5 ze4;}7P+NFtcCXLt@WPAUwM{X#U}|Bd#qcTMOv$!dFF%j^sW<-@3W?FY16r^qbAoM{eq`B$KPq@jq1)}=CPMQU$}2Mq zJ?xgkfLiK%b@6vtyBZrq{=J=Fh9Nuc9UskKh>}x7F8@N|`EM_*W8kaC^B^YNiB#_c z9*%)_Y&`*FUs=MLHg%pVk6ThZvU*yaJ*W>$qWN!du2}Wq;Lb^9K31j|UlTuney<=e z|6hm7DiR3|YZ!(&D3r97w>8%({g8*FAOvAq1LubRP(zy2D}-h1pilDY-_?JIHRSB> z`sM%UnC|VVgSRYgB?N-DPMbG=1(3=4G3#@OW!G@e2&@c>wrPwho*JG;G_N@X#o0$_ z%5W+a>Id-=QGuR*+|V!`z0PZeU&m(`C2(*$c-`kuJt@ZcOY0%Arkp$ZS&tYOQ zW1u#rczk=hPW5C~(Ayr~;*^ndW7_K`m5A&a)lpODL}s_=fxL6jI79T6Cmd2L%e;tx@LG`+ak2> z;P5fqM9dYFy^|!LECYC z)8a)Dn5qMc>h3c5AA787{o?h_o06BgSN|Bm z3dpL8V`~L=a1n$faTjkW&6TP-O)FtRt4A)6Y6GNHL4ICMi?ZTKR&hwllH|()f84gi zDAqw^yV^5zCEIe$v!#cfwf$yDy$1Q@UecMh0Vr9&i`e@Va!4bF!eCB$DA-8SCoI9l~-Hj}7=cj7VY+TYcGyEWcFM*4)$|5Hr&p74wt`k&tm z@sC{!{|STp|6n^u%5@zR9q@j3XQEXQqtGP*ct2OR1N^k}KxXzt&f{Ybgd0O?L$|)O z*(fFR=nyOKvZ&oXLXX6o=9O{m(;G9Kx)tL(i#liSd7Yo#wa2vhxKVqYwh&F%VJ|f4 z*SQ{>LI42bskghj_^~=FM48sCxIjBy?Cg%IlV9w+`e@1e_@vNRPz?niiXco_oT`V~ z@L*wsF+m!7T0An2Qq&QW7F*|^chhBJGdXD8SjjU!#r-kJ*vD)tS8Tom3sS{3E?6Gm zeqGcwFG^+lx(K%U#hSpxJwylB6iI;E5xHHf#IwAlacQ>yDFDw#V4~vKHY$u)^A>&) zpQ zL3P>+iNlJ3o9;8>DbS*pp?2+^C8OhC>E&q>hg@DVsVjC&V#@58Q*qu6bAlCObPI1&(2d<`B z9dk~%Ra{KI9S2>y?SV5SEkTqb*TU7+dB8h!FxR;tLYxVsvgy-hJZdGPcGG*RN5K$aNU5Xc;}dKo zQ=lG@%zC)+SXtFWR#jlFF?TFRUvghdzT2+Qa`Ps{E~qAWMj|M+BK7v}roFKlEB?ed zD4vAsou_Nbm6tw#z2TsdRf@-Ii^! z?{fLEjsCmV^;{%fN!GYM0;sI{HmqX5!0&?>lU(9~Gc^)U!rd{ekOSja(L-vO7^V=q z-j--ug@Ivm9o61^HtI>p%UF?;PC-dA+zp&s)sN-dnc7ypuhXZwT6#r5B**nsU^2rt zSUv5#A(k3DqZ|-m$iLl?LUEI-y$H{#Ci2oD_L4lr&km?awtcI?B`ZOTuf* zsg416xIQtLD;#OCTt}K+*iF}S0WqJ_BHZJcNFI~btQfJ0k zUA7H2#^jFjkX5I2bgZ?Wp;Wqr5Gyz@ky*Z8F0ts+H(~J7o;~$nd*+TSTB3K7e@@bk zeqDU~2p~q19MY7lrh6~3EgS4F3r zL!UP;;dUM`H11@;4tgu#js1jxQ^sl=jIKW8xE?C7X@fEYTCyI&p?tB)#C<+gktLK*iGEpD&m`#t=CW?799hUoT_Wx)=LESvCe-WX|EI2 zXzGd+K-6XFEueSWwx#waVl9Xgk9zg?JC#&$0BNjCq1%aD^^}KJ>DqVg=GO-H%-_EV zQ5n+UWk~NzAqu<~#v@{XAS#yy$`&57XuJc{jrJY9^nJ}ldVi{4_zk?|>}%y;&iM*h z)UK$`Oho>l~3eZw_Vc;w|{7f$gd9)UvC$(@!%gACPVh5>{C2A$q z=Z>FN%O@pYvP||LJ`svC6i($o5V-q!AC{i8R}^a%D`sqPuGV6~?opKCM#$-yQR9{e zCV{$OW_gNfoV3w%fEXsDXQ%6(G}shaF~*Zfnod>=nvC9ka~Bv~UG-fOY>_QxthQnO-iXqCo4q=d~fYi4A$th&9Wb3WT{EOT=qZM zV8&3j#yL;k=u7`LzvXY%4~Qwp;xt`likZ^RzjgYlA4XpgF=`z&%3OTQ^1%ti@)`VG z3xE59!B{9&?(CvslzqOADb;4eZvL(^s8IcJIR?;D`8e^oZ9^0EbpH`da7K8SV<8cX zV}I0;cd@`5Dj=nuS=6pm3ZLtHB8vWslhS>wvi&**Uhq-$dL;eYD*S>qp) zi}*9~p?+9iZ-{mIIUN>R49U_x)6f_pdEM>sYg!4>^z6jeftx4kPyGp!x~(2w4(RVG zXXz><47499g6fwZB9>N0IzmkiId4Udr9H%lH5B{oGi1@MP%W!3I%mL)76 zLU+u2#zJ!51Wej9gXdDg}8AtEBqmdRL}YN?#N&E{k-{haW8BGe<%bnr?nq)ja$QpBz%JqLNgU# zC%bU0>3*w?wthOo^lwprP9Y!OpF87!ON#tU$0&`2_jbOv$!MP-Z>@U{{D%~?Tv8bc zDi#K0l+y8MVm2$gLoCQ+h(C6Eu=?p%ej_LybV{{xuWKuxI&tb>&tq(!fj*4m@C#jR zZlh~i^Q9jFA|mzl5MX1hyC4XvE4a-V2s}lIMm05h<2 z#*>^5R2-I^74(j%6#DJbpSnb$FXXaPbrwLws;h`1xnH^sz}fOn!gZ z+A+NS#dZ6d*AipUR7f4iVkJv{#ltpJ{^5x4CU`F$o+$IkA2a+!$qQcB^djLyP$5Ya;-|NJ85ijPg^;cF3C%uauD-HMpN!2gc|}su;3CiA-dyjDD?4va5d8+DhunF9QiEIOED#w5CkYCT4SUe>#pZT3U5> zA#l^b>=(IqD@z-mZ-*#!j4&5pc59~qW7pX1gCdQezF`4goN02#YpAXSu~cmbjD+q5 zA}W8+ImyQ3%VQ$SAk;}%1c}4)yjzb(|C(!g5*|$;6K3&Q;>N7a3-2a_?a-x!Z4%WX zk_WoUW6YJP|SPZ;;O;XS))Aea;$JMf62g>&6j$`$Wx=xkjJ#5~P*mXnih1Yb;qX? z_(0?@l!X%_z!?#B-RlF4ZSmsh50*AJ5p@A=QtlGi6mnUF5$w{bP(HLqS?M;6vGiA0 z>4^jzsbsxx(UmH+yIv$tNu-@&m-m~3FH=%9z~2kyuduJMi3Vg)-RcVDXncbXA=mxL z^@Icui``Jm&}`<5naechd7tDVfCWuZkj)-l1ZL&L0O&3JRG9mX;pdd+@HKRF!YB5X zFZanu7VQ1{-fA-|Db!$EX1)SHUNahJ3JgQT<6{?m!!L+rI6hJoj+}Qy|DqaI4^%c) zv!SGoYU$j$>(4o*w)5+>O~s4j9VOX7E$*ek-;Y*|j9{~kb9Nzyo=uo>+yGzoefXug z7-;pF5DmkoBb~Q~j^hQr4Q1fNLqgb-Paqp4mBfAV+ttvshx^*VHA*Im;;Ec#41vK- zI@=Gzj}!}~s@jKx_FCTfFwU!Hs;I9y(T*D^y&X5m9t4i^5qHOB3_3P5^{*!X&zJaomQLT_V%(*g*G%pnKQsC1se>-n za2llioI>oou~QS)GO8Nght?GDjfpLU=$Q!Eg}@6giunsqxWkSptk6O{3+ zDhVlvhU0WO&t5x|0*kKCj16#6G2Xe~|7h{yaErZRQalR}&F9zf8n1-B}tf6ry=VLAS*|Vn`Gts45 z6bn1H6btCnyeaCg62adHy(^IIv6Fq?!xNYVJn#p6qS&2b%O@o;7n*99d44nYhEsl0 zM%bA;M@F1oPUktE9G=0@%80gAd&yq5HVYrd__gHwZoNwQIS%Fgwv*A`L(R|)8HP^! zrNt`+RB}gnt%ti)hq`WkeRnwN*s;-NMfJSuPIT!t9U+yh8reI6XAZ*4w11%lYgu?X zU5yp|K1z!)vIi9l*>nj681KD6zSk`|5S%ydb^n3rE9W00zuJUSc8i&i3qxij)YATJ zu?=u%Plbw4-`oU_0gGtW73(G_1VY8|i}S_}D-q+!!H*gQ>wWyAwkE}ppUxHbt&j$U zBy`0GEa<$72yYjH+F@cWpJ6Zc&40t1xsgUjmMQEH1KJkn0SaK4J?8smmmJ6L&-264 zpgbS0@^Ztm)d?!L61Rx#%Awwn)9{!h0fJS}&N?=N1^uewOJ4ANtA-@*FHG0wMuvK6 zXP9-kuCGoXI9kWd-WJq=RWJV@Ix+j*CCa3=E~$jCv3gbi*t?DUX_jFFc-%fH)DWUV`OeK0;_~o0etY`V||N8JxL@hBZUwVzhVk6~EOtxlO zRaQJPxj^7{lql(W(@3(!Nj#>;!N6L49}(bRNik_0J&-M!rmI1F^G!DiGo=P z-dCze^;u2{K|lC@$gEdxPB`*Qod&g>g=(KXgv=zTA073m|I(=Xc{ullE)|BSws*mF zH*>1^=#ITdv(4ffUoB*$6MiYP>2^vQ8}*?*Ve0bo@*5{f+dbgEwJ+8Y1!(rrB1{lx zH6_8DKMS~9IW^c$JuIyy(4ylge+<1p8Ev9lZNQ*MUQ z)9bS#%G;TgtF(#ZApm}_Sopp1HKx<&k&(cHVJpZfX(4`Uo(P)mCbd!abLPntwuiq^ z>Rs>zdRY(9Z*o%W4Dx7*^*<5~aqS|{LuL7#m%rlC=CyQ@xkYerl zqi6G6&sRPT7h*f^oILMOt%mNghu>&7k;&0(30{Zi&Jku1f~a95X=z%OtOuky6vrG? zv(1Q(Xs~aOB5bGhbxTFPdmG)*_t)Gzbmhc{n!`7R^-3_r*1dZ8UVZ06wuf1F?EEObrzq`i zC%R`ES4psc7%fM^Dm-a+rRC%!vdWG0mcG)nTAVB1C^N=hL|^;9vmfLPTOYRd@KUR1 zqINXvyDrmr-i~`PFRV{lPpCaTeax77@BZKfP2!70;ktOb>sMPz;r94F^seuj@tm3z zH>01xX%>4Jf(xsz$%CT|&{f%@MKbOssSiQseit7s_4!|2qWCB8LhT3W$9&b8aaUL- z=UK=GZech1*7O1!bKVg5q=X@DPuiUhd8N3zwvJp#1hwQFSbnIZ8oe<(61^~@L9UG zEwRlb>Yylu!GSrc{@eZx@rQF2$ekieeAI7vr8V1)&dB{lXnfCitEbDx%RbS-Wg=n7cNag=#VEt#gd!de=8r~22vxE3^_n&|v z{CBtr|8#hc+`@Z}T%kR;j62PC8}S(x+7#W){J(z4-K($44V=Q^nz9oP2dA6AU#bdQ zky)JGC73A|N+SATGaVkaXYVGPDgF3^PgR1)ZP-+Z(pI9(aQzGrHt^gV8{K!lB?SQg z#pize3SCw7R{6cgoU`{#qa`IIxhFZb1zH+s_ff+Tw?QS8aXO8|lqxR^$$+>kjSos- zSdv){@Q6jR|6;*tU!t--!zcXc?I-MUiTomzvosu%DF-8IZ*ez4e+vD}w!i9Fb_{-x%qtv=M z+Qi!J{;RIv`^&2NUBrfhQvqBfUGs(!A9a(1eF1*@_4oh=L&I|Zn(8jA9LqiuP;cTCls%Z{-?BJqJhwe;Y@sA;1555Dk^i?OL zcxE!a&XHBn;7hMQv2Iavf2#tt*D0o%R0uMIpT41)aRP&<4L_(A$%G~S^&cqmGTI~( zhTvz<`PI~iLyLChTm^P1C=4ZM=j$Ht%LRVGI-|sL0`Vm`=(D4Zt@TztxNz`2SCsxm z`$fD@-jQuDcf_f`1I+u>Fn5Zm_nNZLS%0n%RlZs)KH2`@mTi{RoY^_!z?$x231Uup zcEP@`m#W_#74OQkcDeaPa)(;2p{S+Lu=bhDr#9H?YAG2qc+S)+y;SM4t@=R)3&{F&xMB0O2qU}1S&_jPg%Zbx$Dc{JDAfA8`B5c#!Mhb%=VWO7SJbr?6 zDMf(wu(eY?C3*0!I(|_h6bgrOE~hSl+TETemp$3?AV?n-8Rq0i2yKo!_X_JxPw!lN zZSZ3OJoJqyPe3R*JQEk-*j0=J)@RALce|V%o0v;n+nYkC_yoy+e&!lUERKB0g2yd% zD^?D)aXtH<*HRvU0MtalR<^xheex7(zGis>_8<-H2ii z+=2?L(6W4ze~jQYgH(lvc+!)R7fR>~R*|tL`QmRbV&<9HU@rCR^#q50MEnLj!EApN zieyhp^N+wM0Y#QIEnZIg9>WbApi~45?C}@MGpck48nD>kRuc?k!^`XF<}{Ii-i9&p z!Fhd9&f69EJlaf!&7@45m)h)Qn54(s0r)Ybm?C^~z%O*qD_J?(>(KEi`om<+MEYMS zq{#1xFLkdzptj=92wKRU|_qshLzMvQ+X#|1+#;RGUcda(>up?n$Vp}-|EV|EWH_ho~+OXe8>X9Y6zI~q&|SZ+6=*+A546f_PW2GV%mojQHo;-Y{!Y(=sOb#|FuVe>EN zDXe?k2xb}sIrN=k3;J2Uok-*03P_0cHzqA5nPX3Crn6tks_Ld=-|7b}j<>yZnXrjJ zvZ!8TD2j2APO2T|q&`pIK{3q_Q2nmP8Ln}|_dBRr6XO20d`3ypa;i)^4u#-?+H-WJ z8YkE>fJNebe4-x{BvXz#GBtLl;0m*&zU0i>Lv8E;T@5DYTCSOSlg83lhXF-mm92HK zlK82q=GzXPfTEY^s-9K`c)M$a<7vp93WJaEg@XVtA*oOejFQU^ALX6VaCLj@)MSPiD<|5M+~g zBG`l&_bL8E~m;wZ_??|8nMRII*Q%<=sX4~ueh)*gejz>Enn@laVNbqJ_zu zw+G^U;~$bfs0h#{d<&3fe;N51XKN@USj=ANjk_ud=4+;I-Hzf9){|uBk!O*nmfy;# ze9h-?hk&Fv;sxi4WbIaXKh&#l{S~lT&(5pXxi^cqF{$ZOj&nUdk9LH4?ivHt`AOS&mMZ``8((9wVu5Lt~NE zYxHxZB1V8-8`N5MaD5&9C1vIz5cBN6u=f^FaX#C=U?bfS+zD=h;1(edd+(|(wSVvf zaKev7XqE?rARilqy6kp(VoaX~|7zm%x=YyT?uF8CuXp(F%p=u+`l;sT%Ojckk`LeF z=lAYE|NPlOGrtDwC~2_9k-t2?24^@}_d1g>U`pt>D;0*zs+x(BQ$4 zr|i}j*SM(69jccVp?1FjRIrZWKhBGO!efnO-p!0Zdmo=k&vM%1WIN7iB|<0rR7=UCbRLOtaVzIB*-BR{FZLvO?>kq4oea z#c=7JLmctc2!ky_?*}RUBq`Haqmo0wL^B-nHxE9T*CdX+M^w_l+LwJ7_JbPSk<~1< zVGHj5kGpB2@h9?ep}rsXaglv8FoG>p zzDMk>_ttQq?!mUNW6xAwqB3c%v61iaatnTkm64nj@gbG*>&u*t3SSwKE+4;_#VHFO z6F%52=XkJS=jnTKP(tcj1L33Uyt7ZC{nuOj$!^=rT$3r0j_VJdRF(U}d)_2hLl+#7 z{V)n2AIFV|bJ_lbv6wwrJm*bOPaAQ7NYU||Q(sqDkF45g0`}|~iyrrSw}D6qI=J$y zZxv^x_jJns=J^OWio&O)KzrCyiyL0w7;Ibh6HJ!)RH+lxN$Q=@A6IvHQuPig(cdEa ziKe5=VSUv=4`ccE$8*`z5?WaRK2)?0`w-k5tuOgk>`p`nxEA>p>g3{pILHXfN$xUyP%Tt%Dj)^xh7MY{R z$a;g9W(skf&Xt7r`v`5Z@mvVbCw-+Nb(oRU+l7zhw{h&$u|DpYA~5+Vlj|?H1}*GD zd23nUo;Ppvz_bB^$O=X}g1dCNp*NhP{#lH2BFLT1qV5W%ad}q?aY=fGE;)uVGAJG{rmYQm#x zk5Ofvv}Jr4hLVE2kER-gnP~?~d<;7jD6Bk-E34>|UOO9P9C}6Rcd|w(ApZ-H=@wU1 zyAj^>In&RzJqz%Ff7jIVXq1<`*lk1KESug@f-i&#d$|X5@4Op2U-Wq;RP4R+ENXZ! z;mR15b;8AM&Ws+8C6!&TYcNC=%tizq))~s_EOEyq^-u<>fA7w(flsGy?x`(c%nxO*yerkEh`qZ5c!(HJthZFA8PUbB&=Kumli zY1XkPYlpH2&Cs3g4!ex0uo7Ol*YyN2@+u_M9+Ty<)~AhCzPhD;B}C}sx0@HVgz`}n z9<9W20Hu#IJi(RzgWpM3+V6em1!hSWVda6Sd!DBVoWN80bu3$=hF6*D7PaIUiWSYLkW z^`~_9bH8_>)O}%|6Q<#3`ntkc42RUqf@|=ZN!=4O= z#;a2Id0^d@l1Lhq+Ywg_JckOwjSx&e;e$6g{0`!H{gE3~+REj9(~sHhaPKF+0U2 z;nSzxHTdpu6V|@^HzuH1TVHa0YmL)3%wsDPrDX8-QX91EHbboIB|Ui)V_Eu!O?EF< z%j0FOj@&y{DW*5i^TE>FkmL71tGm}m_oxAwG#Ue?D}yLKJ~&~o{mt6-S#$?yl}A%J zW-Lva@et1$8<+XF+)CsVt$dc;g?C)JiwmGaNlSw~-|lCgoUpazs+`1tY0umJ#9ob^ zB^=<5KziRfq-&%wmsWuZJ>DJZ`y~}`yCNlkAU^B#@lbWB@{#2)z(=7n-&ZijqkCi; zAdMBVOJ(?Y77nG3sG5MGb^2%+*<}b)Sya@=rpYVkRyVlJ za1Nd$>DteDLp7p^f-(7+pbM7mV%)&-?bcra=GX2dx}vptNZFkX{*$637nq@Y#1fTv z8*FI|Lb1XT(TN3d3$Rvs5NCZmp1!qNmF}B^$+$iwRd>O zIMQZ&tE^<29Vw6^sdKU;-ggJCdezP6WWI{)ZS5Z7_wu~OYKr9bzZ*Pu9Gql3$=mXe zv$`AhLb&C58q2zmJhrV`pJH`IW1P06}b^vi~||KV6F1;@_L}?x+YmcnfL{;6uY?b1<*=W zO?ifS=Z4JfE#9qGU`XqK*E5Ln9@#fQQzEDO47atD5U4x~jg+g7;0NfUF&mFi;uIQ{ zZ*2@CSID*te9PpB1mo$+X5F?U5p#TE5_d!%y_tl>y&LyjXx-Rbw~($gK5>S{WJyQ) z&^b&BxQ*6Tf2AIQA!qBDBHTi?{AeRD8G9B);&R@KfJ+Sdk?;Z=>88S zu#sw%$@9-739?atto2W997Df%wvUuZNvBhM`WFXJtK-h^MLM9)?)Sb*87TWsKYWvX zmD{RC-p=UDZ`(dlI#U&lzTk*_;6QS_q}ISbsQWW{lL}N+slOKinCKe;_wNt8S5HxM z9IMxfSwbLxNi$nM`tw<>jKO~TqRmLDC^S<^gU?ZgOQMoYU2 zJrhF1VveRvCW40J==mW6%YB)d$+Hp>r?Wm|LPT-PTkk`$-EjFCQ`E$%%-cE;1DA!7 z)u@J)b@tFziwa#&TltZ;+)nmW0>0d0|7~cbBn``?pvs;pL{h48*6xm$$1D{o<^5a4 ztmQLYH5kW^lR=pdtl{5xUmH;72eoZ_H!c`Gd9^{8WDLt9edn z?ACnKQ>SVkaZp#cm~UsTJGwN$dFXaf;LQY^Q~8?ues&w*73DUa&dUp|*p<9IWG4f= zit?^3m2eyozLCf3Ed3{>G1V?*4gvcezSe8r#$!fv?9ZZV(oOWdLU$}EZRYsSa?^HW z6$j+*agPq1S*Dhu$fvtw1=MVvj{?2Tuj$YeA2X4SEDSxU;vf3n=0+cADH=DhVqrbhKz-5KBpgA(AQdHO6-WBq<6Qcu8XUkuZDVO51n z*Ata3l_2ab_nzi>Nxj8VU0OTwPna@2_!nTu8>HoO9{l8;7E7gpVvt3ZJrLj@mr~>; z;CL`z0IdQfb2Y+;H_oy`od#Kn%a-j%6a7;1fH;O`C+YjTw@I%JSuyIRxK;lYRPyYS^WS>3f0?GPaTvt+|){*5HRKb&%Q2Y!TE)1-_Go4A(i`1< z%5}k(!qq0CP4~p0uP3as>O-?N^|<8JsOBVvg{+0%1z`!fuTBocrJ(#?BU2H^sQJ1- z-7~TTBFaCnZD2ZTxNUgYJ!QN>nHPUIcGGok31PQT>z{Kz@Rh*Cn^HwuO7%zF#u) zQB(YgGw5!E?!^zktWt8WUw}P}_{qe_o?Gn-+c+;6t%_J>5GyJAf&w-$4EOA59foM} zL;vpiP13bLQC!Q98;M6P1skEY`|g*I#O?331IFW(OQFEqH+)zeQ|<~>%IBb2u|%B- zftlJLVx}NMrqD|3J|_gLpPn2ENj&a0q`Z(1-x=~UZUxnU0a7>GoTKdnoGhdT8$Va~ zVR6|^V=y&ESDa9+uh_X4v2@f^u9S8t#cExCG`)v%p5O z!>X`TCdFj*$J*9&&qYXrv-npJZ$T<=7Fkaty=4bFm9XBb zc%c+mOyAK)1Yy@u96dU@#Z&Dclw1awP%aTFWhPLX9t=yLmTVmt2v9_>jGN0Js z$81_3Um5J5Gm6kmnLSb+^d7$}p29rB-Kz7J1X_v@a2%i#HKU)K9FRaZd=T#b_$)c! z#iUX0s!SM=VO5|Y>ZmG)TUh3;f8PN83>ZYRASIN(8ER2Kpz!Or(&43i`?6|qEnFYM z$VZ39Cd>`Tx;DV-_7BH_tQmYM3TT4*ZoRv5)f@|_J;&ZZ#%um@vbJK6vVy&0A@`ie z)wsEmYJFMzoyz1XSsy|g9KU_!CA_~CU%Rw#?imo>@lm=HMb zcM47ge0gGg;z?qmGTZRhTh#d1@dCRYJw^>z@q1=gBc&%QctOU5smMUSZKfaS;6fiWZO z#iB=KgdV+l{h-i7%d!W193=51*I@dA?o;m(rPim(W`u_W^%Mw<>gLqK{A6fwD#=4m zqztFZXQ;i*qnK=;Rj|xkze;ZXM4?@o6*DNuL)|&0O!M!pE$+DJL(y;4B$}`3E3<2dD9G-@;CS3sem^9T z0fIl?zs4}GIH2Mq;O2$&%!>Z?mQc|@?8v-obAj**|K02oj_exwEpMxb>%9sL*4BJA zkp=gCzk4jqDzhEG&l*cdH{_ev1l(CwdHQW>u^uD=qOcVvFBH@)NPljM9~Eb~axZZc zZ)cVG$l{)4sq244&ih0#rBIfwzIgT}FePWEJOfMLS*h)X7L_UV(aNF_aB6I39V0lw z-&5dSn-2h@RL+h9?^(xmpRKd|Edm$!LsdN{{P=k(Qk{r3=xn&m(=SL-5z?NewS7() z_O#GBLnhC1@SavGFTvXUW`D1k@slb)f`VhovbPGP3C&g@^=o_-d$d*Togl_=g;enzcnavDMGim9orA8(fPf!r}zz& z;)~Lrf5Xgf8rF;pM<&3r2%<3@BPWV|_)^pO!f`TTOZ|+bg~fUChGui886=$JOD<){c=7qR&r-NtxxNfA#8IbP$p|%=dxIG#iTw>woz2zHi z5PVi=&iTY!_ssZCCu7u|^^4VJ-qn-lI_NU~ja!n(;ZQbVzHepri%R_aJ36pn-1N<* z-IQm>N$Nm@Bm2(oAp$5=gzHw?OPb*TZlD+sI`s;pqqDqaoTqdOO=nx#C|&lU($s{f z@39*S!h$^CW|Z?SPK}gMOt5&LZBD(dE2}IaUC8cq@WsSfzKdBEQ4`GvFh;P_YRlE@ zR*1SjlOuOAqr!jty;TGDs{2`+meAp;6~P#z^1CRaD|V6NOaD8B;DX4Pf4w6b07H@l zA<@Tcbl7tG%=a9l>%+$BpikpETveJ@b=$tHZ5;u!a@ z>`m4uFDKe`DPr+IJti8CUG6!mbLIWo z!P}qkn&Mga^XWz<0g-&yI=W6YXUI>vvxuvRGxt?|qDTcB?G~18eLM@9)3Y$mt-Wc5a7+FnQxyy@ub)Q)`?lZb} z_AT<5pyo!@cIHvUH}`w~G z6$=C(q^Jqa3bW!0KhcIe!<&%3PBvd67vOh7VM_}g75N3Y2>d%4{g0{aeJ{v$+|M2? zr%X}l<>(-9`23RG;fStSJs(knrZhhYEXL&Uzqgo7uzdJeWcWP;zX^Eye|AWm0#uQF zBrbh47%Tj{pOoqPLeJ^3-y?)fSx%<*#9}w@P{H$FA3}o4pe$69P~I66%F?7!_&#k`op_-+>-{I*8#*SYfG=wRt+k$ z%t0^+yfXTHfEmvNNZG2JHeKvO%))YXt%@SFO_~%QkFECz2b&)>whKKW@sWL4d`pBC zdkSyx07+8O4 zxB0&gV6VM$shjgiR;_|pbZ;<@tTpH=pP3B%(uiK^E3|bN$(KTn+PpGVB#A=H>4h>cJRHFx*)9B%s=~!Yb5D+dEW3Cky2pI!s|`< zoHD6eeOl%WA2sela5Jw!N?P*RDA|KAjye)Ut>?ZDGwQ8lroql^g1k>$EqcJ{dGQw5+ca4f^hv0WT{D&BiS%Iq~-_zW8t zrf>R&{d?2*83V?U(gFErt}}&1zW|8+KOU=p0jTSn5$ketc9jrx2c9LxQP;iUeZy{A z?Pju(vI=s##ioGoZu2uBv%>njIUKX3+QsOH;P_y?NOsrDd>R6Me<>2cU5B6cF*tpJ@9=7`mXG3irD zH4T?0vUFZ$?KhUT3a$*my1{HStDD-vhN5KTA{lrnrlQ4h}p z#v9u!C-;dY(|v%Mizf}W)dwWsx_p+Mv>M9lITj{-$PNxq)#h}Bc8Z`Jb-IvGC!aVn zDBSFw(>OveKVSl9%4Mt8hJZHKyoHtf^2y0uEX3{ze*umh3XPBX5dvdpsHxnRC047;cIoT-qdGTUd_HAbiU)os)ZDaaLireyN zMU^F~Lp%1|*y=kHf6g(4_B407wnCzUh;aqt$iZ}_yk|gH>%MZ`?7hb;#LD!R^Of+# zy_CQK9X<%lO;bpOG19xhxg!fF85X&e&IW%DM#TFDSh_mnw~d5l3xi>3=$E%udN0|c zxaVuLv79@X>^9vI9JYv(lwR{Pc1s1e@NQ03oTuG7M_UH&dXY^;vaLYm%O$46uGDYt zS;Zpc2w!)G=d3r`P0~&e<0jq17XK!u)B<>}k?o8u!x}+&G0%Nr9J8t;wB-nPW}C#$ zr(nI)Nk;b3KcVO+Nw_y^@Q+*Y6Fk^|{>N9cB?ynkz*QOiz~c@YiM$rmq;*n5KwO3a z%?+LEmY46f&{D3R1gr&ncC|#4xt;gaV=|Kg=Z69T$0y}lBo!7ht3ma*rCD^Z0i8j! zvP$&r;(UmzC{l=61jK7v1Z=tb!jvJaeX@keY$Y6@Dp%UFNzW&Jl`E|#y;^mLDAL)l zeBqJl1oB^iSg(@>HGTw~awF{Y#YKhf{*$IXz59Lgk(hQSB_F{gm8r@mb?c5v2}(vv z+h2e$frOks5m=iEha0H1n3zLv1>kJQ) zj|rGw{nsm*&dKyu9nbE&2qrqzX6GOCFtzj6953sh;(M$;ZwY%B{3Z%C=Upi9Py7ak z4f$Sb!q=$JaV~Xbyty6U+(hkG? zQO+0h6CyP(`Yr^!uNW4}+cd!B zSP^M&Z1(%TfFI5OG6$25Fng``l25aed(N7+FI+-a;v2R&Lc1p!YC4l=KxsUej!Vn} zI?N9eeDEZQz6k(6e~O>zJ+tB?ITxLLkL8U?L_K^zce8jIZd+>}khS=-c50?wY4Wx* z=DiA}x^*XnwTQa(>qc6*i4X{Jm9gfkv_(GE4vi(LrZ$or0~I2*fsMl4(~7FyRFF38 z!Jza0!{_>(LAm_BZvr1c2c>pUho_Z4kwvckHz{fJl_)2_00}yR)AxSDH~!G2$_ChR zkOjKa^+F_96JL+cpF#WgKEW3;bYXa#Gd z5Jc5-9#Pr-_mM~v)OmNFv&6`ZPr5jo>c?>luaUy{E9~2A`$csQ%fw~Rug<&%HP4D1 zXBtaIcCtKd?jIc<3z?t1VFGVRB2o(a7M`>M)$mg8hA#*eYfnZqx7!;};^rbpBCbR& zy*lh5krOZII*tvD**bh44v8K+wCE@_>l%e0S&pRN{{l4r_E3m31uRfAMe#%Y^bE)K ze*ud2$rp>@BaJ7mH@3WBE4{dyy&LZ$nBUwF+J`wPGSA&}s*0(ABVPqRSCFs#=$&)o zIR!uxyCJH()Tn`cSGJ0u2*YHQh+!-(lOSgEiUd@D3onS#=QRwl$?PonIl4WBFLAhJ zz<58C8EyMzol^G0F95mRakcU+ub9{L4JchSS*_J!#;AhuSe>X*_t61nbL4W}vHXR5 zc(vo==p$P;yzr%L@_}F)CrwZwW4-ZpihfU>1vsSahahCG*t&GmZj?(WtA)F2=pyxy@ny43yn74jqwHbf;O&$hN(I9 zfKD;Vg#jvB3URejFtEwH#>b{V%J2^BcNP!r{4LXOYw4X|wOPtT@ZU;&{=1(DV!7CN zsQ>Qv-);aUR=2I5zK@6M{;&U{_tmKU+tD|a2IDL}19%kZX+S5d3j$BV6vl!l2`?B_ zXKs4JP`WHCLvN?^xR;WYkb3s7Qskz`yEU_H^*|x5VwuIzS<)505vW+XxwQF+T&v^J z`p}z~GB@KoS7k-ECd(D>odwg=Bx#E;G|1o2=7f=6#iQB3nd~6H*F|I}6z)ym6x45q z6f*cv9S-K;QivXbes}7!-x=tNDH~{85V2^DwLhvSF2LIG6^#i=9etJ89V$uE>ReSs zKOU_MrDq~mvF)m{5*othE#@PxN(<#XcvdTB28ud9k!3RVj4hGLK`ZQ6!_sTaEsGpQ zD-b@>RRu)bVc~^;Ew_K(vM(tODc?5(pT~W-DydXdrmyISK)g@p^1OzLm5_|!A)tyx zIf2A?@Ne1Q*{Sm^DeMN<+*W=q-{GeQ-6Bd33Lknqqn77%w=@aA?n;}V!vmm4yivxz zK$77GzE%_70R{IVGW3_xEb4O2Z^-}=xq>h6BwN`&h_O*2c=zrMk*%V6C}C3JzOay- zbU5-N%lT6JX^QW%&M~646l0q`nlZ?teN47`QgL&<$pDDiZVxK8DElr|BBd9f?@cEI z!+FJSmfstqlnDkRt{7iFvo6Se)ijZ?N@$0cfW5P-F=)I}L8YRe&^L>4;IkFG zk77gP(DLWZv7M>9!RNJ@?&TU(X%V-sxp0|IERiAJ3KE`Cn5amnuFl6B6AL;QRHpBH z`Bzx~of~_wb7^C_NVTK0;5^ z<|}7S2M+~(rV$WR42kmP%D5>d&>)sxW>Yh0&fxyQrQGT0WcX&axB0sjR@cI~NR%yM zJC0b{=lTJXa~2Zbz?LC~t7G7eKvU6Z8(YFgR9RF{HUZpfln!c3)@R(QCC^}>db!JC zAtDaz8lG{|{4m%Ma;Ozx!d%l(g;Mk2#x9+^s66SW5RA!ktkDB#;22Kk~ zP*wWItMt{pfYSmA9$a8+1h_mYkCj)sSatBI?9d(@`wq7kg1t>}X?PRIEW!X7ptNmF ztZa8?NQ;x5YiynbpDCJ$0yYtYR5ovpekAEKm-oy(6m6Pv0qu=Y$uvWdk?*(itvb8Q zwr!aVMVGw#WPy)`@)44h-w?fdZwg<99t@tZ?v%~pwBoHGh|i`MH&9cCuncOoI;kvk zpAu1v$c+k%1=c^*)ZLU0RS^}*P1f0SO>@@_{ z7+@ihPn<~}C@gMHdfhnE7o_lNhpoZUQ%p5m+hZ$CM-sO!AP7vYtruVat#b71!;`@y zIrwljb>&#sW}(C3pa^NL)0WTRu@NC)n5I8aN4}*67w@^gq^d21Y?JwDhjLT(a{*GaZZN``*gu*(D9^TrIfA5HEOIh4E(fm0+5eFEH-fb|t1Y5zJR|&>q zT_+DQi#ArjPM#d!pl&BJFBD;z$;2&oFtp!ad5Q3+MTL`>g0KdBxsE7#I>A?+{2RpY zzdp+LFTlV58{N%X44%4bZb%!eKf?n|BJM62U=*flxql2RangOJ)V-I+q`|tDQe9yO z@l5jtXoN>fjovY3&!o&vUx&=<^MC!aK?~0=mb2h3xaRdKVs?LWs>5pT_S;uOHzKkp zKGwV*La?Gm`>VQovZFf(ifL2x3sCrvl^LYaLVuy)XNRvk>yEK**;&i0o@oWn1?K+H zlbi0HbOh~APaYGxM8ys)pZ!$6vKupEEW;f4jPZDdDxf0|cmE&41ip9R2i9pIA9dNP z>syh<*NZI|Y+)5v6t5K{OZ4Hm0&?wsi0q~0qlw$HO$3igRMD9Y><|;0M zE`M+dMzz&nB?7$xk(s&5y5)rKH4hV@V@dbg0--P=WP9`Yw%$$LVZCV+8JL@TYgcS1 z!W4$t&lVsSb2zkE6-FQAk}-n|;A}}EfDYFQd_b#Z=YBI=)PnIbgEVUFk?zAx?aA|4 ztDg{3{z+*04u&fLE8B#_WsdQqn)I|p*0?dl&Bo(_2*#E*-PY9Odj2l}FwPL294atL zQ=s~}Cd^dL*2HKTBDm+wz{4u4{a1TybLkK*pMlbLlW5_SPRhMQT4n>!^)8}D9gy{RBBTS(ekRf{qPPFHLqJm>%l|S3*E-m zUD%ths>$-R6C46Vbz5Cc3Mnh_01fAOtu-vus$igX@30TwYT;y+9Q~gY+$0fVD|2_>JQG#@8W+wGD#-#CZpPYw@~Hd z6Lh7x%K zWAWK)#^YU*dJc(#=?>xe#MCJStZ&^dD(!?^66c5BAedn zE6XCg=ogEqg=9$HLABUAy+nt5r}3?mZ&x-yhVN7yROk7;DP1w_GXxxfxNr0V!w9AH z)R-Rex}YP6sI+?{%_`&RV&~3g_sMMm*|%{{7Psb$J16PUvb=8UF=YG88W*5902F1e z6zCCwKq>7(j?$jh(xkqb$64398-=44#3VcsT?8-YYl>|3BF~WXekimE_<`-q|FE>v z?XCKaSp8O)593gl{<1ZtH+?KFEjQdE_M9XLkT#cH&Fui%?RIz}qVZJA3Sa2M30Y3- zr=FQBpXu42`t78=UZ0`3+J7UtWU8p}!u1|9lqj+&$THJ4;qQ2C7M_aIN*pT%1<$@O zG_>6GdasSj;;J`Jsyd@DOZ$q!=bDKJsJ?R8HT3UFZJ{=-Ua#{C|K|lI{?m#R|1BQ) zEt@y)X_}Svg=07EJWB@&LFOG8{by(1eTLh;g zlZ@<`T~I||isbc3eAjzFxnQ?QSJEQ-4`d(S4OTgJm}qv5q&Z3>)y7Y`-bYNRevz*y za<99OTd$cTX4vj~`a%UW_1lk!FVM1ou0^c)h8@#Us4{;`cH+|#Ls5D9=35H1@!nbW z$nWMI+-8vwi zguc=V_r7so@ZVuC?Y81a7&x-1=ShFve}xOyO3q}pOhvJpB+;3;hJ)rTI9vL!`WQkv zNbvR@EpDG;lybvSsK+2veV+>ID~J;;$gt8nFV}o_5EklsH7?s?8G;)!NDcW{wb-M2 zrJ%ZLBBD9e)-tW%Kicyv>i7$2N4iAU7-lpE>F-GTs;g9)@~ImKD5MeO>6Cqw|5m;) ze`~4jVT@zxBpNuaqmL81g|NxdAM~yhuzmTY6Lj`Sc5-*Dbo|ZAS8)#PtsMq;VgAX2HTTgJGZtriw+z%ARHCrQ6y|m^G*P-yc9wLX6f34zAAv$Sx1-m4=`>a z#+zzwbkgeUo_0>qkf5{9tf^xLNy?xyS)j6VbLTkci3ubrBZL722cTp6O%Q)!RG_oW z&)LuSiQH@N=^?B=6&5ZE+pkCu4zPX!WZ5wWbITDrJH4n{X|nZu_j2Q=Y}FA_-XVX3 z<6zbowthDw_{K-H|6}^~7Hi=CCatMTfsT3CFn$(bmXzbrZTb6$PElXq^}C`wfMJco z9n)9G*H{|U)+0KCI?)arBV3$V(}moP1xFuw=WLjcU}-}u4dxG|UV{V>Jo964|Dh4( z5?=2HuFv-*jryTKA;*VhVj3X?016<*-6%|2&Dy?HBxhB zLZh(kjejmnKRZR0542#5;b609{YmJG#o=QvJ!7SzBqYB}3Y9s`qWEsZhGu(e&+5Id zu+}E@q1Vjiy5CrP8XhHx_ObLuS(@lN36GW%X=m9?4}8ids(-u5$Leo|JEbowceD=_(S#SGJT}5q#NXtJr$MVw2MQtKrlj-Hfl9 z4H@Di`5Yb(S=-7#e$(GDB<^))<}S1|Xi*kTd$`AvS+hzou4ZsspQ9@Drq*0Jq=?~#SQ z);=#&ju$6nBr%1k9q8?^IoH7KJ@;BK)^D@K714^6uUkfVpY>J7UuMm_9ecV&Wq)PI zunZ3rX%ff-z8SGdLGBW3Lou*8bmKkuB|epM&j)l_6MHSu*wwd&-+=3A)mLUVOu4gg z7%Pd&y#&Ae^X46E-?r)A$r(RDF6P{pSCC%(CuD zX)a=U*0xm{dbZny9k_~W%UX<^w%zVxK2YDpvV*PaVBXE z&L7FHi~^&nc(3}IZW~XqL-LW5I^{V*9EsC{Iu($II+bQP#M3E>pJ#Y^d?nkA5LE1+ z`FbKy7nXIa#2#EQ zB!Bu_A3KEDL{ZiV?!S%Mi~f&AqZm~5Z)M=0C8JC3x4|;Cne+UaLdlPn0@EMy1$eZf zGF@DXd`T)Q(}^+#+ipTI3RilpBav_2UQ&|}O&aSU?uoRDa}O+hPE++w?dw;W+*4|I zRgNw2$aEh(>2!+6HZv~cS8 z_86A>&4sJ==?tfY)bww?9VU2eabI5jyetk01k}~0wE$I{c9ZcuG2G|j{)&HtYVo zhJV9RM*tv*;=qw~?u(-YK^3L@r{ciDfiy&HpstOna<>m9EoT?CoOV}$ro&;rdY!7- zXh1|+JZO$0SXqjf`NH6*kunNjyw&wM9s@z3tG3a>H`n$1syhX}H2V&$FU@Nr6Z6c} zx?;9@&m6|*Xiq0lgL@k{P73YZaf1lBe0!%NzV7($5UQhUgxJL7^_r6)WJ4VELK(zH zm{b|3hZAQiK@H2YrR|8e&4$H))msMG%;VlnkPhtQnd+oY9z~gruJIBT z86OSb5LE%hPwVcF$q-V^r3K9my(4&)6dfzAPk-YCV1_48%o93X5)!2+^?hbwwfRWh z64EUk5bWAVj%H1b+@RJiX0?PdYKRxeh8B)sg{1QhHIj#@&A$nG6_k$_YlF|Cca{f! zzK+$lM^79Qa-tCC8s$%{5LkTMDdqoTo6U`Z{dDDMQEc9=LA_797c(^DD^fdzJD$?0 z=u3*LL!A)?N_1D7G}y5$+;WV=A29fwiA_~Hw^S>#*)^J3ti@wo)t~Way89i^?zD!Mr|u(J*UG%dqGrLED% zoOugu!3)qu-j9%{(5~}Ol6go0RD%9&)Gh%;Y>@0QYR8bXix8 zhyvKCKpF7;2I_#a`r3P3h-Z=m0pKktp!jn%3$2(`j))d#OQUI<8tT4CAez03kC7S+ z+fr*dnLeS73tDMW!{zr}$t0Ip2aB3L=0SW97dA?p=T-fYXk#DDuw1ggPNz7V))0Z4 zmUF+8`*76zW2)#)gl~8a5~b>YA7;_Y@7|_%6yX%0KDL#gqXtGOcmiG4J@|+ClMTE2 z1Cv?TKZn$N(&Qj$C_B^;A@_?-{4mNTQ$19U`1rmKIx@GkPYB{>94OV5X!WYQMauJ4 z{#h$gk*dy0V&=JV*%j5bZBA6j0_gvUATBrNBKtg_*0Km1UkB8A%jril%44Wk_@eA0 zxEt_8woreCa@Fn^MuaZ3~;db8*g#j#BUqtV|vz$ z%M&6Pt%x1J8A1InxJJ8;HmVrT2xcXyALs44i`3r@P))`QkWc((1PSApVn#tYq)}DZ z2c0==We}~JalH598h~V;0?`2LOmUpAw2WWPegPx1{pS0GeUh-c~mw)vyk(Ur&8;q|10<_>ch!^KHLP+z2#7rB_2nmwY7*{t>e*q@#%t#T`yH+{wwK|TCe*x;Fo@V}B z8!2;_jACLx;{DUTfByXc`|DSXV`S~1eQ=r;zY%DwluIM4@fYA9U*86e>e&dk_0EDC z*NAvSL^Zn~=JB=)v1pf_Nj3KwexTbDlTOT+MkxV{7cug{Y`mWe%Ma4<-F|9x@gKWA z>mKa^@{k8sl|P}Wp4k!6C=}GpK`zziV8n-Co%O#41&)XQ9-Q+ zFgNvIu2O}UIon1fu_5##HrCxwlgNF6Nc+C7E}5NptUy0;{u2%hnMNO|$@!=&8CyAK zlRmpPp#SX85Nry?$+PIm8kd7{TrK=%T0lU*+i5WTofN1JPy_w~ z?60JF6I+;%$NfUoneb*K{5So+EM3hSds9K}2el1feC7z=|dX1$(kegH(xq&r{ zL@gjDK1DQ~z4>sz!dNe1yAf~*d}wMb{QTXNjg@FCZu*JwePW1dF$S1Wihh_?jk7`9 zL>~kh-UefF+B`0% zoyxU&KwI$bg-1L37jKVZk8C$_bCOzr1B9fFZbTblp;Xj%W(|q4>{8a@@*NyaJ$4cd zxo-Cc<7j&_e_Qci0J1eRPFprDfK{0xUSfzNb$F`xOB>l$Q?h50Q6GW{wP%DA8`X6* zE<~(*6EFS`_TB<2u4Y>o?QZDC-Q5DgX`BE_8Yfs9YusG}1Pc&oG`J*Kkl@zPc;f_@ zV8JyIGy#GpLE^Xb|Nq{1@AKXn9-T5Ca9t(t3A)s(O1qQhFb~ELXNkFw>1TmKb2a@GD z?69wi*GC_6=TIl#5kxB4+-c$N7Pjy6N{Fd3NjAny_f%fh#I6|BTe-mBgz}0GBlyZX zVx5=W8O0Te;OrGD_EhRUMA}ecI(@xQvCbc{u3E*!;`v^NG5cWhe&8bkQP-TLgojkR z)?J+V7MPN2rv4o11L|u43-7SDI4OKQ+pz*pOUOu@(8BVK=RjRXIm$c(?H)wg=jLZk zgY{PhS)9$2OqW6o;rPCqU768P5DHUEwiEZZY#15fP91QRTgJXcN#Ku=Y}nTXqZg0{ z*964$y0t!y*NRj!>gWVQLWqH+>SKNNd}I}^9g9i@D*7s>e0F%vb|39g5qMhvaH4V zxxD`r@Eb;Eb!CBwdaRa8wiB!>l%UvBm|-&3fomKv;nE02sg8{fcFm??*D`@Z>k_TL zqAc35c5Gg=Lu04ZQ^c~y@0s?#3Er9@hp6&nV=Aj+4*!= z_d4{(ikDXX^3JV|QHO91LG@sQ)Hk#wi;1*+)_Kk>rd#t>JdHE=vJlTL_DFEK5BNzd z15{!=j=S1BCtfezDO&pgBXX8BLulur-ar&w(2cy#elWUsbyYikCxxwG6$+TB3&~P) z47sR%D_3Ov*3DfzRe*#YA1Bb%W%WBeeSvnRQy4d(i^?(`b@=-X@OdrLfrek zYG#a3Ybb@&djVxVi8ui(Ru0x1-i)cgi!|MS zuH5u^8K%>D6PH~Cx>BlJEu&0!%YT;k6N}?ZE-}?*%IQgFD&?rvP4Cn5l2WkTt19yhqQN35j##t8-d&UJah1Jg zqrxWJ5&y{F2Y`u9x;Sj7#R`%~Vf`->2tNAr>#)*>Mmo;=#g$f&(pMyXnF*eR(KVm# zeTB!Nkyjf5Y~Ma4c`KIqjYOT+wZFA``10lZ$B(DJe#^hOqE8SueZzFE^T&bkrJPJo}k#A^dBOO;(#QPOei6 z`PKiv{jXC)SR9NTef#_ufMDgOeg0Gbd;eGfYi=m-{7b0mFl=4VwgynJHw#7*MibLf z>{WZ*B$1 zdOft6K`#TzpS;<#XTBO|udns4K-NyVTv_$$glynUa&bGK+Z^@PxjVNi1Y8oVluUu) zH?2|_dOrUu73?k`Q0S1OGj931C6@6C)49yH{vaWR;ok6aLuj z1_!Wr9uqffbvme$$aJiFfZSz86e1DANg)!@r4ApNH#VNH&$!L z0}d}ACqm70vjTq-?cH@}#x%bhEl$L&c-abiP``hz%eF0A;l5i4Bj)a7M1W#z!-)&}9>!+CUAfM;$&;L`i$JWcD&vRmc*MSWDS< zKSZnM&N108(pJ7wJr$TPiE1|ED$;D3DJ+4oi!`M23AAaf7(QAOEs?g@I8jpfC@w)r zesg8NPscs}>~W-6&&ONsEg034_%;ERI^hl^AHv9Ej^tEe0(jsjrMLI;fswOfOmBSI zo5{hcsL7#Xz4mgWigij4#C0^?bgY*H@9!-c%NQrribwaBP zNMvdCGq}RyWtx5|ARJXf)Y1A_R58g|>dlD{%*L-B22vQ8ESDHmumfnU(W@~)CV6y? za`bOF3h*?BxOokFMO+Pw7co>RwhYC!d1TCd@xn*DbL%@wOcZ^V$zZf>AxIQTZ%D2` z2sTGIHenx^8JV|hB)36#0%ru{bEp&O`k5Yc^gV;8S6gJY4MQmu=cJd>PD1M<3^ppt zeotw?8cOoak zE(`cXumhJ22Tg3NdV*C;@#lT1#cRCHN4+OgaP;^E~uoS6d(x)tP;W1yD;wWoJQn6!Cl_xIwq=%oF zV0m#!8jb#Lx3HKrq!=EexOFo5Q@Je-6LZCv6Obvs-U>?x&nc;tuAxp)7+qP?mL*yG zj~3+)fp5>-cOD#L9*a;VMtuAYg4geE!7V+>?ABq;z>b=ps)tg6}P7*i*ghN4^ z&C->Nytf@y``1s1dlUMm1)5AsseDZeoa+M1xje+}_@)t02+Cm+AE{W=*5LIl3fi0p z_glGG(`M`IIa4j-s$|idJQ6EX!G;Jr#bct!%Nm1GT!rg>rBm~pDi|Ve&qAMxn3(zJyPl-k1_0OBELnYMDg~XM82`H??7BrRa*IR zd^!d1e3r2tUFf4%zgT3|C&W{-Ql<_zC+UO|TzdD4fm zfhQ!M(@&RB){D5z21$mZ5{F1jT$IS-XZ%t&U+RBn z+Pcog$Ili0m#jSh{}c&?#YsS~mVPhm>oo$c}XAhq2c+q^! zqif#mt^gm)h`96x>kzGaS-5Rt9#Q@8D4KN^W>P0%22a0vy%#?yG@;ku?+z`L@r&W)ZaQzT+dcSf zJV?Hf5k04*OTkl~EHdk)zBrWyfTJTkY+lMeY!>mWXcQc2EZ-gXaS{EbMkOl^@pt4> zaT_C4UuADr$0;dY5#0CWsadQ%S$tu+S>W4;u|UsgAl&)MJ}}|TX1sVC@5)$qD8TFC z5gDfPlfwjV$iO=w75nhqbv0E0KUqDFbx3Hag~i5orSc0uVxz`8q04#(Wx&c7i9s!+ zn5Zlc@*x@nZiCbh_;s_51QA-t(H5$PgmjJ(9d2IzuwLsO3#TM9d`~%--;Xy zj!6fBgaQI{7*2@|xHLJqyLf8qGhU_T@zk`XN)2&5Enh%VTk>V21spi4&C%`|_bF?) zRRp4+9+NNl0l*j`oIW&nj}S*RWKMy6`Yw}J6D8qKM7Eh>U;+&+8TI5$}IE0zj*iyAn`A5B}M_0)mboF*Gw4cX+{G;g@?0oMhZ8m zz^Q>?Rr%20dgw0zp3mNRmauvI|M>+rYu~_6$U%%4KZc07%+-JN^54h*%M>WRB_~Lk z!ZIzyW%>5m)CSYwE9GS6Qs(2WJgunFU84I~HL&x(3018v-0n;n_aj1s+s1UyBV1F(lmg(5%F`-0Bvt9z$4;=YIw3;ve@JH;Y zFMt)}DSG02&^j7^+TUo-ZTn?-#vRlZ747XFUMNxfk7XFJ4%_`J04 z(I2YZM1vPdiyJ+d_NI#!6{2(U(;MdvTF}s<2No5$818dUQLBFS277R@W<&Nmj+o-C zYMigdP+;m}(qWqy?|L>-Mz{+MFx#g%kl-VG=OqV4Y)6;*O;umAo2ls;{ll<@m+W@= z(fx?8w)oD1>0IKgu3*)gzMUdFwl#8f7wz$o4Rg$r`I3r5Tbx!Ql$gD7#!*c5EDJfI zDE!Jml4(w!JT)Ez9B0xbFK!)}$`IgWx3Rl%Iu?5d!tt|T5s8il4o0cBROXhu3A#6D z%6KmIVfaT$BN+63480%WE9PwbPa?JuWlqk>d$z{8VRN~ZbadXRGZzgDQ}RxJ6nR%X z3d74;$PjufrAWn@NjRapR?*|RyJ zdcW?LQvq%u+5Q zg4e69<-%bt%V9CKPD}rAjbSGT>^{J*`?L(V*#<|jPu;kMx>lb<_-*tp!LD+?3XA+~E$VwkjRLRjq`W1w<3u~z7y;(>cRmw1~>y70RnPj8fQS`LK#iU?rBY&B%XXu zv&s*7Ceu`3H66z{m3Js?dAaXZF#|=ay$R%`Nv!x>E%7`QuomrPsxB3LiEPc_1>g6* z_fXw>gW6A&BO)Od5<*#p7E%VjaQE zrvROuHNRVkggn9SSW+$i;@+h;aPDt9Tz47KCE)Om^1g64m-?$R$ zjWO*gl$|0&QxY;6`n`bqR2kguh;T6uw^MA6p{1Sj6i3W8Ka$rFkU zUx9m-Zy4}3;V|-c4WHAL$#VJkBil`Qr!*1JG+G;>E^hf`W+Fd8zzth{hM!02u{)Zj zi&SHE>L%x%!L0;)naa7(omwVlJfX&TuRfofIzHS!i1S660--bDP}gqbMrNntR|Oa~ z2{05hQz))zuMjaW4QXah2Z+*?aP}QOJ>j3y%x?8HR@|MVx8Jv{_qJo!J(_1kPSbdV z;k`^*FWFcdIyJb;>dZIaYr^hQ0Ad4M$XYZ5qodm`C3MaW1zlRI@vEx#MiW#G)-BSv z9iL;pzl$eS270NU^8m`(2S+(p_0q}Aq zTc&x7^9WegmLe|iI$dxn1V}gy4ASlVG@T>0+=jpr_EI$?5ZL9WCl_*!IFN)K1mFu< zwAR$zlr&@?EgmryQ73n<%`c?19U>||AO;ZPz9u=E5zrmR zXN8<#b>LXWbqi043MqSRoUKBfq%meRf>R>VUqhllN)C_oose9M%EFEJiStZOegNWX z4wOX72j1@>C3u-jc}@+q>HIpHo?J!5MP$iC4sf}hf@9USoyf8oNIA|DBn zuenycV0!~{8xGS0YeL*nGz~0Tz@oe`@FiP{!JE)PtLxQ{A?XIwnuUUGKke5kzX{OS zwi^*?C_yyaJj=oFHMY#1>Ho|kb*I?0rVZMt#b4>-T>x%hl`KnR)QHx4EzcL+46Fu* z&q7iKmFMpdJgiAb7c^CDMYss39(5&^F7g-EC`dfznNcybS?wD@>-$-$C0EM> ztyBr1#yt3;iDgfjBmU5%R(cJ?DET&$+g|$(^MLb^yR21hF&Gc-xDrEy9L}T!fJI5Y zxj6JIaVmH}wM@>%gWmHi_bjUhL8RmjTo zraM;CO=+~)*h#6jV6s}u3g+0Hok;_F zJRo1=bX0bBrR8e|Jf4Xu!D}|%_m$GfdDo6duG?x2G>O1(<%aQOv164NeYfw(Eqnkv z++#UKMQawwB?}{hV>SQK+xp(yF(hz&#_sl5L=$-pk~U&rzGvhxw}35477LG~vO2^Y zIA<3wBuvrsfBwIIu+!;{45TF3%aq-2!+!81eDaRDx_URoVgm86fhkLT}glcg;I zKysElW+=Fehg~rtUUa5?e%R;}bF<@ujsMS|zW_=9vDp?ks3&N)#vKJyNpj##==6Yy9vw z0s%zB-pQ2=aW8~IWM5u=oh#W6WyDg@9pCpfFPzA{!AJpd%TiZ2lE{w{Yq;4A`SR)g z>w-J~*J4NKdHc72r~!WGugQF6;i_jbpN;Bl>1+7ecdv9sA~m#grMb9gJg$X2X}NF` zA#Rks?U?gMTZ9lEB7T;7k`bTihCw0i!r{UQin^P^adKQhIsp3UF4+@yIH5-qedB%V zSC575OO;mUr6M>TNRfLj`)V~C&3qBV)9$Lb6#J4|zPE^IC#zDq+hC^4mjZImcpsU# z1-Xc!+0Qgy?eu#cDyxfAPuIICH+_XXZd7$xQceHF@i#i}Wc{IyN(j)ZrH=74Zg5qFbeuZByPJ)W%ziJf6nmwI7|*Mx?Fpn2 z^$_P#$s$KxAwq!RYrLF~QX0fARIW5erJf-7R*O;sfci#4-kJ9Zm(K0)9SJ@o=`2!u zzHfIG@_U##8EyQOrvMNc*=r}Z(cN3crLX&j{<8M8{}E@{4yphYzp?S6Nv6Eo;$0Xk zA1IGhfQ}jt3~rOZOZq1@)W^9*K{VKL5qXyCI)ilQZ*_Vy@DuNET(E`cQuZiHqKgev z&Iq4j>m9|LG{bQ{iL|c#@POyXa8?gx9jw_~{ zy<@sNsNt3%)`=WD84r`Z1jR04Xt#CJ(tBtuqvO>w#| zIHqR{MsJ{^v5+SG+1YQ?IH%&$@VQr_-z5#m+dtLFt_xO`Hhc|~4c)FhB(L4xd@KR( zzW>%4F9ft)m@J)~ltVK@YyD6(Xsc4j_7TUlIupzLE2}D4wL*q%)fzr}@@^kIEy(9K z;v3X?V@(}G1H_%q;e3aADL}UWv|g5LXXgAaNm#Zp%qi{S1VxJVTKxiq|0iSRb-^FZ z6&y7O(Tx*IuHE!Gl_YV=Z;-g>{yx}QI9asV=ZOtqRySv1om?1$TwAS6W|i06I#R+| z-+rY@_Uv^B8Q}!=F-g0Z5l7k$ZKS=+wX_U%^$G8*cytl@<(Xmvz9>Vp?^_)1jP7L)6 zkf)VdUES(129Y{P8^y1F8J`dGUdrXDrxq&;8VmuIn5I*3sPKiar{Ea`jMZuPW47{z z$wxr~g~0ozH^>ak9-3I1dZyD}V9qbI15NruBpx6S*V-8CE}sk%@>=xG4VP!@pzp|% z<;_4ZQ*J)&J8w#<%X-6L*E6OPGNX5CLM*HY?9vWnVJ~g?gt?}1tyuW{S<g3~bX`Qi{J2vlg%Gw1hsBmY& zCP~CA1iI0-RWT)(xg*Bj`uv1g$v-e-qnME@K(3yN0}{~GLWlED-k;bXZfP({%~Ng_ z{FHm9oFx{}E5d9&%ej5AlxY&r=2E?f13lF;uE92G9u4uS$LO8_e{v$K$ z*99PHdfLnvn~gy)fFS{97U392S>enPEri3+7e{l?KCdO?kDtofT7|VX>U6V|a%Nc; zj9VY=GW#keI~1kzcvB7}zn1Yv9!D16kTvo;$>xqC}?&qn5vg2vWFjJiY zkL#-+ya9Z6aAV!HWppTB>@N=ADXPfwACYhqHzHvsO zVtM;r7OzK`kyg73XvvvnV8a+{rWdO3@K_|=DKkO;l_!3L)EzK84ZNwXjh&)l^u;ar z&&E?n>0jn$Z0hv-w3&RYzwa=4*Fhk>FP0f=RTl1W3)>Ito6 z0!K*dqcMZ87QwV@5>a10GVk7p5Qjy4?2M`2BM)qIXs+O1ZZh%AeJd9kKke{H@E7r!uu}(&To<9M?xh=*A;!g9>j1 z{6Q}3M|W(KZ>W^Od~Xim&94i#pES8$W}NrOD!}wST9)v|_s{ykUzN3JhmYH*-Q3$| zj~^ROPLamDbXQEdSwrz?(Vw1EbizMcVD!7oSBVich3-&cDs~;`>QSRi>kr(iZoAAf z6ok|k?{KCUs|&Q0TIph;7G_Js!l%y!nTGoI$(4L-X~U%+NPU?DU|>WJMr2PS&GcX^W z#_ORUy^D(%k_nXdIILTr2CJRWJK<6RY*3lwR~};5GbQ7XM`S*kX@2D2i5E_0dd>T; z`*MpVjlIW~+&P0MYmMgmK9>3` zSYeZg6e926T5e%N#XgNY46<3_8?h(rb&H0|l97kkv#;*RovK58Pk7{v{FqAQx$W0I z@Zio~>wbw^9tV4YiC-B4(mXwcDysKVdQ*K_{38QThncb2L0>v=C6PSlG5c~7sZ+Zt z>SuKq%GyHyHn)-Zh>!oxEqR+;c(}D9w99)fg`(oP&xg!-$VUj<_lVG5X2@BgZ!!lo z?^~;nrgLJtIEM2hgEwDw$v7L#wz$qeZn7jZz1t73oY$Wk`;tYX2{B!<>}2~Kxq!N= zbm+N%uQI$)4)drsq)5K_Vl@uM_)=bxC>#)acq&}&!g&E zCf5PO;mO3|d&fcUv}IRr6Rwz{@!6V8rrZzQC*?*zptDD~7EK1Bczyu~Rl8jqPy=p=5uyBXNiJyWE>NG##zStnd*8)5?hMU@YTDo^!O4uh9bIu$-6c zPQ9teTypeSNFsjljZcyRc!H#7`l0H!^wVm)H|i$Y9D1KTpnc)T_r}Xi2qAnG)~U6F za3UEg-Qs(GI?ZabTK}Gcz(CRbI&>jmjiEM0*r>Z~pOgu`hgT|ZJw<$Q6&e*>CzzpG2MbvuLqJ5h*wjavz{`y3j4 z5_L(^C1o@tFt5>!6Ti0TT$n-Rfrrb_kmTlp4JDV#@=={DQsIL0>6U5cI(jMHpC0#) zgZ^B|Rj$vE>M?wi8v9qW`h*e}2o}JdA4MOeN`7zAw7+e4xK0)?a`;9IC!&H`hJS25 zzASR^fDy9F|FFz1kYkO*N-c<5{uA5nht9tM9aYKl>{Ki!7+U0flk|rsw~*inBZA=$ z#>M7+v$@pV$3?I&3Cx<-fO6z@TE|D@@-}z^U1vohubT$pG4|4ecEGyuD~&u>)-lf=&j7LB9fPk z1Huf^3SW=DvaBc?46V2aZsGTFFIFPP#c>X)#m&r$RG9d%sM_MO*_JNphLJB;zYSE= zI)E}73tw2Ox$D7yrZ*bI5fI;)Y!7OBS8HL}@!>~sUtv3xF$v9*xag75oBe6kCKB+# zJ$=)R5YTalERdP_1vu?CvG9C|&~)t{v-ev=?qU`BFiUe|vMO2{-8A;CPLJVsTn?5e>CF zw7Izr^o2~mIRB?g2AFZpO@^er0){s)RmP|M4&O~*1?c#5)L$i4=Tx%!8@*b z-#jhqKuGGoH5?ta+d%=KRj&LgN!@#+qGG-B9MJ?!MY_qRWie`|IY zk9vH2+h`TL_qLHqV%Y8x9l-x6d#HlzLq~UGv*L|Ej$Y)Z=-w` zeuQ9?HU{ohfBo_c@E>1Z$ZF~J*Q?||KgKv!25#Oiq}6?m$yvtDI|onob>NSiF(f{nEPBvDbiA;8bUv}Aq8V3?>J&yKgE-p zQ($=0Kremv7pcV51f23(MB=*rovHqqjPt>|7?HHj8cNr2}=Nh%$AAwkM>UackNvb z7wniM-v0GP2#S9bJz!@;ibv9R&5x;5)32ESV=q!^`%yYHlq`k zl1N&fMy=#`33qDc<+nEDE%$W$lO1%c^4&c~mnv6XrR6cC{t0br|_c zoz--si-X#qFoiAs^!c_~zhpnd^00dqVC1&hx0f%^ZD&BwWcf6)VW|HcRU?1#$e)bLlwoLynosC*c*|#E z>2di*%44lx`o2SW!H4l#c1UGc+)?Kpie_DloE*2U=VRm~{$B*CDPJiYlulKDJA3rFxcxDn#6OuOhMj{gj=q7>I8-;T%j{_t-_1!TgyK2iOp=J&jxDt?1 zi|=-S5}}_>*-ar|ZEizWq_rCpG19VJ9KF9@X3dn;X>-WaXMR}rvU6{@X{heb;p4gx zr%Spk%Miel?6>+gky%tHT{%02SS1ghQKRYM!pT*_XK|AyQ~AHmZzD_*fVG~{t7KQJ)2+QzAz#MH;eZ#G=WE_BL#^0( zDS9nHwG(H2p_p1PiQMoRonk;)w^z6p>w2Vcfw_qu;jl&sNS?C$=IBEDBdI0HE_c zI~2s$DZz@gtb5BWgQn26<;IOR&dD2asZOkcbjzgcPzoCg6^OiRS$RX0O_i0r5Y9~2 z|0!YJs%I;429bhVE?7*YROID@$HXiJXMOjrv;FakMVb+J-R4UyWRyudxuTS>P7P=L zJ50--h{`!F^HWP*PRiM*T=_CTnYbvwWaNQ~D>m6ZEsCM+_{Lncj-^7%h^_!bH?tya zH8_?|HkoX|YM0O=^eKj&LvNZqtp$F}eeUHRNNX)2|94yAd@I&gsD`(NHNlfi5W!C# zrfCo(2`?UcmfirPVjuk8zk%}~Tq}QfwEW>ZTKRho|DdhqYX<*tnfLl_*uBygcumQ{gcwSV;(T2O8fJ# z-<)xaEj}WBe`{1ri7-M`wo|zW_yG?TBEmYH$!sdGtg~$SChJNC|68%p2a2D*nPz zKUYe~F)5T?rh&?B!Z~wbWFm`ZZ$*v9S0PPx>TzF7EKw+L>_4`BRT~|iZSnwSm{zFn z%;?Q)PZ4b_K?xJ_`R9W}W=0h2*0V@^qtkHzXjZ<-^45>p1=Pt_T&XBkI%W{5n`1d{lDzXQl z;lduONB|bdl%jc%FH-LN^7-snr~me4$ZuRgK~vR(F!UcxgLM@AX;}P9%U*9fRN~=w zz`udAGx%V_8DB3<8eQ27EN>BRR=(%lkSL#qiq|sOx6&_qtP_19OE>@T%m0tlLEvS* zQRT5rpbO}Tc1h>MpI!!iiqfN)VP9qbHJ+c5x{G|{^vO2PAxK}|NRx85G%BpQw)q!8 zD(BPu>rcVLk1WXwNZJL9nWBn#}7u$7DHZDA39Q zEHk{jT6iClVP1CXuEm<_h4(D~ke`g{`DOFg5jOWc1^5H?_R)m|E0SbA zI2^U6q@;HnoK2FrW2571?7}!nfamV1@lvvd!?gikmOpqE&m?Aurbh+XoGv*w;s%k6 z)y?wDE-yrPaS4)&ND}<8A?k3RrWY=$j8h(uRFXJsFPr|v6xp#K10s6qgqK((orM4^ z5j9BT;%qmlB~SexEBG0}d3!%7hc@W}$hx|9=~ArhV>hF&3(Tw>2l{ibwKo?0d5qc( zvF_x!OJt!;(>$qn1*HW919b`-xVGc~Xb6cU%tJlj!@V7x6mOw8UI{JTnBR!S7h9`$ z$;Fp`GJ4_$>J}EcK<_lNTLO&$2o?#exDTnbLxIqRjT;IN+HE|57%p?e^AaBRSK+1y z-@uuP2+$c}7icBre8G^n3o*a_wPp1Nc2*L`mt5))J*Dsz(0Z$?gw<$i}{8VI?y&879 zE&%r!gR+GVi-NQ!In#1zY`To!ZMb^UMQXcC zxXD52!wqK7@VhhJW1o1(6>ubB10V*lWZkj>-8upb{{pxLiyjd&IbKw&&0ECMn)>H#LSoRvM)<|yIR<{c&gGcu zq|jc>SDspG6l&Gon{U@UTMG9GadA}1U9Y@vxu`ywiNN)1qylDdN+#Pm<&P`=63h%c^y0dzO%w)yn=%Cvb7YqWZ^6uqOC){8bxh~%RX{U zd9>9M2aAuwMMPx2swV_is_<24_U*fM@q3wW7Ku9Gc~Y=|9zHW_>~VN+jHlX!!&}A?{P*bb}6{GPjvqx}yVZT~UNEwK}tmmC_d&@J!_5XNP-Ua4_d zr3@5A#S=E^Mz8a^a>jwTuS2Cv_?#~Rsm{*^@(Ok0s;QDXcs(hVz6&ispO|NW|H7ZOE$NHHx>+!rDa zvw<{bj>75%!S~eM;gxVYVLTixAlG@{80OwqG@DJ$dBL9xFV5|vaQ4 zh{V=B*BrhwdKqX)t-1M6GS?@|@~sNWSzB&;^0Kq*D(F8UGpM2ks0aeH)tW4-Ve=5x zlr#4?JSDEDIU>IRN(r{lhI4)a7LC6r+)4NaC|+l`8KC$gYf6>)bU?dH8LlTQJZFBr z+L{Ug;QU75|KZa41(^P9@eA-(o+Ydjixi>y&o&+Wfz6>BAmnfV(5Fg3`KW%tA=%I0 zK1|5=M5&6f&=mYe>vm!XK{Wuf6x9_ z9P^Z)a>b|TeN^|^E7%KX42y#Al^%?Y(t1joxr2Wva)g_L(G1f$97pQ8@KJk-?{C6; zp*T{~D8}!B#LPzi2BEgqcdw8Cc;7$9_7kHwiK<0#Fpgs1q<*5t&S@&GpSQw`hc=Sr zW;Vodj8I3tA`n)dtXSsl>}AoD4H5EzOjf}S_*IK(_QrCEr^^v$^*wj-lR!zei)_5J z6Hk{FB3j8U+iE=uren8&BL~JYq;M}pg6lIb7T{s+=f;c32*C@PI0}>wO%iKNL&U8I zl`;ta6Dj6)!(C*NBJGZ#SjyW+LQ!J6suyjH?k2|$<}+hX&?(=boqkZAu!M`@BNFz- z7>cQnLmdiUaWfib4yS%r-2wk*rYus5_E;HddbEzt~$cB}{E~R;Y7;hp2Hw`<>9Pwm7$hVgY;K5eG(94WKz;*75j3BLQB1Nw?CIUl!{t)kxxyVicr9s8oe!@ z^TUP3dyQ|*FOp%SR<+g?*vnPz;O)HXS}ApEvRZfKF44RzK|4cv>#{gm0_v{q@gxrz zs{rRPLy%@i&jcO+0t{m@Qi?k<%HQDKMC=iC%wjjkqTP-068^?{XY5)7Ren`!Tvd{M za~+!{&gA}s!Bo5)1UEd?OL0e)_6xme%Ic#ii|2J8ja4J6fm{?tzGcD|BsIm-0k4b9 zIp?hh&3|}~RkNG;MaNvY!d;_r0qe>WvI#PEN=c5tAlb!r)BfqOaL3MwSwy7vf* z64;x!pQGzbcyVD2u95soja)>UIyXsEn^f`9+=vKFU7?Gaj_qMdsbMK1F}*KVPR0m; zqW}QqP+qksifIDy69}yzPTx+am$W_l1=x|rN-fNkI<`c5^a{#eiJxkca@)A+SNI8& zd}-sQ^u>Px93=g@m!%L--&Rlq`YoAW%4CQoF?{ZeGEJmUSTO=D#6$Jv-Z=)gW3qz_ zArfR2*d&&>`Z(1LpsiyTuXS~oJJo2{;*$y{FHn?u3^zfh{q_K)2EM`S!?hO5O!g$> z$&{B|jBv~+$2xmHdnXL6&p-WDXP(wndvBaNNZ_S3jK3^_Dmte|n@=VWTpLT1q}w6j zh&WrY!WqE^!>Rj-SI2NMx;PAUS-||EPyG;OUtE1R5n=eYPnk`bjgQiFL%=g2L2Fj2ogR!|7vIZ z*BYlax6oy5dtZwtxTZ-y{*GX3~B<_iSq>;AbLpLEemtg$M4j z3XfxlgQ#k(i@Sl_q$eK`pM^})cE)ncR8V(ad*3k1Ob!+|86m(fQN>PVD#)RTF|^sb zRE%~-4GbJb6D}A&d9p%CgQ_MYYor!1M6j~i^CD0+@^?nzXhY+`$Eii8sQR;S|Nhy( zNdkzpHTg$K%=e5B`(Lh^Q>hh}z&2vQg_^{ehI`IyZg~%myfr&uK!DOaI7}yDx*~hF zT%O=t1W<*K(9A?3nv}qlP;BoPVB8lgeU*UiAx+6KA`0rdlj+Vq=ai)ExFj^OZu>2w zF0^(DV(2~<8U@IAPz!>XsGKMp{Y0b2Eo^|7eYhP=$P^!pH9z<2-iz}gq?V@redC!t zJ7l`g95(nHdWwbP{h@~Mn(h#%kJaY%g>C+Ba&t35xRlO~-3n;e5JE~l|C;tjGNXBK zBWWsO1c9v$-XN_^0;8EB+V+&oprD?NsEknq>?H&Chb@Pa}bn2pCMc9#@%93g+&h z0_;voqQSjF&NZeVndF4~Id&KGJYu@rYgB)!?jqrmOO5V{PN_RLWY&AFll9RP!v(>%}{ZHBOr!pr9Y!7E` zdHq33FIB^b>*J`Jp15P+x#Nv)_^y%3l(5%W5QzE!-ezlXo12Kn;zwhb3|Wi0~J zSzM>bWYjH-6E3j#q;k*fjrD538mpmIqY`qa{^0=Q?8N@eo$T+*9W_D~Ka!v15NO!( z@w1*+ykeC2PAsC`6zS3VhEToB&A9<9PvH;~;aR3~AmJtJ8xU?^ZrD4*bJL7-Qa|9i?}jOWt?^cn0aiW-P&pyklv zbB%ONOy<(KD1#l&!vj`wn)8h4=1j_%Oo;S-Fm?4o#tdgO zj0;j`Xcga2?O<7iK1Qz)ycQ++IbQiDqxC68)2kSAaP0C6QfWIk5jcTgH;W4ei|7MB zi&0(8$s2$Km)sI3?ids#!{|nd%jZ#|(X*v!JdN7E2=}yvdI{}v{>{vVHUsU;<|hP* z7cpsK;WSm-28kl}qVef0EpKNHKZxYV%+$YH&%E`LyTjy>L?Q)Y(x1g z+eb`>Y}sxz%)Gee(t|d_uD6o5Kw7fR>36PnD5xS!Mh1x!2;$qKBidFuOd7T&Pvqa% z;}LvK4LPJn9tXOM+o`UlZf!n@tmJ)ZLv}FN+)tWmuzh&$?*F}Xiuhgq0|_RNI9G|ne$KQW6OPm>>eA{xwmjYi;p|5aNG z2%^22J&?6#xcH`l#Z=7A_Zc&KU$=kG6wd|p_2;mV%=ZunV#le@1>>>Tab8=jaV;2N zhrJJf+IP&~cXJkeVT?<|aSqUVy{t}qD?}}wNiX!Y^zqG#6qUE%>J=#Anry>@v8OVD z=06(66!T<-+SUr_hK^i5s9Q3AQ#%&Mfyd*Y1St4qW{x#V!{|-Lp`8;ezO2S5NAz1n zkwOauW2U@_$J`q}-%9vXod+*Rddq2-G_Lb9AkE~g|h z^P^?V;6t<$JBh2Fr99lzd6yDz!g%l^zMpP5B`w2WSqd*q&L~~NpSOwY@iNx@UK4As ztaC^9#)R0k6ZL)LFWkx7R=ZIh%`Ku{=fqM~I5j)f3G5Kz`0G+Wz-SiGsz-3IZ8wd} zf3YNIr=v_|iyUq0b9t*J%K;T#nYVp-gw0zjhA-J|$hLMzV41ya*6fpD?XqNyJ)TX= zM0DBAfvsacOyqyC_nuKrbz9qT5+Fe69YPBr5JK-&=|!5fP(rVUUZjbQ-a$G@k=_YC zbdcUr2)%=V(o|4XRMZ#mbDneVGsain@qE9&XaC6_V`r?r*4}%qIoCDkysjoC>a>=2 zqkeKOJ_aR1;m{(f^+gtL-hOdOx>Dz2dv~Da&M5CAQL>eURl_4toEgU_cwZmGt&Rl$ zZc@SCwU=6V$-j~Mp0OVFj~WRMe2=qybFIiWmU)po)9goV<*k(+65pl%Ug|6vSsQ>W zaDNb!WPWgy&+KPL4r9me{b8}Z%|y7~16}_XBxCXd$ODU}r-y5J6D*Xhk6V|N9xttJ zBS&*22(`7iT7>NN%1eklg*hvQd~DEymd0T7pA15z4OR-@7h;BWyoY*ZOBXd z^_=+XL|S0S?Q_tJaCXVbU0Q8FIoAkZJf#X^ES(koWj5^0!qsL200EqfyHlzoR*R3x zi}$*An@PA(k!zv2*xNo1<83;#L2CB8OQpgHZJ*eiMTo@JcEJ{hnYfUxi_hjR0G2IT zUNr&pjgpB0jr;C<3{KRgLIcXD!8Gh=lCGVV&-G}h`ypuoZ^jykiibyBrh>Fo#VktE zp6Cm_yRlMYpy7?7(u{a|sWrTAvXnKDgJtn&nRqF_Z>8jK7cy{8EEc62uWjPKI+{7# z%?iy_s{wY^t=r_t3d16cSxsa#`%rTWgm`6m_~y(K8i z`?S{cj>A;`fh1NWZ~@6nd!G>ImI+F=@o=Z)baE47=W74X)z@aq%IGL4lFRt^eO)@B zvX9#p*gKjd>@Ge{9JyAQ0U00$Akr+Ev?N5G624h;A$?52XkMD-HMedbZ2lNBDw~z@ za%dr1xIh2?0oJ>U#?RtT+{fk%G~ukxck8*=+2?DxG^tM?+eqE!fTLkY_@hzk&pd;R9=#YOBIy-M(xg89m;pdm`!kr8 z$v=s15CM9M&l+CDVrpjPxDre^-<~aBaVkWbq(u04lCE2El$We-NQAUqp8Qqt`B!Px zN1h)@&kU+>$=?OoE55W&HA*TRKDFP;rE`;UF+DOHo&I{Ag(}RN%6gJp3c3u%|Wv zpsx5FqqA<=(npS|HH28I#QJ-duW=U^ykKI+Ge4U)AmM36rZDwHSx1T#! z)cjIy-d@qc8rn5o-S#d6T5P%GzEQiBYb{^Rewuis6KiMswN1R*KlKZ{ukTvuI*Lnq zG7+`k{=hwB=7PL~r6=UtHCc~nBwCh!R@9cx{Ts0Vm0Jgw{!1a?-vo|PdaBPl5ahR{Aqc=io1 z5_p%|?EJ{|pq@81(GCMMv)}{dPm|`Pxq2Gm^0z187siEKo*?x#Yg<3LC|2vb=K4BG zUCXaB;onp_s@pp>UMeTf@-lpr{<8}y|1VhXW z&7xCu_PV{3|6N=ERgU8n&$kza=N3uH&T!*vNhNrOy&N5Fwdg7%cc`e+(bx!B45lOV zQ!psH=RrP}#1=Oy$GAcK>a*(Lf%R6T&6$fHeU-)gV(PlmJOP?Yh z(?2s1QM+}_uDoL_W-?kw)K_0N(BEvt)A20i&h$_x*y-DTDjoI1IM;mzxAVsJte!e1 zbnbyQg^YnwPm5|GJ^9JS6JF>k%5_L}8Q&W8>clgcskmwd+MMil+B;7C>h8(#egCd5 zA&}{a3{Rg!mucdABAo)361HXdlBLTh)yF)CAqC6dRxi_I>7U|HL$fi%Z}O^Erj}G+ znfkgXu56c2>yRaAbKl2audKfTha&n}Y-e^`o{oQ;p5L4n`jl$b(Gnv^F3qRY`}U>) zott?4qyo%Z^wok?J4^p3=osJ+IwrXOz}3S*nBeH2uontbhemY3AE+#X0|6FCS^t~p znNd2K9O4`2qd8W$fk#iZ{@#gK+Yp=@6Ga(9C z?Mv&mCyBDR1T7B!*>9JX(BABu?~$n{7(|7_N>Ecjgszo$DHd#YIQ5?>UlDqgPr+yM zp99n7Q_{_>9<%29k3VJU4-h+>Zf*{RLoAMfQSx$awQpMg?{UY3J$F?-?|1LW(Ll~*cf>z?G7#K(yPMC- z?}sMf5iL}a+4;T9e+y2DK%0}NzrOt5-wF|kEzF;ysj}#$DEX2{MRbfkx_^?X4u!0>a69RW$ZJb$8$H}^g|FX@fW1hKg1#gJNS{t(-7lJ- z?7d@LzlHCsm%FtRPgc=)G;wy={TrY`!e~(HvO!4MM5oilj7c?;O0{FHWBMN`?SEjx z{|_M0q(z9`+AX#-A}Q|Y(7ze#2~ubgrR0Nq6tKuVP5>10UV^C^+vOXEj0V98Xdg}z z5zmFteuA2eg(>$AuX&D@ohry9R311sf1yOuf*r&9PfNE{afgXZP%tL$EW%a+=X z;Kfe65C_Ix>8xl*n@h8U*lFhkAFRsoM#mB?LNS%$>D()*clSp4Gr<+;*HRbR&gr;f zse2CvL!sM=?8ZY69(E>w$wkyA^(!C5_2g^@ezoa3&B7HvU*96Fc-CT+E^=ri{%ENG zRDjNOp+PTjBs`LG5&29!a;WKSo6gNWwfl2SkLs=lWo})@Bg(x8)qJFm9_sQUR!Y9D z+Z~!a55aS~T}t1r*qvR+&8OE{#3Ucy`gmZ2G5;vxx5u6kOYBLYkt{c)RmF-2dcj8G zzWo7WlY(9pK;@T7`I>A23cn6XM))W*S41XFq-8NxRyxq%urVj36)eq4#O@R!ixwR< zPFVUE>il$@@0|?kRGK3;#L)H#7W$?U%{s;QKdIq3W!bjMhJN zGQZN43CpENv>Du`647yV;MV=vKSQK}#rSY8-K?~PjTw~7Rd8PY4CN3Nfnlm}Q}^rc z=Z4p$EK|QKt0SvM12@Q-y=M|KEwc>x-bjAR;O@g>vNyOr7y`y?NtZ~yy>e@v0`Yjp zd|{y)V`}I91KKO?_R7#rKAx)=3}4Op!aW>1$OSFKcCMYvDgHO^P;XS2Ne$CplYMvn zE3}$4z%t+LIa`w!k+spH0v$_kuq(;r`>sM}SkH*@qoxNb?|Q6{>Z+8RjQy8;-jPcJ zMI#0DVyE|RKdamMmc{ne113@uala+;X7V6{&m*BG6vHIL#d;Vsmr<|of$D?jcx-6Q z)vF|-yV?nwY6Z9q8zl!ETk53tH~J{gKa|hDZa$Qk^0Zk)J<4j!b#1rIPZr8QJ0Ar) z#~e?l_fIB~dos05{VFM&_-ZM2)i;+KWg4N;9$vfE=0c#d8*uMT)q0tA%KD7`T&zMR z(ZvtZj}nb+5ouz~1&ytqP5Bvjdo4bY$jd71RO(va*`Bu5@u)^|tKSa8%{?bY=Bd?x z+LhBAh-_@{DKx#>J|gRh7p7MY=yt3lO}43)=q=L_cz)LMYo@f^wF^6py@)089ZCVm z(+7>wWW&sVh)j1l+BKN(c7BSrBOq6G;N%*%1Hd7~X|8N)t*LUp4DIQK13UF#M`o7_%>6+e$D4Z+;Mk!6oeI9C3aqo7o@o?yGpt6iw}pesPtQ zWesj!y?i1fcLM-y5_bKk^A~8}JVL#F@9!TS+}k{r9Bg@0YAViZmG*gnZkaMB_sQ(7 zqvVsoiRbf=eZ86wD?%MZ^>Cx_@pOF#jz?j%on8cQabCMpV`4Yerxa>hyY7Hrp$}`D zN0jy6O7~+jvaZpfk{y2&Wu-|Xwax1N$vihIV>}R=9Sz&FOW?AP6=oBQn%-2_Idoxh zUg!C^^h5KLWhN<$9(9pio=}~;`+oC*N}lFx_b$cJcW7o7Z+``L1gYIqHGxN!xlKWV z?;f};?j}_BW`3ceHonWKnlzWo{iPjnAP^MvoYIrt(cV0>S_{J`#5qRzgg>tpD;($~ z;r(QnR=440;o03aBb8SS_PjYUI1rCzksEep-~r;qr2A)xM!e27w`CK9OcGCS<#?mMuRV5A< zvm~$LZaL};somvB^tJo^DXui7z!Q6peq<***o4lVSA?@Zv#q-6x9Fw8!BXL+Vji@0H!ja+}i^3NH?(nt&>YluT?8 z(j1&=Fs|0&p{o8>-ihH?d8;8{FZE6DG}FItCz$jULS)|(%OpL0O~&OCWZ zI+)=)Cy5^tJ|zB|x5y#DsUhM}o@F04S7V0gBDl(z`7fH4W^cakk3`}1PewI@SK6@B z6^JkCG$My{I+bfZpl64)H2krGDb=H=ZQBUns98^Tj*GC*qjlfhtzcx&GZLIauS+RN z_-GxK7C$g(h?p9r`@JCNaz2z&PT!^x4o=W>UVyT5MYeJngl@0~GGAw5XIYBw3Sg?G zLcbk;OgF|W9)ipR5jw57h*p=bTVc^>??Kf&IS((jUtNd(;HYO1fgX2V!T=s<150$n zLWA04lf^@RW^pEJD!?$P^|r%+pwBxo`bCzC8|AiX#;ghm%V-Iu5&!wwMkZqCAM zaheB&pdDXeg@TuI0ha#R#^E*Z*I7l%j@r)ZD`~HpD{D#^{V#HsI#OK2U8X12fJ(=u z_xD-AOlMUPCmQCh8AsK^7dt_mW^g13L_( zzmsfxK$Gx%oS)sKAdIb~>dj+8L|HuB zWdDx!z4O6e$5p@l!i>{2ucmFCEK2}Y$>_Y>DDDiEe7H^y+!;M${tqYp41fS&uQ4^AGeaHRZ5adwlrPxZhAZS3xJ6`rlWG-Jo0`@VzTl6Bo(&O|durZYC z-Xz^H=)-4_oxo-m_dpd!O2GE(ndG|qN6t4Frd=z5mmfw5#H5yR006*_tnlDZZ2UVZ zRR-kcIoErtD_&;P<)MEg?!TBtMg!Yl-j8za^QFI*tlkyxWTolBA-?nrU!2xY-SzT& zUh?RxzU_+u61VOA@!_MophKoB&6y{D9qTJSZ}Se zuuumhJDwbCn#w4_W?o6IUYp`_Gf(x?`4!>-z9PMF9Db=%|5buPJ6GS$}2+i)zck15ZeMH zWnLij*+4@Wz+Y|Q%(VQ}k*S5*#C02ed1t#qk{$MRFtnazu!tn%PK~!B6uK$x=DkUA z{xSTl7AxvG5Sz!!^UgFo5jR%&S4d3tphdtm$WwIq%r-sBQq?TPy~X+oK=#QdGKAoB zw0V^!_(VBGF1XA^^33NkE9-MXrYzG}5xxOl6jT9ib8_Tk-Z3N`{)`tpB?pxUbX!yI z?reFE#P&4c$LP>p)M!(nWW=(EtmDhP8}&6R+rC3yRL54{hwH&v!Gts6?Y!3Ns*_em<+z){2CVDyV03a;?`5T}vb9b}tijfqx)9X^B zEl{l@KR7?hmB7&{{9*_BIC*5fzI9ipl8rbce2#muxcy0(P^8=QZRLys%P*4rbvO?2 z-N^5KwALbmP_*+Tt+5)_K-8-pn&Xfci)3|mjdvv(*SS1WXYlKfnR>sUnMnstZiOVeb~#?uorSDOb3vpJRak%n+YWKRSwGTg)KkFwwM3+?8Y&QMD>AYoid=MV zet&Kghe3`qCr&CTDBo9lv*Yesy40+lV8*jXTh{4}Tj1BQX}1@*Lbbq1@ElYsYvTJo z9u3~`FF+hJoRGm*`>q$?JeRHY)t;R^%^T>Mf-1o)k&N|j z+k`$Bb-fm&o?e}8#5ePz1f)NYIQ;fj=C0gPdw{wWb}fNwGVH{sDm(IWYR65N|gnruxuY?S)&yHlp;cbYIzW}fSO(VMUbrr!#s*B zqY2fMw91lDTP2ZtiKXZ2WGA^3wO$;pk>t9j&imL>-E5y`eqeYlp4&PSA^uLlpYYdl zMO*d8C1-TC(mEuSmTXcmTJ1NWEjZi}ZUC+s4dT7lRq?zveX?uVmo1@4_$PK^RYYGu zDDjgPd-zBp6DSgjPF}TNW0fGelXXXNz_aeCLrrfBokei!7!nM@P5ID$px@N$;>_;S z*fLRyY>HQ8YpS!a6ldryZFL($`FyQaY_5B&ljP?cZK6AGH}FMl0dh$&$ScX3O9;w* zGmLYWf4SXd;`VTsz9X8g@qXMl{a_(6P3OblWS$8>=J!VAC{N}+8yx}jx~}+p$&|NY zs2|!a8EyT=JB^#ZM`TlhTq{qFblSy^ioIu^f%kS4rtdz2CG}BYmkBF$%r54c zZMvxxmZi%x19h48JjM6WSc7*%wQDjv_#^3SH5o$+`fHc^-+Y1&eZQ&S_D-V98~l zWUt=AR$Y=o!W`4Nt)Xw?j%Or%aY)0heSE&E`K#;%m>-qF))+vbr^o(G&u+~%0m>`8 zxF-4&J<4kWb8@`HGp!sM&kv>XH$}ajkRn}DHoY8V<(D#!7;auy%c?)KQ#*%H&?|;_ zkkREciH(#`W@%5kB(P2oT7z+RKwJ#$Md!AH8=f2xpWImNCUT7&HmVjzZj zUT35z9z>Jj$1t$DE#V`{)avW>ge zOG;TeW86tU!#zaJ^jtWKc2%t1CtM=_SfZBfy2q-P8E!T>OdkeUZW4`xo0CSbA0bXf zOV%^kzy-ve)TGT61y8(uo_mE4-FT2q>SasHjiVC_UBc|P)3VjCsvrzCuYlUCYRpg6 zx9Rim{z5_D$^!FZj~ntut>F2bexoIK={h4avm626l15H@{b{CBG3#Ul*wtgIo3DpZ z;trBcFPxaIQ->sKIW1qvzkWR*(x}fFePLOhCWD*D6O>OXjQO)Bq5~t_xj)`$^%Yv5 zlv!)47JHK{zpM16*RjX#R!LH!Nz>M+I8TeZoLwsI;DnM(gT-$@^uDq%D8C;Pg+dQs z5MPArMIXcy3^yj?Z+&lNH{+{}`cYS_n)EK94atPyQ~w_S-NaFIkD&9DCP%ltLzcBh z8uu4&vx-qXdjKu?@ZM`A+Q*yu6VX>CvDDiB4Ub$FP(>u}``ig*#YfemkF{*~oI39) z)IUG7a;e?|Tuea-d%>j+%?&c564eR!6KaqW))Is?Hr^AKil= zkkO3eZI8f5pIR!gk+3t)AiDm-) zqUy$c^bR}&ns{8y(TMk(Iz^DBR*Vz;XP{A|O49c8EUV#Zf0q z@<%Z8)lhM>ioUuB0t3A3S6)pp5AV zVOUP-ICe8BBapFqco;bS8&Cx1C;IdoP&Xpl?)Rt%AVMoE;Z+Uyg~>z&uFo02Y}sCG*D2A_vAEPO}M>ve1B z>hY!6-!cmyPZLJTG&NPC-=1OE?34VPYd%cnx{u_Jl!OY|8$PlmaIhJ4=J0s)*84fk zUdSrG4Ho7TFvl(T2w?D-$DH4t0WN6jw&UqyrMG%7H%Nj)s`*j|KpW?vYSj~8KV5Hq z<&Ah$>-z1GkmapES>PsgV1~|sd5a(GcWHI1=%Dt+g;(hFn)n0pR5hzA1?Swh+}=#O zIE ziK_`rU?;g_C*)72Ln_m$78;&tddj$$G#15bxZ36UdH3RDR=Cf?g~o~({mbM^~UK^FOXcM|2V}`%(hNniGZQ%R!d?;D(!E;Y7h`so&nmVfMp%1 zGDlpo{RYG;IaYY(iQQ2w#j|?);Y|5f9U-91wK3e^eg#659JvLsJme?KXp&lc&T)k% zp<1v5>)GE80f(|F?{H3qqaS@BlE%NwSFgKHm|hx`7Ets!_3%_Ov5${|^OUu;Tw1g~ zxwxL`J*RxZ*GRsBJFS*Q?wO{y%-7X~_D`5Vxx5RviNI$xvOFE#l#828Xq z`-cKqx}nh6Bv%8!xz=Y|#-QmRDxfH~L$HD8YMuORNGKYA^z>;|(Wz;qsCxAsS&my7 z?JjSrjvd?L?zLOe0s%GW%tigoCrr^w5Ip;DaY%`MKE{znPQ)w(97>2cAgiQAhV+O1 z1>xW=9n}gSde+UXwo#wjoIOtf`8>4v+a_OK9TnelYM|0D%!fvdmWn_{piSs$bLRU4 z#|g%GRQ>ZNv^qj*&(x$0%bur~f7Z`ll(RKCdSv{+eX9JO;M9Y@h?dHJ-%RJYK)A-g zuNwEg@;^=!Xg7{m{~zB+spq1ZZ2Z5abN@L!Y5fnJ4X>uI!J40p{Aydw;Ig_VNr$Av z<=hP;5TzWO+ek_8V5@m)SKe$bQCnabO&-3flBZ!CVkGQZygMx(^N0q<(Rk~+vM^~% zi-o*tO$w5{ZgGf3**HKR9E-|(h#5936I{0A(;%ytQBaHbYVGK1hv5u+8xm{6YZpP-r;CEH?cRtNqm~JEhb`CWV2Pg4I+eB zYR!D*9J7YTcBf@5nla0524Y@|-siq!EK}m7(|s~;GdVwTc#a5;zN3=06mF=YY^8VY zsEo*>=D_cq%^Am(6xp=({zzOCNAAbstKkPI{H=oF&}#3AW4tvEKm=kJ3kUhzL@A7B zitgOmpoH*g8Ldr{!hN)74YP$4-lIhmkUl_c!YsD~GILFm)M=aSiWE^~hA4v8)m*Ml zySg*pvsA>Nh?iOtw+pfHj2IEIPpR|56|oVq7$Zi+G|cB zbCa(Hn%OtSP(Dl;hFjrTZefaAL>nh2ge2*`2nVz>W`H(OMc(Fwj`$V^sA{!dk$%B` zkhZyV)yrHx=UXXAI&GiTn6pYhm7Z*&DRL|OIL$0ctboq02vu4e%$%&Yj3#!38M2iJ zsFX5&5e@d@#I8(fpm6TIPB265#@&s{hNS$_tfm;rW_P}e@TwZ)=xN0W;^5FIyqc&| zyOG=2wBzCJ8eV*xC_&V6max_kdru=Dq1Lz&FiP9^0Vkn zNW^cHDGVS^Qm&^MC7(vO-x+A`w@0e2(1fXWuq8f#woU7OFPFnnJT$&Tct*k`hMe2d z(_{=%twu1W8x41OBGswil~xoa{i_i`az!I|wt2EUspt=T@+<5}7(hI?}M{-o&UvwYNlkR6LD zjx{Kb?n`i_Pj!)LL2S?(noxT8^E=!1ciDBuulU!Dw(l7v=k)V=stI)A##xO?wN|8J zn2~F1Y{V<IooiFYH&KsLpNa~m^rM##GqG@Gd%-8iw;_nx2dc6)}f-!WUh_$nL+eXnWprv z4c;y!Z7^cthR!@`*>oN4!IX({UY*)dWK9t`d{yP$Q+DQ7s4G?3Lla0Vw9X>ToppM- z#MqRM!(V{JUc2Z!gmE8)4bWxC0NSfB+)&1i1?|)+CQWWEsgnC?*FE-^R*uIs@9lA( zSpr)TU(z1WMy(oR`((628GV-6-o#TdSc7VoBB`fs38J+eRR7O z$eb3prT%;A4@+E*zs%ap3>Hp4&U81*a_wVDrM{-W+0~Fy2epE0>6O-o?nxd-dwak> z7~yN@GK`dC>I)bZa_1c6HO#^?2&#*uCu83~tf|93kmz;x$P*)@4|PH4vx;HtNOQem zTB7_^bF8=?_It{SsM=7nI(aDPe0kD$A^UD|%xt3&&lo1q`u*t@O0~J28v{O_(gDd_pOxyly4AZPB<$ zy4p`9H#uCOb{xD6UFD@JUyOh0>EA8U>MR5?j`A~MHz;Tja$|IEc^nh1* z{lf;rgQcxfR(w+KrXQK9vIdORcp2Z`17~Ikafy>K$94#E+Rfk!S++-pFEkM`@8hLA%9hlaih$v2JTKyz3V@LiJ!yV3x%6gA3lySYG1?4PbAD zp7Dg*NkDJ8@GUUG`qtj^Q}++`AD_R;BE63pb|x-ujk1YLG*D zZvIS@kVJQUV}HTNgp)f?0P2~d#fl{xg5@01&^>9J<%lpJa59@VTlL z=IP-Sgjp9#iK&w80=)}A;H2bGoh*X1MIH7lh9-XI2N>-~y0ZFcbH?B=^wrENi5-~f zUYCW775jBTLaQ58JvzQSy}@I)y^eQWkup=>CGn`(ydpWHLO?AyrkhH5t!H_GSWh3MS&rX%2{9e2t>B{21K(jN)SGk9Ta+QJ+QJiBl?I~X3(@-hW zeX&8Iv^oM`K{v2aevS8|Fhr;kSDDI9W1|Ceqdnuew5L=|$EJYt2_l@_P9`Y#VpgjW8NEbi>3-)L?MHhuW!3p%}u$gu^#Hm>u=7pp7~% zidH&0?NQaaJyT(UADPko1Rje~v=Wrpb&smAtK3-P7U`@c5Eh=QiImrlF4Cud@C*wn z7`mJE>haBRw-|`&dQF`7jjLfwCoCOmyljOrp4EtG!M;`KjglGNq;pLpgto*fkiws{ zx09U#z8Ecq4nUfE-&W!6CWZkF@W93d$Q}>XyijdM^kMcZEJz4BnJ&!Oy21+)fKEJ? z`x`#^lR|y_x{`F@Z(G?Xhkr8Af3lJPJ8S!zCgiUG>e=5?(3^*(DLcrHoyUAspPr;J zuU2b&4QVHe1i45)ES3T@moDk})gOg~y>AxHWf?b0$rUVVHVz_W0j&V&_?qKfG|XiO z;Nsf+=(!Zs!c+eV9qL4IM!xM6J5rQ*#|^1ku6eN~zNE>?VUU#k9nv;(6S5sClR1r% zV#vFthDe8JVJo<~YNL0?el#n)_)MCulUqs6d!oLUy>U`UyX_-ozlxc zL+(W%ddSR$2=HU@nQsnhG%pE48RWGVPN65_0$x5Hpbg*qyLBBhj{q30t!hmnVY%&J zBTcF%9xtDb*4x#10+j^)Q8m`n1gg)touf1DG55mfy^!Us_KjYcwGm=ZyAf#;<*e{8 z$^7_cYVvcEel1r)e=se*Y2qeHeZnlM@^z}0*X;Q68e<->OsA1lt>t&LjO|3Y^LpFv zy{Sezl7do8L&!y?*QV}!g7x;@?ox3^a-LZi&^_c1&1#JwM@M#5gk>}@!An?-+MdQB zRchqxmM}9l(QRwlnNM3jQ4sJTzpLW}OmzIvjee43CzvcZ&q@JQ6s&j8ugVUc5T(8m zE_xSn_v}H{x&h~W9e0=uJZhfL0Wb(yjpB3BdK0Vt-p|132Y8d|@vL8ywsdyT&`SwU zFNZa}@Mzd&ICP}I8ZR|~&Tvb8HJ0{JhE}GRSj|hpLS~y605w zwpcR~IYc{Y5gub<1rphort!?1lB_vJIn=jV)u7oQpwj&#D9d3h#MIzJw0W{~rhX!= zJn?NlKjjPcd*C#7w|*;p?CY2+U7PfPGqndD)U%z+24@~Fb@YP8Di?FL_l5g_>ji+# zgwEQ4g=pQ0MWs4GmG}QqQWJKM% zPP;trF&jk+jk+vCrn|(3CE9?r4r59(7u%5g4R@KsHa=wsAOH^ymghqPtCD*Vj0Bjx zcYDIID_}a5m7!L1;%kD!=F`a~+(w_snRWvaamf^*)~i8W=8Z+s+KGDi%~IT)_(`9v zG$GM9s6+vQQE2G38XS|(q)3&<4n#fUE|ux{Ji2{iU4@*H1TthF!!&a;YPNGR(p>8q z9nkHWC@^pxNQXoNDq%-RVe%hT)h@9V&O<$cMTw3 zASgKxPDoOs1R(31uO;ZpnPG-YOF#yf+`%F~9Ye$V#d~d17)C6uO7_xX&xR`pWV4%F zlS5mjHTH%WeL?@eZo@EbRv}qXCFgNdg(#k<>v_3W*z0ooDsM|&%ii}s1Y8;x8BWVZRZ>C+bE%{xOH3Yo!zXlmuQ#sE$voX z`h(GL*J?(^jircXC#}V&Igd7%;^!kpH1XXLS$DK(S)^2GykMU|lWj3G)_|}Zdi~?3MFxu7CuPzWF5ars?37=i(iLt`G%cx$`qsv@Z zZMy<-b7{$hKPNpl<>ml5s7#Vcjv14srI_B9Op&w96?J=OPY`8?AM&gU?YCyNtXM6t zj-{R^d#uLslgPZ4M#_oN`NN8~h{{S;NwEOh3E9dwd{0C6hy(G%oUA7eHr5)osJN zu{fS<5pWYQA4ff6#;_x{2@|9OEA0dtuY_uJYW7m6Y%7M>c9OS0_K>|51cG>O~^&7hGR?SlwUxj-QG4R z^P%~Z*$ebssYVi1;=l3d51ZTnb(>E=W&Cg4ujE;i2lj?j0AxXzYyVe65}9JCNuJvu zX=JXh_g4{d&iD0XB-1VYmfTD12KYj_6AaF8@lovD`oo)hs`n&?y^y$M$pndPgMOkm z!0*4NeO7p^pcwiWbr}_Ga&6JvI%!&#r6GG|Zz^h88hg0^8p=b|VsYkdxCHDofoY3rLbLb-IF%ENqBlYZyLiy9hOd$NHyys=(A8|DW?fh>CcJZ1j zYf+qSG*L;g%MPUuW1?=(qTzNT21!7?bznw?P%a82a9^Q)A&rE#fP zrAlKuCAGb)H^mMaA#`^8PLkcQKcAQyt8eHkZ72aQ8yo){&}X12vDC~F!keN`WpGCX z+f9HqRIVR3lT9cm^b^iOuiv-qtc7+1#md-PQf9&6tkkqp;iDa32U!%%aDB|%J ziO?noAwN=Eb&xhd^UNmlow0o&ySR=w`P?y~2lcqEVG6Wh(rFsvp~v%sR4Fy(wRC^AMkpUf637Dh`?W*_S5z>I`BfvO zLgA=tl0*f(rbro1#rjDN+d~rHL*ke@{FqC zTtDI`mpJ3~5^)MzStcU{OtX}xD;W)|ym=ao_my+31qGiV2eCi_IzQrSi)AZYICu^K z``V#vo->K39ZL7S$=#$e+qs8~US+55hRAs22&RG~Yqaqs$aI#rBHr4<$(|pJ2Otpy z6enEspP$?PH3v6Umoh!(RTdG=0*z}8D7({gdL`o97h&C>j}JHIW#VwK2_i~bx0>cl zm-nB|o#$#bjJAKOn$KrO+mTACxLOF@euPlsJX^PGs`JXPeJ8!(6mx}ts7Lp($VISU z>7&1l!wLbNbGZcNxw%TOp-KYv5P5*7TSztp2IDUCE_J$4;8&LjhQ7T~5B%MC3(VEiZo4QbFoOW;R23zjD34a0ECYP$W_yZhh5_;(+po{< z%n#O`gSqW}ByXz6C4iFbR@8b^_sf_YC!9(9&y}t-4`%@@>(R<++|;F)=&yMifE4uhMhKT5+f-7IyNG`tj#J>}NN{2~ryl8K0G?aI^? zC%38POEYujKAiG1c!qAe{Su}F1;5zp4z%2bAFy_gMG@Ed1b;2TXENu zSFQkmS>H91^~5^0wk0U=g3My?!iTFfb%I~&lH^h4+WHf=0000H@Pyk_nW2hl61N+A zlv^N9qigYbB(1)}b*eQz#Xl8M|M_(&24cB`ItoN5{m1y`St@n?{^#`n@6VyQO%kZ& zr6BoVA4}5f4W$i(2KY_2Y(jgrdHrBfb3C}2VJli>s^$&tf+v?&P5@8Jm-44VqsgNw zacRR2K#6;o*Lw?EBCHvJ+5Q_9KVFIAcdIG83qDLOREjjj*`lousH5_=%<*|_X6;~O z^JbQkhrN1S&u;*O*vd_ayW40|1gj`Fq_vnH!ccL$a*IZ&jvy;4&-fv;z{D?}l5{|8;!h*x$F0 znhPl2Yxt-6G?G)mR+XxRq>p+85J@79}&)+0$FL z;B~)yn#}&FsAHDQI1*3IJ99)_DbtR~&R_A99j9tA)h(!+ zNUKJ;4m#b@CBvb=BQ828xFOl~$!N5}QoC~E9Mba6C;IZ}$<~{*5 zMcY0ZDXc4>D44aXvqF{^{RU*C+FraK_#;(#?s*?=`o+=?MAGdvQM2L&T8a8^h<}H?sq5t2mr!LSmrM{tICG zup^;g3RRGmi~n;+y}*5@^|-M&q@mPX!oM;~S0QjYG{Lhn&*-pf1GFuA#Y(XTF^i`Z zI-o)Hd2mEskgtLdQQoaCMsUqT+fCmzf-m1nN2q1a#% zoNS9F#n11r@9&p*_rH!$suL4ah_(i^v47g^Cr$sFd=X#Wjm#dz{m;_;KX&O~c8S^1 zfEK*>F9)yOu@-0+e?D*jk}It;)rmKe^faPKTg1O6cFv7NOYG~6m88bU)K+0*${VaI zp_1m5ag~h#l1PCWdUDRkUqHBBZKQa)xhvoZ0wS0KK%G16gtU}m0Y*nN0yk>XDp0fh z`wZ6#$ddd2tbs#gOH&CCMrn^iNdP#LVIXo_ zDcnruFjs`~=f^BC6&1~urS?H6ha;MF(faP~#C5V)N=0UYEl*<>{8ANisQ8FJ4n`$;Kw?8)6ko5|zrwpC+YoK;g_~4=9V~v%0nW?G|FziY8DHimx-&bhIBvv^ zHH+|6-;M|lEr=K`sOj|~+hQGYj3J)@N5ondXSvG{OPaOjq)wSaoH_Y6{{ z*}^U9 z)zpB))(k3Z-f>Wz1l)R>&rs~deL&cpAW`hcFM*%VLb~t64;)@&1PQO=hrYYK{jUf4 z8?Ywc-D16Uy%esg=YDS+i@+Z4`ysMC(@7fsDj+jO*N zW$Sc2T`L|-JO$;ahpRio3y<_z9W{0}pb8Hr;dvfBfT0?pVdWR!pXBQF(0i?@s*sbU zM4|RfuIA>$kRMyY6hV_dUGe2Vg1I<2tdmSO$lkzaXCJ*l++JP#b)EZ>$<$wt(MReTEb6ac8Z&_qRFxE&jic18NtAYx?Xr0R7!+%l6$^iHNT-vNIfW zFh7VS#*4e#H!2sXx|VQ|yo*UzhXz`FqRmjmIcpH1AEQK0gyen;0MrvZdxGvuw~%A1 zb1h`!#eqcE^X4Jtpe91Xe6k4!hX?Q*lxk%`w&4_vO4LSs4~EP(RI$;8k4_l7Q{N>5 zb2bt}Xw9A9M_Qi0*tw%TO=SAGxD&Ls(rg{V0czUb5)Xn`E1{tGV^``=AWC z?w);x347>!f`jX~E zyWCi{ATz-yf|McJ?;22`aju1`u_B}SYg9>!`)VxAx-2q{o)NpoxLuqpFx4CbF|`bs zrE_BYc-j|0pJ6+kWlbN#lVTGYj_zdn~?~HK<{MVg<>wG zc@E5WV6-I^tsVb3b-tH8SoAXTyT*>n`@7NkTHWDh$_8Vq8b1QrL)NHeT=da z(Ot9;bL{xR7MMr4TVMyxmRWM;=~}G^dG9Kp{W^lrkI#r5h-|LFG`!<2z?bV?=!`Xp zsQKzC+)X9VYB7wVM;;6VIKd^Gf;_iDsuuu!6wHOH;n%&jQ=UVr7bW9#LM`qgm1N-8MC^2ChgPV=OvGBlxoF%UPcn+2t*r+<=! z<2bK$rMd)cOH~3=LzwzKL`DOCtJNGkelN(mP;M@ae&zBDV*U#_l_6>|-!Lv3#!oL{ zm%k%vMwP`Txd4k@b539v;#kRztQbbi+GXiyj|U-8W;>zY@v-DfqQM5qtQ<%|=fiXv z9ng?b;2kCBa-J;h0?GrUBs__B9M9MIj^U4Hl%6PA&MfpxC(f{y1@}tNJx({X?JsNl zQDU?ovFj3YfXF9l2s6Ini(Emn=@!}s%#3P;``~9{5`afCkg}Qwwx!-W6)dM0b=juR zJzb~&9Fsrf5L{8~;$;=IL#$Ua-qGE$_YC>#EAxQHE=lLHsV>kShBcd=jyF*v;Cr1X z>>(2lUKee9eD5VKdEK>On^)%n(`CA$Nk1EG9ZmZUaeXl>Y&Zc#uo*Vw;l`<*eReka zd)Ivzm$lZ>0}=UZ>$t_(O}@~qQm+fh%=w&Numn<;DcP%fU6fyosb~8UcIzcNRgtSs z;`e9TuP0%UbYRR;0(=`Zm}e9L6dVJRZ9MqZ{9ExH&s%Jx2@MBaxka4C{vJ7BQ5d^i z!AknxT|NpJH7>EqWYqb!NwFRa0@{yM(5MWV59B3Gnqh2*_hh_=2$DRwp-VVh4fAQ- z*q`98t|e_whw4!}`ywIv{TlhJ#!=qcWboeKdW^T$_mOW|mN9R%e)qM^KjR4fpWRyu z`Q%qyp9sS8KQGAqh|%+@pb(t;2J{XTA_TRuf)U+X!+}Z^Se6eu)YN5Yh-!60>4sHO zu#$)N;!{jEJfZ|J9!_~xgu<4|N8;WBit&;CA=|A$c~(j}j};qK)KZc4d;Nt+dYm5t zCTtyBh$(mM(8bu%Rzk8#9RN5O`i){5J2GF5Q0WFmQl4;>piveJz|eMAu09Fu!&4f= zL@ghE=-4#qGxH%Oy!06pVab6usydg1fy>=r_RiClnY@+Q&*u+M!M&arojRvnutThZ z!3!HzZZ5TU8`Sjq^Hn%)}-SEmhmy@1f(qLpr+-yT_EIbvwA?s{v%8v0G}w(EY9{=0@*QIWM5D*NV7 z?F}#SN?8vL4lx*t5u9ZmbAcQ-31z6{`AcbIt2mB{g`+_Yi6u2B$GQmzbqriAkx!vO zmXc!g;+J{TQ1UK-dA(-v&B`o&qpUC_{xW>%SSVp=gnv**1;8d%w+>-z|Sqro!j{in<}E<)#a{(M%A4=k`fPf`L0gh zOhqG{&Z*y0>9F&VVK))lUO7~k36G7ijcRKEB zxZA8=lAkgq25PeXh$kt0(hY}A>s^NS&7mTIe#`q+qsQG1V1JWX(P8gM~bM>RcQ@&$R zr;ExP^uKD3aMO`#lKI94I+hQrj2!mDR%)yO*8^ZRZbOSypesi#tM$kBq@lN~->brj zht!KkN6!&w^Wc5lm@yNHb^r@7ZF@PPWefH2NDl_$jKfxC9ZExA);M<>O64$ek?pKp zK3s?XvhNXzoh`8CKvo;P09X^jw3~KqFHButE! z21^Rg5;(e#T-i)d0i4rX@h+C ztsU>N{mp@J@98KQO!`yQ6-@-`wJvC1?&fGt?i%$ig?EINADp)NmnUdO)e)t-EUg=V zi21AQLbf-sH4(wEE0Zz5cl-WmeE#=mE+0rS&wG7@6jS(G`tQgzKlWT>dyCa2%?N)x z%FvA`97@IMkvGMv4>xQLZC?0NOCEEiFX=`8@{508{QnpboyvQs0lWf5X}Ya%hyMxH Ch~I($ diff --git a/docs/getting-started.asciidoc b/docs/getting-started.asciidoc deleted file mode 100644 index a4500847b4..0000000000 --- a/docs/getting-started.asciidoc +++ /dev/null @@ -1,141 +0,0 @@ -[[getting-started-ruby]] -== Getting started - -This page guides you through the installation process of the Ruby client, shows -you how to instantiate the client, and how to perform basic Elasticsearch -operations with it. - -[discrete] -=== Requirements - -A currently maintained version of Ruby (3.0+) or JRuby (9.3+). - -[discrete] -=== Installation - -To install the latest version of the client, run the following command: - -[source,shell] --------------------------- -gem install elasticsearch --------------------------- - -Refer to the <> page to learn more. - - -[discrete] -=== Connecting - -You can connect to the Elastic Cloud using an API key and the Elasticsearch -endpoint. - -[source,rb] ----- -client = Elasticsearch::Client.new( - cloud_id: '', - api_key: '' -) ----- - -Your Elasticsearch endpoint can be found on the **My deployment** page of your -deployment: - -image::images/es_endpoint.jpg[alt="Finding Elasticsearch endpoint",align="center"] - -You can generate an API key on the **Management** page under Security. - -image::images/create_api_key.png[alt="Create API key",align="center"] - -For other connection options, refer to the <> section. - - -[discrete] -=== Operations - -Time to use Elasticsearch! This section walks you through the basic, and most -important, operations of Elasticsearch. For more operations and more advanced -examples, refer to the <> page. - - -[discrete] -==== Creating an index - -This is how you create the `my_index` index: - -[source,rb] ----- -client.indices.create(index: 'my_index') ----- - - -[discrete] -==== Indexing documents - -This is a simple way of indexing a document: - -[source,rb] ----- -document = { name: 'elasticsearch-ruby' } -response = client.index(index: 'my_index', body: document) -# You can get the indexed document id with: -response['_id'] -=> "PlgIDYkBWS9Ngdx5IMy-" -id = response['_id'] ----- - - -[discrete] -==== Getting documents - -You can get documents by using the following code: - -[source,rb] ----- -client.get(index: 'my_index', id: id) ----- - - -[discrete] -==== Searching documents - -This is how you can create a single match query with the Ruby client: - -[source,rb] ----- -client.search(index: 'my_index', body: { query: { match_all: {} } }) ----- - - -[discrete] -==== Updating documents - -This is how you can update a document, for example to add a new field: - -[source,rb] ----- -client.update(index: 'my_index', id: id, body: { doc: { language: 'Ruby' } }) ----- - - -[discrete] -==== Deleting documents - -[source,rb] ----- -client.delete(index: 'my_index', id: id) ----- - - -[discrete] -==== Deleting an index - -[source,rb] ----- -client.indices.delete(index: 'my_index') ----- - - -[discrete] -== Further reading - -* Use <> for a more confortable experience with the APIs. \ No newline at end of file diff --git a/docs/helpers/index.asciidoc b/docs/helpers/index.asciidoc deleted file mode 100644 index 1e475886cd..0000000000 --- a/docs/helpers/index.asciidoc +++ /dev/null @@ -1,10 +0,0 @@ -[[client-helpers]] -== Client helpers - -The Ruby client includes the following helpers: - -* <> -* <> - -include::bulk-scroll.asciidoc[] -include::esql.asciidoc[] \ No newline at end of file diff --git a/docs/index.asciidoc b/docs/index.asciidoc deleted file mode 100644 index b83dd47058..0000000000 --- a/docs/index.asciidoc +++ /dev/null @@ -1,32 +0,0 @@ -= Elasticsearch Ruby Client - -:doctype: book - -include::{asciidoc-dir}/../../shared/versions/stack/{source_branch}.asciidoc[] -include::{asciidoc-dir}/../../shared/attributes.asciidoc[] - -:es-docs: https://www.elastic.co/guide/en/elasticsearch/reference/{branch} - -include::overview.asciidoc[] - -include::getting-started.asciidoc[] - -include::installation.asciidoc[] - -include::connecting.asciidoc[] - -include::config.asciidoc[] - -include::basic-config.asciidoc[] - -include::advanced-config.asciidoc[] - -include::integrations.asciidoc[] - -include::examples.asciidoc[] - -include::troubleshooting.asciidoc[] - -include::helpers/index.asciidoc[] - -include::release_notes/index.asciidoc[] diff --git a/docs/installation.asciidoc b/docs/installation.asciidoc deleted file mode 100644 index 15ce2f60a8..0000000000 --- a/docs/installation.asciidoc +++ /dev/null @@ -1,61 +0,0 @@ -[[ruby-install]] -== Installation - -Install the Rubygem for the latest {es} version by using the following command: - -[source,sh] ------------------------------------- -gem install elasticsearch ------------------------------------- - - -Or add the `elasticsearch` Ruby gem to your Gemfile: - -[source,ruby] ------------------------------------- -gem 'elasticsearch' ------------------------------------- - - - -You can install the Ruby gem for a specific {es} version by using the following -command: - -[source,sh] ------------------------------------- -gem install elasticsearch -v 7.0.0 ------------------------------------- - - -Or you can add a specific version of {es} to your Gemfile: - -[source,ruby] ------------------------------------- -gem 'elasticsearch', '~> 7.0' ------------------------------------- - - -[discrete] -=== {es} and Ruby Version Compatibility - -The {es} client is compatible with currently maintained Ruby versions. We follow -Ruby’s own maintenance policy and officially support all currently maintained -versions per -https://www.ruby-lang.org/en/downloads/branches/[Ruby Maintenance Branches]. - -Language clients are forward compatible; meaning that clients support -communicating with greater or equal minor versions of {es} without breaking. It -does not mean that the client automatically supports new features of newer {es} -versions; it is only possible after a release of a new client version. For -example, a 8.12 client version won't automatically support the new features of -the 8.13 version of {es}, the 8.13 client version is required for that. -{es} language clients are only backwards compatible with default distributions -and without guarantees made. - -|=== -| Gem Version | | {es} Version | Supported - -| 7.x | → | 7.x | 7.17 -| 8.x | → | 8.x | 8.x -| main | → | main | -|=== \ No newline at end of file diff --git a/docs/integrations.asciidoc b/docs/integrations.asciidoc deleted file mode 100644 index c758d17201..0000000000 --- a/docs/integrations.asciidoc +++ /dev/null @@ -1,30 +0,0 @@ -[[integrations]] -== Integrations - -The Rubygems listed on this page make it easier to operate with {es} by using -the Ruby client. - -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> - -include::transport.asciidoc[] - -include::api.asciidoc[] - -include::open-telemetry.asciidoc[] - -include::ecs.asciidoc[] - -include::model.asciidoc[] - -include::rails.asciidoc[] - -include::persistence.asciidoc[] - -include::dsl.asciidoc[] diff --git a/docs/open-telemetry.asciidoc b/docs/open-telemetry.asciidoc deleted file mode 100644 index 87fd86206b..0000000000 --- a/docs/open-telemetry.asciidoc +++ /dev/null @@ -1,94 +0,0 @@ -[[opentelemetry]] -=== Using OpenTelemetry - -You can use https://opentelemetry.io/[OpenTelemetry] to monitor the performance and behavior of your {es} requests through the Ruby Client. -The Ruby Client comes with built-in OpenTelemetry instrumentation that emits https://www.elastic.co/guide/en/apm/guide/current/apm-distributed-tracing.html[distributed tracing spans] by default. -With that, applications https://opentelemetry.io/docs/instrumentation/ruby/manual/[instrumented with OpenTelemetry] or using the https://opentelemetry.io/docs/instrumentation/ruby/automatic/[OpenTelemetry Ruby SDK] are inherently enriched with additional spans that contain insightful information about the execution of the {es} requests. - -The native instrumentation in the Ruby Client follows the https://opentelemetry.io/docs/specs/semconv/database/elasticsearch/[OpenTelemetry Semantic Conventions for {es}]. In particular, the instrumentation in the client covers the logical layer of {es} requests. A single span per request is created that is processed by the service through the Ruby Client. The following image shows a trace that records the handling of two different {es} requests: a `ping` request and a `search` request. - -[role="screenshot"] -image::images/otel-waterfall-without-http.png[alt="Distributed trace with Elasticsearch spans",align="center"] - -Usually, OpenTelemetry auto-instrumentation modules come with instrumentation support for HTTP-level communication. In this case, in addition to the logical {es} client requests, spans will be captured for the physical HTTP requests emitted by the client. The following image shows a trace with both, {es} spans (in blue) and the corresponding HTTP-level spans (in red): - -[role="screenshot"] -image::images/otel-waterfall-with-http.png[alt="Distributed trace with Elasticsearch spans",align="center"] - -Advanced Ruby Client behavior such as nodes round-robin and request retries are revealed through the combination of logical {es} spans and the physical HTTP spans. The following example shows a `search` request in a scenario with two nodes: - -[role="screenshot"] -image::images/otel-waterfall-retry.png[alt="Distributed trace with Elasticsearch spans",align="center"] - -The first node is unavailable and results in an HTTP error, while the retry to the second node succeeds. Both HTTP requests are subsumed by the logical {es} request span (in blue). - -[discrete] -==== Setup the OpenTelemetry instrumentation - -When using the https://opentelemetry.io/docs/instrumentation/ruby/manual[OpenTelemetry Ruby SDK manually] or using the https://opentelemetry.io/docs/instrumentation/ruby/automatic/[OpenTelemetry Ruby Auto-Instrumentations], the Ruby Client's OpenTelemetry instrumentation is enabled by default and uses the global OpenTelemetry SDK with the global tracer provider. You can provide a tracer provider via the Ruby Client configuration option `opentelemetry_tracer_provider` when instantiating the client. This is sometimes useful for testing or other specific use cases. - -[source,ruby] ------------------------------------- -client = Elasticsearch::Client.new( - cloud_id: '', - api_key: '', - opentelemetry_tracer_provider: tracer_provider -) ------------------------------------- - -[discrete] -==== Configuring the OpenTelemetry instrumentation - -You can configure the OpenTelemetry instrumentation through Environment Variables. -The following configuration options are available. - -[discrete] -[[opentelemetry-config-enable]] -===== Enable / Disable the OpenTelemetry instrumentation - -With this configuration option you can enable (default) or disable the built-in OpenTelemetry instrumentation. - -**Default:** `true` - -|============ -| Environment Variable | `OTEL_RUBY_INSTRUMENTATION_ELASTICSEARCH_ENABLED` -|============ - -[discrete] -===== Capture search request bodies - -Per default, the built-in OpenTelemetry instrumentation does not capture request bodies due to data privacy considerations. You can use this option to enable capturing of search queries from the request bodies of {es} search requests in case you wish to gather this information regardless. The options are to capture the raw search query, sanitize the query with a default list of sensitive keys, or not capture it at all. - -**Default:** `omit` - -**Valid Options:** `omit`, `sanitize`, `raw` - -|============ -| Environment Variable | `OTEL_RUBY_INSTRUMENTATION_ELASTICSEARCH_CAPTURE_SEARCH_QUERY` -|============ - -[discrete] -===== Sanitize the {es} search request body - -You can configure the list of keys whose values are redacted when the search query is captured. Values must be comma-separated. -Note in v8.3.0 and v8.3.1, the environment variable `OTEL_INSTRUMENTATION_ELASTICSEARCH_CAPTURE_SEARCH_QUERY` was available -but is now deprecated in favor of the environment variable including `RUBY`. - -**Default:** `nil` - -|============ -| Environment Variable | `OTEL_RUBY_INSTRUMENTATION_ELASTICSEARCH_SEARCH_QUERY_SANITIZE_KEYS` -|============ - -Example: - -```bash -OTEL_RUBY_INSTRUMENTATION_ELASTICSEARCH_SEARCH_QUERY_SANITIZE_KEYS='sensitive-key,other-sensitive-key' -``` - -[discrete] -==== Overhead - -The OpenTelemetry instrumentation (as any other monitoring approach) may come with a slight overhead on CPU, memory, and/or latency. The overhead may only occur when the instrumentation is enabled (default) and an OpenTelemetry SDK is active in the target application. When the instrumentation is disabled or no OpenTelemetry SDK is active within the target application, monitoring overhead is not expected when using the client. - -Even in cases where the instrumentation is enabled and is actively used (by an OpenTelemetry SDK), the overhead is minimal and negligible in the vast majority of cases. In edge cases where there is a noticeable overhead, the <> to eliminate any potential impact on performance. \ No newline at end of file diff --git a/docs/overview.asciidoc b/docs/overview.asciidoc deleted file mode 100644 index 108094e23b..0000000000 --- a/docs/overview.asciidoc +++ /dev/null @@ -1,38 +0,0 @@ -[[ruby_client]] -== Overview - -The `elasticsearch` http://rubygems.org/gems/elasticsearch[Rubygem] provides a low-level client for communicating with an {es} cluster, fully compatible with other official clients. - -More documentation is hosted in https://github.com/elastic/elasticsearch-ruby[Github] and http://rubydoc.info/gems/elasticsearch[RubyDoc]. - -Refer to the <> page for a step-by-step quick start with -the Ruby client. - -[discrete] -=== Features - -* Pluggable logging and tracing -* Pluggable connection selection strategies (round-robin, random, custom) -* Pluggable transport implementation, customizable and extendable -* Pluggable serializer implementation -* Request retries and dead connections handling -* Node reloading (based on cluster state) on errors or on demand -* Modular API implementation -* 100% REST API coverage - - -[discrete] -[[transport-api]] -=== Transport and API - -The `elasticsearch` gem combines two separate Rubygems: - -* https://github.com/elastic/elastic-transport-ruby/[`elastic-transport`] - provides an HTTP Ruby client for connecting to the {es} cluster. Refer to the documentation: <> - -* https://github.com/elastic/elasticsearch-ruby/tree/main/elasticsearch-api[`elasticsearch-api`] - provides a Ruby API for the {es} RESTful API. - -Please consult their respective documentation for configuration options and technical details. - -Notably, the documentation and comprehensive examples for all the API methods are contained in the source, and available online at http://rubydoc.info/gems/elasticsearch-api/Elasticsearch/API/Actions[Rubydoc]. - -Keep in mind, that for optimal performance, you should use an HTTP library which supports persistent ("keep-alive") HTTP connections. diff --git a/docs/rails.asciidoc b/docs/rails.asciidoc deleted file mode 100644 index d1c84e1b86..0000000000 --- a/docs/rails.asciidoc +++ /dev/null @@ -1,24 +0,0 @@ -[[ruby_on_rails]] -=== Ruby On Rails - -The `elasticsearch-rails` http://rubygems.org/gems/elasticsearch-rails[Rubygem] -provides features suitable for Ruby on Rails applications. - - -[discrete] -==== Features - -* Rake tasks for importing data from application models -* Integration with Rails' instrumentation framework -* Templates for generating example Rails application - - -[discrete] -==== Example applications - -You can generate a fully working example Ruby on Rails application with -templates provides. - -Please refer to the -https://github.com/elastic/elasticsearch-rails/tree/master/elasticsearch-rails[documentation] -for more information. diff --git a/docs/helpers/bulk-scroll.asciidoc b/docs/reference/Helpers.md similarity index 78% rename from docs/helpers/bulk-scroll.asciidoc rename to docs/reference/Helpers.md index 8d638bab65..67c7be3393 100644 --- a/docs/helpers/bulk-scroll.asciidoc +++ b/docs/reference/Helpers.md @@ -1,98 +1,93 @@ -[[Helpers]] -=== Bulk and Scroll helpers +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/Helpers.html +--- -The {es} Ruby client includes Bulk and Scroll helpers for working with results more efficiently. +# Bulk and Scroll helpers [Helpers] -[discrete] -==== Bulk helper +The {{es}} Ruby client includes Bulk and Scroll helpers for working with results more efficiently. -The Bulk API in Elasticsearch allows you to perform multiple indexing or deletion operations through a single API call, resulting in reduced overhead and improved indexing speed. The actions are specified in the request body using a newline delimited JSON (NDJSON) structure. In the Elasticsearch Ruby client, the `bulk` method supports several data structures as a parameter. You can use the Bulk API in an idiomatic way without concerns about payload formatting. Refer to <> for more information. +## Bulk helper [_bulk_helper] -The BulkHelper provides a better developer experience when using the Bulk API. At its simplest, you can send it a collection of hashes in an array, and it will bulk ingest them into {es}. +The Bulk API in Elasticsearch allows you to perform multiple indexing or deletion operations through a single API call, resulting in reduced overhead and improved indexing speed. The actions are specified in the request body using a newline delimited JSON (NDJSON) structure. In the Elasticsearch Ruby client, the `bulk` method supports several data structures as a parameter. You can use the Bulk API in an idiomatic way without concerns about payload formatting. Refer to [Bulk requests](/reference/examples.md#ex-bulk) for more information. + +The BulkHelper provides a better developer experience when using the Bulk API. At its simplest, you can send it a collection of hashes in an array, and it will bulk ingest them into {{es}}. To use the BulkHelper, require it in your code: -[source,ruby] ----- +```ruby require 'elasticsearch/helpers/bulk_helper' ----- +``` Instantiate a BulkHelper with a client, and an index: -[source,ruby] ----- + +```ruby client = Elasticsearch::Client.new bulk_helper = Elasticsearch::Helpers::BulkHelper.new(client, index) ----- +``` This helper works on the index you pass in during initialization, but you can change the index at any time in your code: -[source,ruby] ----- +```ruby bulk_helper.index = 'new_index' ----- +``` If you want to index a collection of documents, use the `ingest` method: -[source,ruby] ----- +```ruby documents = [ { name: 'document1', date: '2024-05-16' }, { name: 'document2', date: '2023-12-19' }, { name: 'document3', date: '2024-07-07' } ] bulk_helper.ingest(documents) ----- +``` -If you're ingesting a large set of data and want to separate the documents into smaller pieces before sending them to {es}, use the `slice` parameter. +If you’re ingesting a large set of data and want to separate the documents into smaller pieces before sending them to {{es}}, use the `slice` parameter. -[source,ruby] ----- +```ruby bulk_helper.ingest(documents, { slice: 2 }) ----- +``` This way the data will be sent in two different bulk requests. You can also include the parameters you would send to the Bulk API either in the query parameters or in the request body. The method signature is `ingest(docs, params = {}, body = {}, &block)`. Additionally, the method can be called with a block, that will provide access to the response object received from calling the Bulk API and the documents sent in the request: -[source,ruby] ----- +```ruby helper.ingest(documents) { |_, docs| puts "Ingested #{docs.count} documents" } ----- +``` You can update and delete documents with the BulkHelper too. To delete a set of documents, you can send an array of document ids: -[source,ruby] ----- +```ruby ids = ['shm0I4gB6LpJd9ljO9mY', 'sxm0I4gB6LpJd9ljO9mY', 'tBm0I4gB6LpJd9ljO9mY', 'tRm0I4gB6LpJd9ljO9mY', 'thm0I4gB6LpJd9ljO9mY', 'txm0I4gB6LpJd9ljO9mY', 'uBm0I4gB6LpJd9ljO9mY', 'uRm0I4gB6LpJd9ljO9mY', 'uhm0I4gB6LpJd9ljO9mY', 'uxm0I4gB6LpJd9ljO9mY'] helper.delete(ids) ----- +``` To update documents, you can send the array of documents with their respective ids: -[source,ruby] ----- + +```ruby documents = [ {name: 'updated name 1', id: 'AxkFJYgB6LpJd9ljOtr7'}, {name: 'updated name 2', id: 'BBkFJYgB6LpJd9ljOtr7'} ] helper.update(documents) ----- +``` -[discrete] -===== Ingest a JSON file + +### Ingest a JSON file [_ingest_a_json_file] `BulkHelper` also provides a helper to ingest data straight from a JSON file. By giving a file path as an input, the helper will parse and ingest the documents in the file: -[source,ruby] ----- +```ruby file_path = './data.json' helper.ingest_json(file_path) ----- +``` In cases where the array of data you want to ingest is not necessarily in the root of the JSON file, you can provide the keys to access the data, for example given the following JSON file: -[source,json] ----- +```json { "field": "value", "status": 200, @@ -107,56 +102,50 @@ In cases where the array of data you want to ingest is not necessarily in the ro ] } } ----- +``` The following is an example of the Ruby code to ingest the documents in the JSON above: -[source,ruby] ----- +```ruby bulk_helper.ingest_json(file_path, { keys: ['data', 'items'] }) ----- +``` + -[discrete] -==== Scroll helper +## Scroll helper [_scroll_helper] This helper provides an easy way to get results from a Scroll. To use the ScrollHelper, require it in your code: -[source,ruby] ----- +```ruby require 'elasticsearch/helpers/scroll_helper' ----- +``` Instantiate a ScrollHelper with a client, an index, and a body (with the scroll API parameters) which will be used in every following scroll request: -[source,ruby] ----- +```ruby client = Elasticsearch::Client.new scroll_helper = Elasticsearch::Helpers::ScrollHelper.new(client, index, body) ----- +``` There are two ways to get the results from a scroll using the helper. 1. You can iterate over a scroll using the methods in `Enumerable` such as `each` and `map`: -+ --- -[source,ruby] ----- -scroll_helper.each do |item| - puts item -end ----- --- + + ```ruby + scroll_helper.each do |item| + puts item + end + ``` + 2. You can fetch results by page, with the `results` function: -+ --- -[source,ruby] ----- -my_documents = [] -while !(documents = scroll_helper.results).empty? - my_documents << documents -end -scroll_helper.clear ----- --- + + ```ruby + my_documents = [] + while !(documents = scroll_helper.results).empty? + my_documents << documents + end + scroll_helper.clear + ``` + + diff --git a/docs/model.asciidoc b/docs/reference/activemodel_activerecord.md similarity index 55% rename from docs/model.asciidoc rename to docs/reference/activemodel_activerecord.md index 8f4da31f7c..8a143def32 100644 --- a/docs/model.asciidoc +++ b/docs/reference/activemodel_activerecord.md @@ -1,16 +1,16 @@ -[[activemodel_activerecord]] -=== ActiveModel / ActiveRecord +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/activemodel_activerecord.html +--- -The `elasticsearch-model` http://rubygems.org/gems/elasticsearch-model[Rubygem] -provides integration with Ruby domain objects ("models"), commonly found for -example, in Ruby on Rails applications. +# ActiveModel / ActiveRecord [activemodel_activerecord] -It uses the `elasticsearch` Rubygem as the client communicating with the {es} -cluster. +The `elasticsearch-model` [Rubygem](http://rubygems.org/gems/elasticsearch-model) provides integration with Ruby domain objects ("models"), commonly found for example, in Ruby on Rails applications. +It uses the `elasticsearch` Rubygem as the client communicating with the {{es}} cluster. -[discrete] -==== Features + +## Features [_features_2] * ActiveModel integration with adapters for ActiveRecord and Mongoid * Enumerable-based wrapper for search results @@ -18,44 +18,38 @@ cluster. * Convenience model methods such as `search`, `mapping`, `import`, etc * Support for Kaminari and WillPaginate pagination * Extension implemented via proxy object to shield model namespace from collisions -* Convenience methods for (re)creating the index, setting up mappings, indexing documents, ... +* Convenience methods for (re)creating the index, setting up mappings, indexing documents, …​ -[discrete] -==== Usage +## Usage [_usage] Add the library to your Gemfile: -[source,ruby] ------------------------------------- +```ruby gem 'elasticsearch-rails' ------------------------------------- +``` Include the extension module in your model class: -[source,ruby] ------------------------------------- +```ruby class Article < ActiveRecord::Base include Elasticsearch::Model end ------------------------------------- +``` Import some data and perform a search: -[source,ruby] ------------------------------------- +```ruby Article.import response = Article.search 'fox dog' response.took # => 3 ------------------------------------- +``` -It is possible to either return results as model instances, or decorated -documents from {es}, with the `records` and `results` methods, respectively: +It is possible to either return results as model instances, or decorated documents from {{es}}, with the `records` and `results` methods, respectively: -[source,ruby] ------------------------------------- +```ruby response.records.first # Article Load (0.4ms) SELECT "articles".* FROM "articles" WHERE ... => #

@@ -65,8 +59,7 @@ response.results.first._score response.results.first._source.title # => "Quick brown fox" ------------------------------------- +``` + +Consult the [documentation](https://github.com/elastic/elasticsearch-rails/tree/master/elasticsearch-model) for more information. -Consult the -https://github.com/elastic/elasticsearch-rails/tree/master/elasticsearch-model[documentation] -for more information. diff --git a/docs/advanced-config.asciidoc b/docs/reference/advanced-config.md similarity index 55% rename from docs/advanced-config.asciidoc rename to docs/reference/advanced-config.md index 916a8f84c3..a05d51340c 100644 --- a/docs/advanced-config.asciidoc +++ b/docs/reference/advanced-config.md @@ -1,14 +1,16 @@ -[[advanced-config]] -=== Advanced configuration +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/advanced-config.html +--- -The client supports many configurations options for setting up and managing -connections, configuring logging, customizing the transport library, and so on. +# Advanced configuration [advanced-config] -[discrete] -[[setting-hosts]] -==== Setting hosts +The client supports many configurations options for setting up and managing connections, configuring logging, customizing the transport library, and so on. -To connect to a specific {es} host: + +## Setting hosts [setting-hosts] + +To connect to a specific {{es}} host: ```ruby Elasticsearch::Client.new(host: 'search.myserver.com') @@ -32,12 +34,12 @@ Instead of strings, you can pass host information as an array of Hashes: Elasticsearch::Client.new(hosts: [ { host: 'myhost1', port: 8080 }, { host: 'myhost2', port: 8080 } ]) ``` -NOTE: When specifying multiple hosts, you might want to enable the -`retry_on_failure` or `retry_on_status` options to perform a failed request on -another node (refer to <>). +::::{note} +When specifying multiple hosts, you might want to enable the `retry_on_failure` or `retry_on_status` options to perform a failed request on another node (refer to [Retrying on Failures](#retry-failures)). +:::: + -Common URL parts – scheme, HTTP authentication credentials, URL prefixes, and so -on – are handled automatically: +Common URL parts – scheme, HTTP authentication credentials, URL prefixes, and so on – are handled automatically: ```ruby Elasticsearch::Client.new(url: 'https://username:password@api.server.org:4430/search') @@ -51,37 +53,25 @@ Elasticsearch::Client.new(urls: 'http://localhost:9200,http://localhost:9201') Another way to configure URLs is to export the `ELASTICSEARCH_URL` variable. -The client is automatically going to use a round-robin algorithm across the -hosts (unless you select or implement a different <>). +The client is automatically going to use a round-robin algorithm across the hosts (unless you select or implement a different [Connection Selector](#connection-selector)). -[discrete] -[[default-port]] -==== Default port +## Default port [default-port] -The default port is `9200`. Specify a port for your host(s) if they differ from -this default. +The default port is `9200`. Specify a port for your host(s) if they differ from this default. -If you are using Elastic Cloud, the default port is port `9243`. You must supply -your username and password separately, and optionally a port. Refer to -<>. +If you are using Elastic Cloud, the default port is port `9243`. You must supply your username and password separately, and optionally a port. Refer to [Elastic Cloud](/reference/connecting.md#auth-ec). -[discrete] -[[logging]] -==== Logging +## Logging [logging] -To log requests and responses to standard output with the default logger (an -instance of Ruby's `::Logger` class), set the log argument to true: +To log requests and responses to standard output with the default logger (an instance of Ruby’s `::Logger` class), set the log argument to true: ```ruby Elasticsearch::Client.new(log: true) ``` -You can also use https://github.com/elastic/ecs-logging-ruby[`ecs-logging`] -which is a set of libraries that enables you to transform your application logs -to structured logs that comply with the -https://www.elastic.co/guide/en/ecs/current/ecs-reference.html[Elastic Common Schema]. See <>. +You can also use [`ecs-logging`](https://github.com/elastic/ecs-logging-ruby) which is a set of libraries that enables you to transform your application logs to structured logs that comply with the [Elastic Common Schema](ecs://docs/reference/index.md). See [Elastic Common Schema (ECS)](/reference/ecs.md). To trace requests and responses in the Curl format, set the `trace` argument: @@ -91,11 +81,10 @@ Elasticsearch::Client.new(trace: true) You can customize the default logger or tracer: -[source,ruby] ------------------------------------- +```ruby client.transport.logger.formatter = proc { |s, d, p, m| "#{s}: #{m}\n" } client.transport.logger.level = Logger::INFO ------------------------------------- +``` Or, you can use a custom `::Logger` instance: @@ -105,8 +94,7 @@ Elasticsearch::Client.new(logger: Logger.new(STDERR)) You can pass the client any conforming logger implementation: -[source,ruby] ------------------------------------- +```ruby require 'logging' # https://github.com/TwP/logging/ log = Logging.logger['elasticsearch'] @@ -114,60 +102,42 @@ log.add_appenders Logging.appenders.stdout log.level = :info client = Elasticsearch::Client.new(logger: log) ------------------------------------- +``` -[discrete] -[[apm-integration]] -==== APM integration +## APM integration [apm-integration] -This client integrates seamlessly with Elastic APM via the Elastic APM Agent. It -automatically captures client requests if you are using the agent on your code. -If you're using `elastic-apm` v3.8.0 or up, you can set -`capture_elasticsearch_queries` to `true` in `config/elastic_apm.yml` to also -capture the body from requests in {es}. Refer to -https://github.com/elastic/elasticsearch-ruby/tree/main/docs/examples/apm[this example]. +This client integrates seamlessly with Elastic APM via the Elastic APM Agent. It automatically captures client requests if you are using the agent on your code. If you’re using `elastic-apm` v3.8.0 or up, you can set `capture_elasticsearch_queries` to `true` in `config/elastic_apm.yml` to also capture the body from requests in {{es}}. Refer to [this example](https://github.com/elastic/elasticsearch-ruby/tree/main/docs/examples/apm). -[discrete] -[[custom-http-headers]] -==== Custom HTTP Headers +## Custom HTTP Headers [custom-http-headers] -You can set a custom HTTP header on the client's initializer: +You can set a custom HTTP header on the client’s initializer: -[source,ruby] ------------------------------------- +```ruby client = Elasticsearch::Client.new( transport_options: { headers: {user_agent: "My App"} } ) ------------------------------------- +``` -You can also pass in `headers` as a parameter to any of the API Endpoints to set -custom headers for the request: +You can also pass in `headers` as a parameter to any of the API Endpoints to set custom headers for the request: ```ruby client.search(index: 'myindex', q: 'title:test', headers: {user_agent: "My App"}) ``` -[discrete] -[[x-opaque-id]] -==== Identifying running tasks with X-Opaque-Id +## Identifying running tasks with X-Opaque-Id [x-opaque-id] -The X-Opaque-Id header allows to track certain calls, or associate certain tasks -with the client that started them (refer to -https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html#_identifying_running_tasks[the documentation]). -To use this feature, you need to set an id for `opaque_id` on the client on each -request. Example: +The X-Opaque-Id header allows to track certain calls, or associate certain tasks with the client that started them (refer to [the documentation](https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-tasks)). To use this feature, you need to set an id for `opaque_id` on the client on each request. Example: -[source,ruby] ------------------------------------- +```ruby client = Elasticsearch::Client.new client.search(index: 'myindex', q: 'title:test', opaque_id: '123456') ------------------------------------- +``` The search request includes the following HTTP Header: @@ -175,15 +145,12 @@ The search request includes the following HTTP Header: X-Opaque-Id: 123456 ``` -You can also set a prefix for X-Opaque-Id when initializing the client. This is -prepended to the id you set before each request if you're using X-Opaque-Id. -Example: +You can also set a prefix for X-Opaque-Id when initializing the client. This is prepended to the id you set before each request if you’re using X-Opaque-Id. Example: -[source,ruby] ------------------------------------- +```ruby client = Elasticsearch::Client.new(opaque_id_prefix: 'eu-west1_') client.search(index: 'myindex', q: 'title:test', opaque_id: '123456') ------------------------------------- +``` The request includes the following HTTP Header: @@ -192,12 +159,9 @@ X-Opaque-Id: eu-west1_123456 ``` -[discrete] -[[setting-timeouts]] -==== Setting Timeouts +## Setting Timeouts [setting-timeouts] -For many operations in {es}, the default timeouts of HTTP libraries are too low. -To increase the timeout, you can use the `request_timeout` parameter: +For many operations in {{es}}, the default timeouts of HTTP libraries are too low. To increase the timeout, you can use the `request_timeout` parameter: ```ruby Elasticsearch::Client.new(request_timeout: 5*60) @@ -206,42 +170,30 @@ Elasticsearch::Client.new(request_timeout: 5*60) You can also use the `transport_options` argument documented below. -[discrete] -[[randomizing-hosts]] -==== Randomizing Hosts +## Randomizing Hosts [randomizing-hosts] -If you pass multiple hosts to the client, it rotates across them in a -round-robin fashion by default. When the same client would be running in -multiple processes (for example, in a Ruby web server such as Thin), it might -keep connecting to the same nodes "at once". To prevent this, you can randomize -the hosts collection on initialization and reloading: +If you pass multiple hosts to the client, it rotates across them in a round-robin fashion by default. When the same client would be running in multiple processes (for example, in a Ruby web server such as Thin), it might keep connecting to the same nodes "at once". To prevent this, you can randomize the hosts collection on initialization and reloading: ```ruby Elasticsearch::Client.new(hosts: ['localhost:9200', 'localhost:9201'], randomize_hosts: true) ``` -[discrete] -[[retry-failures]] -==== Retrying on Failures +## Retrying on Failures [retry-failures] -When the client is initialized with multiple hosts, it makes sense to retry a -failed request on a different host: +When the client is initialized with multiple hosts, it makes sense to retry a failed request on a different host: ```ruby Elasticsearch::Client.new(hosts: ['localhost:9200', 'localhost:9201'], retry_on_failure: true) ``` -By default, the client does not retry the request. You can specify how many -times to retry before it raises an exception by passing a number to -`retry_on_failure`: +By default, the client does not retry the request. You can specify how many times to retry before it raises an exception by passing a number to `retry_on_failure`: ```ruby Elasticsearch::Client.new(hosts: ['localhost:9200', 'localhost:9201'], retry_on_failure: 5) ``` -You can also use `retry_on_status` to retry when specific status codes are -returned: +You can also use `retry_on_status` to retry when specific status codes are returned: ```ruby Elasticsearch::Client.new(hosts: ['localhost:9200', 'localhost:9201'], retry_on_status: [502, 503]) @@ -259,23 +211,18 @@ You can also set a `delay_on_retry` value in milliseconds. This will add a delay Elasticsearch::Client.new(hosts: ['localhost:9200', 'localhost:9201'], retry_on_failure: 5, delay_on_retry: 1000) ``` -[discrete] -[[reload-hosts]] -==== Reloading Hosts -{es} dynamically discovers new nodes in the cluster by default. You can leverage -this in the client, and periodically check for new nodes to spread the load. +## Reloading Hosts [reload-hosts] -To retrieve and use the information from the -https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-info.html[Nodes Info API] -on every 10,000th request: +{{es}} dynamically discovers new nodes in the cluster by default. You can leverage this in the client, and periodically check for new nodes to spread the load. + +To retrieve and use the information from the [Nodes Info API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-info) on every 10,000th request: ```ruby Elasticsearch::Client.new(hosts: ['localhost:9200', 'localhost:9201'], reload_connections: true) ``` -You can pass a specific number of requests after which reloading should be -performed: +You can pass a specific number of requests after which reloading should be performed: ```ruby Elasticsearch::Client.new(hosts: ['localhost:9200', 'localhost:9201'], reload_connections: 1_000) @@ -287,38 +234,34 @@ To reload connections on failures, use: Elasticsearch::Client.new(hosts: ['localhost:9200', 'localhost:9201'], reload_on_failure: true) ``` -The reloading timeouts if not finished under 1 second by default. To change the -setting: +The reloading timeouts if not finished under 1 second by default. To change the setting: ```ruby Elasticsearch::Client.new(hosts: ['localhost:9200', 'localhost:9201'], sniffer_timeout: 3) ``` -NOTE: When using reloading hosts ("sniffing") together with authentication, pass -the scheme, user and password with the host info – or, for more clarity, in the -`http` options: +::::{note} +When using reloading hosts ("sniffing") together with authentication, pass the scheme, user and password with the host info – or, for more clarity, in the `http` options: +:::: + -[source,ruby] ------------------------------------- +```ruby Elasticsearch::Client.new( host: 'localhost:9200', http: { scheme: 'https', user: 'U', password: 'P' }, reload_connections: true, reload_on_failure: true ) ------------------------------------- +``` -[discrete] -[[connection-selector]] -==== Connection Selector +## Connection Selector [connection-selector] By default, the client rotates the connections in a round-robin fashion, using the `Elastic::Transport::Transport::Connections::Selector::RoundRobin` strategy. -You can implement your own strategy to customize the behaviour. For example, let's have a "rack aware" strategy, which prefers the nodes with a specific attribute. The strategy uses the other nodes, only when these are unavailable: +You can implement your own strategy to customize the behaviour. For example, let’s have a "rack aware" strategy, which prefers the nodes with a specific attribute. The strategy uses the other nodes, only when these are unavailable: -[source,ruby] ------------------------------------- +```ruby class RackIdSelector include Elastic::Transport::Transport::Connections::Selector::Base @@ -331,24 +274,19 @@ class RackIdSelector end Elasticsearch::Client.new hosts: ['x1.search.org', 'x2.search.org'], selector_class: RackIdSelector ------------------------------------- +``` -[discrete] -[[serializer-implementations]] -==== Serializer Implementations +## Serializer Implementations [serializer-implementations] -By default, the https://rubygems.org/gems/multi_json[MultiJSON] library is used as the serializer implementation, and it picks up the "right" adapter based on gems available. +By default, the [MultiJSON](https://rubygems.org/gems/multi_json) library is used as the serializer implementation, and it picks up the "right" adapter based on gems available. The serialization component is pluggable, though, so you can write your own by including the `Elastic::Transport::Transport::Serializer::Base` module, implementing the required contract, and passing it to the client as the `serializer_class` or `serializer` parameter. -[discrete] -[[exception-handling]] -==== Exception Handling +## Exception Handling [exception-handling] -The library defines a -https://github.com/elastic/elastic-transport-ruby/blob/main/lib/elastic/transport/transport/errors.rb[number of exception classes] for various client and server errors, as well as unsuccessful HTTP responses, making it possible to rescue specific exceptions with desired granularity. +The library defines a [number of exception classes](https://github.com/elastic/elastic-transport-ruby/blob/main/lib/elastic/transport/transport/errors.rb) for various client and server errors, as well as unsuccessful HTTP responses, making it possible to rescue specific exceptions with desired granularity. The highest-level exception is `Elastic::Transport::Transport::Error` and is raised for any generic client or server errors. @@ -357,3 +295,4 @@ The highest-level exception is `Elastic::Transport::Transport::Error` and is rai As an example for response-specific errors, a 404 response status raises an `Elastic::Transport::Transport::Errors::NotFound` exception. Finally, `Elastic::Transport::Transport::SnifferTimeoutError` is raised when connection reloading ("sniffing") times out. + diff --git a/docs/api.asciidoc b/docs/reference/api.md similarity index 68% rename from docs/api.asciidoc rename to docs/reference/api.md index 85386c8122..261413b45c 100644 --- a/docs/api.asciidoc +++ b/docs/reference/api.md @@ -1,52 +1,49 @@ -[[api]] -=== Elasticsearch API +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/api.html +--- -The `elasticsearch-api` library provides a Ruby implementation of the https://www.elastic.co/elastic-stack/[Elasticsearch] REST API. +# Elasticsearch API [api] -[discrete] -[[api-install]] -==== Installation +The `elasticsearch-api` library provides a Ruby implementation of the [Elasticsearch](https://www.elastic.co/elastic-stack/) REST API. -Install the package from https://rubygems.org[Rubygems]: -[source,bash] ----------------------------- +## Installation [api-install] + +Install the package from [Rubygems](https://rubygems.org): + +```bash gem install elasticsearch-api ----------------------------- +``` -To use an unreleased version, either add it to your `Gemfile` for https://bundler.io/[Bundler]: +To use an unreleased version, either add it to your `Gemfile` for [Bundler](https://bundler.io/): -[source,bash] ----------------------------- +```bash gem 'elasticsearch-api', git: 'git://github.com/elasticsearch/elasticsearch-ruby.git' ----------------------------- +``` or install it from a source code checkout: -[source,bash] ----------------------------- +```bash git clone https://github.com/elasticsearch/elasticsearch-ruby.git cd elasticsearch-ruby/elasticsearch-api bundle install rake install ----------------------------- +``` + + +## Example usage [api-example-usage] -[discrete] -[[api-example-usage]] -==== Example usage +The library is designed as a group of standalone Ruby modules, which can be mixed into a class providing connection to Elasticsearch — an Elasticsearch client. -The library is designed as a group of standalone Ruby modules, which can be mixed into a class -providing connection to Elasticsearch -- an Elasticsearch client. -[discrete] -===== Usage with the `elasticsearch` gem +### Usage with the `elasticsearch` gem [_usage_with_the_elasticsearch_gem] -**When you use the client from the https://github.com/elasticsearch/elasticsearch-ruby[`elasticsearch-ruby`] client, the library modules have been already included**, so you just call the API methods. +**When you use the client from the [`elasticsearch-ruby`](https://github.com/elasticsearch/elasticsearch-ruby) client, the library modules have been already included**, so you just call the API methods. The response will be an `Elasticsearch::API::Response` object which wraps an `Elasticsearch::Transport::Transport::Response` object. It provides `body`, `status` and `headers` methods, but you can treat is as a hash and access the keys directly. -[source,rb] ----------------------------- +```rb require 'elasticsearch' client = Elasticsearch::Client.new @@ -91,22 +88,21 @@ client.search(index: 'myindex', body: { query: { match: { title: 'test' } } }) "content-encoding"=>"gzip", "content-length"=>"188"}, @status=200>> ----------------------------- +``` -Full documentation and examples are included as RDoc annotations in the source code and available online at . +Full documentation and examples are included as RDoc annotations in the source code and available online at [http://rubydoc.info/gems/elasticsearch-api](http://rubydoc.info/gems/elasticsearch-api). -[discrete] -===== Usage with a custom client -When you want to mix the library with your own client, it must conform to the following _contract_: +### Usage with a custom client [_usage_with_a_custom_client] + +When you want to mix the library with your own client, it must conform to the following *contract*: * It responds to a `perform_request(method, path, params, body, headers)` method, * the method returns an object with `status`, `body` and `headers` methods. -A simple client could look like this (_with a dependency on `active_support` to parse the query params_): +A simple client could look like this (*with a dependency on `active_support` to parse the query params*): -[source,rb] ----------------------------- +```rb require 'multi_json' require 'faraday' require 'elasticsearch/api' @@ -151,17 +147,14 @@ p client.cluster.health p client.index(index: 'myindex', id: 'custom', body: { title: "Indexing from my client" }) # --> PUT myindex/mytype/custom {} {:title=>"Indexing from my client"} # => "{"ok":true, ... }" ----------------------------- +``` + -[discrete] -===== Using JSON Builders +### Using JSON Builders [_using_json_builders] -Instead of passing the `:body` argument as a Ruby _Hash_, you can pass it as a _String_, potentially -taking advantage of JSON builders such as https://github.com/rails/jbuilder[JBuilder] or -https://github.com/bsiggelkow/jsonify[Jsonify]: +Instead of passing the `:body` argument as a Ruby *Hash*, you can pass it as a *String*, potentially taking advantage of JSON builders such as [JBuilder](https://github.com/rails/jbuilder) or [Jsonify](https://github.com/bsiggelkow/jsonify): -[source,rb] ----------------------------- +```rb require 'jbuilder' query = Jbuilder.encode do |json| @@ -181,16 +174,14 @@ client.search(index: 'myindex', body: query) # 2013-06-25 09:56:05 +0200: > {"query":{"match":{"title":{"query":"test 1","operator":"and"}}}} # ... # => {"took"=>21, ..., "hits"=>{"total"=>1, "hits"=>[{ "_source"=>{"title"=>"Test 1", ...}}]}} ----------------------------- +``` -[discrete] -===== Using Hash Wrappers -For a more comfortable access to response properties, you may wrap it in one of the _Hash_ "object access" -wrappers, such as https://github.com/intridea/hashie[`Hashie::Mash`]: +### Using Hash Wrappers [_using_hash_wrappers] -[source,rb] ----------------------------- +For a more comfortable access to response properties, you may wrap it in one of the *Hash* "object access" wrappers, such as [`Hashie::Mash`](https://github.com/intridea/hashie): + +```rb require 'hashie' response = client.search( @@ -205,16 +196,15 @@ mash = Hashie::Mash.new(response) mash.hits.hits.first._source.title # => 'Test' ----------------------------- +``` + -[discrete] -===== Using a Custom JSON Serializer +### Using a Custom JSON Serializer [_using_a_custom_json_serializer] -The library uses the https://rubygems.org/gems/multi_json/[MultiJson] gem by default but allows you to set a custom JSON library, provided it uses the standard `load/dump` interface: +The library uses the [MultiJson](https://rubygems.org/gems/multi_json/) gem by default but allows you to set a custom JSON library, provided it uses the standard `load/dump` interface: -[source,rb] ----------------------------- +```rb Elasticsearch::API.settings[:serializer] = JrJackson::Json Elasticsearch::API.serializer.dump({foo: 'bar'}) # => {"foo":"bar"} ----------------------------- +``` diff --git a/docs/reference/basic-config.md b/docs/reference/basic-config.md new file mode 100644 index 0000000000..f7bd47df7a --- /dev/null +++ b/docs/reference/basic-config.md @@ -0,0 +1,37 @@ +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/basic-config.html +--- + +# Basic configuration [basic-config] + +The table below contains the most important initialization parameters that you can use. + +| | | | +| --- | --- | --- | +| **Parameter** | **Data type** | **Description** | +| `adapter` | Symbol | A specific adapter for Faraday (for example, `:patron`). | +| `api_key` | String, Hash | For API key Authentication. Either the base64 encoding of `id` and `api_key` joined by a colon as a string, or a hash with the `id` and `api_key` values. | +| `compression` | Boolean | Whether to compress requests. Gzip compression is used. Defaults to `false`. Responses are automatically inflated if they are compressed. If a custom transport object is used, it must handle the request compression and response inflation. | +| `enable_meta_header` | Boolean | Whether to enable sending the meta data header to Cloud. Defaults to `true`. | +| `hosts` | String, Array | Single host passed as a string or hash, or multiple hosts passed as an array; `host` or `url` keys are also valid. | +| `log` | Boolean | Whether to use the default logger. Disabled by default. | +| `logger` | Object | An instance of a Logger-compatible object. | +| `opaque_id_prefix` | String | Sets a prefix for X-Opaque-Id when initializing the client. This is prepended to the id you set before each request if you’re using X-Opaque-Id. | +| `opentelemetry_tracer_provider` | `OpenTelemetry::Trace::TracerProvider` | An explicit TracerProvider to use instead of the global one with OpenTelemetry. This enables better dependency injection and simplifies testing. | +| `randomize_hosts` | Boolean | Whether to shuffle connections on initialization and reload. Defaults to `false`. | +| `reload_connections` | Boolean, Number | Whether to reload connections after X requests. Defaults to `false`. | +| `reload_on_failure` | Boolean | Whether to reload connections after failure. Defaults to `false`. | +| `request_timeout` | Integer | The request timeout to be passed to transport in options. | +| `resurrect_after` | Integer | Specifies after how many seconds a dead connection should be tried again. | +| `retry_on_failure` | Boolean, Number | Whether to retry X times when request fails before raising and exception. Defaults to `false`. | +| `retry_on_status` | Array, Number | Specifies which status code needs to be returned to retry. | +| `selector` | Constant | An instance of selector strategy implemented with {Elastic::Transport::Transport::Connections::Selector::Base}. | +| `send_get_body_as` | String | Specifies the HTTP method to use for GET requests with a body. Defaults to `GET`. | +| `serializer_class` | Constant | Specifies a serializer class to use. It is initialized by the transport and passed the transport instance. | +| `sniffer_timeout` | Integer | Specifies the timeout for reloading connections in seconds. Defaults to `1`. | +| `trace` | Boolean | Whether to use the default tracer. Disabled by default. | +| `tracer` | Object | Specifies an instance of a Logger-compatible object. | +| `transport` | Object | Specifies a transport instance. | +| `transport_class` | Constant | Specifies a transport class to use. It is initialized by the client and passed hosts and all arguments. | +| `transport_options` | Hash | Specifies the options to be passed to the `Faraday::Connection` constructor. | diff --git a/docs/reference/client-helpers.md b/docs/reference/client-helpers.md new file mode 100644 index 0000000000..72220c37b7 --- /dev/null +++ b/docs/reference/client-helpers.md @@ -0,0 +1,14 @@ +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/client-helpers.html +--- + +# Client helpers [client-helpers] + +The Ruby client includes the following helpers: + +* [Bulk and Scroll helpers](/reference/Helpers.md) +* [ES|QL](/reference/esql.md) + + + diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md new file mode 100644 index 0000000000..fdebc05c75 --- /dev/null +++ b/docs/reference/configuration.md @@ -0,0 +1,14 @@ +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/ruby-config.html +--- + +# Configuration [ruby-config] + +This page contains information about how to configure the Ruby client tailored to your needs. Almost every aspect of the client is configurable. However, in most cases you only need to set a couple of parameters. + +* [Basic configuration](/reference/basic-config.md) +* [Advanced configuration](/reference/advanced-config.md) + + + diff --git a/docs/connecting.asciidoc b/docs/reference/connecting.md similarity index 57% rename from docs/connecting.asciidoc rename to docs/reference/connecting.md index 80e2acba63..8a75793639 100644 --- a/docs/connecting.asciidoc +++ b/docs/reference/connecting.md @@ -1,34 +1,28 @@ -[[connecting]] -== Connecting +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/connecting.html +--- -This page contains the information you need to connect and use the Client with -{es}. +# Connecting [connecting] -**On this page** +This page contains the information you need to connect and use the Client with {{es}}. -* <> -* <> -* <> -* <> +## Authentication [client-auth] -[discrete] -[[client-auth]] -=== Authentication +This document contains code snippets to show you how to connect to various {{es}} providers. -This document contains code snippets to show you how to connect to various {es} providers. -[discrete] -[[auth-ec]] -==== Elastic Cloud +### Elastic Cloud [auth-ec] -If you are using https://www.elastic.co/cloud[Elastic Cloud], the client offers an easy way to connect to it. You need the Cloud ID that you can find in the cloud console, then your username and password. +If you are using [Elastic Cloud](https://www.elastic.co/cloud), the client offers an easy way to connect to it. You need the Cloud ID that you can find in the cloud console, then your username and password. -image::images/cloud_id.png["Cloud ID"] +:::{image} ../images/cloud_id.png +:alt: Cloud ID +::: Once you have collected the Cloud ID you can use the client to connect to your Elastic Cloud instance, as follows: -[source,ruby] ------------------------------------- +```ruby require 'elasticsearch' client = Elasticsearch::Client.new( @@ -36,55 +30,56 @@ client = Elasticsearch::Client.new( user: '', password: '', ) ------------------------------------- +``` You can also connect to the Cloud by using API Key authentication. You can generate an `API key` in the `Management` page under the section `Security`. -image::images/cloud_api_key.png["API key"] +:::{image} ../images/cloud_api_key.png +:alt: API key +::: When you click on `Create API key` you can choose a name and set the other options (eg. restrict privileges, expire after time, etc). -image::images/api_key_name.png["Choose an API name"] +:::{image} ../images/api_key_name.png +:alt: Choose an API name +::: -After this step you will get the `API key` in the API keys page. +After this step you will get the `API key` in the API keys page. -image::images/cloud_api_key.png["API key"] +:::{image} ../images/cloud_api_key.png +:alt: API key +::: **IMPORTANT**: you need to copy and store the `API key` in a secure place, since you will not be able to view it again in Elastic Cloud. -Once you have collected the `Cloud ID` and the `API key` you can use the client -to connect to your Elastic Cloud instance, as follows: +Once you have collected the `Cloud ID` and the `API key` you can use the client to connect to your Elastic Cloud instance, as follows: -[source,ruby] ------------------------------------- +```ruby client = Elasticsearch::Client.new( cloud_id: '', api_key: '' ) ------------------------------------- +``` If you create the API Key through the dev console or the REST API, you may get instead a pair of `id` and `APIKey` values. The client also accepts a Hash for the `api_key` parameter, so you can pass in these values and it will encode the API Key internally: -[source,ruby] ------------------------------------- +```ruby client = Elasticsearch::Client.new( cloud_id: '', api_key: {id: '', api_key: ''} ) ------------------------------------- +``` -[discrete] -[[connect-self-managed]] -=== Connecting to a self-managed cluster -{es} 8.0 offers security by default, that means authentication and TLS are enabled. +## Connecting to a self-managed cluster [connect-self-managed] -To connect to the {es} cluster you’ll need to configure the Ruby {es} client to use HTTPS with the generated CA certificate in order to make requests successfully. +{{es}} 8.0 offers security by default, that means authentication and TLS are enabled. -If you’re just getting started with {es} we recommend reading the documentation on configuring and starting {es} to ensure your cluster is running as expected. +To connect to the {{es}} cluster you’ll need to configure the Ruby {{es}} client to use HTTPS with the generated CA certificate in order to make requests successfully. -When you start {es} for the first time you’ll see a distinct block like the one below in the output from {es} (you may have to scroll up if it’s been a while): +If you’re just getting started with {{es}} we recommend reading the documentation on configuring and starting {{es}} to ensure your cluster is running as expected. +When you start {{es}} for the first time you’ll see a distinct block like the one below in the output from {{es}} (you may have to scroll up if it’s been a while): ```sh ---------------------------------------------------------------- @@ -105,31 +100,25 @@ Note down the `elastic` user password and HTTP CA fingerprint for the next secti Depending on the circumstances there are two options for verifying the HTTPS connection, either verifying with the CA certificate itself or via the HTTP CA certificate fingerprint. -[discrete] -[[ca-certificates]] -==== Verifying HTTPS with CA certificates +### Verifying HTTPS with CA certificates [ca-certificates] -The generated root CA certificate can be found in the `certs` directory in your {es} config location (`$ES_CONF_PATH/certs/http_ca.crt`). If you're running {es} in Docker there is https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html[additional documentation for retrieving the CA certificate]. +The generated root CA certificate can be found in the `certs` directory in your {{es}} config location (`$ES_CONF_PATH/certs/http_ca.crt`). If you’re running {{es}} in Docker there is [additional documentation for retrieving the CA certificate](docs-content://deploy-manage/deploy/self-managed/install-elasticsearch-with-docker.md). Once you have the `http_ca.crt` file somewhere accessible pass the path to the client via `ca_certs`: -[source,ruby] ------------------------------------- +```ruby client = Elasticsearch::Client.new( host: "https://elastic/#{ELASTIC_PASSWORD}@localhost:9200", transport_options: { ssl: { ca_path: CERT_DIR } } ) ------------------------------------- +``` -[discrete] -[[ca-fingerprint]] -==== Verifying HTTPS with certificate fingerprints +### Verifying HTTPS with certificate fingerprints [ca-fingerprint] -This method of verifying the HTTPS connection takes advantage of the certificate fingerprint value noted down earlier. Take this SHA256 fingerprint value and pass it to the Ruby {es} client via `ca_fingerprint`: +This method of verifying the HTTPS connection takes advantage of the certificate fingerprint value noted down earlier. Take this SHA256 fingerprint value and pass it to the Ruby {{es}} client via `ca_fingerprint`: -[source,ruby] ------------------------------------- +```ruby # Colons and uppercase/lowercase don't matter when using # the 'ca_fingerprint' parameter CERT_FINGERPRINT = '64F2593F...' @@ -142,77 +131,65 @@ client = Elasticsearch::Client.new( transport_options: { ssl: { verify: false } }, ca_fingerprint: CERT_FINGERPRINT ) ------------------------------------- +``` The verification will be run once per connection. - The certificate fingerprint can be calculated using `openssl x509` with the certificate file: -[source,sh] ----- +```sh openssl x509 -fingerprint -sha256 -noout -in /path/to/http_ca.crt ----- +``` -If you don't have access to the generated CA file from {es} you can use the following script to output the root CA fingerprint of the {es} instance with `openssl s_client`: +If you don’t have access to the generated CA file from {{es}} you can use the following script to output the root CA fingerprint of the {{es}} instance with `openssl s_client`: -[source,sh] ----- +```sh # Replace the values of 'localhost' and '9200' to the # corresponding host and port values for the cluster. openssl s_client -connect localhost:9200 -servername localhost -showcerts /dev/null \ | openssl x509 -fingerprint -sha256 -noout -in /dev/stdin ----- +``` The output of `openssl x509` will look something like this: -[source,sh] ----- +```sh SHA256 Fingerprint=A5:2D:D9:35:11:E8:C6:04:5E:21:F1:66:54:B7:7C:9E:E0:F3:4A:EA:26:D9:F4:03:20:B5:31:C4:74:67:62:28 ----- - +``` +### API Key authentication [auth-api-key] -[discrete] -[[auth-api-key]] -==== API Key authentication +You can also use [ApiKey](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-create-api-key) authentication. -You can also use https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html[ApiKey] authentication. +::::{note} +If you provide both basic authentication credentials and the ApiKey configuration, the ApiKey takes precedence. +:::: -NOTE: If you provide both basic authentication credentials and the ApiKey configuration, the ApiKey takes precedence. -[source,ruby] ------------------------------------- +```ruby Elasticsearch::Client.new( host: host, transport_options: transport_options, api_key: credentials ) ------------------------------------- +``` -Where credentials is either the base64 encoding of `id` and `api_key` joined by -a colon or a hash with the `id` and `api_key`: +Where credentials is either the base64 encoding of `id` and `api_key` joined by a colon or a hash with the `id` and `api_key`: -[source,ruby] ------------------------------------- +```ruby Elasticsearch::Client.new( host: host, transport_options: transport_options, api_key: {id: 'my_id', api_key: 'my_api_key'} ) ------------------------------------- +``` -[discrete] -[[auth-basic]] -==== Basic authentication +### Basic authentication [auth-basic] -You can pass the authentication credentials, scheme and port in the host -configuration hash: +You can pass the authentication credentials, scheme and port in the host configuration hash: -[source,ruby] ------------------------------------- +```ruby client = Elasticsearch::Client.new( hosts: [ @@ -225,36 +202,31 @@ client = Elasticsearch::Client.new( } ] ) ------------------------------------- +``` Or use the common URL format: -[source,ruby] ------------------------------------- +```ruby client = Elasticsearch::Client.new(url: 'https://username:password@localhost:9200/') ------------------------------------- +``` -To pass a custom certificate for SSL peer verification to Faraday-based clients, -use the `transport_options` option: +To pass a custom certificate for SSL peer verification to Faraday-based clients, use the `transport_options` option: -[source,ruby] ------------------------------------- +```ruby Elasticsearch::Client.new( url: 'https://username:password@localhost:9200/', transport_options: { ssl: { ca_file: '/path/to/http_ca.crt' } } ) ------------------------------------- +``` + -[discrete] -[[client-usage]] -=== Usage +## Usage [client-usage] The following snippet shows an example of using the Ruby client: -[source,ruby] ------------------------------------- +```ruby require 'elasticsearch' client = Elasticsearch::Client.new log: true @@ -266,20 +238,17 @@ client.index(index: 'my-index', id: 1, body: { title: 'Test' }) client.indices.refresh(index: 'my-index') client.search(index: 'my-index', body: { query: { match: { title: 'test' } } }) ------------------------------------- +``` + +## Using the Client in a Function-as-a-Service Environment [client-faas] -[discrete] -[[client-faas]] -=== Using the Client in a Function-as-a-Service Environment +This section illustrates the best practices for leveraging the {{es}} client in a Function-as-a-Service (FaaS) environment. The most influential optimization is to initialize the client outside of the function, the global scope. This practice does not only improve performance but also enables background functionality as – for example – sniffing. The following examples provide a skeleton for the best practices. -This section illustrates the best practices for leveraging the {es} client in a Function-as-a-Service (FaaS) environment. The most influential optimization is to initialize the client outside of the function, the global scope. This practice does not only improve performance but also enables background functionality as – for example – sniffing. The following examples provide a skeleton for the best practices. -[discrete] -==== GCP Cloud Functions +### GCP Cloud Functions [_gcp_cloud_functions] -[source,ruby] ------------------------------------- +```ruby require 'functions_framework' require 'elasticsearch' @@ -304,13 +273,12 @@ FunctionsFramework.http "hello_world" do |request| } ) end ------------------------------------- +``` -[discrete] -==== AWS Lambda -[source,ruby] ------------------------------------- +### AWS Lambda [_aws_lambda] + +```ruby require 'elasticsearch' def client @@ -336,17 +304,16 @@ def lambda_handler(event:, context:) } ) end ------------------------------------- +``` Resources used to assess these recommendations: -* https://cloud.google.com/functions/docs/bestpractices/tips#use_global_variables_to_reuse_objects_in_future_invocations[GCP Cloud Functions: Tips & Tricks] -* https://docs.aws.amazon.com/lambda/latest/dg/best-practices.html[Best practices for working with AWS Lambda functions] +* [GCP Cloud Functions: Tips & Tricks](https://cloud.google.com/functions/docs/bestpractices/tips#use_global_variables_to_reuse_objects_in_future_invocations) +* [Best practices for working with AWS Lambda functions](https://docs.aws.amazon.com/lambda/latest/dg/best-practices.md) + -[discrete] -[[client-comp]] -=== Enabling the Compatibility Mode +## Enabling the Compatibility Mode [client-comp] The Elasticsearch server version 8.0 is introducing a new compatibility mode that allows you a smoother upgrade experience from 7 to 8. In a nutshell, you can use the latest 7.x Elasticsearch client with an 8.x Elasticsearch server, giving more room to coordinate the upgrade of your codebase to the next major version. -If you want to leverage this functionality, please make sure that you are using the latest 7.x client and set the environment variable `ELASTIC_CLIENT_APIVERSIONING` to `true`. The client is handling the rest internally. For every 8.0 and beyond client, you're all set! The compatibility mode is enabled by default. +If you want to leverage this functionality, please make sure that you are using the latest 7.x client and set the environment variable `ELASTIC_CLIENT_APIVERSIONING` to `true`. The client is handling the rest internally. For every 8.0 and beyond client, you’re all set! The compatibility mode is enabled by default. diff --git a/docs/reference/dsl.md b/docs/reference/dsl.md new file mode 100644 index 0000000000..af686223d1 --- /dev/null +++ b/docs/reference/dsl.md @@ -0,0 +1,11 @@ +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/dsl.html +--- + +# Elasticsearch DSL [dsl] + +The [elasticsearch-dsl](https://github.com/elastic/elasticsearch-dsl-ruby) gem provides a Ruby API for the [Elasticsearch Query DSL](https://www.elasticsearch.com/guide/en/elasticsearch/reference/current/query-dsl.md). The library allows to programmatically build complex search definitions for {{es}} in Ruby, which are translated to Hashes, and ultimately, JSON, the language of {{es}}. + +See [the README](https://github.com/elastic/elasticsearch-dsl-ruby#elasticsearchdsl) for more information. + diff --git a/docs/reference/ecs.md b/docs/reference/ecs.md new file mode 100644 index 0000000000..65100ebe4a --- /dev/null +++ b/docs/reference/ecs.md @@ -0,0 +1,37 @@ +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/ecs.html +--- + +# Elastic Common Schema (ECS) [ecs] + +The [Elastic Common Schema (ECS)][Elastic Common Schema (ECS)](ecs://docs/reference/index.md)) is an open source format that defines a common set of fields to be used when storing event data like logs in Elasticsearch. + +You can use the library [ecs-logging](https://github.com/elastic/ecs-logging-ruby) which is a set of libraries that enables you to transform your application logs to structured logs that comply with the ECS format. + +Add this line to your application’s Gemfile: + +```ruby +gem 'ecs-logging' +``` + +Then execute `bundle install`. Or install from the command line yourself: + +```ruby +$ gem install ecs-logging +``` + +Then configure the client to use the logger: + +```ruby +require 'ecs_logging/logger' +require 'elasticsearch' + +logger = EcsLogging::Logger.new($stdout) +client = Elasticsearch::Client.new(logger: logger) +> client.info +{"@timestamp":"2022-07-12T05:31:18.590Z","log.level":"INFO","message":"GET http://localhost:9200/ [status:200, request:0.009s, query:n/a]","ecs.version":"1.4.0"}... +``` + +See [ECS Logging Ruby Reference](ecs-logging-ruby://docs/reference/index.md) for more information on how to configure the logger. + diff --git a/docs/helpers/esql.asciidoc b/docs/reference/esql.md similarity index 72% rename from docs/helpers/esql.asciidoc rename to docs/reference/esql.md index 9a310911b5..6fea4bcdd9 100644 --- a/docs/helpers/esql.asciidoc +++ b/docs/reference/esql.md @@ -1,36 +1,29 @@ -[[esql]] -=== ES|QL in the Ruby client -++++ -ES|QL -++++ +--- +navigation_title: "ES|QL" +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/esql.html +--- -This page helps you understand and use {ref}/esql.html[ES|QL] in the -Ruby client. +# ES|QL in the Ruby client [esql] + + +This page helps you understand and use [ES|QL](docs-content://explore-analyze/query-filter/languages/esql.md) in the Ruby client. There are two ways to use ES|QL in the Ruby client: -* Use the Elasticsearch {es-docs}/esql-apis.html[ES|QL API] directly: This -is the most flexible approach, but it's also the most complex because you must handle -results in their raw form. You can choose the precise format of results, -such as JSON, CSV, or text. -* Use the Ruby ES|QL helper: The helper maps the raw response to an object that's -more readily usable by your application. +* Use the Elasticsearch [ES|QL API](https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-esql) directly: This is the most flexible approach, but it’s also the most complex because you must handle results in their raw form. You can choose the precise format of results, such as JSON, CSV, or text. +* Use the Ruby ES|QL helper: The helper maps the raw response to an object that’s more readily usable by your application. -[discrete] -[[esql-how-to]] -==== ES|QL API +## ES|QL API [esql-how-to] -The {es-docs}/esql-query-api.html[ES|QL query API] allows you to specify how -results should be returned. You can choose a -{es-docs}/esql-rest.html#esql-rest-format[response format] such as CSV, text, or -JSON, then fine-tune it with parameters like column separators and locale. +The [ES|QL query API](https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-esql) allows you to specify how results should be returned. You can choose a [response format](docs-content://explore-analyze/query-filter/languages/esql-rest.md#esql-rest-format) such as CSV, text, or JSON, then fine-tune it with parameters like column separators and locale. By default, the `query` API returns a Hash response with `columns` and `values`: -[[esql-query]] -[source,ruby] ----- +$$$esql-query$$$ + +```ruby query = <>, the helper returns -the following: +The helper returns an array of hashes with the columns as keys and the respective values. Using the [preceding example](#esql-query), the helper returns the following: -[source,ruby] ----- +```ruby response = Elasticsearch::Helpers::ESQLHelper.query(client, query) puts response @@ -87,15 +73,11 @@ puts response {"duration_ms"=>1.2, "message"=>"Disconnected", "event.duration"=>1232382, "client.ip"=>"172.21.0.5", "@timestamp"=>"2023-10-23T13:33:34.937Z"} {"duration_ms"=>0.7, "message"=>"Connection error", "event.duration"=>725448, "client.ip"=>"172.21.3.15", "@timestamp"=>"2023-10-23T13:51:54.732Z"} {"duration_ms"=>8.3, "message"=>"Connection error", "event.duration"=>8268153, "client.ip"=>"172.21.3.15", "@timestamp"=>"2023-10-23T13:52:55.015Z"} ----- +``` -Additionally, you can transform the data in the response by passing in a Hash -of `column => Proc` values. You could use this for example to convert -'@timestamp' into a DateTime object. Pass in a Hash to `query` as a `parser` -defining a `Proc` for each value you'd like to parse: +Additionally, you can transform the data in the response by passing in a Hash of `column => Proc` values. You could use this for example to convert *@timestamp* into a DateTime object. Pass in a Hash to `query` as a `parser` defining a `Proc` for each value you’d like to parse: -[source,ruby] ----- +```ruby require 'elasticsearch/helpers/esql_helper' parser = { @@ -104,12 +86,11 @@ parser = { response = Elasticsearch::Helpers::ESQLHelper.query(client, query, parser: parser) response.first['@timestamp'] # ----- +``` You can pass in as many Procs as there are columns in the response. For example: -[source,ruby] ----- +```ruby parser = { '@timestamp' => Proc.new { |t| DateTime.parse(t) }, 'client.ip' => Proc.new { |i| IPAddr.new(i) }, @@ -125,4 +106,5 @@ puts response {"duration_ms"=>1.2, "message"=>"Disconnected", "event.duration"=>"1232382", "client.ip"=>#, "@timestamp"=>#} {"duration_ms"=>0.7, "message"=>"Connection error", "event.duration"=>"725448", "client.ip"=>#, "@timestamp"=>#} {"duration_ms"=>8.3, "message"=>"Connection error", "event.duration"=>"8268153", "client.ip"=>#, "@timestamp"=>#} ----- +``` + diff --git a/docs/examples.asciidoc b/docs/reference/examples.md similarity index 82% rename from docs/examples.asciidoc rename to docs/reference/examples.md index 22e9619505..75e850cfbc 100644 --- a/docs/examples.asciidoc +++ b/docs/reference/examples.md @@ -1,26 +1,26 @@ -[[examples]] -== Examples +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/examples.html +--- -Below you can find examples of how to use the most frequently called APIs with -the Ruby client. +# Examples [examples] -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> +Below you can find examples of how to use the most frequently called APIs with the Ruby client. +* [Indexing a document](#ex-index) +* [Getting a document](#ex-get) +* [Updating a document](#ex-update) +* [Deleting a document](#ex-delete) +* [Bulk requests](#ex-bulk) +* [Searching for a document](#ex-search) +* [Multi search](#ex-multisearch) +* [Scrolling](#ex-scroll) +* [Reindexing](#ex-reindex) -[discrete] -[[ex-index]] -=== Indexing a document -Let's index a document with the following fields: `name`, `author`, -`release_date`, and `page_count`: +## Indexing a document [ex-index] + +Let’s index a document with the following fields: `name`, `author`, `release_date`, and `page_count`: ```ruby body = { @@ -34,9 +34,7 @@ client.index(index: 'books', body: body) ``` -[discrete] -[[ex-get]] -=== Getting a document +## Getting a document [ex-get] You can get a document by ID: @@ -46,9 +44,7 @@ client.get(index: 'books', id: id) ``` -[discrete] -[[ex-update]] -=== Updating a document +## Updating a document [ex-update] Assume you have the following document: @@ -65,9 +61,7 @@ client.update(index: 'books', id: id, body: { doc: { page_count: 225 } }) ``` -[discrete] -[[ex-delete]] -=== Deleting a document +## Deleting a document [ex-delete] You can delete a document by ID: @@ -77,13 +71,9 @@ client.delete(index: 'books', id: id) ``` -[discrete] -[[ex-bulk]] -=== Bulk requests +## Bulk requests [ex-bulk] -The `bulk` operation of the client supports various different formats of the -payload: array of strings, header/data pairs, or the combined format where data -is passed along with the header in a single item in a custom `:data` key. +The `bulk` operation of the client supports various different formats of the payload: array of strings, header/data pairs, or the combined format where data is passed along with the header in a single item in a custom `:data` key. Index several documents in one request: @@ -109,8 +99,7 @@ body = [ client.bulk(body: body) ``` -As mentioned, you can perform several operations in a single request with the -combined format passing data in the `:data` option: +As mentioned, you can perform several operations in a single request with the combined format passing data in the `:data` option: ```ruby body = [ @@ -122,17 +111,13 @@ client.bulk(body: body) ``` -[discrete] -[[ex-search]] -=== Searching for a document +## Searching for a document [ex-search] -This example uses the same data that is used in the -https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html#find-structure-example-nld-json[Find structure API documentation]. +This example uses the same data that is used in the [Find structure API documentation](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-text-structure-find-structure). First, bulk index it: -[source,ruby] ----- +```ruby body = [ { index: { _index: 'books', data: { name: 'Leviathan Wakes', author: 'James S.A. Corey', release_date: '2011-06-02', page_count: 561 } } }, { index: { _index: 'books', data: { name: 'Hyperion', author: 'Dan Simmons', release_date: '1989-05-26', page_count: 482 } } }, @@ -160,10 +145,9 @@ body = [ { index: { _index: 'books', data: { name: 'The Moon is a Harsh Mistress', author: 'Robert A. Heinlein', release_date: '1966-04-01', page_count: 288 } } } ] client.bulk(body: body) ----- +``` -The `field` parameter is a common parameter, so it can be passed in directly in -the following way: +The `field` parameter is a common parameter, so it can be passed in directly in the following way: ```ruby client.search(index: 'books', q: 'dune') @@ -178,10 +162,10 @@ response['hits']['hits'].count # => 15 ``` -[discrete] -[[ex-multisearch]] -=== Multi search +## Multi search [ex-multisearch] + The following example shows how to perform a multisearch API call on `books` index: + ```ruby body = [ {}, @@ -192,12 +176,10 @@ body = [ client.msearch(index:'books', body: body) ``` -[discrete] -[[ex-scroll]] -=== Scrolling -Submit a search API request that includes an argument for the scroll query -parameter, save the search ID, then print out the book names you found: +## Scrolling [ex-scroll] + +Submit a search API request that includes an argument for the scroll query parameter, save the search ID, then print out the book names you found: ```ruby # Search request with a scroll argument: @@ -214,13 +196,11 @@ end ``` -[discrete] -[[ex-reindex]] -=== Reindexing +## Reindexing [ex-reindex] -The following example shows how to reindex the `books` index into a new index -called `books-reindexed`: +The following example shows how to reindex the `books` index into a new index called `books-reindexed`: ```ruby client.reindex(body: {source: { index: 'books'}, dest: {index: 'books-reindexed' } }) ``` + diff --git a/docs/reference/getting-started.md b/docs/reference/getting-started.md new file mode 100644 index 0000000000..41920656aa --- /dev/null +++ b/docs/reference/getting-started.md @@ -0,0 +1,125 @@ +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/getting-started-ruby.html + - https://www.elastic.co/guide/en/serverless/current/elasticsearch-ruby-client-getting-started.html +--- + +# Getting started [getting-started-ruby] + +This page guides you through the installation process of the Ruby client, shows you how to instantiate the client, and how to perform basic Elasticsearch operations with it. + + +### Requirements [_requirements] + +A currently maintained version of Ruby (3.0+) or JRuby (9.3+). + + +### Installation [_installation] + +To install the latest version of the client, run the following command: + +```shell +gem install elasticsearch +``` + +Refer to the [*Installation*](/reference/installation.md) page to learn more. + + +### Connecting [_connecting] + +You can connect to the Elastic Cloud using an API key and the Elasticsearch endpoint. + +```rb +client = Elasticsearch::Client.new( + cloud_id: '', + api_key: '' +) +``` + +Your Elasticsearch endpoint can be found on the **My deployment** page of your deployment: + +:::{image} ../images/es_endpoint.jpg +:alt: Finding Elasticsearch endpoint +::: + +You can generate an API key on the **Management** page under Security. + +:::{image} ../images/create_api_key.png +:alt: Create API key +::: + +For other connection options, refer to the [*Connecting*](/reference/connecting.md) section. + + +### Operations [_operations] + +Time to use Elasticsearch! This section walks you through the basic, and most important, operations of Elasticsearch. For more operations and more advanced examples, refer to the [*Examples*](/reference/examples.md) page. + + +#### Creating an index [_creating_an_index] + +This is how you create the `my_index` index: + +```rb +client.indices.create(index: 'my_index') +``` + + +#### Indexing documents [_indexing_documents] + +This is a simple way of indexing a document: + +```rb +document = { name: 'elasticsearch-ruby' } +response = client.index(index: 'my_index', body: document) +# You can get the indexed document id with: +response['_id'] +=> "PlgIDYkBWS9Ngdx5IMy-" +id = response['_id'] +``` + + +#### Getting documents [_getting_documents] + +You can get documents by using the following code: + +```rb +client.get(index: 'my_index', id: id) +``` + + +#### Searching documents [_searching_documents] + +This is how you can create a single match query with the Ruby client: + +```rb +client.search(index: 'my_index', body: { query: { match_all: {} } }) +``` + + +#### Updating documents [_updating_documents] + +This is how you can update a document, for example to add a new field: + +```rb +client.update(index: 'my_index', id: id, body: { doc: { language: 'Ruby' } }) +``` + + +#### Deleting documents [_deleting_documents] + +```rb +client.delete(index: 'my_index', id: id) +``` + + +#### Deleting an index [_deleting_an_index] + +```rb +client.indices.delete(index: 'my_index') +``` + + +## Further reading [_further_reading] + +* Use [Bulk and Scroll helpers](/reference/Helpers.md) for a more confortable experience with the APIs. diff --git a/docs/reference/index.md b/docs/reference/index.md new file mode 100644 index 0000000000..088cd04b9b --- /dev/null +++ b/docs/reference/index.md @@ -0,0 +1,40 @@ +--- +mapped_pages: + https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/index.html + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/ruby_client.html +--- + +# Ruby [ruby_client] + +The `elasticsearch` [Rubygem](http://rubygems.org/gems/elasticsearch) provides a low-level client for communicating with an {{es}} cluster, fully compatible with other official clients. + +More documentation is hosted in [Github](https://github.com/elastic/elasticsearch-ruby) and [RubyDoc](http://rubydoc.info/gems/elasticsearch). + +Refer to the [*Getting started*](/reference/getting-started.md) page for a step-by-step quick start with the Ruby client. + + +## Features [_features] + +* Pluggable logging and tracing +* Pluggable connection selection strategies (round-robin, random, custom) +* Pluggable transport implementation, customizable and extendable +* Pluggable serializer implementation +* Request retries and dead connections handling +* Node reloading (based on cluster state) on errors or on demand +* Modular API implementation +* 100% REST API coverage + + +## Transport and API [transport-api] + +The `elasticsearch` gem combines two separate Rubygems: + +* [`elastic-transport`](https://github.com/elastic/elastic-transport-ruby/) - provides an HTTP Ruby client for connecting to the {{es}} cluster. Refer to the documentation: [Transport](/reference/transport.md) +* [`elasticsearch-api`](https://github.com/elastic/elasticsearch-ruby/tree/main/elasticsearch-api) - provides a Ruby API for the {{es}} RESTful API. + +Please consult their respective documentation for configuration options and technical details. + +Notably, the documentation and comprehensive examples for all the API methods are contained in the source, and available online at [Rubydoc](http://rubydoc.info/gems/elasticsearch-api/Elasticsearch/API/Actions). + +Keep in mind, that for optimal performance, you should use an HTTP library which supports persistent ("keep-alive") HTTP connections. + diff --git a/docs/reference/installation.md b/docs/reference/installation.md new file mode 100644 index 0000000000..73048cfa0d --- /dev/null +++ b/docs/reference/installation.md @@ -0,0 +1,44 @@ +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/ruby-install.html +--- + +# Installation [ruby-install] + +Install the Rubygem for the latest {{es}} version by using the following command: + +```sh +gem install elasticsearch +``` + +Or add the `elasticsearch` Ruby gem to your Gemfile: + +```ruby +gem 'elasticsearch' +``` + +You can install the Ruby gem for a specific {{es}} version by using the following command: + +```sh +gem install elasticsearch -v 7.0.0 +``` + +Or you can add a specific version of {{es}} to your Gemfile: + +```ruby +gem 'elasticsearch', '~> 7.0' +``` + + +## {{es}} and Ruby version compatibility [_es_and_ruby_version_compatibility] + +The {{es}} client is compatible with currently maintained Ruby versions. We follow Ruby’s own maintenance policy and officially support all currently maintained versions per [Ruby Maintenance Branches](https://www.ruby-lang.org/en/downloads/branches/). + +Language clients are forward compatible; meaning that clients support communicating with greater or equal minor versions of {{es}} without breaking. It does not mean that the client automatically supports new features of newer {{es}} versions; it is only possible after a release of a new client version. For example, a 8.12 client version won’t automatically support the new features of the 8.13 version of {{es}}, the 8.13 client version is required for that. {{es}} language clients are only backwards compatible with default distributions and without guarantees made. + +| Gem Version | | {{es}} Version | Supported | +| --- | --- | --- | --- | +| 7.x | → | 7.x | 7.17 | +| 8.x | → | 8.x | 8.x | +| main | → | main | | + diff --git a/docs/reference/integrations.md b/docs/reference/integrations.md new file mode 100644 index 0000000000..2b54bab453 --- /dev/null +++ b/docs/reference/integrations.md @@ -0,0 +1,26 @@ +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/integrations.html +--- + +# Integrations [integrations] + +The Rubygems listed on this page make it easier to operate with {{es}} by using the Ruby client. + +* [Transport](/reference/transport.md) +* [Elasticsearch API](/reference/api.md) +* [Using OpenTelemetry](/reference/opentelemetry.md) +* [Elastic Common Schema (ECS)](/reference/ecs.md) +* [ActiveModel / ActiveRecord](/reference/activemodel_activerecord.md) +* [Ruby On Rails](/reference/ruby_on_rails.md) +* [Persistence](/reference/persistence.md) +* [Elasticsearch DSL](/reference/dsl.md) + + + + + + + + + diff --git a/docs/reference/opentelemetry.md b/docs/reference/opentelemetry.md new file mode 100644 index 0000000000..ccc4863a8c --- /dev/null +++ b/docs/reference/opentelemetry.md @@ -0,0 +1,97 @@ +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/opentelemetry.html +--- + +# Using OpenTelemetry [opentelemetry] + +You can use [OpenTelemetry](https://opentelemetry.io/) to monitor the performance and behavior of your {{es}} requests through the Ruby Client. The Ruby Client comes with built-in OpenTelemetry instrumentation that emits [distributed tracing spans](docs-content://solutions/observability/apps/traces-2.md) by default. With that, applications [instrumented with OpenTelemetry](https://opentelemetry.io/docs/instrumentation/ruby/manual/) or using the [OpenTelemetry Ruby SDK](https://opentelemetry.io/docs/instrumentation/ruby/automatic/) are inherently enriched with additional spans that contain insightful information about the execution of the {{es}} requests. + +The native instrumentation in the Ruby Client follows the [OpenTelemetry Semantic Conventions for {{es}}](https://opentelemetry.io/docs/specs/semconv/database/elasticsearch/). In particular, the instrumentation in the client covers the logical layer of {{es}} requests. A single span per request is created that is processed by the service through the Ruby Client. The following image shows a trace that records the handling of two different {{es}} requests: a `ping` request and a `search` request. + +:::{image} ../images/otel-waterfall-without-http.png +:alt: Distributed trace with Elasticsearch spans +:class: screenshot +::: + +Usually, OpenTelemetry auto-instrumentation modules come with instrumentation support for HTTP-level communication. In this case, in addition to the logical {{es}} client requests, spans will be captured for the physical HTTP requests emitted by the client. The following image shows a trace with both, {{es}} spans (in blue) and the corresponding HTTP-level spans (in red): + +:::{image} ../images/otel-waterfall-with-http.png +:alt: Distributed trace with Elasticsearch spans +:class: screenshot +::: + +Advanced Ruby Client behavior such as nodes round-robin and request retries are revealed through the combination of logical {{es}} spans and the physical HTTP spans. The following example shows a `search` request in a scenario with two nodes: + +:::{image} ../images/otel-waterfall-retry.png +:alt: Distributed trace with Elasticsearch spans +:class: screenshot +::: + +The first node is unavailable and results in an HTTP error, while the retry to the second node succeeds. Both HTTP requests are subsumed by the logical {{es}} request span (in blue). + + +## Setup the OpenTelemetry instrumentation [_setup_the_opentelemetry_instrumentation] + +When using the [OpenTelemetry Ruby SDK manually](https://opentelemetry.io/docs/instrumentation/ruby/manual) or using the [OpenTelemetry Ruby Auto-Instrumentations](https://opentelemetry.io/docs/instrumentation/ruby/automatic/), the Ruby Client’s OpenTelemetry instrumentation is enabled by default and uses the global OpenTelemetry SDK with the global tracer provider. You can provide a tracer provider via the Ruby Client configuration option `opentelemetry_tracer_provider` when instantiating the client. This is sometimes useful for testing or other specific use cases. + +```ruby +client = Elasticsearch::Client.new( + cloud_id: '', + api_key: '', + opentelemetry_tracer_provider: tracer_provider +) +``` + + +## Configuring the OpenTelemetry instrumentation [_configuring_the_opentelemetry_instrumentation] + +You can configure the OpenTelemetry instrumentation through Environment Variables. The following configuration options are available. + + +### Enable / Disable the OpenTelemetry instrumentation [opentelemetry-config-enable] + +With this configuration option you can enable (default) or disable the built-in OpenTelemetry instrumentation. + +**Default:** `true` + +| | | +| --- | --- | +| Environment Variable | `OTEL_RUBY_INSTRUMENTATION_ELASTICSEARCH_ENABLED` | + + +### Capture search request bodies [_capture_search_request_bodies] + +Per default, the built-in OpenTelemetry instrumentation does not capture request bodies due to data privacy considerations. You can use this option to enable capturing of search queries from the request bodies of {{es}} search requests in case you wish to gather this information regardless. The options are to capture the raw search query, sanitize the query with a default list of sensitive keys, or not capture it at all. + +**Default:** `omit` + +**Valid Options:** `omit`, `sanitize`, `raw` + +| | | +| --- | --- | +| Environment Variable | `OTEL_RUBY_INSTRUMENTATION_ELASTICSEARCH_CAPTURE_SEARCH_QUERY` | + + +### Sanitize the {{es}} search request body [_sanitize_the_es_search_request_body] + +You can configure the list of keys whose values are redacted when the search query is captured. Values must be comma-separated. Note in v8.3.0 and v8.3.1, the environment variable `OTEL_INSTRUMENTATION_ELASTICSEARCH_CAPTURE_SEARCH_QUERY` was available but is now deprecated in favor of the environment variable including `RUBY`. + +**Default:** `nil` + +| | | +| --- | --- | +| Environment Variable | `OTEL_RUBY_INSTRUMENTATION_ELASTICSEARCH_SEARCH_QUERY_SANITIZE_KEYS` | + +Example: + +```bash +OTEL_RUBY_INSTRUMENTATION_ELASTICSEARCH_SEARCH_QUERY_SANITIZE_KEYS='sensitive-key,other-sensitive-key' +``` + + +## Overhead [_overhead] + +The OpenTelemetry instrumentation (as any other monitoring approach) may come with a slight overhead on CPU, memory, and/or latency. The overhead may only occur when the instrumentation is enabled (default) and an OpenTelemetry SDK is active in the target application. When the instrumentation is disabled or no OpenTelemetry SDK is active within the target application, monitoring overhead is not expected when using the client. + +Even in cases where the instrumentation is enabled and is actively used (by an OpenTelemetry SDK), the overhead is minimal and negligible in the vast majority of cases. In edge cases where there is a noticeable overhead, the [instrumentation can be explicitly disabled](#opentelemetry-config-enable) to eliminate any potential impact on performance. diff --git a/docs/persistence.asciidoc b/docs/reference/persistence.md similarity index 56% rename from docs/persistence.asciidoc rename to docs/reference/persistence.md index 8567a723cf..2bb497a96b 100644 --- a/docs/persistence.asciidoc +++ b/docs/reference/persistence.md @@ -1,42 +1,37 @@ -[[persistence]] -=== Persistence +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/persistence.html +--- -The `elasticsearch-persistence` -http://rubygems.org/gems/elasticsearch-persistence[Rubygem] provides persistence -layer for Ruby domain objects. +# Persistence [persistence] -It supports the repository design patterns. Versions before 6.0 also supported -the _active record_ design pattern. +The `elasticsearch-persistence` [Rubygem](http://rubygems.org/gems/elasticsearch-persistence) provides persistence layer for Ruby domain objects. +It supports the repository design patterns. Versions before 6.0 also supported the *active record* design pattern. -[discrete] -==== Repository -The `Elasticsearch::Persistence::Repository` module provides an implementation -of the repository pattern and allows to save, delete, find and search objects -stored in {es}, as well as configure mappings and settings for the index. +## Repository [_repository] +The `Elasticsearch::Persistence::Repository` module provides an implementation of the repository pattern and allows to save, delete, find and search objects stored in {{es}}, as well as configure mappings and settings for the index. -[discrete] -===== Features -* Access to the {es} client +### Features [_features_4] + +* Access to the {{es}} client * Setting the index name, document type, and object class for deserialization * Composing mappings and settings for the index * Creating, deleting or refreshing the index * Finding or searching for documents * Providing access both to domain objects and hits for search results -* Providing access to the {es} response for search results +* Providing access to the {{es}} response for search results * Defining the methods for serialization and deserialization -[discrete] -===== Usage +### Usage [_usage_2] -Let's have a simple plain old Ruby object (PORO): +Let’s have a simple plain old Ruby object (PORO): -[source,ruby] ------------------------------------- +```ruby class Note attr_reader :attributes @@ -48,69 +43,58 @@ class Note @attributes end end ------------------------------------- +``` Create a default, "dumb" repository, as a first step: -[source,ruby] ------------------------------------- +```ruby require 'elasticsearch/persistence' class MyRepository; include Elasticsearch::Persistence::Repository; end repository = MyRepository.new ------------------------------------- +``` Save a `Note` instance into the repository: -[source,ruby] ------------------------------------- +```ruby note = Note.new id: 1, text: 'Test' repository.save(note) # PUT http://localhost:9200/repository/_doc/1 [status:201, request:0.210s, query:n/a] # > {"id":1,"text":"Test"} # < {"_index":"repository","_type":"note","_id":"1","_version":1,"created":true} ------------------------------------- +``` Find it: -[source,ruby] ------------------------------------- +```ruby n = repository.find(1) # GET http://localhost:9200/repository/_doc/1 [status:200, request:0.003s, query:n/a] # < {"_index":"repository","_type":"note","_id":"1","_version":2,"found":true, "_source" : {"id":1,"text":"Test"}} => 1, "text"=>"Test"}> ------------------------------------- +``` Search for it: -[source,ruby] ------------------------------------- +```ruby repository.search(query: { match: { text: 'test' } }).first # GET http://localhost:9200/repository/_search [status:200, request:0.005s, query:0.002s] # > {"query":{"match":{"text":"test"}}} # < {"took":2, ... "hits":{"total":1, ... "hits":[{ ... "_source" : {"id":1,"text":"Test"}}]}} => 1, "text"=>"Test"}> ------------------------------------- +``` Delete it: -[source,ruby] ------------------------------------- +```ruby repository.delete(note) # DELETE http://localhost:9200/repository/_doc/1 [status:200, request:0.014s, query:n/a] # < {"found":true,"_index":"repository","_type":"note","_id":"1","_version":3} => {"found"=>true, "_index"=>"repository", "_type"=>"note", "_id"=>"1", "_version"=>2} ------------------------------------- +``` + +The repository module provides a number of features and facilities to configure and customize the behaviour, as well as support for extending your own, custom repository class. -The repository module provides a number of features and facilities to configure -and customize the behaviour, as well as support for extending your own, custom -repository class. +Please refer to the [documentation](https://github.com/elastic/elasticsearch-rails/tree/master/elasticsearch-persistence#the-repository-pattern) for more information. -Please refer to the -https://github.com/elastic/elasticsearch-rails/tree/master/elasticsearch-persistence#the-repository-pattern[documentation] -for more information. +Also, check out the [example application](https://github.com/elastic/elasticsearch-rails/tree/master/elasticsearch-persistence#example-application) which demonstrates the usage patterns of the *repository* approach to persistence. -Also, check out the -https://github.com/elastic/elasticsearch-rails/tree/master/elasticsearch-persistence#example-application[example application] -which demonstrates the usage patterns of the _repository_ approach to -persistence. diff --git a/docs/reference/ruby_on_rails.md b/docs/reference/ruby_on_rails.md new file mode 100644 index 0000000000..500fcbb762 --- /dev/null +++ b/docs/reference/ruby_on_rails.md @@ -0,0 +1,23 @@ +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/ruby_on_rails.html +--- + +# Ruby On Rails [ruby_on_rails] + +The `elasticsearch-rails` [Rubygem](http://rubygems.org/gems/elasticsearch-rails) provides features suitable for Ruby on Rails applications. + + +## Features [_features_3] + +* Rake tasks for importing data from application models +* Integration with Rails' instrumentation framework +* Templates for generating example Rails application + + +## Example applications [_example_applications] + +You can generate a fully working example Ruby on Rails application with templates provides. + +Please refer to the [documentation](https://github.com/elastic/elasticsearch-rails/tree/master/elasticsearch-rails) for more information. + diff --git a/docs/reference/toc.yml b/docs/reference/toc.yml new file mode 100644 index 0000000000..be3fc7f854 --- /dev/null +++ b/docs/reference/toc.yml @@ -0,0 +1,24 @@ +toc: + - file: index.md + - file: getting-started.md + - file: installation.md + - file: connecting.md + - file: configuration.md + children: + - file: basic-config.md + - file: advanced-config.md + - file: integrations.md + children: + - file: transport.md + - file: api.md + - file: opentelemetry.md + - file: ecs.md + - file: activemodel_activerecord.md + - file: ruby_on_rails.md + - file: persistence.md + - file: dsl.md + - file: examples.md + - file: client-helpers.md + children: + - file: Helpers.md + - file: esql.md \ No newline at end of file diff --git a/docs/transport.asciidoc b/docs/reference/transport.md similarity index 57% rename from docs/transport.asciidoc rename to docs/reference/transport.md index b9199b19ed..fa38c71f2d 100644 --- a/docs/transport.asciidoc +++ b/docs/reference/transport.md @@ -1,26 +1,33 @@ -[[transport]] -=== Transport +--- +mapped_pages: + - https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/transport.html +--- -The `elastic-transport` library provides a low-level Ruby client for connecting to an {es} cluster. It currently powers the https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/index.html[Elasticsearch Ruby] and the https://www.elastic.co/guide/en/enterprise-search-clients/ruby/current/index.html[Enterprise Search Ruby] clients. +# Transport [transport] + +The `elastic-transport` library provides a low-level Ruby client for connecting to an {{es}} cluster. It powers the [Elasticsearch Ruby](/reference/index.md) client. When available, it handles connecting to multiple nodes in the cluster, rotating across connections, logging and tracing requests and responses, maintaining failed connections, discovering nodes in the cluster, and provides an abstraction for data serialization and transport. -It does not handle calling the {es} or Enterprise Search APIs. +It does not handle calling the {{es}} APIs. -This library uses https://github.com/lostisland/faraday[Faraday] by default as the HTTP transport implementation. We test it with Faraday versions 1.x and 2.x. +This library uses [Faraday](https://github.com/lostisland/faraday) by default as the HTTP transport implementation. We test it with Faraday versions 1.x and 2.x. -For optimal performance, use a HTTP library which supports persistent ("keep-alive") connections, such as https://github.com/toland/patron[patron] or https://github.com/typhoeus/typhoeus[Typhoeus]. Require the library (`require 'patron'`) in your code for Faraday 1.x or the adapter (`require 'faraday/patron'`) for Faraday 2.x, and it will be automatically used. +For optimal performance, use a HTTP library which supports persistent ("keep-alive") connections, such as [patron](https://github.com/toland/patron) or [Typhoeus](https://github.com/typhoeus/typhoeus). Require the library (`require 'patron'`) in your code for Faraday 1.x or the adapter (`require 'faraday/patron'`) for Faraday 2.x, and it will be automatically used. Currently these libraries are supported: -* https://github.com/toland/patron[Patron] -* https://github.com/typhoeus/typhoeus[Typhoeus] -* https://rubygems.org/gems/httpclient[HTTPClient] -* https://rubygems.org/gems/net-http-persistent[Net::HTTP::Persistent] +* [Patron](https://github.com/toland/patron) +* [Typhoeus](https://github.com/typhoeus/typhoeus) +* [HTTPClient](https://rubygems.org/gems/httpclient) +* [Net::HTTP::Persistent](https://rubygems.org/gems/net-http-persistent) + +::::{note} +Use [Typhoeus](https://github.com/typhoeus/typhoeus) v1.4.0 or up since older versions are not compatible with Faraday 1.0. +:::: -NOTE: Use https://github.com/typhoeus/typhoeus[Typhoeus] v1.4.0 or up since older versions are not compatible with Faraday 1.0. -You can customize Faraday and implement your own HTTP transport. For detailed information, see the example configurations and more information <>. +You can customize Faraday and implement your own HTTP transport. For detailed information, see the example configurations and more information [below](#transport-implementations). Features overview: @@ -31,87 +38,74 @@ Features overview: * Request retries and dead connections handling * Node reloading (based on cluster state) on errors or on demand -Refer to <> to read about more configuration options. +Refer to [Advanced Configuration](/reference/advanced-config.md) to read about more configuration options. + -[discrete] -[[transport-install]] -==== Installation +## Installation [transport-install] -Install the package from https://rubygems.org/[Rubygems]: +Install the package from [Rubygems](https://rubygems.org/): -[source,bash] ----------------------------- +```bash gem install elastic-transport ----------------------------- +``` -To use an unreleased version, either add it to your `Gemfile` for -http://gembundler.com/[Bundler]: +To use an unreleased version, either add it to your `Gemfile` for [Bundler](http://gembundler.com/): -[source,bash] ----------------------------- +```bash gem 'elastic-transport', git: 'git@github.com:elastic/elastic-transport-ruby.git' ----------------------------- +``` or install it from a source code checkout: -[source,bash] ----------------------------- +```bash git clone https://github.com/elastic/elastic-transport-ruby.git cd elastic-transport bundle install rake install ----------------------------- +``` -[discrete] -[[transport-example-usage]] -==== Example usage -In the simplest form, connect to {es} running on http://localhost:9200 without any configuration: +## Example usage [transport-example-usage] -[source,rb] ----------------------------- +In the simplest form, connect to {{es}} running on [http://localhost:9200](http://localhost:9200) without any configuration: + +```rb require 'elastic/transport' client = Elastic::Transport::Client.new response = client.perform_request('GET', '_cluster/health') # => # ----------------------------- +``` -Documentation is included as RDoc annotations in the source code and available online at http://rubydoc.info/gems/elastic-transport[RubyDoc]. +Documentation is included as RDoc annotations in the source code and available online at [RubyDoc](http://rubydoc.info/gems/elastic-transport). -[discrete] -[[transport-implementations]] -==== Transport implementations -By default, the client uses the https://rubygems.org/gems/faraday[Faraday] HTTP library as a transport implementation. +## Transport implementations [transport-implementations] -The Client auto-detects and uses an _adapter_ for _Faraday_ based on gems loaded in your code, preferring HTTP clients with support for persistent connections. Faraday 2 changed the way adapters are used (https://github.com/lostisland/faraday/blob/main/UPGRADING.md#adapters-have-moved[read more here]). If you're using Faraday 1.x, you can require the HTTP library. To use the https://github.com/toland/patron[_Patron_] HTTP, for example, require it: +By default, the client uses the [Faraday](https://rubygems.org/gems/faraday) HTTP library as a transport implementation. +The Client auto-detects and uses an *adapter* for *Faraday* based on gems loaded in your code, preferring HTTP clients with support for persistent connections. Faraday 2 changed the way adapters are used ([read more here](https://github.com/lostisland/faraday/blob/main/UPGRADING.md#adapters-have-moved)). If you’re using Faraday 1.x, you can require the HTTP library. To use the [*Patron*](https://github.com/toland/patron) HTTP, for example, require it: -To use the https://github.com/toland/patron[Patron] HTTP, for example, require it: +To use the [Patron](https://github.com/toland/patron) HTTP, for example, require it: -[source,rb] ----------------------------- +```rb require 'patron' ----------------------------- +``` -If you're using Faraday 2.x, you need to add the corresponding adapter gem to your Gemfile and require it after you require `faraday`: +If you’re using Faraday 2.x, you need to add the corresponding adapter gem to your Gemfile and require it after you require `faraday`: -[source,rb] ----------------------------- +```rb # Gemfile gem 'faraday-patron' # Code require 'faraday' require 'faraday/patron' ----------------------------- - +``` Then, create a new client, and the Patron gem will be used as the "driver": -[source,rb] ----------------------------- +```rb client = Elastic::Transport::Client.new client.transport.connections.first.connection.builder.adapter @@ -127,43 +121,39 @@ end # => Stiletoo : 24 # => Stiletoo : 24 # => ... ----------------------------- +``` To use a specific adapter for Faraday, pass it as the `adapter` argument: -[source,rb] ----------------------------- +```rb client = Elastic::Client.new(adapter: :net_http_persistent) client.transport.connections.first.connection.builder.handlers # => [Faraday::Adapter::NetHttpPersistent] ----------------------------- +``` If you see this error: -[source,rb] ----------------------------- +```rb Faraday::Error: :net_http_persistent is not registered on Faraday::Adapter ----------------------------- -When you're using Faraday 2, you need to require the adapter before instantiating the client: +``` -[source,rb] ----------------------------- +When you’re using Faraday 2, you need to require the adapter before instantiating the client: + +```rb > client = Elasticsearch::Client.new(adapter: :net_http_persistent) Faraday::Error: :net_http_persistent is not registered on Faraday::Adapter > require 'faraday/net_http_persistent' => true > client = Elasticsearch::Client.new(adapter: :net_http_persistent) => # # ----------------------------- +``` -It's possible to customize the Curb instance by passing a block to the constructor as well (in this case, as an inline block): +It’s possible to customize the Curb instance by passing a block to the constructor as well (in this case, as an inline block): -[source,rb] ----------------------------- +```rb transport = Elastic::Transport::Transport::HTTP::Curb.new( hosts: [ { host: 'localhost', port: '9200' } ], & lambda { |c| c.verbose = true } ) client = Elastic::Client.new(transport: transport) ----------------------------- +``` You can write your own transport implementation by including the {Elastic::Transport::Transport::Base} module, implementing the required contract, and passing it to the client as the `transport_class` parameter – or by injecting it directly. -[discrete] -[[transport-architecture]] -==== Transport architecture + +## Transport architecture [transport-architecture] * `Elastic::Transport::Client` is composed of `Elastic::Transport::Transport`. * `Elastic::Transport::Transport` is composed of `Elastic::Transport::Transport::Connections`, and an instance of logger, tracer, serializer and sniffer. -* Logger and tracer can be any object conforming to Ruby logging interface, for example, an instance of https://ruby-doc.org/stdlib-1.9.3/libdoc/logger/rdoc/Logger.html[`Logger`], https://rubygems.org/gems/log4r[log4r], https://github.com/TwP/logging/[logging], and so on. -* The `Elastic::Transport::Transport::Serializer::Base` implementations handle converting data for {es} (for example, to JSON). You can implement your own serializer. +* Logger and tracer can be any object conforming to Ruby logging interface, for example, an instance of [`Logger`](https://ruby-doc.org/stdlib-1.9.3/libdoc/logger/rdoc/Logger.md), [log4r](https://rubygems.org/gems/log4r), [logging](https://github.com/TwP/logging/), and so on. +* The `Elastic::Transport::Transport::Serializer::Base` implementations handle converting data for {{es}} (for example, to JSON). You can implement your own serializer. * `Elastic::Transport::Transport::Sniffer` allows to discover nodes in the cluster and use them as connections. * `Elastic::Transport::Transport::Connections::Collection` is composed of `Elastic::Transport::Transport::Connections::Connection` instances and a selector instance. * `Elastic::Transport::Transport::Connections::Connection` contains the connection attributes such as hostname and port, as well as the concrete persistent "session" connected to a specific node. * The `Elastic::Transport::Transport::Connections::Selector::Base` implementations allow to choose connections from the pool, for example, in a round-robin or random fashion. You can implement your own selector strategy. * The `Elastic::Transport::Transport::Response` object wraps the Elasticsearch JSON response. It provides `body`, `status`, and `headers` methods but you can treat it as a hash and access the keys directly. + diff --git a/docs/release-notes/breaking-changes.md b/docs/release-notes/breaking-changes.md new file mode 100644 index 0000000000..fba96055e4 --- /dev/null +++ b/docs/release-notes/breaking-changes.md @@ -0,0 +1,28 @@ +--- +navigation_title: "Elasticsearch Ruby Client" +--- + +# Elasticsearch Ruby Client breaking changes [elasticsearch-ruby-client-breaking-changes] +Before you upgrade, carefully review the Elasticsearch Ruby Client breaking changes and take the necessary steps to mitigate any issues. + +To learn how to upgrade, check out . + +% ## Next version [elasticsearch-ruby-client-nextversion-breaking-changes] +% **Release date:** Month day, year + +% ::::{dropdown} Title of breaking change +% Description of the breaking change. +% For more information, check [PR #](PR link). +% **Impact**
Impact of the breaking change. +% **Action**
Steps for mitigating deprecation impact. +% :::: + +% ## 9.0.0 [elasticsearch-ruby-client-900-breaking-changes] +% **Release date:** March 25, 2025 + +% ::::{dropdown} Title of breaking change +% Description of the breaking change. +% For more information, check [PR #](PR link). +% **Impact**
Impact of the breaking change. +% **Action**
Steps for mitigating deprecation impact. +% :::: \ No newline at end of file diff --git a/docs/release-notes/deprecations.md b/docs/release-notes/deprecations.md new file mode 100644 index 0000000000..4c27fcb8bd --- /dev/null +++ b/docs/release-notes/deprecations.md @@ -0,0 +1,28 @@ +--- +navigation_title: "Elasticsearch Ruby Client" +--- + +# Elasticsearch Ruby Client deprecations [elasticsearch-ruby-client-deprecations] +Review the deprecated functionality for your Elasticsearch Ruby Client version. While deprecations have no immediate impact, we strongly encourage you update your implementation after you upgrade. + +To learn how to upgrade, check out . + +% ## Next version [elasticsearch-ruby-client-versionnext-deprecations] +% **Release date:** Month day, year + +% ::::{dropdown} Deprecation title +% Description of the deprecation. +% For more information, check [PR #](PR link). +% **Impact**
Impact of deprecation. +% **Action**
Steps for mitigating deprecation impact. +% :::: + +% ## 9.0.0 [elasticsearch-ruby-client-900-deprecations] +% **Release date:** March 25, 2025 + +% ::::{dropdown} Deprecation title +% Description of the deprecation. +% For more information, check [PR #](PR link). +% **Impact**
Impact of deprecation. +% **Action**
Steps for mitigating deprecation impact. +% :::: \ No newline at end of file diff --git a/docs/release-notes/index.md b/docs/release-notes/index.md new file mode 100644 index 0000000000..c2d13a705e --- /dev/null +++ b/docs/release-notes/index.md @@ -0,0 +1,27 @@ +--- +navigation_title: "Elasticsearch Ruby Client" +--- + +# Elasticsearch Ruby Client release notes [elasticsearch-ruby-client-release-notes] + +Review the changes, fixes, and more in each version of Elasticsearch Ruby Client. + +To check for security updates, go to [Security announcements for the Elastic stack](https://discuss.elastic.co/c/announcements/security-announcements/31). + +% Release notes include only features, enhancements, and fixes. Add breaking changes, deprecations, and known issues to the applicable release notes sections. + +% ## version.next [elasticsearch-ruby-client-next-release-notes] +% **Release date:** Month day, year + +% ### Features and enhancements [elasticsearch-ruby-client-next-features-enhancements] +% * + +% ### Fixes [elasticsearch-ruby-client-next-fixes] +% * + +## 9.0.0 [elasticsearch-ruby-client-900-release-notes] +**Release date:** March 25, 2025 + +### Features and enhancements [elasticsearch-ruby-client-900-features-enhancements] + +### Fixes [elasticsearch-ruby-client-900-fixes] \ No newline at end of file diff --git a/docs/release-notes/known-issues.md b/docs/release-notes/known-issues.md new file mode 100644 index 0000000000..91ff1765df --- /dev/null +++ b/docs/release-notes/known-issues.md @@ -0,0 +1,20 @@ +--- +navigation_title: "Elasticsearch Ruby Client" + +--- + +# Elasticsearch Ruby Client known issues [elasticsearch-ruby-client-known-issues] + +% Use the following template to add entries to this page. + +% :::{dropdown} Title of known issue +% **Details** +% On [Month/Day/Year], a known issue was discovered that [description of known issue]. + +% **Workaround** +% Workaround description. + +% **Resolved** +% On [Month/Day/Year], this issue was resolved. + +::: \ No newline at end of file diff --git a/docs/release-notes/toc.yml b/docs/release-notes/toc.yml new file mode 100644 index 0000000000..a410067947 --- /dev/null +++ b/docs/release-notes/toc.yml @@ -0,0 +1,5 @@ +toc: + - file: index.md + - file: known-issues.md + - file: breaking-changes.md + - file: deprecations.md \ No newline at end of file diff --git a/docs/release_notes/70.asciidoc b/docs/release_notes/70.asciidoc deleted file mode 100644 index d620366ed9..0000000000 --- a/docs/release_notes/70.asciidoc +++ /dev/null @@ -1,195 +0,0 @@ -[[release_notes_70]] -=== 7.0 Release notes - -This version contains the following changes: - -* Added `elastic_ruby_console` executable. It opens a console with the elasticsearch gems you have installed required. -* Added macro benchmarking framework, available when developing. Use `rake -T` to view all available benchmarking tasks. - - -[discrete] -==== Client - -* Fixed failing integration test -* Updated the Manticore development dependency -* Fixed a failing Manticore unit test -* Removed "turn" and switched the tests to Minitest -* Fixed integration tests for Patron -* Allow passing request headers in `perform_request` -* Added integration test for passing request headers in `perform_request` -* Added, that request headers are printed in trace output, if set -* Fix typos in elasticsearch-transport/README.md -* Assert that connection count is at least previous count when reloaded -* Adjust test for change in default number of shards on ES 7 -* Abstract logging functionality into a Loggable Module (#556) -* Convert client integration tests to rspec -* Add flexible configuration in spec helper -* Use helper methods in spec_helper -* Remove minitest client integration tests in favor of rspec test -* Convert tests to rspec and refactor client -* minor changes to the client specs -* Use pry-nav in development for JRuby -* Keep arguments variable name for now -* Skip round-robin test for now -* Mark test as pending until there is a better way to detect rotating nodes -* Remove client unit test in favor of rspec test -* Comment-out round-robin test as it occasionally passes and pending is ineffective -* Document the default host and port constant -* Add documentation to spec_helper methods -* Redacted password if host info is printed in error message -* Adds tests for not including password in logged error message -* The redacted string change will be in 6.1.1 -* Add more tests for different ways to specify client host argument -* Do not duplicate connections in connection pool after rebuild (#591) -* Ensure that the spec rake task is run as part of integration tests -* Use constant to define Elasticsearch hosts and avoid yellow status when number of nodes is 1 -* Update handling of publish_address in _nodes/http response -* Add another test for hostname/ipv6:port format - - -[discrete] -==== API - -* Added the `wait_for_active_shards` parameter to the "Indices Open" API -* Added the "Indices Split" API -* Added the `wait_for_no_initializing_shards` argument to the "Cluster Health" API -* Added the "Cluster Remote Info" API -* Remove the dependency on "turn" -* Clear cluster transient settings in test setups -* Use `YAML.load_documents` in the REST tests runner -* Removed pinning dependency for Minitest -* Replaced the testing framework from Test::Unit to Minites and improved test output -* Added, that trace logs are printed when the `TRACE` environment variable is set -* Removed the "turn" dependency from generated test_helper.rb -* Update the "Delete By Query" API to support :slices -* Speed up `Elasticsearch::API::Utils.__listify` -* Speed up `Elasticsearch::API::Utils.__pathify` -* Use "String#strip" and "String.empty?" in `Utils.__pathify` -* Updated the inline documentation for using scripts in the "Update" API -* Updated the "Scroll" API inline example with passing the scroll ID in the body -* Marked the `percolate` method as deprecated and added an example for current percolator -* Fixed, that `Utils.__report_unsupported_parameters` and `Utils.__report_unsupported_method` use `Kernel.warn` so they can be suppressed -* Fixed the "greedy" regex in the `Utils.__rescue_from_not_found` method -* Fixed the incorrect `create` method -* Allow passing headers in `perform_request` -* Set application/x-ndjson content type on Bulk and Msearch requests -* Update the Reindex API to support :slices -* Fixed and improved the YAML tests runner -* Added the `include_type_name` parameter to APIs -* Fixed the helper for unit tests -* Removed the requirement for passing the `type` parameter to APIs -* Removed dead code from the YAML tests runner -* Fixed the `api:code:generate` Thor task -* Add copy_settings as valid param to split API -* Port api/actions tests to rspec (#543) -* Update tests to not require type -* Account for escape_utils not being available for JRuby -* Add nodes/reload_secure_settings endpoint support (#546) -* Add new params for search and msearch API -* Retrieve stashed variable if referenced in test -* Convert cat API tests to rspec -* Convert cluster API tests to rspec -* Convert indices tests to rspec -* Fix documentation of #indices.analyze -* Avoid instantiating an array of valid params for each request, each time it is called (#550) -* Add headers to custom client documentation (#527) -* Fix typos in README -* Minor update to scroll documentation example -* Convert snapshot, ingest, tasks, nodes api tests to rspec -* Update source_includes and source_excludes params names for mget -* Update source_includes and source_excludes params names for get, search, bulk, explain -* Update source_includes and source_excludes params names for get_source -* Mark _search endpoint as deprecated -* Link to 6.0 documentation explicitly for _suggest deprecation -* Update documentation for msearch -* Update documentation for scroll_id to be in body of scroll endpoint -* Remove reference to deprecated format option for _analyze endpoint -* Correct endpoints used for get and put search template -* Fix minor typo -* Note that a non-empty body argument is required for the bulk api -* Add note about empty body in yard documentation -* Support if_primary_term param on index API -* Delete test2 template in between tests in case a test is not cleanup up properly -* Support ignore_throttled option on search API -* Updates for types removal changes -* Add missing update param -* Add missing params to methods -* Support if_primary_term param for delete -* Delete an index and index template not cleaned up after in rest api tests -* Update supported params for cat API endpoints -* Update supported params for cluster API endpoints -* Update supported params for indices API endpoints -* Update supported params for ingest API endpoints -* Update supported params for nodes API endpoints -* Update supported params for snapshot API endpoints -* Update missed node API endpoints -* Update missed tasks API endpoints -* Update top-level api endpoints -* Adjust specs and code after test failures -* Fix accidental overwrite of index code -* Add missing param in cat/thread_pool -* The type argument is not required in the index method -* Delete 'nomatch' template to account for lack of test cleanup -* Ensure that the :index param is supported for cat.segments -* Ensure that the :name param is passed to the templates API - -[discrete] -==== DSL - -* Add inner_hits option support for has_parent query -* Add inner_hits option support for has_child query -* Add inner_hits option support for has_parent filter -* Add inner_hits option support for has_child filter -* adds query support for nested queries in filter context (#531) -* Convert aggregations/pipeline tests to rspec (#564) -* Convert aggregations tests to rspec (#566) -* Convert filters tests to rspec (#567) -* Fix bug in applying no_match_filter to indices filter -* Update test for current elasticsearch version -* Fix integration tests for join field syntax -* Update agg scripted metric test for deprecation in ES issue #29328 -* Fix script in update for #29328 -* minor: fix spacing -* Convert queries tests to rspec (#569) -* Add inner_hits test after cherry-picking rspec conversion -* Remove tests already converted to rspec -* spec directory structure should mirror code directory structure -* Support query_string type option -* Ensure that filters are registered when called on bool queries (#609) -* Don't specify a type when creating mappings in tests - - -[discrete] -==== X-Pack - -* Embedded the source code for the `elasticsearch-xpack` Rubygem -* Fixed the `setup` for YAML integration tests -* Added missing X-Pack APIs -* Improved the YAML integration test runner -* Updated the Rakefile for running integration tests -* Added, that password for Elasticsearch is generated -* Fixed the Watcher example -* Updated the README -* Added gitignore for the `elasticsearch-xpack` Rubygem -* Add ruby-prof as a development dependency -* Handle multiple roles passed to get_role_mapping -* Minor updates to xpack api methods (#586) -* Support freeze and unfreeze APIs -* Rewrite xpack rest api yaml test handler (#585) -* Updates to take into account SSL settings -* Fix mistake in testing version range so test can be skipped -* Support set_upgrade_mode machine learning API -* Support typed_keys and rest_total_hits_as_int params for rollup_search -* Improve string output for xpack rest api tests -* Fix logic in version checking -* Support if_seq_no and if_primary_term in put_watch -* Don't test execute_watch/60_http_input because of possible Docker issue -* Support api key methods -* Fix minor typo in test description -* Fix issue with replacing argument value with an Integer value -* Support transform_and_set in yaml tests -* Skip two more tests -* Run security tests against elasticsearch 7.0.0-rc2 -* Account for error when forecast_id is not provided and legacy path is used -* Blacklist specific tests, not the whole file -* Fix version check for skipping test \ No newline at end of file diff --git a/docs/release_notes/710.asciidoc b/docs/release_notes/710.asciidoc deleted file mode 100644 index 9751bf2026..0000000000 --- a/docs/release_notes/710.asciidoc +++ /dev/null @@ -1,62 +0,0 @@ -[[release_notes_710]] -=== 7.10 Release notes - -[discrete] -[[release_notes_7101]] -=== 7.10.1 Release notes -[discrete] -==== Client - -- Updates for connecting with Cloud. - -[discrete] -[[release_notes_7100]] -=== 7.10 Release notes - -[discrete] -==== Client - -- Support for Elasticsearch version `7.10.0`. -- Fixes a bug when building the complete endpoint URL could end with duplicate slashes `//`. -- Fixes a bug when building the complete endpoint URL with cloud id could end with duplicate ports https://github.com/elastic/elasticsearch-ruby/issues/1081[#1081]. - -[discrete] -==== API - -- Fix in RubyDoc comments, some parameters were being duplicated. -- Deprecation notice: Synced flush (`indices.flush_synced`) is deprecated and will be removed in 8.0. Use flush instead. - -[discrete] -===== New API Endpoints - -- `snapshot.clone` - - -[discrete] -===== API Changes - -- `bulk`, `index`, `update`: new parameter `require_alias` (boolean): When true, requires destination to be an alias (default: false) for `index` and `update`. For `bulk` it sets `require_alias` for all incoming documents. Defaults to unset (false). - - -[discrete] -==== X-Pack - -Deprecation notice: `searchable_snapshots.repository_stats` is deprecated and is replaced by the Repositories Metering API. - -[discrete] -===== New API Endpoints - -- `close_point_in_time` -- `open_point_in_time` -- `security.clear_api_key_cache` -- `security.grant_api_key` - -[discrete] -===== API Changes - -- `cat.ml_datafeeds`, `cat.ml_jobs`, `machine_learning.close_job`, `machine_learning.get_datafeed_stats`, `machine_learning.get_datafeeds`, `machine_learning.get_job_stats`, `machine_learning.get_jobs`, `machine_learning.get_overall_buckets`, `machine_learning.stop_datafeed`: new parameter `allow_no_match` (boolean): Whether to ignore if a wildcard expression matches no datafeeds (this includes `_all` string or when no datafeeds have been specified). --`machine_learning.get_data_frame_analytics`: new parameter `verbose` (boolean), whether the stats response should be verbose. -- `machine_learning.get_trained_models`: new parameter `include` (string), a comma-separate list of fields to optionally include. Valid options are 'definition' and 'total_feature_importance'. Default is none. -- `machine_learning.stop_datafeed`: endpoint now accepts a `body`: the URL params optionally sent in the body. -- `security.get_role`, `security/get_role_mapping`: The name parameter is now a comma-separated list of role-mapping names. -- `machine_learning.delete_trained_model`, `machine_learning.get_trained_models`, `machine_learning.get_trained_models_stats`, `machine_learning.put_trained_model`: Internal change, url changed from `_ml/inference` to `_ml/trained_models`. diff --git a/docs/release_notes/711.asciidoc b/docs/release_notes/711.asciidoc deleted file mode 100644 index 9df6f1ba1f..0000000000 --- a/docs/release_notes/711.asciidoc +++ /dev/null @@ -1,49 +0,0 @@ -[[release_notes_711]] -=== 7.11 Release notes - -[discrete] -[[release_notes_7112]] -=== 7.11.2 Release notes - -[discrete] -==== Client - -* Bug fix in meta header, fixes fail when http adapter library hasn't been loaded yet: https://github.com/elastic/elasticsearch-ruby/issues/1224[Issue]. - -[discrete] -[[release_notes_7111]] -=== 7.11.1 Release notes - -[discrete] -==== Client - -* Bug fix in meta header, adds support for unknown Faraday adapters. https://github.com/elastic/elasticsearch-ruby/pull/1204[Pull Request]. - -[discrete] -[[release_notes_7110]] -=== 7.11.0 Release notes - -[discrete] -==== Client - -- Support for Elasticsearch version `7.11.0`. -- Fixes a bug with headers in our default Faraday class. https://github.com/elastic/elasticsearch-ruby/commit/9c4afc452467cc6344359b54b98bbe5af1469219[Commit]. -- Adds the `X-Elastic-Client-Meta` HTTP header which is used by Elastic Cloud and can be disabled with the `enable_meta_header` parameter set to `false`. - - -[discrete] -==== API - -- `cat.tasks` - Parameter `node_id` changes name to `nodes`, a comma-separated list of node IDS or names. Parameter `parent_task` changes name to `parent_task_id`. -- APIs that are no longer experimental: `cluster.delete_component_template`, `cluster.exists_component_template`, `cluster.get_component_template`, `cluster.put_component_template`, `indices.delete_index_template`, `indices.exists_index_template`, `indices.get_index_template`, `indices.put_index_template`, `indices.simulate_index_template`, `indices.simulate_template`. -- Deprecation notice: The _upgrade API is no longer useful and will be removed. Instead, see `_reindex API`. Deprecated since version 8.0.0. Endpoints: `indices.get_upgrade`, `indices.upgrade` - -[discrete] -==== X-Pack - -- New endpoints:`async_search.status`, `autoscaling.get_autoscaling_capacity` (experimental), `indices.migrate_to_data_stream`, `indices.promote_data_stream`, `machine_learning.upgrade_job_snapshot`, `rollup.rollup`, `watcher.query_watches`. -- APIs that are no longer experimental: `eql.delete`, `eql.get`, `eql.search`, -- APIs promoted from experimental to beta: `machine_learning.delete_data_frame_analytics`, `ml.delete_trained_model`, `machine_learning.evaluate_data_frame`, `machine_learning.explain_data_frame_analytics`, `machine_learning.get_data_frame_analytics`, `machine_learning.get_datafeed_stats`, `machine_learning.get_trained_models`, `machine_learning.get_trained_models_stats`, `machine_learning.put_data_frame_analytics`, `machine_learning.put_trained_model`, `machine_learning.start_data_frame_analytics`, `machine_learning.stop_data_frame_analytics`, `machine_learning.update_data_frame_analytics` -- `indices.delete_data_stream`, `indices.get_data_stream` add parameter `expand_wildcards`, wether wildcard expressions should get expanded to open or closed indices (default: open). Options: open, closed, hidden, none, all. -- `machine_learning.get_data_frame_analytics`, `machine_learning.get_datafeeds`, `machine_learning.get_jobs`, `machine_learning.get_trained_models`, `transform.get_transform` add parameter `exclude_generated` - omits fields that are illegal to set on PUT. -- `data_frame_transform_deprecated.get_transform` (_data_frame/transforms/ is deprecated, use _transform/ in the future) adds parameter `exclude_generated` - omits generated files. diff --git a/docs/release_notes/712.asciidoc b/docs/release_notes/712.asciidoc deleted file mode 100644 index c23f8c560c..0000000000 --- a/docs/release_notes/712.asciidoc +++ /dev/null @@ -1,28 +0,0 @@ -[[release_notes_712]] -=== 7.12 Release notes - -[discrete] -==== Client - -- Support for Elasticsearch version 7.12.0 -- Ruby 3 is now tested, it was added to the entire test suite. -- New official documentation pages for configuration: https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/basic-config.html[Basic Configuration] and https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/advanced-config.html[Advanced Configuration]. -- Integration tests runner refactored to keep skipped tests in a yaml file. - -[discrete] -==== API - -- New API namespace: `features` and endpoints `features.get_features` and `snapshot.get_features`. -- `cat.plugins` adds parameter `include_bootstrap`: Include bootstrap plugins in the response. -- Update in `indices.close` parameter `wait_for_active_shards`: Sets the number of active shards to wait for before the operation returns. Set to `index-setting` to wait according to the index setting `index.write.wait_for_active_shards`, or `all` to wait for all shards, or an integer. Defaults to `0`. -- `actions.search` adds parameter `min_compatible_shard_node`: The minimum compatible version that all shards involved in search should have for this request to be successful. - -[discrete] -==== X-Pack - -- New API namespace: `text_structure` and endpoints `text_structure.find_structure`. -- New API namespace: `logstash` and endpoints `logstash.delete_pipeline`, `logstash.get_pipeline`, `logstash.put_pipeline`. -- New API: `eql.get_status`. -- APIs migrated from experimental to stable: `autoscaling.delete_autoscaling_policy`, `autoscaling.get_autoscaling_capacity`, `autoscaling.get_autoscaling_policy`, `autoscaling.put_autoscaling_policy`. -- `searchable_snapshots.mount` adds parameter `storage`: Selects the kind of local storage used to accelerate searches. Experimental, and defaults to `full_copy`. -- `searchable_snapshots.stats` adds parameter `level`: Return stats aggregated at cluster, index or shard level (options: cluster, indices, shards). diff --git a/docs/release_notes/713.asciidoc b/docs/release_notes/713.asciidoc deleted file mode 100644 index 47594bdd12..0000000000 --- a/docs/release_notes/713.asciidoc +++ /dev/null @@ -1,53 +0,0 @@ -[[release_notes_713]] -=== 7.13 Release notes - -[discrete] -[[release_notes_7133]] -=== 7.13.3 Release notes - -- API Support for Elasticsearch version 7.13.3 - -[discrete] -[[release_notes_7132]] -=== 7.13.2 Release notes - -- Mute release, yanked from RubyGems. - -[discrete] -[[release_notes_7131]] -=== 7.13.1 Release notes - -[discrete] -==== Client -- Fixes thread safety issue in `get_connection` - https://github.com/elastic/elasticsearch-ruby/pull/1325[Pull Request]. - -[discrete] -[[release_notes_7130]] -=== 7.13.0 Release notes - -[discrete] -==== Client - -- Support for Elasticsearch version 7.13.0 -- Adds support for compatibility header for Elasticsearch. If the environment variable 'ELASTIC_CLIENT_APIVERSIONING' is set to `true` or `1`, the client will send the headers `Accept` and `Content-Type` with the following value: `application/vnd.elasticsearch+json;compatible-with=7`. -- Better detection of Elasticsearch and Enterprise Search clients in the meta header used by cloud. - -[discrete] -==== API - -- The REST API tests now use an artifact downloaded from the Elastic servers instead of depending of cloning `elasticsearch` locally. Check the README for more information. -- New parameter `include_unloaded_segments` in `cat.nodes`, `nodes.stats`: If set to true segment stats will include stats for segments that are not currently loaded into memory -- New parameter `summary` in `ingest.get_pipeline`: Return pipelines without their definitions (default: false) -- New parameter `index_details` in `snapshot.get`: Whether to include details of each index in the snapshot, if those details are available. Defaults to false. -- New endpoint `features.reset_features`, `ingest/geo_ip_stats` -- New experimental endpoints: `shutdown.delete_node`, `shutdown.get_node`, `shutdown.put_node`. - -[discrete] -==== X-Pack - -- Refactored test tasks, made it easier to run the tests by default. -- New experimental endpoints: `fleet.global_checkpoints`, `searchable_snapshots.cache_stats`. -- New beta endpoints: `security.clear_cached_service_tokens`, `security.create_service_token`, `security.delete_service_token`, `security.get_service_accounts`, `security.get_service_credentials` -- New endpoints: `machine_learning.delete_trained_model_alias`, `machine_learning.preview_data_frame_analytics`, `machine_learning.put_trained_model_alias`. -- APIs migrated from experimental or beta to stable: `machine_learning.delete_data_frame_analytics`, `machine_learning.delete_trained_model`, `machine_learning.estimate_model_memory`, `machine_learning.explain_data_frame_analytics`, `machine_learning.get_data_frame_analytics`, `machine_learning.get_data_frame_analytics_stats`, `machine_learning.get_trained_models`, `machine_learning.get_trained_models_stats`, `machine_learning.put_data_frame_analytics`, `machine_learning.put_trained_model`, `machine_learning.start_data_frame_analytics`, `machine_learning.stop_data_frame_analytics`, `machine_learning.update_data_frame_analytics` -- New parameter `body` in `machine_learning.preview_datafeed`: The datafeed config and job config with which to execute the preview. diff --git a/docs/release_notes/714.asciidoc b/docs/release_notes/714.asciidoc deleted file mode 100644 index 5cdf6092cd..0000000000 --- a/docs/release_notes/714.asciidoc +++ /dev/null @@ -1,93 +0,0 @@ -[[release_notes_714]] -=== 7.14 Release notes - -[discrete] -[[release_notes_7141]] -=== 7.14.1 Release notes - -[discrete] -==== Client - - - Fixes for Manticore Implementation: Addresses custom headers on initialization (https://github.com/elastic/elasticsearch-ruby/commit/3732dd4f6de75365460fa99c1cd89668b107ef1c[3732dd4]) and fixes tracing (https://github.com/elastic/elasticsearch-ruby/commit/3c48ebd9a783988d1f71bfb9940459832ccd63e4[3c48ebd]). Related to https://github.com/elastic/elasticsearch-ruby/issues/1426[#1426] and https://github.com/elastic/elasticsearch-ruby/issues/1428[#1428]. - -[discrete] -[[release_notes_7140]] -=== 7.14.0 Release notes - -[discrete] -==== Client - -Added check that client is connected to an Elasticsearch cluster. If the client isn't connected to a supported Elasticsearch cluster the `UnsupportedProductError` exception will be raised. - -This release changes the way in which the transport layer and the client interact. Previously, when using `elasticsearch-transport`, `Elasticsearch::Transport::Client` had a convenient wrapper, so it could be used as `Elasticsearch::Client`. Now, we are decoupling the transport layer from the Elasticsearch client. If you're using the `elasticsearch` gem, not much will change. It will instantiate a new `Elasticsearch::Transport::Client` when you instantiate `Elasticsearch::Client` and the endpoints from `elasticsearch-api` will be available. - -`Elasticsearch::Client` has an `attr_accessor` for the transport instance: - -[source,ruby] ------------------------------------- -> client = Elasticsearch::Client.new -> client.transport.class -=> Elasticsearch::Transport::Client -> client.transport.transport.class -=> Elasticsearch::Transport::Transport::HTTP::Faraday ------------------------------------- - -The interaction with `elasticsearch-api` remains unchanged. You can use the API endpoints just like before: - -[source,ruby] ------------------------------------- -> client.info -=> {"name"=>"instance", - "cluster_name"=>"elasticsearch", - "cluster_uuid"=>"id", - "version"=> - {"number"=>"7.14.0", - ... -}, - "tagline"=>"You Know, for Search"} ------------------------------------- - -Or perform request directly from the client which will return an `Elasticsearch::Transport::Response` object: - -[source,ruby] ------------------------------------- -> client.perform_request('GET', '/') -# This is the same as doing client.transport.perform_request('GET', '/') -=> #"instance", - "cluster_name"=>"elasticsearch", - "cluster_uuid"=>"id", - "version"=> - {"number"=>"7.14.0-SNAPSHOT", - ... - }, - "tagline"=>"You Know, for Search"}, - @headers= - {"content-type"=>"application/json; charset=UTF-8", - "content-length"=>"571", - ... - }, - @status=200> ------------------------------------- - -If you have any problems, please report them in https://github.com/elastic/elasticsearch-ruby/issues/1344[this issue]. - -[discrete] -==== API - -Code is now generated from Elastic artifacts instead of checked out code of Elasticsearch. See https://github.com/elastic/elasticsearch-ruby/blob/7.14/elasticsearch-api/utils/README.md#generate[the Generator README] for more info. - -- Endpoints `msearch`, `msearch_template` and `search_template` remove `query_and_fetch` and `dfs_query_and_fetch` options from the `search_type` parameter. -- New parameter `include_repository` in `snapshot.get`: (boolean) Whether to include the repository name in the snapshot info. Defaults to true. - -[discrete] -==== X-Pack - -X-Pack is being deprecated. The first time using `xpack` on the client, a warning will be triggered. Please check https://github.com/elastic/elasticsearch-ruby/issues/1274[this issue] for more information. - - -- New endpoints: `index_lifecycle_management.migrate_to_data_tiers`, `machine_learning.reset_job`, `security.saml_authenticate`, `security.saml_complete_logout`, `security.saml_invalidate`, `security.saml_logout`, `security.saml_prepare_authentication`, `security.saml_service_provider_metadata`, `sql.delete_async`, `sql.get_async`, `sql.get_async_status`, `terms_enum`. -- New experimental endpoints: `machine_learning.infer_trained_model_deployment`, `machine_learning.start_trained_model_deployment`, `machine_learning.stop_trained_model_deployment`. -- Deprecation: `indices.freeze` and `indices.unfreeze`: Frozen indices are deprecated because they provide no benefit given improvements in heap memory utilization. They will be removed in a future release. - diff --git a/docs/release_notes/715.asciidoc b/docs/release_notes/715.asciidoc deleted file mode 100644 index 5962394afe..0000000000 --- a/docs/release_notes/715.asciidoc +++ /dev/null @@ -1,20 +0,0 @@ -[[release_notes_715]] -=== 7.15 Release notes - -[discrete] -==== Client - -- Support for Elasticsearch v7.15.0 APIs. -- We've tested and added documentation on best practices for leveraging the client in a Function-as-a-Service (FaaS) environment to the https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/connecting.html#client-faas[official docs]. - -[discrete] -==== API -- New experimental endpoints: `indices.disk_usage`. `indices.field_usage_stats`, `nodes.clear_repositories_metering_archive`, `get_repositories_metering_info`, https://www.elastic.co/guide/en/elasticsearch/reference/7.15/search-vector-tile-api.html[`search_mvt`] -- The `index` parameter is now required for `open_point_in_time`. -- The `index_metric` parameter in `nodes.stats` adds the `shards` option. - -[discrete] -==== X-Pack - -- New parameters for `ml.put_job`: `ignore_unavailable`, `allow_no_indices`, `ignore_throttled`, `expand_wildcards`. -- New endpoint: https://www.elastic.co/guide/en/elasticsearch/reference/7.15/security-api-query-api-key.html[`security.query_api_keys`]. diff --git a/docs/release_notes/716.asciidoc b/docs/release_notes/716.asciidoc deleted file mode 100644 index 11c1b68ad7..0000000000 --- a/docs/release_notes/716.asciidoc +++ /dev/null @@ -1,96 +0,0 @@ -[[release_notes_716]] -=== 7.16 Release notes - -[discrete] -[[release_notes_7163]] -=== 7.16.3 Release notes - -==== API - -Bugfix for https://github.com/elastic/elasticsearch-ruby/issues/1475[#1475], an issue where if you indexed a document with an id such as `an id`, it would get escaped to `an+id` instead of `an%20id` when using `index` or `create`. This would result in the document id being `an+id` instead of the intended value `an id`. - -[discrete] -[[release_notes_7162]] -=== 7.16.2 Release notes - -No release. - -[discrete] -[[release_notes_7161]] -=== 7.16.1 Release notes - -Patch release corresponding with Elastic Stack version 7.16.1 that addresses the Apache Log4j2 vulnerability, https://discuss.elastic.co/t/apache-log4j2-remote-code-execution-rce-vulnerability-cve-2021-44228-esa-2021-31/291476[more information]. - -==== Client - -The only changes in the client since 7.16.0 are a few minor updates for the https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/connecting.html#client-comp[Compatibility mode with 8.0]. We added the compatibility header in `7.13.0`, but now we have integration tests and compatibility tests for version `7.x` of the client with Elasticsearch `8.0`. - -[discrete] -[[release_notes_7160]] -=== 7.16.0 Release notes - -[discrete] -==== Client - -- Adds the `delay_on_retry` parameter, a value in milliseconds to wait between each failed connection, thanks https://github.com/DinoPullerUqido[DinoPullerUqido]! https://github.com/elastic/elasticsearch-ruby/pull/1521[Pull Request] and https://github.com/elastic/elasticsearch-ruby/pull/1523[backport]. -- Adds *CA fingerprinting*. You can configure the client to only trust certificates that are signed by a specific CA certificate (CA certificate pinning) by providing a `ca_fingerprint` option. This will verify that the fingerprint of the CA certificate that has signed the certificate of the server matches the supplied value. The verification will be run once per connection. Code example: - -[source,ruby] ------------------------------------- -ca_fingerprint = '64F2593F...' -client = Elasticsearch::Client.new( - host: 'https://elastic:changeme@localhost:9200/', - transport_options: { ssl: { verify: false } }, - ca_fingerprint: ca_fingerprint -) ------------------------------------- - -- Fixes compression. When `compression` is set to `true`, the client will now gzip the request body properly and use the appropiate headers. Thanks https://github.com/johnnyshields[johnnyshields]! https://github.com/elastic/elasticsearch-ruby/pull/1478[Pull Request] and https://github.com/elastic/elasticsearch-ruby/pull/1526[backport]. -- Warnings emitted by Elasticsearch are now logged via `log_warn` through the Loggable interface in the client, instead of using `Kernel.warn`. https://github.com/elastic/elasticsearch-ruby/pull/1517[Pull Request]. - -[discrete] -==== API - -- Cleaned up some deprecated code. -- `count` - The API is documented as using `GET`, but it supports both GET and POST on the Elasticsearch side. So it was updated to only use `POST` when there's a body present, or else use `GET`. Elasticsearch would still accept a body with `GET`, but to be more semantically correct in the clients we use `POST` when there's a body. -- `delete_index_template` was updated to support the `ignore_404` parameter to ignore 404 errors when attempting to delete a non-existing template. -- `ingest.put_pipeline` adds new parameter `if_version`: Required version for optimistic concurrency control for pipeline updates. -- `ml.put_trained_model`: adds new parameter `defer_definition_decompression`: If set to `true` and a `compressed_definition` is provided, the request defers definition decompression and skips relevant validations. -- `nodes.hot_threads` adds new parameter `sort`: The sort order for 'cpu' type (default: total) (options: cpu, total). -- `open_point_in_time`: `keep_alive` is now a required parameter. -- `search_mvt`: adds new parameter `track_total_hits`: Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number. -- `transform.preview_transform`: adds new parameter `transform_id`. Body is now optional and the API will use `GET` or `POST` depending on the presence of a body. - -*APIs promoted from experimental to stable since last version:* - -- `fleet.global_checkpoints` -- `get_script_context` -- `get_script_language` -- `indices.resolve_index` -- `monitoring.bulk` -- `rank_eval` -- `searchable_snapshots.mount` -- `searchable_snapshots.stats` -- `security.clear_cached_service_tokens` -- `security.create_service_token` -- `security.delete_service_token` -- `security.get_service_accounts` -- `security.get_service_credentials` -- `shutdown.delete_node` -- `shutdown.get_node` -- `shutdown.put_node` -- `terms_enum` - -*New APIs* - -- `fleet.mseach` -- `fleet.search` -- `indices.modify_data_stream` -- `ml.infer_trained_model_deployment` -- `ml.start_trained_model_deployment` -- `ml.stop_trained_model_deployment` -- `migration.get_feature_upgrade_status` -- `migration.post_feature_upgrade_status` -- `security.enroll_kibana` -- `security.enroll_node` -- `transform.updgrade_transforms` diff --git a/docs/release_notes/717.asciidoc b/docs/release_notes/717.asciidoc deleted file mode 100644 index 4413dd225a..0000000000 --- a/docs/release_notes/717.asciidoc +++ /dev/null @@ -1,29 +0,0 @@ -[[release_notes_717]] -=== 7.17 Release notes - -[discrete] -[[release_notes_7177]] -=== 7.17.7 Release notes - -- Compatibility with Elasticsearch v7.17.7 APIs. -- Tested versions of Ruby for 7.17.7: Ruby (MRI) 2.6, 2.7, 3.0 and 3.1, JRuby 9.3. - -[discrete] -[[release_notes_7172]] -=== 7.17.2, 7.17.3, 7.17.4, 7.17.5, 7.17.6 Release notes - -No release. - -[discrete] -[[release_notes_7171]] -=== 7.17.1 Release notes - -- Improves handling of YAML parsing, uses `safe_load` instead of `load` when doing the product verification (should only affect Ruby < 3.0). -- Updates headers setup when using the Manticore adapter. This fixes an issue where the user-agent header was being foverridden even when it was being set on initialization via the transport options. https://github.com/elastic/elasticsearch-ruby/pull/1685[Pull Request], https://github.com/elastic/elasticsearch-ruby/issues/1684[issue]. - -[discrete] -[[release_notes_7170]] -=== 7.17.0 Release notes - -- Drops Ruby 2.5 from the test matrix. Support for Ruby 2.5 was dropped March 2021. -- Updates the product verification when the response is a `413` error. diff --git a/docs/release_notes/75.asciidoc b/docs/release_notes/75.asciidoc deleted file mode 100644 index ac874d0cfb..0000000000 --- a/docs/release_notes/75.asciidoc +++ /dev/null @@ -1,59 +0,0 @@ -[[release_notes_75]] -=== 7.5 Release notes - -- Support for Elasticsearch 7.5. -- Update API spec generator: The code for Elasticsearch OSS and X-Pack APIs is being generated from the rest api spec. -- Specs have been updated to address new/deprecated parameters. -- Ruby versions tested: 2.3.8, 2.4.9, 2.5.7, 2.6.5 and 2.7.0 (new). - - -[discrete] -==== API - -Endpoints that changed: - -- `_bulk`: body is now required as an argument. -- `cat`: `local` and `master_timeout` parameters are gone. - - `health`: New parameter `health`. - - `indices`: Adds `time` and `include_unload_segments` parameters. - - `nodes`: Adds `bytes`, `time` parameters. - - `pending_tasks`: Adds `time` parameter. - - `recovery`: Adds `active_only`, `detailed`, `index`, `time` parameters. - - `segments`: Removes `index` parameter and it's now a url part. - - `shards`: Adds `time` parameter. - - `snapshots`: Adds `time` parameter. - - `tasks`: Adds `time` parameter. - - `templates`: The `name` parameter is now passed in as a part but not a parameter. - - `thread_pool`: The `thread_pool_patterns` parameter is now passed in as a part but not as a parameter. -- `cluster` - - `put_settings`: body is required. - - `state`: `index_templates` is gone. - - `node_id` is now a url part. -- `delete` - `parent` parameter is gone. -- `delete_by_query`: `analyzer` parameters are gone, `max_docs` is a new parameter, `body` is now a required parameter. -- `delete_by_query_rethrottle` new endpoint. -- `delete_by_rethrottle` - uses `delete_by_query_rethrottle` and hasn't changed. -- `exists`, `exists_source`, `explain`: `parent` parameter is gone. -- `field_caps`: `fields` param is no longer required. -- `get`: `parent` parameter is gone -- `get_source`: `parent` parameter is gone -- `index`: `body` parameter is required, `wait_for_shard` is a new parameter, `consistency`, `include_type_name`, `parent`, `percolate`, `replication`, `timestamp`, `ttl` parameters are gone -- `indices` - - `get`: `feature` paramatere was deprecated and is gone. - - `delete_aliases`, `put_alias`: URL changed internally to 'aliases' instead of 'alias' but shouldn't affect the client's API. -- `render_search_template`: `id` is now a part not a parameter -- `search`: `fielddata_fields`, `include_type_name`, `fields`, `ignore_indices`, `lowercase_expanded_terms`, `query_cache`, `source` parameters are gone, `ccs_minimize_roundtrips`, `track_scores` are new parameters. -- `tasks` - `list`: task_id is not supported anymore, it's in get now. -- `termvectors`: `parent` parameter is gone. -- `update`: `version` parameter is not supported anymore. - - -[discrete] -==== X-Pack - -Some urls changed internally to remove `_xpack`, but it shouldn't affect the client's API. - -- `explore`: `index` is now required. -- `info`: `human` parameter is gone. -- `migration`: some endpoints are gone: `get_assistance`, `get_assistance_test` and `upgrade_test`. -- `watcher`: `restart` endpoint is gone. diff --git a/docs/release_notes/76.asciidoc b/docs/release_notes/76.asciidoc deleted file mode 100644 index bd546df82f..0000000000 --- a/docs/release_notes/76.asciidoc +++ /dev/null @@ -1,86 +0,0 @@ -[[release_notes_76]] -=== 7.6 Release notes - - -[discrete] -==== Client - -* Support for Elasticsearch version 7.6. -* Last release supporting Ruby 2.4. Ruby 2.4 has reached it's end of life and no more security updates will be provided, users are suggested to update to a newer version of Ruby. - - -[discrete] -===== API Key Support - -The client now supports API Key Authentication, check "Authentication" on the https://github.com/elastic/elasticsearch-ruby/tree/7.x/elasticsearch-transport#authentication[transport README] for information on how to use it. - - -[discrete] -===== X-Opaque-Id Support - -The client now supports identifying running tasks with X-Opaque-Id. Check https://github.com/elastic/elasticsearch-ruby/tree/7.x/elasticsearch-transport#identifying-running-tasks-with-x-opaque-id[transport README] for information on how to use X-Opaque-Id. - - -[discrete] -===== Faraday migrated to 1.0 - -We're now using version 1.0 of Faraday: - -* The client initializer was modified but this should not disrupt final users at all, check this commit for more information. -* Migrated error checking to remove the deprecated Faraday::Error namespace. -* *This change is not compatible with https://github.com/typhoeus/typhoeus[Typhoeus]*. The latest release is 1.3.1, but it's https://github.com/typhoeus/typhoeus/blob/v1.3.1/lib/typhoeus/adapters/faraday.rb#L100[still using the deprecated `Faraday::Error` namespace]. This has been fixed on master, but the last release was November 6, 2018. Version 1.4.0 should be ok once it's released. -* Note: Faraday 1.0 drops official support for JRuby. It installs fine on the tests we run with JRuby in this repo, but it's something we should pay attention to. - -Reference: https://github.com/lostisland/faraday/blob/master/UPGRADING.md[Upgrading - Faraday 1.0] - -https://github.com/elastic/elasticsearch-ruby/pull/808[Pull Request] - - -[discrete] -==== API - - -[discrete] -===== API Changes: - -- `cat.indices`: argument `bytes` options were: `b,k,m,g` and are now `b,k,kb,m,mb,g,gb,t,tb,p,pb`. -- `delete_by_query`: New parameter `analyzer` - The analyzer to use for the query string. -- `indices.put_template`: Removed parameters: `timeout`, `flat_settings`. -- `msearch_template`: New Parameter `ccs_minimize_roundtrips` - Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution. -- `rank_eval`: New parameter `search_type` - Search operation type (options: `query_then_fetch,dfs_query_then_fetch`). -- `search_template`: New parameter `ccs_minimize_roundtrips` - Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution. - - -[discrete] -===== New API endpoints: - -- `get_script_context` -- `get_script_languages` - - -[discrete] -===== Warnings: - -Synced flush is deprecated and will be removed in 8.0. - - -[discrete] -==== X-Pack - - -[discrete] -===== New API endpoints: - -- `ml/delete_trained_model` -- `ml/explain_data_frame_analytics` -- `ml/get_trained_models` -- `ml/get_trained_models_stats` -- `ml/put_trained_model` - - -[discrete] -===== API changes: - -- `license/get`: Added parameter `accept_enterprise`. -- `ml/delete_data_frame_analytics` Added parameter `force`. -- `monitoring/bulk` - Removed parameter `system_version`. \ No newline at end of file diff --git a/docs/release_notes/77.asciidoc b/docs/release_notes/77.asciidoc deleted file mode 100644 index 87f5e1bdbb..0000000000 --- a/docs/release_notes/77.asciidoc +++ /dev/null @@ -1,77 +0,0 @@ -[[release_notes_77]] -=== 7.7 Release notes - -This version drops support for Ruby 2.4 since it's reached it's end of life. - - -[discrete] -==== Client - -- Support for Elasticsearch version `7.7` - - -[discrete] -===== Custom Headers - -You can set custom HTTP headers on the client's initializer or pass them as a parameter to any API endpoint. https://github.com/elastic/elasticsearch-ruby/tree/7.x/elasticsearch-transport#custom-http-headers[More info and code examples]. - - -[discrete] -==== API - - -[discrete] -===== API Changes - -- Clean: Removes up some deprecated endpoints: `abort_benchmark`, `benchmark`, `delete_by_rethrottle`, `nodes.shutdown`, `remote.info`. -- `expand_wildcards` Whether to expand wildcard expressions to concrete indices that are open, closed or both. Options: open, closed, hidden, none, all. `hidden` option is new. It was also added to the following endpoints: `cat.aliases`, `cat.indices`. -- `delete_by_query`: Parameter `slices` can now be set to `auto`. -- `reindex`: Parameter `slices` can now be set to `auto`. -- `update_by_query`: Parameter `slices` can now be set to `auto`. -- `snapshot.cleanup_repository`: Parameter `body` is removed. - - -[discrete] -===== New API Endpoints - -- `cluster.delete_component_template` -- `cluster.get_component_template` -- `cluster.put_component_template` -- `indices.create_data_stream` (experimental) -- `indices.delete_data_stream` (experimental) -- `indices.get_data_stream` (experimental) - - -[discrete] -==== X-Pack - - -[discrete] -===== API Changes - -- `machine_learing.get_trained_models`: New parameter `tags` -- `machine_learning.put_datafeed`, `machine_learning.update_datafeed`: Added parameters `ignore_unavailable`, `allow_no_indices`, `ignore_throttled`, `expand_wildcards` -- `reload_secure_settings`: New parameter `body`, an object containing the password for the keystore. - - -[discrete] -===== New API Endpoints - -- `async_search.delete` -- `async_search.get` -- `async_search.submit` -- `cat.ml_data_frame_analytics` -- `cat.ml_datafeeds` -- `cat.ml_jobs` -- `cat.ml_trained_models` -- `cat.transform` -- `cat.transforms` -- `machine_learning.estimate_model_memory` -- `transform.delete_transform` -- `transform.get_transform` -- `transform.get_transform_stats` -- `transform.preview_transform` -- `transform.put_transform` -- `transform.start_transform` -- `transform.stop_transform` -- `transform.update_transform` \ No newline at end of file diff --git a/docs/release_notes/78.asciidoc b/docs/release_notes/78.asciidoc deleted file mode 100644 index a5d59e985e..0000000000 --- a/docs/release_notes/78.asciidoc +++ /dev/null @@ -1,103 +0,0 @@ -[[release_notes_78]] -=== 7.8 Release notes - -[discrete] -[[release_notes_781]] -=== 7.8.1 Release notes - -[discrete] -==== Client - -- Support for Elasticsearch version `7.8.1`. -- Bug fix: Fixed a bug on the API endpoints documentation for RubyDocs: there was an unnecessary empty new line in the documentation for parameters that have options. So the parameters before that empty newline were not being documented in RubyDocs. - - -[discrete] -==== X-Pack - - -[discrete] -===== API Changes - -- Update to `info` endpoint. New parameter `accept_enterprise` (boolean): If an enterprise license is installed, return the type and mode as 'enterprise' (default: false). - - -[discrete] -[[release_notes_780]] -=== 7.8.0 Release notes - -[discrete] -==== Client - -- Support for Elasticsearch version `7.8`. -- Surface deprecation headers from Elasticsearch. When there's a `warning` response header in Elasticsearch's response, the client will emit a warning with `warn`. -- Typhoeus is supported again, version 1.4+ and has been added back to the docs. -- Adds documentation and example for integrating with Elastic APM. - - -[discrete] -==== API - - -[discrete] -===== New API Endpoints - -- `abort_benchmark` -- `benchmark` -- `cluster.delete_voting_config_exclusions` -- `cluster.post_voting_config_exclusions` -- `delete_by_rethrottle` -- `nodes.shutdown` -- `remote.info` - -Experimental endpoints: - -- `cluster.delete_component_template` -- `cluster.exists_component_template` -- `cluster.get_component_template` -- `cluster.put_component_template` - -- `indices.delete_index_template` -- `indices.exists_index_template` -- `indices.get_index_template` -- `indices.put_index_template` -- `indices.simulate_index_template` - - -[discrete] -===== API Changes - -- `cat/thread_pool`: `size` is deprecated. -- `indices.get_data_streams`: `name` is now a string instead of list, the name or wildcard expression of the requested data streams. -- `indices.put_index_template`: new parameter: `cause` (string), user defined reason for creating/updating the index template. -- `indices.simulate_index_template`: Two new parameters: `create`, whether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing one. `cause` User defined reason for dry-run creating the new template for simulation purposes. -- `snapshot.delete_repository`: New parameter `repository`, name of the snapshot repository, wildcard (`*`) patterns are now supported. -- `task.cancel`: new parameter `wait_for_completion` (boolean) Should the request block until the cancellation of the task and its descendant tasks is completed. Defaults to false. - - -[discrete] -==== X-Pack - - -[discrete] -===== New API Endpoints - -New namespace: `indices` - -- `indices.freeze` -- `indices.reload_search_analyzers` -- `indices.unfreeze` - -New namespace: `searchable_snapshots` - -- `clear_cache` -- `mount` -- `repository_stats` -- `stats` - - -[discrete] -===== API Changes - -- `machine_learning.delete_expired_data` new param `body`: deleting expired data parameters. -- `machine_learning.delete_data_frame_analytics` new param `timeout`: controls the time to wait until a job is deleted. Defaults to 1 minute. diff --git a/docs/release_notes/79.asciidoc b/docs/release_notes/79.asciidoc deleted file mode 100644 index cd780239fb..0000000000 --- a/docs/release_notes/79.asciidoc +++ /dev/null @@ -1,60 +0,0 @@ -[[release_notes_79]] -=== 7.9 Release notes - -[discrete] -==== Client - -- Support for Elasticsearch version `7.9.0`. -- Transport/Connection: Considers attributes values for equality - https://github.com/elastic/elasticsearch-ruby/commit/06ffd03bf51f5f33a0d87e9914e66b39357d40af[Commit]. -- When an API endpoint accepts both `GET` and `POST`, the client will always use `POST` when a request body is present. - -[discrete] -==== API - -- Documentation for API endpoints will point out when an API is experimental, beta or unstable. - -[discrete] -===== New API Endpoints - -- New namespace: `dangling_indices` -- `dangling_indices.delete_dangling_index` -- `dangling_indices.import_dangling_index` -- `dangling_indices.list_dangling_indices` -- `indices.add_block` - -Experimental endpoints: -- `indices.resolve_index` -- `simulate_template` - -[discrete] -===== API Changes - -- `field_caps`: adds body parameter allowing to filter indices if `index_filter` is provided. -- `eql.search`: new parameters `wait_for_completion`, `keep_on_completion` and `keep_alive`. -- `info`: New parameter `accept_enterprise`: If an enterprise license is installed, return the type and mode as 'enterprise' (default: false). -- `indices.put_mapping`: new parameter `write_index_only`. - -[discrete] -==== X-Pack - -[discrete] -===== New API Endpoints - -The Ruby client now supports all the X-Pack API endpoints. - -- New namespace `autoscaling`: `autoscaling.delete_autoscaling_policy`, `autoscaling.get_autoscaling_decision`, `autoscaling.get_autoscaling_policy`, `autoscaling.put_autoscaling_policy` -- New namespace `enrich`: `enrich.delete_policy`, `enrich.execute_policy`, `enrich.get_policy`, `enrich.put_policy`, `enrich.stats` -- New namespace `eql`: `eql.delete`, `eql.get`, `eql.search` -- New namespace `cross_cluster_replication`: `cross_cluster_replication.delete_auto_follow_pattern`, `cross_cluster_replication.follow`, `cross_cluster_replication.follow_info`, `cross_cluster_replication.follow_stats`, `cross_cluster_replication.forget_follower`, `cross_cluster_replication.get_auto_follow_pattern`, `cross_cluster_replication.pause_auto_follow_pattern`, `cross_cluster_replication.pause_follow`, `cross_cluster_replication.put_auto_follow_pattern`, `cross_cluster_replication.resume_auto_follow_pattern`, `cross_cluster_replication.resume_follow`, `cross_cluster_replication.stats`, `cross_cluster_replication.unfollow` -- New namespace `snapshot_lifecycle_management`: `snapshot_lifecycle_management.delete_lifecycle`, `snapshot_lifecycle_management.execute_lifecycle`, `snapshot_lifecycle_management.execute_retention`, `snapshot_lifecycle_management.get_lifecycle`, `snapshot_lifecycle_management.get_stats`, `snapshot_lifecycle_management.get_status`, `snapshot_lifecycle_management.put_lifecycle`, `snapshot_lifecycle_management.start`, `snapshot_lifecycle_management.stop` -- `indices.create_data_stream` -- `indices.data_streams_stats` -- `indices.delete_data_stream` -- `indices.get_data_stream` -- `security.clear_cached_privileges` -- `machine_learning.update_data_frame_analytics` - -[discrete] -===== API Changes - -- `machine_learning.delete_expired_data`: new parameters `job_id`, `requests_per_second` and `timeout` \ No newline at end of file diff --git a/docs/release_notes/80.asciidoc b/docs/release_notes/80.asciidoc deleted file mode 100644 index c97e91cc7b..0000000000 --- a/docs/release_notes/80.asciidoc +++ /dev/null @@ -1,74 +0,0 @@ -[[release_notes_80]] -=== 8.0 Release notes - -[discrete] -[[release_notes_801]] -=== 8.0.1 Release notes - -- Fixes an issue with the generated API code. When updating the code generator for 8.x, the order of `arguments.clone` in the generated code was changed. This would make it so that we would modify the parameters passed in before cloning them, which is undesired. Issue: https://github.com/elastic/elasticsearch-ruby/issues/1727[#1727]. - -[discrete] -[[release_notes_800]] -=== 8.0.0 Release notes - -First release for the 8.x branch with a few major changes. - -- Tested versions of Ruby for 8.0.0: Ruby (MRI) 2.6, 2.7, 3.0 and 3.1, JRuby 9.3. - -[discrete] -==== Client - -The code for the dependency `elasticsearch-transport` has been promoted to https://github.com/elastic/elastic-transport-ruby[its own repository] and the project and gem have been renamed to https://rubygems.org/gems/elastic-transport[`elastic-transport`]. This gem now powers https://rubygems.org/gems/elasticsearch[`elasticsearch`] and https://rubygems.org/gems/elastic-enterprise-search[`elastic-enterprise-search`]. The `elasticsearch-transport` gem won't be maintained after the last release in the `7.x` branch, in favour of `elastic-transport`. - -This will allow us to better address maintainance in both clients and the library itself. - -[discrete] -==== API - -The `elasticsearch-api` library has been generated based on the {es} 8.0.0 REST specification. - -#### X-Pack Deprecation - -X-Pack has been deprecated. The `elasticsearch-xpack` gem will no longer be maintained after the last release in the `7.x` branch. The "X-Pack" integration library codebase was merged into `elasticsearch-api`. All the functionality is available from `elasticsearch-api`. The `xpack` namespace was removed for accessing any APIs other than `_xpack` (`client.xpack.info`) and `_xpack/usage` (`client.xpack.usage`). But APIs which were previously available through the `xpack` namespace e.g.: `client.xpack.machine_learning` are now only available directly: `client.machine_learning`. - -#### Parameter checking was removed - -The code in `elasticsearch-api` will no longer validate all the parameters sent. It will only validate the required parameters such as those needed to build the path for the request. But other API parameters are going to be validated by {es}. This provides better forwards and backwards compatibility in the client. - -#### Response object - -In previous versions of the client, calling an API endpoint would return the JSON body of the response. With `8.0`, we are returning a new Response object `Elasticsearch::API::Response`. It still behaves like a Hash to maintain backwards compatibility, but adds the `status` and `headers` methods from the `Elastic::Transport:Transport::Response` object: - -```ruby -elastic_ruby(main)> response = client.info -=> #"instance", - "cluster_name"=>"elasticsearch-8-0-0-SNAPSHOT-rest-test", - "cluster_uuid"=>"oIfRARuYRGuVYybjxQJ87w", - "version"=> - {"number"=>"8.0.0-SNAPSHOT", - "build_flavor"=>"default", - "build_type"=>"docker", - "build_hash"=>"7e23c54eb31cc101d1a4811b9ab9c4fd33ed6a8d", - "build_date"=>"2021-11-04T00:21:32.464485627Z", - "build_snapshot"=>true, - "lucene_version"=>"9.0.0", - "minimum_wire_compatibility_version"=>"7.16.0", - "minimum_index_compatibility_version"=>"7.0.0"}, - "tagline"=>"You Know, for Search"}, - @headers={"X-elastic-product"=>"Elasticsearch", "content-type"=>"application/json", "content-length"=>"567"}, - @status=200>> -elastic_ruby(main)> response.status -=> 200 -elastic_ruby(main)> response.headers -=> {"X-elastic-product"=>"Elasticsearch", "content-type"=>"application/json", "content-length"=>"567"} -elastic_ruby(main)> response['name'] -=> "instance" -elastic_ruby(main)> response['tagline'] -=> "You Know, for Search" -``` - -Please https://github.com/elastic/elasticsearch-ruby/issues[let us know if you find any issues]. diff --git a/docs/release_notes/81.asciidoc b/docs/release_notes/81.asciidoc deleted file mode 100644 index 871486ead8..0000000000 --- a/docs/release_notes/81.asciidoc +++ /dev/null @@ -1,55 +0,0 @@ -[[release_notes_81]] -=== 8.1 Release notes - -[discrete] -[[release_notes_812]] -=== 8.1.2 Release notes - -[discrete] -==== API - -- Fixes an issue with the generated API code. When updating the code generator for 8.x, the order of `arguments.clone` in the generated code was changed. This would make it so that we would modify the parameters passed in before cloning them, which is undesired. Issue: https://github.com/elastic/elasticsearch-ruby/issues/1727[#1727]. - -[discrete] -[[release_notes_811]] -=== 8.1.1 Release notes - -No release, no changes on the client. - -[discrete] -[[release_notes_810]] -=== 8.1.0 Release notes - -- Tested versions of Ruby for 8.1.0: Ruby (MRI) 2.6, 2.7, 3.0 and 3.1, JRuby 9.3. - -[discrete] -==== API - -Updated for compatibility with Elasticsearch 8.1's API. - -[discrete] -===== New parameters: -- `indices.forcemerge` - `wait_for_completion` Should the request wait until the force merge is completed. -- `indices.get` - `features` Return only information on specified index features (options: aliases, mappings, settings). -- `ingest.put_pipeline` `if_version` (Integer), required version for optimistic concurrency control for pipeline updates. -- `ml.delete_trained_model` - `timeout` controls the amount of time to wait for the model to be deleted. `force` (Boolean) true if the model should be forcefully deleted. -- `ml.stop_trained_model_deployment` - `allow_no_match` whether to ignore if a wildcard expression matches no deployments. (This includes `_all` string or when no deployments have been specified). `force` true if the deployment should be forcefully stopped. Adds `body` parameter, the stop deployment parameters. -- `nodes.hot_threads` - `sort` the sort order for 'cpu' type (default: total) (options: cpu, total) - -[discrete] -===== Updated parameters: -- `indices.get_index_template` - `name` is now a String, a pattern that returned template names must match. -- `knn_search` - `index` removes option to use empty string to perform the operation on all indices. -- `ml.close_job`, `ml.get_job_stats`, `ml.get_jobs`, `ml.get_overall_buckets` - Remove `allow_no_jobs` parameter. -- `ml.get_datafeed_stats`, `ml.get_datafeeds` - Remove `allow_no_datafeeds` parameter. -- `nodes.hot_threads` - `type` parameter adds `mem` option. -- `nodes.info` - `metric` updated to use `_all` to retrieve all metrics and `_none` to retrieve the node identity without any additional metrics. (options: settings, os, process, jvm, thread_pool, transport, http, plugins, ingest, indices, aggregations, _all, _none). `index_metric` option `shards` changes to `shard_stats`. -- `open_point_in_time` - `keep_alive` is now a required parameter. -- `search_mvt` - `grid_type` parameter adds `centroid` option in addition to `grid` and `point`. - -- New experimental APIs, designed for internal use by the fleet server project: `fleet.search`, `fleet.msearch`. - -[discrete] -===== New APIs -- OpenID Connect Authentication: `security.oidc_authenticate`, `security.oidc_logout`, `security.oidc_prepare_authentication`. -- `transform.reset_transform`. diff --git a/docs/release_notes/810.asciidoc b/docs/release_notes/810.asciidoc deleted file mode 100644 index c58f777d8e..0000000000 --- a/docs/release_notes/810.asciidoc +++ /dev/null @@ -1,51 +0,0 @@ -[[release_notes_8100]] -=== 8.10 Release notes - -[discrete] -[[release_notes_810_0]] -=== 8.10.0 Release notes - -[discrete] -=== Client -* Tested versions of Ruby for 8.10.0: Ruby (MRI) 3.0, 3.1 and 3.2. JRuby 9.3 and JRuby 9.4. - -[discrete] -=== API - -[discrete] -==== New Experimental APIs, for internal use: -- `fleet.delete_secret` -- `fleet.get_secret` -- `fleet.post_secret` - -[discrete] -==== New stable APIs: -- `security.get_settings` - Retrieve settings for the security system indices -- `security.update_settings` - Update settings for the security system indices - -[discrete] -==== New Experimental API: -- `query_ruleset.list` List query rulesets. - -[discrete] -==== API Changes: -- `indices.reload_search_analyzers` - Adds parameter `resource` changed resource to reload analyzers from if applicable - -Promoted from Experimental to Beta: - -- `security.create_cross_cluster_api_key` -- `security.update_cross_cluster_api_key` - -[discrete] -==== Synonyms namespace update: - -All synonym related APIs have been moved to the `synonyms` namespace and some of the endpoints have been renamed, as well as their parameters: - -- `synonyms.delete` => `synonyms.delete_synonym` - requires `id`, the id of the synonyms set to be deleted. -- `synonyms.get` => `synonyms.get_synonym` - requires `id`, the name of the synonyms set to be retrieved. -- `synonyms_set.get_synonyms_sets` => `synonyms.get_synonyms_sets` -- `synonyms.put` => `synonyms.put_synonym` - requires `id` of the synonyms set to be created or updated. -- `synonym_rule.put` => `synonyms.put_synonym_rule` - Parameters changed to `set_id` (the id of the synonym set to be updated with the synonym rule) and `rule_id` (the id of the synonym rule to be updated or created). -- New Experimental API `synonyms.delete_synonym_rule` - Deletes a synonym rule in a synonym set -- New Experimental API `synonyms.get_synonym_rule` - Retrieves a synonym rule from a synonym set - diff --git a/docs/release_notes/811.asciidoc b/docs/release_notes/811.asciidoc deleted file mode 100644 index 43c43427de..0000000000 --- a/docs/release_notes/811.asciidoc +++ /dev/null @@ -1,24 +0,0 @@ -[[release_notes_8110]] -=== 8.11 Release notes - -[discrete] -[[release_notes_811_0]] -=== 8.11.0 Release notes - -[discrete] -=== Client - -* Tested versions of Ruby for 8.11.0: Ruby (MRI) 3.0, 3.1 and 3.2. JRuby 9.3 and JRuby 9.4. -* Adds native support for *Open Telemetry*. See <> for documentation. -* Improved documentation, now you can find more examples in Ruby in the https://www.elastic.co/guide/en/elasticsearch/reference/8.11/rest-apis.html[REST API reference]. - -[discrete] -=== API - -New Experimental APIs: - -* `esql.query` - Executes an ESQL request. -* `inference.delete_model` - Delete model in the Inference API -* `inference.get_model` - Get a model in the Inference API -* `inference.inference` - Perform inference on a model -* `inference.put_model` - Configure a model for use in the Inference API diff --git a/docs/release_notes/812.asciidoc b/docs/release_notes/812.asciidoc deleted file mode 100644 index 7fb1c52f6e..0000000000 --- a/docs/release_notes/812.asciidoc +++ /dev/null @@ -1,65 +0,0 @@ -[[release_notes_8_12]] -=== 8.12 Release notes - -[discrete] -[[release_notes_8_12_0]] -=== 8.12.0 Release notes - -[discrete] -==== Client -* Tested versions of Ruby for 8.12.0: Ruby (MRI) 3.0, 3.1, 3.2 and 3.3. JRuby 9.3 and JRuby 9.4. - -[discrete] -==== API - -API Changes: - -* `bulk` - Adds boolean `:list_executed_pipelines` parameter: Sets `list_executed_pipelines` for all incoming documents. Defaults to unset (false). -* `indices.put_settings` - Adds boolean `:reopen` parameter: Whether to close and reopen the index to apply non-dynamic settings. If set to `true` the indices to which the settings are being applied will be closed temporarily and then reopened in order to apply the changes. The default is `false`. -* `open_point_in_time` - Adds Hash `:body` parameter: an index_filter specified with the Query DSL. -* `security.get_api_key` - Adds boolean `:active_only` parameter: flag to limit response to only active (not invalidated or expired) API keys. - -[discrete] -===== Connectors - -Version 8.12 introduces the experimental https://www.elastic.co/guide/en/elasticsearch/reference/8.12/connector-apis.html[Connectors API]. - -Use the following APIs to manage connectors: - -* `connector.post` - Creates a connector. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/create-connector-api.html[documentation]. -* `connector.put` - Creates or updates a connector. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/create-connector-api.html[documentation]. -* `connector.delete` - Deletes a connector. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/delete-connector-api.html[documentation]. -* `connector.get` - Returns the details about a connector. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/get-connector-api.html[documentation]. -* `connector.list` - Lists all connectors. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/list-connector-api.html[documentation]. -* `connector.check_in` - Updates the last_seen timestamp in the connector document. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/check-in-connector-api.html[documentation]. -* `connector.update_configuration` - Updates the connector configuration. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/update-connector-configuration-api.html[documentation]. -* `connector.update_error` - Updates the error field in the connector document. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/update-connector-error-api.html[documentation]. -* `connector.update_filtering` - Updates the filtering field in the connector document. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/update-connector-filtering-api.html[documentation]. -* `connector.last_sync` - Updates the stats of last sync in the connector document. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/update-connector-last-sync-api.html[documentation]. -* `connector.update_name` - Updates the name and/or description fields in the connector document. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/update-connector-name-description-api.html[documentation]. -* `connector.update_pipeline` - Updates the pipeline field in the connector document. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/update-connector-pipeline-api.html[documentation]. -* `connector.update_scheduling` - Updates the scheduling field in the connector document. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/update-connector-scheduling-api.html[documentation]. - -Use the following APIs to manage sync jobs: - -* `connector_sync_job.cancel` - Cancels a connector sync job. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/cancel-connector-sync-job-api.html[documentation]. -* `connector_sync_job.check_in` - Checks in a connector sync job (refreshes 'last_seen'). See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/check-in-connector-sync-job-api.html[documentation]. -* `connector_sync_job.delete` - Deletes a connector sync job. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/delete-connector-sync-job-api.html[documentation]. -* `connector_sync_job.error` - Sets an error for a connector sync job. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/set-connector-sync-job-error-api.html[documentation]. -* `connector_sync_job.get` - Returns the details about a connector sync job. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/get-connector-sync-job-api.html[documentation]. -* `connector_sync_job.list` - Lists all connector sync jobs. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/list-connector-sync-jobs-api.html[documentation]. -* `connector_sync_job.post` - Creates a connector sync job. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/create-connector-sync-job-api.html[documentation]. -* `connector_sync_job.update_stats` - Updates the stats fields in the connector sync job document. See https://www.elastic.co/guide/en/elasticsearch/reference/8.12/set-connector-sync-job-stats-api.html[documentation]. - -[discrete] -===== Profiling -New API for https://www.elastic.co/guide/en/observability/8.12/universal-profiling.html[Universal profiling]. - -* `profiling.status` - Returns basic information about the status of Universal Profiling. - - -[discrete] -===== Simulate -New experimental API: - -* `simulate.ingest` - Simulates running ingest with example documents. See: https://www.elastic.co/guide/en/elasticsearch/reference/8.12/simulate-ingest-api.html diff --git a/docs/release_notes/813.asciidoc b/docs/release_notes/813.asciidoc deleted file mode 100644 index 0c3066d3e4..0000000000 --- a/docs/release_notes/813.asciidoc +++ /dev/null @@ -1,76 +0,0 @@ -[[release_notes_8_13]] -=== 8.13 Release notes - -[discrete] -[[release_notes_8_13_0]] -=== 8.13.0 Release notes - -[discrete] -==== Client -* Tested versions of Ruby for 8.13.0: Ruby (MRI) 3.0, 3.1, 3.2 and 3.3. JRuby 9.3 and JRuby 9.4. - -[discrete] -==== Experimental ES|QL Helper - -This version provides a new experimental Helper for the ES|QL `query` API. Please check out https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/8.13/Helpers.html#esql-helper[the documentation] and https://github.com/elastic/elasticsearch-ruby/issues/new/choose[open an issue] if you encounter any problems or have any feedback. - -[discrete] -==== API - -API Changes: - -* `async_search.status` - adds Time `:keep_alive` parameter: Specify the time interval in which the results (partial or final) for this search will be available. -* `bulk` - adds boolean `:require_data_stream` parameter: When true, requires the destination to be a data stream (existing or to-be-created). Default is false. -* `connector.list` - Adds the following parameters: - * `:index_name` (List): A comma-separated list of connector index names to fetch connector documents for. - * `:connector_name` (List): A comma-separated list of connector names to fetch connector documents for. - * `:service_type` (List): A comma-separated list of connector service types to fetch connector documents for. - * `:query` (String): A search string for querying connectors, filtering results by matching against connector names, descriptions, and index names. -* `esql.query` - adds boolean `:drop_null_columns` parameter: Should entirely null columns be removed from the results? Their name and type will be returning in a new `all_columns` section. -* `field_caps` - Adds `:include_empty_fields` boolean parameter: Include empty fields in result. -* `index` - adds boolean `:require_data_stream` parameter: When true, requires the destination to be a data stream (existing or to-be-created). Default is false. -* `indices.rollover` - adds boolean `:lazy` parameter: If set to true, the rollover action will only mark a data stream to signal that it needs to be rolled over at the next write. Only allowed on data streams. -* connector_sync_job.list - adds List `:job_type` parameter: A comma-separated list of job types. -* `inference.delete_model`, `inference.get_model`, `inference.inference`, `inference.put_model`: renames `:model_id` parameter to `:inference_id`. -* `termvector` will show a warning since it's been deprecated. Please use the plural version, `termvectors`. - -New APIs: - -* `indices.resolve_cluster` - Resolves the specified index expressions to return information about each cluster, including the local cluster, if included. -* `profiling.flamegraph` - Extracts a UI-optimized structure to render flamegraphs from Universal Profiling. -* `profiling.stacktraces` - Extracts raw stacktrace information from Universal Profiling. -* `security.query_user` - Retrieves information for Users using a subset of query DSL -* `text_structure.test_grok_pattern` - Tests a Grok pattern on some text. - -APIs Migrated from experimental to stable: - -* `synonyms.delete_synonym` -* `synonyms.delete_synonym_rule` -* `synonyms.get_synonym` -* `synonyms.get_synonym_rule` -* `synonyms.get_synonyms_sets` -* `synonyms.put_synonym` -* `synonyms.put_synonym_rule` - -New Experimental APIs - -* `connector.update_api_key_id` - Updates the API key id and/or API key secret id fields in the connector document. -* `connector.update_index_name` - Updates the index name of the connector. -* `connector.update_native` - Updates the is_native flag of the connector. -* `connector.update_service_type` - Updates the service type of the connector. -* `connector.update_status` - Updates the status of the connector. -* `esql.async_query` - Executes an ESQL request asynchronously -* `esql.async_query_get` - Retrieves the results of a previously submitted async query request given its ID. - -New Experimental namespace `connector_secret`: - -* `connector_secret.delete` - Deletes a connector secret. -* `connector_secret.get` - Retrieves a secret stored by Connectors. -* `connector_secret.post` - Creates a secret for a Connector. -* `connector_secret.put` - Creates or updates a secret for a Connector. - -[discrete] -==== Development - -* Migrated from `byebug` to `debug`. -* Added extra testing for OpenTelemetry. diff --git a/docs/release_notes/814.asciidoc b/docs/release_notes/814.asciidoc deleted file mode 100644 index 6bb42142f9..0000000000 --- a/docs/release_notes/814.asciidoc +++ /dev/null @@ -1,52 +0,0 @@ -[[release_notes_8_14]] -=== 8.14 Release notes - -[discrete] -[[release_notes_8_14_0]] -=== 8.14.0 Release notes - -[discrete] -==== Client -* Tested versions of Ruby for 8.14.0: Ruby (MRI) 3.0, 3.1, 3.2 and 3.3. JRuby 9.3 and JRuby 9.4. - -[discrete] -==== API - -API changes: - -* All Connector APIs have been migrated to one common namespace `connector`: -** `connector_secret.delete` -> `connector.secret_delete` -** `connector_secret.get` -> `connector.secret_get` -** `connector_secret.post` -> `connector.secret_post` -** `connector_secret.put` -> `connector.secret_put` -** `connector_sync_job.cancel` -> `connector.sync_job_cancel` -** `connector_sync_job.check_in` -> `connector.sync_job_check_in` -** `connector_sync_job.delete` -> `connector.sync_job_delete` -** `connector_sync_job.error` -> `connector.sync_job_error` -** `connector_sync_job.get` -> `connector.sync_job_get` -** `connector_sync_job.post` -> `connector.sync_job_post` -** `connector_sync_job.update_stats` -> `connector.sync_job_update_stats` - -* `connector.delete` - Adds Boolean parameter `:delete_sync_jobs`: Determines whether associated sync jobs are also deleted. -* `cross_cluster_replication.delete_auto_follow_pattern`, `cross_cluster_replication.follow`, `cross_cluster_replication.follow_info`, `cross_cluster_replication.get_auto_follow_pattern`, `cross_cluster_replication.pause_auto_follow_pattern`, `cross_cluster_replication.pause_follow`, `cross_cluster_replication.put_auto_follow_pattern`, `cross_cluster_replication.resume_auto_follow_pattern`, `cross_cluster_replication.resume_follow`, `cross_cluster_replication.stats`, `cross_cluster_replication.unfollow` - Add Time parameter `:master_timeout`: Explicit operation timeout for connection to master node. -* `cross_cluster_replication.follow_stats`, `cross_cluster_replication.forget_follower`, `cross_cluster_replication.stats` - Add Time parameter `:timeout`: Explicit operation timeout. -* `indices/rollover` - Adds Boolean parameter `:target_failure` If set to true, the rollover action will be applied on the failure store of the data stream. -* `inference.get_model` - Parameter `inference_id` no longer required. -* `search_application.search` - Adds Boolean parameter `:typed_keys`: Specify whether aggregation and suggester names should be prefixed by their respective types in the response. -* `security.get_api_key`, `security.query_api_keys` - Add Boolean parameter `:with_profile_uid`: flag to also retrieve the API Key's owner profile uid, if it exists. - -New APIs: - -- `profiling.topn_functions` - Extracts a list of topN functions from Universal Profiling. -- `text_structure.find_field_structure` - Finds the structure of a text field in an index. -- `text_structure/find_message_structure`- Finds the structure of a list of messages. The messages must contain data that is suitable to be ingested into Elasticsearch. - -APIs Migrated from experimental to stable: - -- `esql.async_query` -- `esql.query` - -New Experimental APIs: - -- `connector.update_active_filtering` - Activates the draft filtering rules if they are in a validated state. -- `connector.update_filtering_validation` - Updates the validation info of the draft filtering rules. diff --git a/docs/release_notes/815.asciidoc b/docs/release_notes/815.asciidoc deleted file mode 100644 index 38312a5922..0000000000 --- a/docs/release_notes/815.asciidoc +++ /dev/null @@ -1,99 +0,0 @@ -[[release_notes_8_15]] -=== 8.15 Release notes - -[discrete] -[[release_notes_8_15_0]] -=== 8.15.0 Release notes - -[discrete] -==== Client -* Tested versions of Ruby for 8.15.0: Ruby (MRI) 3.0, 3.1, 3.2 and 3.3. JRuby 9.3 and JRuby 9.4. - -[discrete] -==== API - -[discrete] -===== API changes - -* `cluster.allocation_explain` - `body` is no longer a required parameter. -* `connector.put` - (experimental API) `body` and `connector_id` are no longer required parameters. -* `machine_learning.update_trained_model_deployment` has been promoted to stable from Beta. Adds Integer parameter `number_of_allocations`, updates the model deployment to this number of allocations. -* `snapshot.delete` - Adds `wait_for_completion` Boolean parameter, should this request wait until the operation has completed before returning. - -[discrete] -====== `master_timeout` and `timeout` parameters - -These parameters have been added to several APIs: - -* `master_timeout` timeout for processing on master node. -* `timeout` timeout for acknowledgement of update from all nodes in cluster parameters. - -The APIs: - -* `autoscaling.delete_autoscaling_policy` - both. -* `autoscaling.get_autoscaling_capacity`- `master_timeout`. -* `get_autoscaling_policy` - `master_timeout`. -* `put_autoscaling_policy` - both. -* `enrich.delete_policy` - `master_timeout`. -* `enrich.execute_policy` - `master_timeout`. -* `enrich.get_policy` - `master_timeout`. -* `enrich.put_policy` - `master_timeout`. -* `enrich.stats` - `master_timeout`. -* `features.reset_features` - `master_timeout`. -* `license.delete` - both. -* `license.post` - both. -* `license.post_start_basic` - both. -* `license.post_start_trial` - both. -* `security.get_settings` - `master_timeout`. -* `security.update_settings` - both. -* `shutdown.get_node` - `master_timeout`. -* `snapshot_lifecycle_management.start` - both. -* `snapshot_lifecycle_management.stop` - both. -* `watcher.get_settings` - `master_timeout`. -* `watcher.start` - `master_timeout`. -* `watcher.stop` - `master_timeout`. -* `watcher.update_settings` - both. - -[discrete] -====== Inference APIs have been renamed: - -* `inference.delete_model` => `inference.delete`. Also adds two new parameters: -** `dry_run` (Boolean), if true the endpoint will not be deleted and a list of ingest processors which reference this endpoint will be returned. -** `force` (Boolean), if true the endpoint will be forcefully stopped (regardless of whether or not it is referenced by any ingest processors or semantic text fields). -* `inference.get_model` => `inference.get` -* `inference.put_model` => `inference.put` - -[discrete] -====== Query Rules parameters consolidated - -Changes in `query_ruleset` and `query_rules` APIs, These have been combined into the `query_rules` namespace: - -* `query_rules.delete_ruleset` - Renamed from `query_ruleset.delete`, promoted from experimental to stable. -* `query_rules.delete_rule` - Deletes an individual query rule within a ruleset. -* `query_rules.get_rule` - Returns the details about an individual query rule within a ruleset. -* `query_rules.get_ruleset` - Renamed from `query_ruleset.get`, promoted from experimental to stable. -* `query_rules.list_rulesets` - Renamed from `query_ruleset.list`, promoted from experimental to stable. -* `query_rules.put_rule` - Creates or updates a query rule within a ruleset. -* `query_rules.put_ruleset` - Renamed from `query_ruleset.put_ruleset`, promoted from experimental to stable. - -[discrete] -===== New APIs: - -* `ingest.delete_geoip_database` - Deletes a geoip database configuration. -* `ingest.get_geoip_database` - Returns geoip database configuration. -* `ingest.put_geoip_database` - Puts the configuration for a geoip database to be downloaded. -* `security.bulk_delete_role` - Bulk delete roles in the native realm. -* `security.bulk_put_role` - Bulk adds and updates roles in the native realm. -* `security.query_role` - Retrieves information for Roles using a subset of query DSL. -* `transform.get_node_stats` - Retrieves transform usage information for transform nodes. - -[discrete] -===== New Experimental APIs: - -* `connector.sync_job_claim` - Claims a connector sync job. -* `connector.update_features` - Updates the connector features in the connector document. - -[discrete] -==== Development - -- Added a build using https://github.com/elastic/es-test-runner-ruby[es-test-runner-ruby] and https://github.com/elastic/elasticsearch-clients-tests[Elasticsearch Clients Tests] which will replace the Elasticsearch YAML test runner. diff --git a/docs/release_notes/816.asciidoc b/docs/release_notes/816.asciidoc deleted file mode 100644 index c32e719f57..0000000000 --- a/docs/release_notes/816.asciidoc +++ /dev/null @@ -1,57 +0,0 @@ -[[release_notes_8_16]] -=== 8.16 Release notes - -[discrete] -[[release_notes_8_16_0]] -=== 8.16.0 Release notes - -[discrete] -==== Client -* Tested versions of Ruby for 8.16.0: Ruby (MRI) 3.1, 3.2 and 3.3. JRuby 9.3 and JRuby 9.4. - -[discrete] -==== API - -[discrete] -===== API changes - -* `capabilities` - Adds `local_only` boolean parameter: True if only the node being called should be considered. -* `cluster.stats`- Removes `flat_settings` parameter, adds `include_remotes` boolean parameter: Include remote cluster data into the response (default: false). -* `indices.get_data_stream` - Adds `verbose` boolean parameter: Whether the maximum timestamp for each data stream should be calculated and returned (default: false). Adds `master_timeout` (see below). -* `query_rules.delete_ruleset` - Accepts `ignore: 404` common parameter. - -These parameters have been added to several APIs: - -* `master_timeout` timeout for processing on master node. -* `timeout` timeout for acknowledgement of update from all nodes in cluster parameters. - -Added in: - -* `indices.create_data_stream` - both. -* `indices.delete_data_stream` - `master_timeout`. -* `indices.get_data_lifecycle` - `master_timeout`. -* `indices.get_data_stream` - `master_timeout`. -* `indices.migrate_to_data_stream` - both. -* `indices.promote_data_stream` - `master_timeout`. -* `search_shards` - `master_timeout`. - -**APIs Promoted from Experimental to Stable:** - -* `indices.delete_data_lifecycle` -* `indices.explain_data_lifecycle` -* `indices.get_data_lifecycle` -* `indices.put_data_lifecycle` -* `security.create_cross_cluster_api_key` -* `security.update_cross_cluster_api_key` - -**New APIs** - -* `ingest.delete_ip_location_database` - Deletes an ip location database configuration. -* `ingest.get_ip_location_database` - Returns the specified ip location database configuration. -* `ingest.put_ip_location_database` - Puts the configuration for a ip location database to be downloaded. - - -**New Experimental APIs** - -* `inference.stream_inference` - Perform streaming inference. -* `query_rules.test` - Tests a query ruleset to identify the rules that would match input criteria. diff --git a/docs/release_notes/817.asciidoc b/docs/release_notes/817.asciidoc deleted file mode 100644 index 2963eeb0d1..0000000000 --- a/docs/release_notes/817.asciidoc +++ /dev/null @@ -1,20 +0,0 @@ -[[release_notes_8_17]] -=== 8.17 Release notes - -[discrete] -[[release_notes_8_17_0]] -=== 8.17.0 Release notes - -[discrete] -==== Client -* Tested versions of Ruby for 8.17.0: Ruby (MRI) 3.1, 3.2 and 3.3. JRuby 9.3 and JRuby 9.4. - -[discrete] -==== API - -[discrete] -===== API changes -* `async_search.submit` - Removes `keep_alive` parameter. Adds: -** `ccs_minimize_roundtrips` (Boolean): When doing a cross-cluster search, setting it to true may improve overall search latency, particularly when searching clusters with a large number of shards. However, when set to true, the progress of searches on the remote clusters will not be received until the search finishes on all clusters. -** `rest_total_hits_as_int` (Boolean): Indicates whether hits.total should be rendered as an integer or an object in the rest search response. -* `open_point_in_time` - Adds `allow_partial_search_results` (Boolean) parameter: Specify whether to tolerate shards missing when creating the point-in-time, or otherwise throw an exception (default: false). diff --git a/docs/release_notes/82.asciidoc b/docs/release_notes/82.asciidoc deleted file mode 100644 index 401958b6c7..0000000000 --- a/docs/release_notes/82.asciidoc +++ /dev/null @@ -1,49 +0,0 @@ -[[release_notes_82]] -=== 8.2 Release notes - -[discrete] -[[release_notes_822]] -=== 8.2.2 Release notes - -- Updates dependency on `elastic-transport` to `~> 8.0` - - -[discrete] -[[release_notes_821]] -=== 8.2.1 Release notes - -No release, no changes on the client. - -[discrete] -[[release_notes_820]] -=== 8.2.0 Release notes - - -- Tested versions of Ruby for 8.2.0: Ruby (MRI) 2.7, 3.0 and 3.1, JRuby 9.3. - -[discrete] -==== API - -Updated for compatibility with Elasticsearch 8.2's API. - -[discrete] -===== New parameters: - -* `field_caps` -** `filters` An optional set of filters: can include +metadata,-metadata,-nested,-multifield,-parent -** `types` Only return results for fields that have one of the types in the list - -[discrete] -===== New APIs - -- `cat.component_templates` - Returns information about existing component_templates templates. -- `ml.get_memory_stats` - Returns information on how ML is using memory. - -[discrete] -===== New Experimental APIs -- `security.activate_user_profile` - Creates or updates the user profile on behalf of another user. -- `security.disable_user_profile` - Disables a user profile so it's not visible in user profile searches. -- `security.enable_user_profile` - Enables a user profile so it's visible in user profile searches. -- `security.get_user_profile` - Retrieves a user profile for the given unique ID. -- `security.suggest_user_profiles` - Get suggestions for user profiles that match specified search criteria. -- `security.update_user_profile_data` - Update application specific data for the user profile of the given unique ID. diff --git a/docs/release_notes/83.asciidoc b/docs/release_notes/83.asciidoc deleted file mode 100644 index aa0b2d8d53..0000000000 --- a/docs/release_notes/83.asciidoc +++ /dev/null @@ -1,33 +0,0 @@ -[[release_notes_83]] -=== 8.3 Release notes - -[discrete] -[[release_notes_830]] -=== 8.3.0 Release notes - -- Tested versions of Ruby for 8.3.0: Ruby (MRI) 2.7, 3.0 and 3.1, JRuby 9.3. - -[discrete] -==== API - -- Added build hash to auto generated code. The code generator obtains the git hash from the Elasticsearch specification and adds it as a comment in the code. This allows us to track the version for each generated class. -- Updated for compatibility with Elasticsearch 8.3's API. - -[discrete] -===== API Changes - -* `cluster.delete_voting_config_exclusions`, `cluster.post_voting_config_exclusions` - Add new parameter `master_timeout` (Time) Timeout for submitting request to master. -* `machine_learning.infer_trained_model_deployment` is renamed to `machine_learning.infer_trained_model`. The url `/_ml/trained_models/{model_id}/deployment/_infer` is deprecated since 8.3, use `/_ml/trained_models/{model_id}/_infer` instead. -* `machine_learning.preview_datafeed` - Adds new parameters: -** `start` (String) The start time from where the datafeed preview should begin -** `end` (String) The end time when the datafeed preview should stop -* `machine_learning.start_trained_model_deployment` - Adds new parameters: -** `number_of_allocations` (Integer) The number of model allocations on each node where the model is deployed. -** `threads_per_allocation` (Integer) The number of threads used by each model allocation during inference. -** `queue_capacity` (Integer) Controls how many inference requests are allowed in the queue at a time. -* `search_mvt` - Adds new parameter: `with_labels` (Boolean) If true, the hits and aggs layers will contain additional point features with suggested label positions for the original features -* `snapshot.get` - Adds new parameter: `index_names` (Boolean) Whether to include the name of each index in the snapshot. Defaults to true. - -[discrete] -===== New Experimental APIs -* `security.has_privileges_user_profile` Determines whether the users associated with the specified profile IDs have all the requested privileges diff --git a/docs/release_notes/84.asciidoc b/docs/release_notes/84.asciidoc deleted file mode 100644 index 19901f675e..0000000000 --- a/docs/release_notes/84.asciidoc +++ /dev/null @@ -1,31 +0,0 @@ -[[release_notes_84]] -=== 8.4 Release notes - -[discrete] -[[release_notes_840]] -=== 8.4.0 Release notes - -- Tested versions of Ruby for 8.4.0: Ruby (MRI) 2.7, 3.0 and 3.1, JRuby 9.3. - -[discrete] -==== API - -[discrete] -===== New APIs - -* `security.update_api_key` - Updates attributes of an existing API key. https://www.elastic.co/guide/en/elasticsearch/reference/8.4/security-api-update-api-key.html[Documentation]. - -[discrete] -===== API Changes -* `get` - Adds new parameter `force_synthetic_source` (Boolean) Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index. -* `machine_learning.start_trained_model_deployment` - Adds new parameter `cache_size` (String) A byte-size value for configuring the inference cache size. For example, 20mb. -* `mget` - Adds new parameter `force_synthetic_source` (Boolean) Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index. -* `search` - Adds new parameter `force_synthetic_source` (Boolean) Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index. -* `snapshot.get` - Adds new parameters: -** `sort` (String) Allows setting a sort order for the result. Defaults to start_time (options: start_time, duration, name, repository, index_count, shard_count, failed_shard_count). -** `size` (Integer) Maximum number of snapshots to return. Defaults to 0 which means return all that match without limit. -** `order` (String) Sort order (options: asc, desc). -** `from_sort_value` (String) Value of the current sort column at which to start retrieval. -** `after` (String) Offset identifier to start pagination from as returned by the 'next' field in the response body. -** `offset` (Integer) Numeric offset to start pagination based on the snapshots matching the request. Defaults to 0. -** `slm_policy_filter` (String) Filter snapshots by a comma-separated list of SLM policy names that snapshots belong to. Accepts wildcards. Use the special pattern '_none' to match snapshots without an SLM policy. diff --git a/docs/release_notes/85.asciidoc b/docs/release_notes/85.asciidoc deleted file mode 100644 index 4ba0e56497..0000000000 --- a/docs/release_notes/85.asciidoc +++ /dev/null @@ -1,105 +0,0 @@ -[[release_notes_85]] -=== 8.5 Release notes - -[discrete] -[[release_notes_852]] -=== 8.5.2 Release notes - -[discrete] -==== API Bugfix - -Fixes `security.create_service_token` API, uses `POST` when token name isn't present. -Thanks https://github.com/carlosdelest[@carlosdelest] for reporting in https://github.com/elastic/elasticsearch-ruby/pull/1961[#1961]. - -[discrete] -[[release_notes_851]] -=== 8.5.1 Release notes - -[discrete] -==== Bugfixes - -Fixes bug when instantiating client with `api_key`: When passing in `api_key` and `transport_options` that don't include headers to the client, the `api_key` code would overwrite the arguments passed in for `transport_options`. This was fixed in https://github.com/elastic/elasticsearch-ruby/pull/1941/files[this Pull Request]. -Thanks @svdasein for reporting in https://github.com/elastic/elasticsearch-ruby/issues/1940[#1940]. - -[discrete] -[[release_notes_850]] -=== 8.5.0 Release notes - -- Tested versions of Ruby for 8.5.0: Ruby (MRI) 2.7, 3.0 and 3.1, JRuby 9.3. - -[discrete] -==== Client - -With the latest release of `elastic-transport` - `v8.1.0` - this gem now supports Faraday v2. Elasticsearch Ruby has an open dependency on `elastic-transport` (`'elastic-transport', '~> 8'`), so when you upgrade your gems, `8.1.0` will be installed. This supports both Faraday v1 and Faraday v2. The main change on dependencies when using Faraday v2 is all adapters, except for the default `net_http` one, have been moved out of Faraday into separate gems. This means if you're not using the default adapter and you migrate to Faraday v2, you'll need to add the adapter gems to your Gemfile. - -These are the gems required for the different adapters with Faraday 2, instead of the libraries on which they were based: - -[source,ruby] ------------------------------------- -# HTTPCLient -gem 'faraday-httpclient' - -# NetHTTPPersistent -gem 'faraday-net_http_persistent' - -# Patron -gem 'faraday-patron' - -# Typhoeus -gem 'faraday-typhoeus' ------------------------------------- - -Things should work fine if you migrate to Faraday 2 as long as you include the adapter (unless you're using the default one `net-http`), but worst case scenario, you can always lock the version of Faraday in your project to 1.x: -gem 'faraday', '~> 1' - -Be aware if migrating to Faraday v2 that it requires at least Ruby `2.6`, unlike Faraday v1 which requires `2.4`. - -*Troubleshooting* - -If you see a message like: - -[source,ruby] ------------------------------------- -:adapter is not registered on Faraday::Adapter (Faraday::Error) ------------------------------------- -Then you probably need to include the adapter library in your gemfile and require it. - -Please https://github.com/elastic/elasticsearch-ruby/issues[submit an issue] if you encounter any problems. - -[discrete] -==== API - -[discrete] -===== New APIs - -- `machine_learning.clear_trained_model_deployment_cache` - Clear the cached results from a trained model deployment (Beta). -- `security.bulk_update_api_keys` - Updates the attributes of multiple existing API keys. - -[discrete] -===== API Changes - -- `rollup.rollup` renamed to `indices.downsample`. The method now receives the `index` to downsample (Required) and instead of `rollup_index`, use target_index as the index to store downsampled data. - -- `security.get_api_key` and `security.query_api_keys` add `:with_limited_by` flag to show the limited-by role descriptors of API Keys. -- `security.get_user` adds `:with_profile_uid` flag to retrieve profile uid (if exists) associated to the user. -- `security.get_user_profile` now retrieves user profiles for given unique ID(s). `:uid` is now a list of comma-separated list of unique identifier for user profiles. -- `text_structure.find_structure` adds `:ecs_compatibility`, optional parameter to specify the compatibility mode with ECS Grok patterns - may be either 'v1' or 'disabled'. - -Machine learning APIs promoted from *Experimental* to *Beta*: - -- `machine_learning.clear_trained_model_deployment_cache.rb` -- `machine_learning.infer_trained_model.rb` -- `machine_learning.put_trained_model_definition_part.rb` -- `machine_learning.put_trained_model_vocabulary.rb` -- `machine_learning.start_trained_model_deployment.rb` -- `machine_learning.stop_trained_model_deployment.rb` - -Security usef profile APIs promoted from *Experimental* to *Stable*: - -- `security/activate_user_profile` -- `security/disable_user_profile` -- `security/enable_user_profile` -- `security/get_user_profile` -- `security/has_privileges_user_profile` -- `security/suggest_user_profile` -- `security/update_user_profile_data` diff --git a/docs/release_notes/86.asciidoc b/docs/release_notes/86.asciidoc deleted file mode 100644 index 88a7ad47d2..0000000000 --- a/docs/release_notes/86.asciidoc +++ /dev/null @@ -1,23 +0,0 @@ -[[release_notes_86]] -=== 8.6 Release notes - -[discrete] -[[release_notes_860]] -=== 8.6.0 Release notes - -- Tested versions of Ruby for 8.6.0: Ruby (MRI) 2.7, 3.0, 3.1 and **3.2**. JRuby 9.3 and **JRuby 9.4**. - -[discrete] -==== API - -[discrete] -===== New APIs - -- `update_trained_model_deployment` - Updates certain properties of trained model deployment (This functionality is in Beta and is subject to change). - -[discrete] -===== API Changes - -- `cluster.reroute` - `:metric` parameter adds `none` as an option. -- `ml.start_trained_model_deployment` - New parameter `:priority` (String), the deployment priority - diff --git a/docs/release_notes/87.asciidoc b/docs/release_notes/87.asciidoc deleted file mode 100644 index f58e0856c6..0000000000 --- a/docs/release_notes/87.asciidoc +++ /dev/null @@ -1,35 +0,0 @@ -[[release_notes_87]] -=== 8.7 Release notes - -[discrete] -[[release_notes_871]] -=== 8.7.1 Release notes - -[discrete] -==== API Bugfix - -- Updates `logstash.get_pipeline`, fixed in the specification `id` is not a required parameter, so removes raising `ArgumentError` when id is not present. - - -[discrete] -[[release_notes_870]] -=== 8.7.0 Release notes - -- Tested versions of Ruby for 8.7.0: Ruby (MRI) 2.7, 3.0, 3.1 and **3.2**. JRuby 9.3 and JRuby 9.4. Ruby 2.7's end of life is coming in a few days, so this'll probably be the last release to test for Ruby 2.7. - -[discrete] -==== API - -[discrete] -===== New APIs - -- `health_report` - Returns the health of the cluster. -- `transform.schedule_now_transform` - Schedules now a transform. - -[discrete] -===== API Changes - -- `transform.get_transform_stats` - Adds `timeout` (Time) parameter. Controls the time to wait for the stats. -- `transform.start_transform` - Adds `from` (String) parameter. Restricts the set of transformed entities to those changed after this time. -- `ml.delete_job`, `ml.reset_job` - Add `delete_user_annotations` (Boolean) parameter. Should annotations added by the user be deleted. -- `ml.clear_trained_model_deployment_cache`, `ml.infer_trained_model`, `ml.put_trained_model_definition_part`, `ml.put_trained_model_vocabulary`, `ml.start_trained_model_deployment`, `ml.stop_trained_model_deployment` - These APIs are no longer in Beta. diff --git a/docs/release_notes/88.asciidoc b/docs/release_notes/88.asciidoc deleted file mode 100644 index 13f093fd07..0000000000 --- a/docs/release_notes/88.asciidoc +++ /dev/null @@ -1,47 +0,0 @@ -[[release_notes_88]] -=== 8.8 Release notes - -[discrete] -[[release_notes_880]] -=== 8.8.0 Release notes - -- Tested versions of Ruby for 8.8.0: Ruby (MRI) 3.0, 3.1 and **3.2**. JRuby 9.3 and JRuby 9.4. - -[discrete] -==== API - -- Updates development dependency `minitest-reporters` to `>= 1.6` to include showing failures at the end of the test run. - -[discrete] -===== New APIs - -- `watcher.get_settings` - Retrieve settings for the watcher system index. -- `watcher.update_settings` - Update settings for the watcher system index. - -[discrete] -===== New Experimental APIs - -- `indices.delete_data_lifecycle`- Deletes the data lifecycle of the selected data streams -- `indices.explain_data_lifecycle` - Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. -- `indices.get_data_lifecycle` - Returns the data lifecycle of the selected data streams. -- `indices.put_data_lifecycle` - Updates the data lifecycle of the selected data streams. -- `search_application.delete` - Deletes a search application. -- `search_application.delete_behavioral_analytics` - Delete a behavioral analytics collection. -- `search_application.get` - Returns the details about a search application. -- `search_application.get_behavioral_analytics` - Returns the existing behavioral analytics collections. -- `search_application.list` - Returns the existing search applications. -- `search_application.post_behavioral_analytics_event` - Creates a behavioral analytics event for existing collection. -- `search_application.put` - Creates or updates a search application. -- `search_application.put_behavioral_analytics` - Creates a behavioral analytics collection. -- `search_application.search` - Perform a search against a search application. - -[discrete] -===== API Changes - -- `clear_scroll` now works with the argument `ignore: 404`. https://github.com/elastic/elasticsearch-ruby/issues/2067[Issue on GitHub]. -- The code generator was updated to fix a bug for `ignore: 404`. APIs that were supposed to support this wouldn't parse the parameters correctly. The support it now: `security.get_role`, `watcher.delete_watch` -- `cluster.get_component_template`, `indices.get_data_stream`, `indices.get_index_template`, `indices.simulate_index_template`, `indices.simulate_template` - Add `include_defaults` (Boolean) parameter: Return all default configurations for the component template (default: false). -- `machine_learning.put_trained_model` - Adds `wait_for_completion` (Boolean) parameter: Whether to wait for all child operations(e.g. model download) to complete, before returning or not (default: false). -- `machine_learning.start_trained_model_deployment` - Adds `deployiment_id` (String) parameter: The Id of the new deployment. Defaults to the model_id if not set. -- `search` - Adds `include_named_queries_score` (Boolean) parameter: Indicates whether hit.matched_queries should be rendered as a map that includes the name of the matched query associated with its score (true) or as an array containing the name of the matched queries (false). -- `transform.delete_transform` - Adds `delete_dest_index` (Boolean) parameter: When `true`, the destination index is deleted together with the transform. The default value is `false`, meaning that the destination index will not be deleted. diff --git a/docs/release_notes/89.asciidoc b/docs/release_notes/89.asciidoc deleted file mode 100644 index de0f431856..0000000000 --- a/docs/release_notes/89.asciidoc +++ /dev/null @@ -1,54 +0,0 @@ -[[release_notes_89]] -=== 8.9 Release notes - -[discrete] -[[release_notes_890]] -=== 8.9.0 Release notes - -[discrete] -=== Client -* Tested versions of Ruby for 8.9.0: Ruby (MRI) 3.0, 3.1 and 3.2. JRuby 9.3 and JRuby 9.4. -* Updated product validation. The code for the product validation was refactored in a few ways: -** Just check header, does not check the version of the server. -** Warns only once when there's a general server error. -** Removes the call to '/' (client.info) when doing the first request, checking on the first actual request from the client. -* Fixes User-Agent code. In the migration to 8.x, the user agent code was extracted into transport, since we're now using that library in other projects. So for the Elasticsearch Client, the user-agent would be reported as the one defined in elastic-transport. This release fixes the issue and brings back the user agent in the format that was being used in 7.x - -[discrete] -=== Helpers -This release introduces two new Helpers in the client: - -* BulkHelper - This helper provides a better developer experience when using the Bulk API. At its simplest, you can send it a collection of hashes in an array, and it will bulk ingest them into {es}. -* ScrollHelper - This helper provides an easy way to get results from a Scroll. - -See <> to read more about them. - -[discrete] -=== API - -[discrete] -==== New APIs - -* `cluster.info` - Returns different information about the cluster. - -[discrete] -==== New Experimental APIs and namespaces: - -This functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - -* New namespace: `query_ruleset` -** `query_ruleset.delete` - Deletes a query ruleset. -** `query_ruleset.get` - Returns the details about a query ruleset. -** `query_ruleset.put` - Creates or updates a query ruleset. -* New API: `search_application.render_query` Renders a query for given search application search parameters. -* New API: `security.create_cross_cluster_api_key` - Creates a cross-cluster API key for API key based remote cluster access. -* New API: `security.upate_cross_cluster_api_key` - Updates attributes of an existing cross-cluster API key. -* New namespace: `synonyms` -** `synonyms.delete`- Deletes a synonym set -** `synonyms.get` - Retrieves a synonym set -** `synonyms.put` - Creates or updates a synonyms set -* New namespace: `synonym_rule` -** `synonym_rule.put` - Creates or updates a synonym rule in a synonym set -* New namespace: `synonyms` -** `synonyms_set.get` - Retrieves a summary of all defined synonym sets - diff --git a/docs/release_notes/index.asciidoc b/docs/release_notes/index.asciidoc deleted file mode 100644 index 3b2ef35788..0000000000 --- a/docs/release_notes/index.asciidoc +++ /dev/null @@ -1,74 +0,0 @@ -[[release_notes]] -== Release Notes - -[discrete] -=== 8.x - -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> - -[discrete] -=== 7.x -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> -* <> - -include::817.asciidoc[] -include::816.asciidoc[] -include::815.asciidoc[] -include::814.asciidoc[] -include::813.asciidoc[] -include::812.asciidoc[] -include::811.asciidoc[] -include::810.asciidoc[] -include::89.asciidoc[] -include::88.asciidoc[] -include::87.asciidoc[] -include::86.asciidoc[] -include::85.asciidoc[] -include::84.asciidoc[] -include::83.asciidoc[] -include::82.asciidoc[] -include::81.asciidoc[] -include::80.asciidoc[] -include::717.asciidoc[] -include::716.asciidoc[] -include::715.asciidoc[] -include::714.asciidoc[] -include::713.asciidoc[] -include::712.asciidoc[] -include::711.asciidoc[] -include::710.asciidoc[] -include::79.asciidoc[] -include::78.asciidoc[] -include::77.asciidoc[] -include::76.asciidoc[] -include::75.asciidoc[] -include::70.asciidoc[] diff --git a/docs/troubleshooting.asciidoc b/docs/troubleshooting.asciidoc deleted file mode 100644 index a2e6a19e05..0000000000 --- a/docs/troubleshooting.asciidoc +++ /dev/null @@ -1,97 +0,0 @@ -[[troubleshooting]] -== Troubleshooting - -Use the information in this section to troubleshoot common problems and find -answers for frequently asked questions. - - -[discrete] -[[ruby-ts-logging]] -=== Logging - -The client provides several options for logging that can help when things go -wrong. Check out the extensive documentation on <>. - -If you are having trouble sending a request to {es} with the client, we suggest -enabling `tracing` on the client and testing the cURL command that appears in -your terminal: - -[source,rb] ----------------------------- -client = Elasticsearch::Client.new(trace: true) -client.info -curl -X GET -H 'x-elastic-client-meta: es=8.9.0,rb=3.2.2,t=8.2.1,fd=2.7.4,nh=0.3.2, User-Agent: elastic-t -ransport-ruby/8.2.1 (RUBY_VERSION: 3.2.2; linux x86_64; Faraday v2.7.4), Content-Type: application/json' 'http://localhost:9200//?pretty' ----------------------------- - -Testing the cURL command can help find out if there's a connection issue or if -the issue is in the client code. - - -[discrete] -[[ruby-ts-connection]] -=== Troubleshooting connection issues - -When working with multiple hosts, you might want to enable the -`retry_on_failure` or `retry_on_status` options to perform a failed request on -another node (refer to <>). - -For optimal performance, use a HTTP library which supports persistent -("keep-alive") connections, such as https://github.com/toland/patron[patron] or -https://github.com/typhoeus/typhoeus[Typhoeus]. Require the library -(`require 'patron'`) in your code for Faraday 1.x or the adapter -(`require 'faraday/patron'`) for Faraday 2.x, and it will be automatically used. - - -[discrete] -[[ruby-ts-adapter]] -=== Adapter is not registered on Faraday - -If you see a message like: -``` -:adapter is not registered on Faraday::Adapter (Faraday::Error) -``` - -Then you might need to include the adapter library in your Gemfile and require -it. You might get this error when migrating from Faraday v1 to Faraday v2. The -main change when using Faraday v2 is all adapters, except for the default -`net_http` one, have been moved out into separate gems. This means if you're not -using the default adapter and you migrate to Faraday v2, you'll need to add the -adapter gems to your Gemfile. - -These are the gems required for the different adapters with Faraday 2, instead -of the libraries on which they were based: - -[source,ruby] ------------------------------------- -# HTTPCLient -gem 'faraday-httpclient' - -# NetHTTPPersistent -gem 'faraday-net_http_persistent' - -# Patron -gem 'faraday-patron' - -# Typhoeus -gem 'faraday-typhoeus' ------------------------------------- - -Migrating to Faraday 2 solves the issue as long as the adapter is included -(unless you're using the default one `net-http`). Alternatively, you can lock -the version of Faraday in your project to 1.x: -`gem 'faraday', '~> 1'` - -IMPORTANT: Migrating to Faraday v2 requires at least Ruby `2.6`. Faraday v1 -requires `2.4`. - -[discrete] -=== More Help - -If you need more help, visit the -https://discuss.elastic.co/[Elastic community forums] and get answers from the -experts in the community, including people from Elastic. - -If you find a bug, have feedback, or find any other issue using the client, -https://github.com/elastic/elasticsearch-ruby/issues/new/choose[submit an issue] -on GitHub. \ No newline at end of file From 3d4a59fb28ca1766ae2f4131e2b24b6cd394a735 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 1 Apr 2025 16:13:09 +0100 Subject: [PATCH 02/75] [CI] Updates GitHub Actions for 9.0 --- .github/workflows/{main.yml => 9.0.yml} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename .github/workflows/{main.yml => 9.0.yml} (95%) diff --git a/.github/workflows/main.yml b/.github/workflows/9.0.yml similarity index 95% rename from .github/workflows/main.yml rename to .github/workflows/9.0.yml index c72072a437..f80615f662 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/9.0.yml @@ -1,13 +1,13 @@ -name: main +name: 9.0 on: push: branches: - - main + - 9.0 pull_request: branches: - - main + - 9.0 jobs: - test-main: + test-9.0: env: TEST_ES_SERVER: http://localhost:9250 PORT: 9250 From 9b96c26bee85b609182ae97bf0f82873c232107f Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Thu, 20 Feb 2025 15:07:14 +0000 Subject: [PATCH 03/75] [CI] Updates bumpmatrix automation for main --- rake_tasks/automation.rake | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/rake_tasks/automation.rake b/rake_tasks/automation.rake index 1f7dfe77f9..7ccca18e40 100644 --- a/rake_tasks/automation.rake +++ b/rake_tasks/automation.rake @@ -107,11 +107,16 @@ namespace :automation do if file == '.buildkite/pipeline.yml' require 'yaml' yaml = YAML.safe_load(content) - branch = version.match(/([0-9]+\.[0-9]+)\.[0-9]+.*/)[1] yaml_tests_branch = yaml['steps'][0]['env']['ES_YAML_TESTS_BRANCH'] - next if yaml_tests_branch == 'main' - content.gsub!(yaml_tests_branch, branch) + if yaml_tests_branch == 'main' + old = content.match(/STACK_VERSION: (.*)/)[1] + new = "STACK_VERSION: #{version}" + content.gsub!(new, old) + else + branch = version.match(/([0-9]+\.[0-9]+)\.[0-9]+.*/)[1] + content.gsub!(yaml_tests_branch, branch) + end puts "[#{yaml_tests_branch}] -> [#{branch}] in #{file.gsub('./', '')}" end match = content.match(regexp) From 982addcf06fe3191d38c2882a31ad121c563e66d Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 5 Mar 2025 15:19:34 +0000 Subject: [PATCH 04/75] [CI] Updates transport version --- .buildkite/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 5696edca12..0ba87cebc5 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -12,7 +12,7 @@ steps: ruby_source: - "ruby" transport: - - "8.3" + - "8.4" adjustments: - with: # JRuby tests ruby: "9.4" From 9a4dbce9ba5b9aac6cf970dcc2490926c9ce0e26 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 26 Feb 2025 17:40:37 +0000 Subject: [PATCH 05/75] [CI] Remove soft fail from Serverless tests --- .buildkite/pipeline.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 0ba87cebc5..2c30b79feb 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -55,8 +55,8 @@ steps: key: run-serverless-tests depends_on: - step: create-serverless - soft_fail: - - exit_status: 1 + # soft_fail: + # - exit_status: 1 agents: provider: "gcp" env: From 26f89567f47e0f0a347f84542f4a8b2dea5d34f1 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 1 Apr 2025 16:57:47 +0100 Subject: [PATCH 06/75] [CI] Updates 9.0 GitHub Actions --- .github/workflows/9.0.yml | 2 +- .github/workflows/otel.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/9.0.yml b/.github/workflows/9.0.yml index f80615f662..b041bda11f 100644 --- a/.github/workflows/9.0.yml +++ b/.github/workflows/9.0.yml @@ -7,7 +7,7 @@ on: branches: - 9.0 jobs: - test-9.0: + tests: env: TEST_ES_SERVER: http://localhost:9250 PORT: 9250 diff --git a/.github/workflows/otel.yml b/.github/workflows/otel.yml index fd17c34acb..1e8d6d6cb7 100644 --- a/.github/workflows/otel.yml +++ b/.github/workflows/otel.yml @@ -2,10 +2,10 @@ name: opentelemetry on: push: branches: - - main + - 9.0 pull_request: branches: - - main + - 9.0 jobs: test-otel: name: 'Test Open Telemetry' From 31800097a5cd327f0d471f52ebfe76a4151bd6fe Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Thu, 13 Mar 2025 16:02:14 +0000 Subject: [PATCH 07/75] [DOCS] Updates Changelog 9.x --- CHANGELOG-9.x.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG-9.x.md b/CHANGELOG-9.x.md index ef1d09842f..ac6004d0f8 100644 --- a/CHANGELOG-9.x.md +++ b/CHANGELOG-9.x.md @@ -2,7 +2,7 @@ ## Gem -The size of both `elasticsearch` and `elasticsearch-api` gems will be smaller, since some unnecessary files that were being included in the gem have been removed. +The size of both `elasticsearch` and `elasticsearch-api` gems will be smaller, since some unnecessary files that were being included in the gem have been removed. There's also been a lot of old code cleanup for `9.x`. The required Ruby version is set to `2.6` to keep compatiblity wit JRuby 9.3. However, we only test the code against currently supported Ruby versions. @@ -12,6 +12,11 @@ The CI build now runs tests to ensure compatibility with Elasticsearch Serverles ## Elasticsearch API +* The source code is now based on `elasticsearch-specification`, so the API documentation is much more detailed and extensive. +* Scroll APIs: Since sending the `scroll_id` as a parameter was deprecated, now it needs to be sent in the body for `clear_scroll`, `scroll`. +* `indices.get_field_mapping` - `:fields` is a required parameter. +* The functions in `utils.rb` that had names starting with double underscore have been renamed to remove the underscores. + ### Development #### Testing From 94f860732fabac8dc321d7ce12dbe85903ccf2fe Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 31 Mar 2025 12:26:45 +0100 Subject: [PATCH 08/75] [Gem] Don't use Rubocop with JRuby We use Rubocop just for development and not currently using JRuby for Rubocop development. This could fix the current dependency problem for now. --- Gemfile | 2 +- elasticsearch-api/utils/Gemfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index c618282910..a2263210df 100644 --- a/Gemfile +++ b/Gemfile @@ -38,5 +38,5 @@ end group :development, :test do gem 'debug' unless defined?(JRUBY_VERSION) gem 'rspec' - gem 'rubocop', '>= 1.51' unless defined?(JRUBY_VERSION) && Gem::Version.new(JRUBY_VERSION) <= Gem::Version.new('9.4') + gem 'rubocop', '>= 1.51' unless defined?(JRUBY_VERSION) end diff --git a/elasticsearch-api/utils/Gemfile b/elasticsearch-api/utils/Gemfile index 6f6f061b67..d7a0fe4d5a 100644 --- a/elasticsearch-api/utils/Gemfile +++ b/elasticsearch-api/utils/Gemfile @@ -24,5 +24,5 @@ gem 'multi_json' gem 'pry' gem 'thor' -gem 'rubocop', '>= 1.51' unless defined?(JRUBY_VERSION) && Gem::Version.new(JRUBY_VERSION) <= Gem::Version.new('9.4') +gem 'rubocop', '>= 1.51' unless defined?(JRUBY_VERSION) gem 'debug' unless defined?(JRUBY_VERSION) From 9567ded0067f075869eb997b0b63ac4caccd81d7 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 31 Mar 2025 16:12:29 +0100 Subject: [PATCH 09/75] [Test] Only run perform_request_spec test when OTEL var is true --- elasticsearch-api/Rakefile | 1 + 1 file changed, 1 insertion(+) diff --git a/elasticsearch-api/Rakefile b/elasticsearch-api/Rakefile index 6c6fa4fcf7..957016d205 100644 --- a/elasticsearch-api/Rakefile +++ b/elasticsearch-api/Rakefile @@ -35,6 +35,7 @@ namespace :test do task :unit RSpec::Core::RakeTask.new(:unit) do |t| t.pattern = 'spec/unit/**/*_spec.rb' + t.exclude_pattern = 'spec/unit/perform_request_spec.rb' unless ENV['TEST_WITH_OTEL'] end desc 'Run unit and integration tests' From 6939ac4e177d39d6761d97551ea6c244ed79f134 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 25 Feb 2025 16:49:45 +0000 Subject: [PATCH 10/75] [Generator] Updates automation rake task for code generation Adds generator to .gitignore --- .github/make.sh | 1 + .gitignore | 3 ++- rake_tasks/automation.rake | 17 ++++++++++++----- rake_tasks/elasticsearch_tasks.rake | 3 ++- 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/make.sh b/.github/make.sh index a3ce02170d..b36c4cea5b 100755 --- a/.github/make.sh +++ b/.github/make.sh @@ -128,6 +128,7 @@ docker run \ -u "$(id -u)" \ --env "RUBY_VERSION=${RUBY_VERSION}" \ --env "WORKFLOW=${WORKFLOW}" \ + --env "CLIENTS_GITHUB_TOKEN=${CLIENTS_GITHUB_TOKEN}" \ --name test-runner \ --volume "${repo}:/usr/src/app" \ --rm \ diff --git a/.gitignore b/.gitignore index eda31fc818..b6ec5bd32e 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,5 @@ profile/**/data/*.json parsed_alternative_report.json .byebug_history build/ -*.gem \ No newline at end of file +*.gem +elastic-client-generator-ruby \ No newline at end of file diff --git a/rake_tasks/automation.rake b/rake_tasks/automation.rake index 7ccca18e40..8076005a60 100644 --- a/rake_tasks/automation.rake +++ b/rake_tasks/automation.rake @@ -38,12 +38,19 @@ namespace :automation do desc 'Generate API code' task :codegen do - version = YAML.load_file(File.expand_path("#{__dir__}/../.buildkite/pipeline.yml"))['steps'].first['env']['STACK_VERSION'] + path = File.expand_path('../elasticsearch-api/', __dir__) + branch = YAML.load_file(File.expand_path("#{__dir__}/../.buildkite/pipeline.yml"))['steps'].first['env']['ES_YAML_TESTS_BRANCH'] + unless File.exist?(File.expand_path('elastic-client-generator-ruby', __dir__)) + sh "git clone https://#{ENV['CLIENTS_GITHUB_TOKEN']}@github.com/elastic/elastic-client-generator-ruby.git " + end - Rake::Task['es:download_artifacts'].invoke(version) - sh "cd #{CURRENT_PATH.join('elasticsearch-api/utils')} \ - && BUNDLE_GEMFILE=`pwd`/Gemfile \ - && bundle exec thor code:generate" + sh "export ES_RUBY_CLIENT_PATH=#{path} " \ + ' && cd elastic-client-generator-ruby/elasticsearch ' \ + ' && sudo bundle install ' \ + " && bundle exec rake update[#{branch}]" \ + ' && bundle exec rake gen_es' \ + ' && cd ../../ ' \ + ' && rm -rf elastic-client-generator-ruby ' end desc <<-DESC diff --git a/rake_tasks/elasticsearch_tasks.rake b/rake_tasks/elasticsearch_tasks.rake index 9d7deb50a5..316cbb71ae 100644 --- a/rake_tasks/elasticsearch_tasks.rake +++ b/rake_tasks/elasticsearch_tasks.rake @@ -73,7 +73,8 @@ namespace :es do abort e.message end - desc 'Download artifacts (tests and REST spec) for currently running cluster' + # Deprecated + desc 'Download Elasticsearch artifacts (tests and REST spec) for currently running cluster' task :download_artifacts, :version do |_, args| json_filename = CURRENT_PATH.join('tmp/artifacts.json') From c05a3bbbfdc01d39b245e48874a827b9e85e8a39 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Thu, 6 Mar 2025 09:39:20 +0000 Subject: [PATCH 11/75] [API] Refactors namespace and requiring API code Based on the code written in the Elasticsearch Serverless client, this change makes the creation of the namespace clients dynamic, removing all the files that were under `namespace` before. Some outdated and deprecated code was removed too, like unnecessary namespaces. --- elasticsearch-api/lib/elasticsearch/api.rb | 134 ++++++++++-------- .../api/namespace/async_search.rb | 36 ----- .../api/namespace/autoscaling.rb | 36 ----- .../lib/elasticsearch/api/namespace/cat.rb | 36 ----- .../elasticsearch/api/namespace/cluster.rb | 37 ----- .../lib/elasticsearch/api/namespace/common.rb | 42 ------ .../elasticsearch/api/namespace/connector.rb | 36 ----- .../namespace/cross_cluster_replication.rb | 38 ----- .../api/namespace/dangling_indices.rb | 35 ----- .../data_frame_transform_deprecated.rb | 36 ----- .../lib/elasticsearch/api/namespace/enrich.rb | 36 ----- .../lib/elasticsearch/api/namespace/eql.rb | 36 ----- .../lib/elasticsearch/api/namespace/esql.rb | 36 ----- .../elasticsearch/api/namespace/features.rb | 36 ----- .../lib/elasticsearch/api/namespace/fleet.rb | 36 ----- .../lib/elasticsearch/api/namespace/graph.rb | 36 ----- .../namespace/index_lifecycle_management.rb | 38 ----- .../elasticsearch/api/namespace/indices.rb | 37 ----- .../elasticsearch/api/namespace/inference.rb | 36 ----- .../lib/elasticsearch/api/namespace/ingest.rb | 36 ----- .../elasticsearch/api/namespace/license.rb | 36 ----- .../elasticsearch/api/namespace/logstash.rb | 36 ----- .../api/namespace/machine_learning.rb | 38 ----- .../elasticsearch/api/namespace/migration.rb | 36 ----- .../lib/elasticsearch/api/namespace/nodes.rb | 37 ----- .../api/namespace/query_rules.rb | 36 ----- .../api/namespace/query_ruleset.rb | 36 ----- .../lib/elasticsearch/api/namespace/remote.rb | 37 ----- .../api/namespace/search_application.rb | 36 ----- .../api/namespace/searchable_snapshots.rb | 36 ----- .../elasticsearch/api/namespace/security.rb | 36 ----- .../elasticsearch/api/namespace/simulate.rb | 36 ----- .../elasticsearch/api/namespace/snapshot.rb | 37 ----- .../snapshot_lifecycle_management.rb | 38 ----- .../lib/elasticsearch/api/namespace/sql.rb | 36 ----- .../lib/elasticsearch/api/namespace/ssl.rb | 36 ----- .../elasticsearch/api/namespace/synonyms.rb | 36 ----- .../lib/elasticsearch/api/namespace/tasks.rb | 37 ----- .../api/namespace/text_structure.rb | 36 ----- .../elasticsearch/api/namespace/transform.rb | 36 ----- .../elasticsearch/api/namespace/watcher.rb | 36 ----- .../lib/elasticsearch/api/namespace/xpack.rb | 36 ----- 42 files changed, 78 insertions(+), 1551 deletions(-) delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/async_search.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/autoscaling.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/cat.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/cluster.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/common.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/connector.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/cross_cluster_replication.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/dangling_indices.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/data_frame_transform_deprecated.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/enrich.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/eql.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/esql.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/features.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/fleet.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/graph.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/index_lifecycle_management.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/indices.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/inference.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/ingest.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/license.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/logstash.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/machine_learning.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/migration.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/nodes.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/query_rules.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/query_ruleset.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/remote.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/search_application.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/searchable_snapshots.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/security.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/simulate.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/snapshot.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/snapshot_lifecycle_management.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/sql.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/ssl.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/synonyms.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/tasks.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/text_structure.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/transform.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/watcher.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/xpack.rb diff --git a/elasticsearch-api/lib/elasticsearch/api.rb b/elasticsearch-api/lib/elasticsearch/api.rb index 1a8471002e..f187a05021 100644 --- a/elasticsearch-api/lib/elasticsearch/api.rb +++ b/elasticsearch-api/lib/elasticsearch/api.rb @@ -15,21 +15,19 @@ # specific language governing permissions and limitations # under the License. -require "cgi" -require "multi_json" - -require "elasticsearch/api/version" -require "elasticsearch/api/namespace/common" -require "elasticsearch/api/utils" +require 'cgi' +require 'multi_json' +require 'elasticsearch/api/version' +require 'elasticsearch/api/utils' require 'elasticsearch/api/response' -Dir[ File.expand_path('../api/actions/**/*.rb', __FILE__) ].each { |f| require f } -Dir[ File.expand_path('../api/namespace/**/*.rb', __FILE__) ].each { |f| require f } +Dir[File.expand_path('api/actions/**/*.rb', __dir__)].each { |f| require f } module Elasticsearch # This is the main module for including all API endpoint functions # It includes the namespace modules from ./api/actions module API + include Elasticsearch::API::Actions DEFAULT_SERIALIZER = MultiJson HTTP_GET = 'GET'.freeze @@ -37,58 +35,82 @@ module API HTTP_POST = 'POST'.freeze HTTP_PUT = 'PUT'.freeze HTTP_DELETE = 'DELETE'.freeze - UNDERSCORE_SEARCH = '_search'.freeze - UNDERSCORE_ALL = '_all'.freeze - DEFAULT_DOC = '_doc'.freeze - # Auto-include all namespaces in the receiver + module CommonClient + attr_reader :client + + def initialize(client) + @client = client + end + + def perform_request(method, path, params = {}, body = nil, headers = nil, request_opts = {}) + client.perform_request(method, path, params, body, headers, request_opts) + end + end + + # Add new namespaces to this constant # - def self.included(base) - base.send :include, - Elasticsearch::API::Common, - Elasticsearch::API::Actions, - Elasticsearch::API::Cluster, - Elasticsearch::API::Nodes, - Elasticsearch::API::Indices, - Elasticsearch::API::Ingest, - Elasticsearch::API::Snapshot, - Elasticsearch::API::Tasks, - Elasticsearch::API::Cat, - Elasticsearch::API::Remote, - Elasticsearch::API::DanglingIndices, - Elasticsearch::API::Features, - Elasticsearch::API::AsyncSearch, - Elasticsearch::API::Autoscaling, - Elasticsearch::API::CrossClusterReplication, - Elasticsearch::API::DataFrameTransformDeprecated, - Elasticsearch::API::Enrich, - Elasticsearch::API::Eql, - Elasticsearch::API::Fleet, - Elasticsearch::API::Graph, - Elasticsearch::API::IndexLifecycleManagement, - Elasticsearch::API::License, - Elasticsearch::API::Logstash, - Elasticsearch::API::Migration, - Elasticsearch::API::MachineLearning, - Elasticsearch::API::Rollup, - Elasticsearch::API::SearchableSnapshots, - Elasticsearch::API::Security, - Elasticsearch::API::SnapshotLifecycleManagement, - Elasticsearch::API::SQL, - Elasticsearch::API::SSL, - Elasticsearch::API::TextStructure, - Elasticsearch::API::Transform, - Elasticsearch::API::Watcher, - Elasticsearch::API::XPack, - Elasticsearch::API::SearchApplication, - Elasticsearch::API::Synonyms, - Elasticsearch::API::Esql, - Elasticsearch::API::Inference, - Elasticsearch::API::Simulate, - Elasticsearch::API::Connector, - Elasticsearch::API::QueryRules + API_NAMESPACES = [:async_search, + :cat, + :cross_cluster_replication, + :cluster, + :connector, + :dangling_indices, + :enrich, + :eql, + :esql, + :features, + :fleet, + :graph, + :index_lifecycle_management, + :indices, + :inference, + :ingest, + :license, + :logstash, + :migration, + :machine_learning, + :nodes, + :query_rules, + :search_application, + :searchable_snapshots, + :security, + :simulate, + :snapshot_lifecycle_management, + :snapshot, + :sql, + :ssl, + :synonyms, + :tasks, + :text_structure, + :transform, + :watcher, + :xpack].freeze + + UPPERCASE_APIS = ['sql', 'ssl'].freeze + API_NAMESPACES.each do |namespace| + name = namespace.to_s + module_name = if UPPERCASE_APIS.include?(name) + name.upcase + elsif name == 'xpack' + 'XPack' + else + name.split('_').map(&:capitalize).join + end + class_name = "#{module_name}Client" + + klass = Class.new(Object) do + include CommonClient, Object.const_get("Elasticsearch::API::#{module_name}::Actions") + end + Object.const_set(class_name, klass) + define_method(name) do + instance_variable_set("@#{name}", klass.new(self)) + end end + alias ml machine_learning + alias ilm index_lifecycle_management + # The serializer class # def self.serializer diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/async_search.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/async_search.rb deleted file mode 100644 index af5f5eafc6..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/async_search.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module AsyncSearch - module Actions; end - - # Client for the "async_search" namespace (includes the {AsyncSearch::Actions} methods) - # - class AsyncSearchClient - include Common::Client, Common::Client::Base, AsyncSearch::Actions - end - - # Proxy method for {AsyncSearchClient}, available in the receiving object - # - def async_search - @async_search ||= AsyncSearchClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/autoscaling.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/autoscaling.rb deleted file mode 100644 index 0ded4d5e42..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/autoscaling.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Autoscaling - module Actions; end - - # Client for the "autoscaling" namespace (includes the {Autoscaling::Actions} methods) - # - class AutoscalingClient - include Common::Client, Common::Client::Base, Autoscaling::Actions - end - - # Proxy method for {AutoscalingClient}, available in the receiving object - # - def autoscaling - @autoscaling ||= AutoscalingClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/cat.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/cat.rb deleted file mode 100644 index ba3952e3bd..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/cat.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Cat - module Actions; end - - # Client for the "cat" namespace (includes the {Cat::Actions} methods) - # - class CatClient - include Common::Client, Common::Client::Base, Cat::Actions - end - - # Proxy method for {CatClient}, available in the receiving object - # - def cat - @cat ||= CatClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/cluster.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/cluster.rb deleted file mode 100644 index e2eb15f707..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/cluster.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Cluster - module Actions; end - - # Client for the "cluster" namespace (includes the {Cluster::Actions} methods) - # - class ClusterClient - include Common::Client, Common::Client::Base, Cluster::Actions - end - - # Proxy method for {ClusterClient}, available in the receiving object - # - def cluster - @cluster ||= ClusterClient.new(self) - end - - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/common.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/common.rb deleted file mode 100644 index 789aca2514..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/common.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Common - module Actions; end - - module Client - # Base client wrapper - # - module Base - attr_reader :client - - def initialize(client) - @client = client - end - end - - # Delegates the `perform_request` method to the wrapped client - # - def perform_request(method, path, params={}, body=nil, headers=nil, request_opts={}) - client.perform_request method, path, params, body, headers, request_opts - end - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/connector.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/connector.rb deleted file mode 100644 index b9bed44085..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/connector.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Connector - module Actions; end - - # Client for the "connector" namespace (includes the {Connector::Actions} methods) - # - class ConnectorClient - include Common::Client, Common::Client::Base, Connector::Actions - end - - # Proxy method for {ConnectorClient}, available in the receiving object - # - def connector - @connector ||= ConnectorClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/cross_cluster_replication.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/cross_cluster_replication.rb deleted file mode 100644 index d9cb230653..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/cross_cluster_replication.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module CrossClusterReplication - module Actions; end - - # Client for the "cross_cluster_replication" namespace (includes the {CrossClusterReplication::Actions} methods) - # - class CrossClusterReplicationClient - include Common::Client, Common::Client::Base, CrossClusterReplication::Actions - end - - # Proxy method for {CrossClusterReplicationClient}, available in the receiving object - # - def cross_cluster_replication - @cross_cluster_replication ||= CrossClusterReplicationClient.new(self) - end - - alias ccr cross_cluster_replication - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/dangling_indices.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/dangling_indices.rb deleted file mode 100644 index 76291aaede..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/dangling_indices.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module DanglingIndices - module Actions; end - # Client for the "dangling_indices" namespace (includes the {DanglingIndices::Actions} methods) - # - class DanglingIndicesClient - include Common::Client, Common::Client::Base, DanglingIndices::Actions - end - - # Proxy method for {DanglingIndicesClient}, available in the receiving object - # - def dangling_indices - @dangling_indices ||= DanglingIndicesClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/data_frame_transform_deprecated.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/data_frame_transform_deprecated.rb deleted file mode 100644 index 8487199af4..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/data_frame_transform_deprecated.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module DataFrameTransformDeprecated - module Actions; end - - # Client for the "data_frame_transform_deprecated" namespace (includes the {DataFrameTransformDeprecated::Actions} methods) - # - class DataFrameTransformDeprecatedClient - include Common::Client, Common::Client::Base, DataFrameTransformDeprecated::Actions - end - - # Proxy method for {DataFrameTransformDeprecatedClient}, available in the receiving object - # - def data_frame_transform_deprecated - @data_frame_transform_deprecated ||= DataFrameTransformDeprecatedClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/enrich.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/enrich.rb deleted file mode 100644 index d591cc99ac..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/enrich.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Enrich - module Actions; end - - # Client for the "enrich" namespace (includes the {Enrich::Actions} methods) - # - class EnrichClient - include Common::Client, Common::Client::Base, Enrich::Actions - end - - # Proxy method for {EnrichClient}, available in the receiving object - # - def enrich - @enrich ||= EnrichClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/eql.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/eql.rb deleted file mode 100644 index 38c9f891e2..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/eql.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Eql - module Actions; end - - # Client for the "eql" namespace (includes the {Eql::Actions} methods) - # - class EqlClient - include Common::Client, Common::Client::Base, Eql::Actions - end - - # Proxy method for {EqlClient}, available in the receiving object - # - def eql - @eql ||= EqlClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/esql.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/esql.rb deleted file mode 100644 index e41c6c7128..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/esql.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Esql - module Actions; end - - # Client for the "esql" namespace (includes the {Esql::Actions} methods) - # - class EsqlClient - include Common::Client, Common::Client::Base, Esql::Actions - end - - # Proxy method for {EsqlClient}, available in the receiving object - # - def esql - @esql ||= EsqlClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/features.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/features.rb deleted file mode 100644 index 8b968f167e..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/features.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Features - module Actions; end - - # Client for the "features" namespace (includes the {Features::Actions} methods) - # - class FeaturesClient - include Common::Client, Common::Client::Base, Features::Actions - end - - # Proxy method for {FeaturesClient}, available in the receiving object - # - def features - @features ||= FeaturesClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/fleet.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/fleet.rb deleted file mode 100644 index 81f8cc369e..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/fleet.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Fleet - module Actions; end - - # Client for the "fleet" namespace (includes the {Fleet::Actions} methods) - # - class FleetClient - include Common::Client, Common::Client::Base, Fleet::Actions - end - - # Proxy method for {FleetClient}, available in the receiving object - # - def fleet - @fleet ||= FleetClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/graph.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/graph.rb deleted file mode 100644 index 04fd1d08a5..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/graph.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Graph - module Actions; end - - # Client for the "graph" namespace (includes the {Graph::Actions} methods) - # - class GraphClient - include Common::Client, Common::Client::Base, Graph::Actions - end - - # Proxy method for {GraphClient}, available in the receiving object - # - def graph - @graph ||= GraphClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/index_lifecycle_management.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/index_lifecycle_management.rb deleted file mode 100644 index 23077edeb3..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/index_lifecycle_management.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module IndexLifecycleManagement - module Actions; end - - # Client for the "index_lifecycle_management" namespace (includes the {IndexLifecycleManagement::Actions} methods) - # - class IndexLifecycleManagementClient - include Common::Client, Common::Client::Base, IndexLifecycleManagement::Actions - end - - # Proxy method for {IndexLifecycleManagementClient}, available in the receiving object - # - def ilm - @ilm ||= IndexLifecycleManagementClient.new(self) - end - - alias index_lifecycle_management ilm - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/indices.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/indices.rb deleted file mode 100644 index 75a3c0f290..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/indices.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Indices - module Actions; end - - # Client for the "indices" namespace (includes the {Indices::Actions} methods) - # - class IndicesClient - include Common::Client, Common::Client::Base, Indices::Actions - end - - # Proxy method for {IndicesClient}, available in the receiving object - # - def indices - @indices ||= IndicesClient.new(self) - end - - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/inference.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/inference.rb deleted file mode 100644 index 84b3983649..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/inference.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Inference - module Actions; end - - # Client for the "inference" namespace (includes the {Inference::Actions} methods) - # - class InferenceClient - include Common::Client, Common::Client::Base, Inference::Actions - end - - # Proxy method for {InferenceClient}, available in the receiving object - # - def inference - @inference ||= InferenceClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/ingest.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/ingest.rb deleted file mode 100644 index 6e5e57af1f..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/ingest.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Ingest - module Actions; end - - # Client for the "ingest" namespace (includes the {Ingest::Actions} methods) - # - class IngestClient - include Common::Client, Common::Client::Base, Ingest::Actions - end - - # Proxy method for {IngestClient}, available in the receiving object - # - def ingest - @ingest ||= IngestClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/license.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/license.rb deleted file mode 100644 index e6fbd83676..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/license.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module License - module Actions; end - - # Client for the "license" namespace (includes the {License::Actions} methods) - # - class LicenseClient - include Common::Client, Common::Client::Base, License::Actions - end - - # Proxy method for {LicenseClient}, available in the receiving object - # - def license - @license ||= LicenseClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/logstash.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/logstash.rb deleted file mode 100644 index 2a0dd34871..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/logstash.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Logstash - module Actions; end - - # Client for the "logstash" namespace (includes the {Logstash::Actions} methods) - # - class LogstashClient - include Common::Client, Common::Client::Base, Logstash::Actions - end - - # Proxy method for {LogstashClient}, available in the receiving object - # - def logstash - @logstash ||= LogstashClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/machine_learning.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/machine_learning.rb deleted file mode 100644 index 63ada11f03..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/machine_learning.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module MachineLearning - module Actions; end - - # Client for the "machine_learning" namespace (includes the {MachineLearning::Actions} methods) - # - class MachineLearningClient - include Common::Client, Common::Client::Base, MachineLearning::Actions - end - - # Proxy method for {MachineLearningClient}, available in the receiving object - # - def machine_learning - @machine_learning ||= MachineLearningClient.new(self) - end - - alias ml machine_learning - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/migration.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/migration.rb deleted file mode 100644 index 05685adf49..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/migration.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Migration - module Actions; end - - # Client for the "migration" namespace (includes the {Migration::Actions} methods) - # - class MigrationClient - include Common::Client, Common::Client::Base, Migration::Actions - end - - # Proxy method for {MigrationClient}, available in the receiving object - # - def migration - @migration ||= MigrationClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/nodes.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/nodes.rb deleted file mode 100644 index e717db05b2..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/nodes.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Nodes - module Actions; end - - # Client for the "nodes" namespace (includes the {Nodes::Actions} methods) - # - class NodesClient - include Common::Client, Common::Client::Base, Nodes::Actions - end - - # Proxy method for {NodesClient}, available in the receiving object - # - def nodes - @nodes ||= NodesClient.new(self) - end - - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/query_rules.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/query_rules.rb deleted file mode 100644 index efff86c635..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/query_rules.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module QueryRules - module Actions; end - - # Client for the "query_rules" namespace (includes the {QueryRules::Actions} methods) - # - class QueryRulesClient - include Common::Client, Common::Client::Base, QueryRules::Actions - end - - # Proxy method for {QueryRulesClient}, available in the receiving object - # - def query_rules - @query_rules ||= QueryRulesClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/query_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/query_ruleset.rb deleted file mode 100644 index c77d50dbcc..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/query_ruleset.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module QueryRuleset - module Actions; end - - # Client for the "query_ruleset" namespace (includes the {QueryRuleset::Actions} methods) - # - class QueryRulesetClient - include Common::Client, Common::Client::Base, QueryRuleset::Actions - end - - # Proxy method for {QueryRulesetClient}, available in the receiving object - # - def query_ruleset - @query_ruleset ||= QueryRulesetClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/remote.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/remote.rb deleted file mode 100644 index bcf5e4265f..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/remote.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Remote - module Actions; end - - # Client for the "remote" namespace (includes the {Remote::Actions} methods) - # - class RemoteClient - include Common::Client, Common::Client::Base, Remote::Actions - end - - # Proxy method for {RemoteClient}, available in the receiving object - # - def remote - @remote ||= RemoteClient.new(self) - end - - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/search_application.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/search_application.rb deleted file mode 100644 index 962bf15b5e..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/search_application.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module SearchApplication - module Actions; end - - # Client for the "searchable_snapshots" namespace (includes the {SearchableSnapshots::Actions} methods) - # - class SearchApplicationClient - include Common::Client, Common::Client::Base, SearchApplication::Actions - end - - # Proxy method for {SearchApplicationClient}, available in the receiving object - # - def search_application - @search_application ||= SearchApplicationClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/searchable_snapshots.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/searchable_snapshots.rb deleted file mode 100644 index 0a2add26b5..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/searchable_snapshots.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module SearchableSnapshots - module Actions; end - - # Client for the "searchable_snapshots" namespace (includes the {SearchableSnapshots::Actions} methods) - # - class SearchableSnapshotsClient - include Common::Client, Common::Client::Base, SearchableSnapshots::Actions - end - - # Proxy method for {SearchableSnapshotsClient}, available in the receiving object - # - def searchable_snapshots - @searchable_snapshots ||= SearchableSnapshotsClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/security.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/security.rb deleted file mode 100644 index 61f9efba1f..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/security.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Security - module Actions; end - - # Client for the "security" namespace (includes the {Security::Actions} methods) - # - class SecurityClient - include Common::Client, Common::Client::Base, Security::Actions - end - - # Proxy method for {SecurityClient}, available in the receiving object - # - def security - @security ||= SecurityClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/simulate.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/simulate.rb deleted file mode 100644 index b5e6eb88e4..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/simulate.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Simulate - module Actions; end - - # Client for the "simulate" namespace (includes the {Simulate::Actions} methods) - # - class SimulateClient - include Common::Client, Common::Client::Base, Simulate::Actions - end - - # Proxy method for {SimulateClient}, available in the receiving object - # - def simulate - @simulate ||= SimulateClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/snapshot.rb deleted file mode 100644 index 35853de862..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/snapshot.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Snapshot - module Actions; end - - # Client for the "snapshot" namespace (includes the {Snapshot::Actions} methods) - # - class SnapshotClient - include Common::Client, Common::Client::Base, Snapshot::Actions - end - - # Proxy method for {SnapshotClient}, available in the receiving object - # - def snapshot - @snapshot ||= SnapshotClient.new(self) - end - - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/snapshot_lifecycle_management.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/snapshot_lifecycle_management.rb deleted file mode 100644 index 29b74ac932..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/snapshot_lifecycle_management.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module SnapshotLifecycleManagement - module Actions; end - - # Client for the "snapshot_lifecycle_management" namespace (includes the {SnapshotLifecycleManagement::Actions} methods) - # - class SnapshotLifecycleManagementClient - include Common::Client, Common::Client::Base, SnapshotLifecycleManagement::Actions - end - - # Proxy method for {SnapshotLifecycleManagementClient}, available in the receiving object - # - def snapshot_lifecycle_management - @snapshot_lifecycle_management ||= SnapshotLifecycleManagementClient.new(self) - end - - alias slm snapshot_lifecycle_management - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/sql.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/sql.rb deleted file mode 100644 index f0a5c7939e..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/sql.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module SQL - module Actions; end - - # Client for the "sql" namespace (includes the {SQL::Actions} methods) - # - class SQLClient - include Common::Client, Common::Client::Base, SQL::Actions - end - - # Proxy method for {SQLClient}, available in the receiving object - # - def sql - @sql ||= SQLClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/ssl.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/ssl.rb deleted file mode 100644 index d298fce678..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/ssl.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module SSL - module Actions; end - - # Client for the "ssl" namespace (includes the {SSL::Actions} methods) - # - class SSLClient - include Common::Client, Common::Client::Base, SSL::Actions - end - - # Proxy method for {SSLClient}, available in the receiving object - # - def ssl - @ssl ||= SSLClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/synonyms.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/synonyms.rb deleted file mode 100644 index 083a215203..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/synonyms.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Synonyms - module Actions; end - - # Client for the "synonyms" namespace (includes the {Synonyms::Actions} methods) - # - class SynonymsClient - include Common::Client, Common::Client::Base, Synonyms::Actions - end - - # Proxy method for {SynonymsClient}, available in the receiving object - # - def synonyms - @synonyms ||= SynonymsClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/tasks.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/tasks.rb deleted file mode 100644 index 9c4809dce2..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/tasks.rb +++ /dev/null @@ -1,37 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Tasks - module Actions; end - - # Client for the "tasks" namespace (includes the {Tasks::Actions} methods) - # - class TasksClient - include Common::Client, Common::Client::Base, Tasks::Actions - end - - # Proxy method for {TasksClient}, available in the receiving object - # - def tasks - @tasks ||= TasksClient.new(self) - end - - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/text_structure.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/text_structure.rb deleted file mode 100644 index 0d1f5b7636..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/text_structure.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module TextStructure - module Actions; end - - # Client for the "text_structure" namespace (includes the {TextStructure::Actions} methods) - # - class TextStructureClient - include Common::Client, Common::Client::Base, TextStructure::Actions - end - - # Proxy method for {TextStructureClient}, available in the receiving object - # - def text_structure - @text_structure ||= TextStructureClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/transform.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/transform.rb deleted file mode 100644 index 0c9040adfb..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/transform.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Transform - module Actions; end - - # Client for the "transform" namespace (includes the {Transform::Actions} methods) - # - class TransformClient - include Common::Client, Common::Client::Base, Transform::Actions - end - - # Proxy method for {TransformClient}, available in the receiving object - # - def transform - @transform ||= TransformClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/watcher.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/watcher.rb deleted file mode 100644 index 554e401361..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/watcher.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Watcher - module Actions; end - - # Client for the "watcher" namespace (includes the {Watcher::Actions} methods) - # - class WatcherClient - include Common::Client, Common::Client::Base, Watcher::Actions - end - - # Proxy method for {WatcherClient}, available in the receiving object - # - def watcher - @watcher ||= WatcherClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/xpack.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/xpack.rb deleted file mode 100644 index 74d8f9bb13..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/xpack.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module XPack - module Actions; end - - # Client for the "xpack" namespace (includes the {XPack::Actions} methods) - # - class XPackClient - include Common::Client, Common::Client::Base, XPack::Actions - end - - # Proxy method for {XPackClient}, available in the receiving object - # - def xpack - @xpack ||= XPackClient.new(self) - end - end - end -end From 5401754e4bff7f5c420b0e88e8adb6c77eadf598 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 12 Mar 2025 15:45:47 +0000 Subject: [PATCH 12/75] [API] Renames functions in utils.rb from __ names * Renames __bulkify to bulkify * Renames __escape to escape * Renames __listify to listify * Renames __pathify to pathify * Renames __extract_parts to extract_parts * Renames __rescue_from_not_found to rescue_from_not_found --- .../lib/elasticsearch/api/utils.rb | 62 +++---- elasticsearch-api/spec/unit/utils_spec.rb | 169 ++++-------------- .../utils/thor/endpoint_specifics.rb | 4 +- .../utils/thor/templates/_body.erb | 2 +- 4 files changed, 67 insertions(+), 170 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/utils.rb b/elasticsearch-api/lib/elasticsearch/api/utils.rb index fc53cb1d49..8959b3aa81 100644 --- a/elasticsearch-api/lib/elasticsearch/api/utils.rb +++ b/elasticsearch-api/lib/elasticsearch/api/utils.rb @@ -24,60 +24,62 @@ module Utils # URL-escape a string # # @example - # __escape('foo/bar') # => 'foo%2Fbar' - # __escape('bar^bam') # => 'bar%5Ebam' + # escape('foo/bar') # => 'foo%2Fbar' + # escape('bar^bam') # => 'bar%5Ebam' # # @api private - def __escape(string) + def escape(string) return string if string == '*' + ERB::Util.url_encode(string.to_s) end # Create a "list" of values from arguments, ignoring nil values and encoding special characters. # # @example Create a list from array - # __listify(['A','B']) # => 'A,B' + # listify(['A','B']) # => 'A,B' # # @example Create a list from arguments - # __listify('A','B') # => 'A,B' + # listify('A','B') # => 'A,B' # # @example Escape values - # __listify('foo','bar^bam') # => 'foo,bar%5Ebam' + # listify('foo','bar^bam') # => 'foo,bar%5Ebam' # # @example Do not escape the values - # __listify('foo','bar^bam', escape: false) # => 'foo,bar^bam' + # listify('foo','bar^bam', escape: false) # => 'foo,bar^bam' # # @api private - def __listify(*list) + def listify(*list) options = list.last.is_a?(Hash) ? list.pop : {} escape = options[:escape] - Array(list). - flat_map { |e| e.respond_to?(:split) ? e.split(',') : e }. - flatten. - compact. - map { |e| escape == false ? e : __escape(e) }. - join(',') + Array(list) + .flat_map { |e| e.respond_to?(:split) ? e.split(',') : e } + .flatten + .compact + .map { |e| escape == false ? e : escape(e) } + .join(',') end # Create a path (URL part) from arguments, ignoring nil values and empty strings. # # @example Create a path from array - # __pathify(['foo', '', nil, 'bar']) # => 'foo/bar' + # pathify(['foo', '', nil, 'bar']) # => 'foo/bar' # # @example Create a path from arguments - # __pathify('foo', '', nil, 'bar') # => 'foo/bar' + # pathify('foo', '', nil, 'bar') # => 'foo/bar' # # # @example Encode special characters - # __pathify(['foo', 'bar^bam']) # => 'foo/bar%5Ebam' + # pathify(['foo', 'bar^bam']) # => 'foo/bar%5Ebam' # # @api private - def __pathify(*segments) - Array(segments).flatten. - compact. - reject { |s| s.to_s.strip.empty? }. - join('/'). - squeeze('/') + def pathify(*segments) + Array(segments) + .flatten + .compact + .reject { |s| s.to_s.strip.empty? } + .join('/') + .squeeze('/') end # Convert an array of payloads into Elasticsearch `header\ndata` format @@ -86,7 +88,7 @@ def __pathify(*segments) # or the conveniency "combined" format where data is passed along with the header # in a single item. # - # Elasticsearch::API::Utils.__bulkify [ + # Elasticsearch::API::Utils.bulkify [ # { :index => { :_index => 'myindexA', :_type => 'mytype', :_id => '1', :data => { :title => 'Test' } } }, # { :update => { :_index => 'myindexB', :_type => 'mytype', :_id => '2', :data => { :doc => { :title => 'Update' } } } } # ] @@ -96,7 +98,7 @@ def __pathify(*segments) # # => {"update":{"_index":"myindexB","_type":"mytype","_id":"2"}} # # => {"doc":{"title":"Update"}} # - def __bulkify(payload) + def bulkify(payload) operations = %w[index create delete update] case @@ -131,7 +133,7 @@ def __bulkify(payload) def process_params(arguments) arguments = Hash[arguments] unless arguments.is_a?(Hash) - Hash[arguments.map { |k, v| v.is_a?(Array) ? [k, __listify(v, { escape: false })] : [k, v] }] # Listify Arrays + Hash[arguments.map { |k, v| v.is_a?(Array) ? [k, listify(v, { escape: false })] : [k, v] }] # Listify Arrays end # Extracts the valid parts of the URL from the arguments @@ -144,14 +146,14 @@ def process_params(arguments) # @return [Array] Valid parts of the URL as an array of strings # # @example Extract parts - # __extract_parts { :foo => true }, [:foo, :bar] + # extract_parts { :foo => true }, [:foo, :bar] # # => [:foo] # # # @api private # - def __extract_parts(arguments, valid_parts=[]) - Hash[arguments].reduce([]) { |sum, item| k, v = item; v.is_a?(TrueClass) ? sum << k.to_s : sum << v } + def extract_parts(arguments, _valid_parts = []) + Hash[arguments].reduce([]) { |sum, item| k, v = item; v.is_a?(TrueClass) ? sum << k.to_s : sum << v } end # Calls the given block, rescuing from `StandardError`. @@ -165,7 +167,7 @@ def __extract_parts(arguments, valid_parts=[]) # # @api private # - def __rescue_from_not_found(&block) + def rescue_from_not_found(&block) yield rescue StandardError => e if e.class.to_s =~ /NotFound/ || e.message =~ /Not\s*Found/i diff --git a/elasticsearch-api/spec/unit/utils_spec.rb b/elasticsearch-api/spec/unit/utils_spec.rb index 63eba22f13..93680796cb 100644 --- a/elasticsearch-api/spec/unit/utils_spec.rb +++ b/elasticsearch-api/spec/unit/utils_spec.rb @@ -22,72 +22,72 @@ Class.new { include Elasticsearch::API::Utils }.new end - describe '#__escape' do + describe '#escape' do it 'encodes Unicode characters' do - expect(utils.__escape('中文')).to eq('%E4%B8%AD%E6%96%87') + expect(utils.escape('中文')).to eq('%E4%B8%AD%E6%96%87') end it 'encodes special characters' do - expect(utils.__escape('foo bar')).to eq('foo%20bar') - expect(utils.__escape('foo/bar')).to eq('foo%2Fbar') - expect(utils.__escape('foo^bar')).to eq('foo%5Ebar') + expect(utils.escape('foo bar')).to eq('foo%20bar') + expect(utils.escape('foo/bar')).to eq('foo%2Fbar') + expect(utils.escape('foo^bar')).to eq('foo%5Ebar') end it 'does not encode asterisks' do - expect(utils.__escape('*')).to eq('*') + expect(utils.escape('*')).to eq('*') end end - describe '#__listify' do + describe '#listify' do it 'creates a list from a single value' do - expect(utils.__listify('foo')).to eq('foo') + expect(utils.listify('foo')).to eq('foo') end it 'creates a list from an array' do - expect(utils.__listify(['foo', 'bar'])).to eq('foo,bar') + expect(utils.listify(['foo', 'bar'])).to eq('foo,bar') end it 'creates a list from multiple arguments' do - expect(utils.__listify('foo', 'bar')).to eq('foo,bar') + expect(utils.listify('foo', 'bar')).to eq('foo,bar') end it 'ignores nil values' do - expect(utils.__listify(['foo', nil, 'bar'])).to eq('foo,bar') + expect(utils.listify(['foo', nil, 'bar'])).to eq('foo,bar') end it 'ignores special characters' do - expect(utils.__listify(['foo', 'bar^bam'])).to eq('foo,bar%5Ebam') + expect(utils.listify(['foo', 'bar^bam'])).to eq('foo,bar%5Ebam') end context 'when the escape option is set to false' do it 'does not escape the characters' do - expect(utils.__listify(['foo', 'bar^bam'], escape: false)).to eq('foo,bar^bam') + expect(utils.listify(['foo', 'bar^bam'], escape: false)).to eq('foo,bar^bam') end end end - describe '#__pathify' do + describe '#pathify' do it 'creates a path from a single value' do - expect(utils.__pathify('foo')).to eq('foo') + expect(utils.pathify('foo')).to eq('foo') end it 'creates a path from an array' do - expect(utils.__pathify(['foo', 'bar'])).to eq('foo/bar') + expect(utils.pathify(['foo', 'bar'])).to eq('foo/bar') end it 'ignores nil values' do - expect(utils.__pathify(['foo', nil, 'bar'])).to eq('foo/bar') + expect(utils.pathify(['foo', nil, 'bar'])).to eq('foo/bar') end it 'ignores empty string values' do - expect(utils.__pathify(['foo', '', 'bar'])).to eq('foo/bar') + expect(utils.pathify(['foo', '', 'bar'])).to eq('foo/bar') end end - describe '#__bulkify' do + describe '#bulkify' do context 'when the input is an array of hashes' do let(:result) do - utils.__bulkify [ + utils.bulkify [ { index: { _index: 'myindexA', _id: '1', data: { title: 'Test' } } }, { update: { _index: 'myindexB', _id: '2', data: { doc: { title: 'Update' } } } }, { delete: { _index: 'myindexC', _id: '3' } } @@ -112,7 +112,7 @@ context 'when the input is an array of strings' do let(:result) do - utils.__bulkify(['{"foo":"bar"}','{"moo":"bam"}']) + utils.bulkify(['{"foo":"bar"}','{"moo":"bam"}']) end let(:expected_string) do @@ -130,7 +130,7 @@ context 'when the input is an array of header/data pairs' do let(:result) do - utils.__bulkify([{ foo: 'bar' }, { moo: 'bam' },{ foo: 'baz' }]) + utils.bulkify([{ foo: 'bar' }, { moo: 'bam' },{ foo: 'baz' }]) end let(:expected_string) do @@ -153,7 +153,7 @@ end let(:result) do - utils.__bulkify([input]) + utils.bulkify([input]) end let(:expected_string) do @@ -178,7 +178,7 @@ end let(:result) do - utils.__bulkify([{ index: { foo: 'bar'} } , data]) + utils.bulkify([{ index: { foo: 'bar'} } , data]) end let(:lines) do @@ -221,135 +221,30 @@ end end - describe '#__extract_parts' do + describe '#extract_parts' do it 'extracts parts with true value from a Hash' do - expect(utils.__extract_parts({ foo: true, moo: 'blah' })).to eq(['foo', 'blah']) + expect(utils.extract_parts({ foo: true, moo: 'blah' })).to eq(['foo', 'blah']) end it 'extracts parts with string value from a Hash' do - expect(utils.__extract_parts({ foo: 'qux', moo: 'blah' })).to eq(['qux', 'blah']) + expect(utils.extract_parts({ foo: 'qux', moo: 'blah' })).to eq(['qux', 'blah']) end end - context '#__rescue_from_not_found' do - + context '#rescue_from_not_found' do it 'returns false if exception class name contains \'NotFound\'' do - expect(utils.__rescue_from_not_found { raise NotFound }).to be(false) + expect(utils.rescue_from_not_found { raise NotFound }).to be(false) end it 'returns false if exception message contains \'Not Found\'' do - expect(utils.__rescue_from_not_found { raise StandardError.new "Not Found" }).to be(false) - expect(utils.__rescue_from_not_found { raise StandardError.new "NotFound" }).to be(false) + expect(utils.rescue_from_not_found { raise StandardError.new "Not Found" }).to be(false) + expect(utils.rescue_from_not_found { raise StandardError.new "NotFound" }).to be(false) end it 'raises the exception if the class name and message do not include \'NotFound\'' do expect { - utils.__rescue_from_not_found { raise StandardError.new "Any other exception" } + utils.rescue_from_not_found { raise StandardError.new "Any other exception" } }.to raise_exception(StandardError) end end - - context '#__report_unsupported_parameters' do - - context 'when the parameters are passed as Symbols' do - - let(:arguments) do - { foo: 'bar', moo: 'bam', baz: 'qux' } - end - - let(:unsupported_params) do - [ :foo, :moo] - end - - let(:message) do - message = '' - expect(Kernel).to receive(:warn) { |msg| message = msg } - utils.__report_unsupported_parameters(arguments, unsupported_params) - message - end - - it 'prints the unsupported parameters' do - expect(message).to match(/You are using unsupported parameter \[\:foo\]/) - expect(message).to match(/You are using unsupported parameter \[\:moo\]/) - end - end - - context 'when the parameters are passed as Hashes' do - - let(:arguments) do - { foo: 'bar', moo: 'bam', baz: 'qux' } - end - - let(:unsupported_params) do - [ :foo, :moo] - end - - let(:message) do - message = '' - expect(Kernel).to receive(:warn) { |msg| message = msg } - utils.__report_unsupported_parameters(arguments, unsupported_params) - message - end - - it 'prints the unsupported parameters' do - expect(message).to match(/You are using unsupported parameter \[\:foo\]/) - expect(message).to match(/You are using unsupported parameter \[\:moo\]/) - end - end - - context 'when the parameters are passed as a mix of Hashes and Symbols' do - - let(:arguments) do - { foo: 'bar', moo: 'bam', baz: 'qux' } - end - - let(:unsupported_params) do - [ { foo: { explanation: 'NOT_SUPPORTED'} }, :moo ] - end - - - let(:message) do - message = '' - expect(Kernel).to receive(:warn) { |msg| message = msg } - utils.__report_unsupported_parameters(arguments, unsupported_params) - message - end - - it 'prints the unsupported parameters' do - expect(message).to match(/You are using unsupported parameter \[\:foo\]/) - expect(message).to match(/You are using unsupported parameter \[\:moo\]/) - expect(message).to match(/NOT_SUPPORTED/) - end - end - - context 'when unsupported parameters are unused' do - - let(:arguments) do - { moo: 'bam', baz: 'qux' } - end - - let(:unsupported_params) do - [ :foo ] - end - - it 'prints the unsupported parameters' do - expect(Kernel).not_to receive(:warn) - utils.__report_unsupported_parameters(arguments, unsupported_params) - end - end - end - - describe '#__report_unsupported_method' do - - let(:message) do - message = '' - expect(Kernel).to receive(:warn) { |msg| message = msg } - utils.__report_unsupported_method(:foo) - message - end - - it 'prints a warning' do - expect(message).to match(/foo/) - end - end end diff --git a/elasticsearch-api/utils/thor/endpoint_specifics.rb b/elasticsearch-api/utils/thor/endpoint_specifics.rb index eea5f46cdd..d521b5160b 100644 --- a/elasticsearch-api/utils/thor/endpoint_specifics.rb +++ b/elasticsearch-api/utils/thor/endpoint_specifics.rb @@ -136,7 +136,7 @@ def msearch_template_body_helper def bulk_body_helper <<~SRC payload = if body.is_a? Array - Elasticsearch::API::Utils.__bulkify(body) + Elasticsearch::API::Utils.bulkify(body) else body end @@ -150,7 +150,7 @@ def find_structure_body_helper def bulk_doc_helper(info) <<~SRC # @option arguments [String|Array] :body #{info}. Array of Strings, Header/Data pairs, - # or the conveniency "combined" format can be passed, refer to Elasticsearch::API::Utils.__bulkify documentation. + # or the conveniency "combined" format can be passed, refer to Elasticsearch::API::Utils.bulkify documentation. SRC end end diff --git a/elasticsearch-api/utils/thor/templates/_body.erb b/elasticsearch-api/utils/thor/templates/_body.erb index 6e8072b6be..458bebeae1 100644 --- a/elasticsearch-api/utils/thor/templates/_body.erb +++ b/elasticsearch-api/utils/thor/templates/_body.erb @@ -28,7 +28,7 @@ when 'mtermvectors' <%- when 'cluster.reroute', 'cluster.put_settings' %> body = arguments.delete(:body) || {} <%- when 'ml.find_file_structure' %> - body = Utils.__bulkify(arguments.delete(:body)) + body = Utils.bulkify(arguments.delete(:body)) <%- else -%> body = <%= @spec.body.nil? ? 'nil' : 'arguments.delete(:body)' %> <%- end -%> From 4238922759afe29e362d962c92b4b894f7f55c93 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Thu, 13 Mar 2025 10:54:16 +0000 Subject: [PATCH 13/75] [API] Removes old unused code from utils.rb --- .../lib/elasticsearch/api/utils.rb | 57 ------------------- 1 file changed, 57 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/utils.rb b/elasticsearch-api/lib/elasticsearch/api/utils.rb index 8959b3aa81..128281a611 100644 --- a/elasticsearch-api/lib/elasticsearch/api/utils.rb +++ b/elasticsearch-api/lib/elasticsearch/api/utils.rb @@ -177,63 +177,6 @@ def rescue_from_not_found(&block) end end - def __report_unsupported_parameters(arguments, params=[]) - messages = [] - unsupported_params = params.select {|d| d.is_a?(Hash) ? arguments.include?(d.keys.first) : arguments.include?(d) } - - unsupported_params.each do |param| - name = case param - when Symbol - param - when Hash - param.keys.first - else - raise ArgumentError, "The param must be a Symbol or a Hash" - end - - explanation = if param.is_a?(Hash) - ". #{param.values.first[:explanation]}." - else - ". This parameter is not supported in the version you're using: #{Elasticsearch::API::VERSION}, and will be removed in the next release." - end - - message = "[!] You are using unsupported parameter [:#{name}]" - - if source = caller && caller.last - message += " in `#{source}`" - end - - message += explanation - - messages << message - end - - unless messages.empty? - messages << "Suppress this warning by the `-WO` command line flag." - - if STDERR.tty? - Kernel.warn messages.map { |m| "\e[31;1m#{m}\e[0m" }.join("\n") - else - Kernel.warn messages.join("\n") - end - end - end - - def __report_unsupported_method(name) - message = "[!] You are using unsupported method [#{name}]" - if source = caller && caller.last - message += " in `#{source}`" - end - - message += ". This method is not supported in the version you're using: #{Elasticsearch::API::VERSION}, and will be removed in the next release. Suppress this warning by the `-WO` command line flag." - - if STDERR.tty? - Kernel.warn "\e[31;1m#{message}\e[0m" - else - Kernel.warn message - end - end - extend self end end From 1533c46401325ac0f97f1b05f52eed5804f00c97 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Fri, 21 Feb 2025 09:41:28 +0000 Subject: [PATCH 14/75] [API] Adds migrate endpoints from elasticsearch-specification --- .../actions/indices/cancel_migrate_reindex.rb | 65 ++++++++++++++ .../api/actions/indices/create_from.rb | 71 +++++++++++++++ .../indices/get_migrate_reindex_status.rb | 65 ++++++++++++++ .../api/actions/indices/migrate_reindex.rb | 60 +++++++++++++ .../actions/indices/indices_migrate_spec.rb | 88 +++++++++++++++++++ 5 files changed, 349 insertions(+) create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb create mode 100644 elasticsearch-api/spec/unit/actions/indices/indices_migrate_spec.rb diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb new file mode 100644 index 0000000000..69e7d7fc40 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb @@ -0,0 +1,65 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Indices + module Actions + # Cancel a migration reindex operation. + # Cancel a migration reindex attempt for a data stream or index. + # This functionality is Experimental and may be changed or removed + # completely in a future release. Elastic will take a best effort approach + # to fix any issues, but experimental features are not subject to the + # support SLA of official GA features. + # + # @option arguments [String, Array] :index The index or data stream name (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # + # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/migrate-data-stream.html + # + def cancel_migrate_reindex(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'indices.cancel_migrate_reindex' } + + defined_params = [:index].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = nil + + _index = arguments.delete(:index) + + method = Elasticsearch::API::HTTP_POST + path = "_migration/reindex/#{Utils.listify(_index)}/_cancel" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb new file mode 100644 index 0000000000..d57741f8ae --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb @@ -0,0 +1,71 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Indices + module Actions + # Create an index from a source index. + # Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. + # This functionality is Experimental and may be changed or removed + # completely in a future release. Elastic will take a best effort approach + # to fix any issues, but experimental features are not subject to the + # support SLA of official GA features. + # + # @option arguments [String] :source The source index or data stream name (*Required*) + # @option arguments [String] :dest The destination index or data stream name (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body create_from + # + # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/migrate-data-stream.html + # + def create_from(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'indices.create_from' } + + defined_params = [:source, :dest].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] + raise ArgumentError, "Required argument 'source' missing" unless arguments[:source] + raise ArgumentError, "Required argument 'dest' missing" unless arguments[:dest] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _source = arguments.delete(:source) + + _dest = arguments.delete(:dest) + + method = Elasticsearch::API::HTTP_PUT + path = "_create_from/#{Utils.listify(_source)}/#{Utils.listify(_dest)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb new file mode 100644 index 0000000000..60f6975b24 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb @@ -0,0 +1,65 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Indices + module Actions + # Get the migration reindexing status. + # Get the status of a migration reindex attempt for a data stream or index. + # This functionality is Experimental and may be changed or removed + # completely in a future release. Elastic will take a best effort approach + # to fix any issues, but experimental features are not subject to the + # support SLA of official GA features. + # + # @option arguments [String, Array] :index The index or data stream name. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # + # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/migrate-data-stream.html + # + def get_migrate_reindex_status(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'indices.get_migrate_reindex_status' } + + defined_params = [:index].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = nil + + _index = arguments.delete(:index) + + method = Elasticsearch::API::HTTP_GET + path = "_migration/reindex/#{Utils.listify(_index)}/_status" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb new file mode 100644 index 0000000000..3e4a7eb870 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb @@ -0,0 +1,60 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Indices + module Actions + # Reindex legacy backing indices. + # Reindex all legacy backing indices for a data stream. + # This operation occurs in a persistent task. + # The persistent task ID is returned immediately and the reindexing work is completed in that task. + # This functionality is Experimental and may be changed or removed + # completely in a future release. Elastic will take a best effort approach + # to fix any issues, but experimental features are not subject to the + # support SLA of official GA features. + # + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body reindex + # + # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/migrate-data-stream.html + # + def migrate_reindex(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'indices.migrate_reindex' } + + raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + method = Elasticsearch::API::HTTP_POST + path = '_migration/reindex' + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/spec/unit/actions/indices/indices_migrate_spec.rb b/elasticsearch-api/spec/unit/actions/indices/indices_migrate_spec.rb new file mode 100644 index 0000000000..7a53de9155 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/indices/indices_migrate_spec.rb @@ -0,0 +1,88 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client.indices' do + context 'migrate_reindex' do + let(:expected_args) do + [ + 'POST', + '_migration/reindex', + {}, + {}, + {}, + { endpoint: 'indices.migrate_reindex' } + ] + end + + it 'performs the request' do + expect(client_double.indices.migrate_reindex(body: {})).to be_a Elasticsearch::API::Response + end + end + + context 'get_migrate_reindex_status' do + let(:expected_args) do + [ + 'GET', + '_migration/reindex/foo/_status', + {}, + nil, + {}, + { endpoint: 'indices.get_migrate_reindex_status', defined_params: { index: 'foo' } } + ] + end + + it 'performs the request' do + expect(client_double.indices.get_migrate_reindex_status(index: 'foo')).to be_a Elasticsearch::API::Response + end + end + + context 'cancel_migrate_reindex' do + let(:expected_args) do + [ + 'POST', + '_migration/reindex/foo/_cancel', + {}, + nil, + {}, + { endpoint: 'indices.cancel_migrate_reindex', defined_params: { index: 'foo' } } + ] + end + + it 'performs the request' do + expect(client_double.indices.cancel_migrate_reindex(index: 'foo')).to be_a Elasticsearch::API::Response + end + end + + context 'create_from' do + let(:expected_args) do + [ + 'PUT', + '_create_from/foo/bar', + {}, + {}, + {}, + { endpoint: 'indices.create_from', defined_params: { source: 'foo', dest: 'bar' } } + ] + end + + it 'performs the request' do + expect(client_double.indices.create_from(body: {}, source: 'foo', dest: 'bar')).to be_a Elasticsearch::API::Response + end + end +end From 058f498ca46a337e82b81a53c2f1eaebb38ff56d Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 26 Feb 2025 15:20:16 +0000 Subject: [PATCH 15/75] [API] Adds user profile APIs --- .../actions/security/activate_user_profile.rb | 62 ++++++++++++++ .../actions/security/disable_user_profile.rb | 69 ++++++++++++++++ .../actions/security/enable_user_profile.rb | 70 ++++++++++++++++ .../api/actions/security/get_user_profile.rb | 68 ++++++++++++++++ .../security/has_privileges_user_profile.rb | 56 +++++++++++++ .../actions/security/suggest_user_profiles.rb | 65 +++++++++++++++ .../security/update_user_profile_data.rb | 80 +++++++++++++++++++ .../security/activate_user_profile_spec.rb | 35 ++++++++ .../security/disable_user_profile_spec.rb | 35 ++++++++ .../security/enable_user_profile_spec.rb | 35 ++++++++ .../unit/actions/security/get_api_key_spec.rb | 20 +++-- .../actions/security/get_user_profile_spec.rb | 35 ++++++++ .../has_privilege_user_profile_spec.rb | 35 ++++++++ .../security/suggest_user_profile_spec.rb | 35 ++++++++ .../security/update_user_profile_spec.rb | 35 ++++++++ 15 files changed, 724 insertions(+), 11 deletions(-) create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb create mode 100644 elasticsearch-api/spec/unit/actions/security/activate_user_profile_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/security/disable_user_profile_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/security/enable_user_profile_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/security/get_user_profile_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/security/has_privilege_user_profile_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/security/suggest_user_profile_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/security/update_user_profile_spec.rb diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb new file mode 100644 index 0000000000..73fb59b0c1 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb @@ -0,0 +1,62 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Security + module Actions + # Activate a user profile. + # Create or update a user profile on behalf of another user. + # NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + # Individual users and external applications should not call this API directly. + # The calling application must have either an +access_token+ or a combination of +username+ and +password+ for the user that the profile document is intended for. + # Elastic reserves the right to change or remove this feature in future releases without prior notice. + # This API creates or updates a profile document for end users with information that is extracted from the user's authentication object including +username+, +full_name,+ +roles+, and the authentication realm. + # For example, in the JWT +access_token+ case, the profile user's +username+ is extracted from the JWT token claim pointed to by the +claims.principal+ setting of the JWT realm that authenticated the token. + # When updating a profile document, the API enables the document if it was disabled. + # Any updates do not change existing content for either the +labels+ or +data+ fields. + # + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-activate-user-profile + # + def activate_user_profile(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'security.activate_user_profile' } + + raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + method = Elasticsearch::API::HTTP_POST + path = '_security/profile/_activate' + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb new file mode 100644 index 0000000000..30b86ec2a2 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb @@ -0,0 +1,69 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Security + module Actions + # Disable a user profile. + # Disable user profiles so that they are not visible in user profile searches. + # NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + # Individual users and external applications should not call this API directly. + # Elastic reserves the right to change or remove this feature in future releases without prior notice. + # When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. + # To re-enable a disabled user profile, use the enable user profile API . + # + # @option arguments [String] :uid Unique identifier for the user profile. (*Required*) + # @option arguments [String] :refresh If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search. + # If 'wait_for', it waits for a refresh to make this operation visible to search. + # If 'false', it does nothing with refreshes. Server default: false. + # @option arguments [Hash] :headers Custom HTTP headers + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-disable-user-profile + # + def disable_user_profile(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'security.disable_user_profile' } + + defined_params = [:uid].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'uid' missing" unless arguments[:uid] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = nil + + _uid = arguments.delete(:uid) + + method = Elasticsearch::API::HTTP_PUT + path = "_security/profile/#{Utils.listify(_uid)}/_disable" + params = Utils.process_params(arguments) + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb new file mode 100644 index 0000000000..5e3da8160b --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb @@ -0,0 +1,70 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Security + module Actions + # Enable a user profile. + # Enable user profiles to make them visible in user profile searches. + # NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + # Individual users and external applications should not call this API directly. + # Elastic reserves the right to change or remove this feature in future releases without prior notice. + # When you activate a user profile, it's automatically enabled and visible in user profile searches. + # If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. + # + # @option arguments [String] :uid A unique identifier for the user profile. (*Required*) + # @option arguments [String] :refresh If 'true', Elasticsearch refreshes the affected shards to make this operation + # visible to search. + # If 'wait_for', it waits for a refresh to make this operation visible to search. + # If 'false', nothing is done with refreshes. Server default: false. + # @option arguments [Hash] :headers Custom HTTP headers + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-enable-user-profile + # + def enable_user_profile(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'security.enable_user_profile' } + + defined_params = [:uid].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'uid' missing" unless arguments[:uid] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = nil + + _uid = arguments.delete(:uid) + + method = Elasticsearch::API::HTTP_PUT + path = "_security/profile/#{Utils.listify(_uid)}/_enable" + params = Utils.process_params(arguments) + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb new file mode 100644 index 0000000000..26ba054916 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb @@ -0,0 +1,68 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Security + module Actions + # Get a user profile. + # Get a user's profile using the unique profile ID. + # NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + # Individual users and external applications should not call this API directly. + # Elastic reserves the right to change or remove this feature in future releases without prior notice. + # + # @option arguments [Userprofileid] :uid A unique identifier for the user profile. (*Required*) + # @option arguments [String] :data A comma-separated list of filters for the +data+ field of the profile document. + # To return all content use +data=*+. + # To return a subset of content use +data=+ to retrieve content nested under the specified ++. + # By default returns no +data+ content. + # @option arguments [Hash] :headers Custom HTTP headers + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-user-profile + # + def get_user_profile(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'security.get_user_profile' } + + defined_params = [:uid].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'uid' missing" unless arguments[:uid] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = nil + + _uid = arguments.delete(:uid) + + method = Elasticsearch::API::HTTP_GET + path = "_security/profile/#{Utils.listify(_uid)}" + params = Utils.process_params(arguments) + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb new file mode 100644 index 0000000000..5bb59b68ce --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb @@ -0,0 +1,56 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Security + module Actions + # Check user profile privileges. + # Determine whether the users associated with the specified user profile IDs have all the requested privileges. + # NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. + # Elastic reserves the right to change or remove this feature in future releases without prior notice. + # + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-has-privileges-user-profile + # + def has_privileges_user_profile(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'security.has_privileges_user_profile' } + + raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + method = Elasticsearch::API::HTTP_POST + path = '_security/profile/_has_privileges' + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb new file mode 100644 index 0000000000..3586f601f0 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb @@ -0,0 +1,65 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Security + module Actions + # Suggest a user profile. + # Get suggestions for user profiles that match specified search criteria. + # NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + # Individual users and external applications should not call this API directly. + # Elastic reserves the right to change or remove this feature in future releases without prior notice. + # + # @option arguments [String] :data A comma-separated list of filters for the +data+ field of the profile document. + # To return all content use +data=*+. + # To return a subset of content, use +data=+ to retrieve content nested under the specified ++. + # By default, the API returns no +data+ content. + # It is an error to specify +data+ as both the query parameter and the request body field. + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-suggest-user-profiles + # + def suggest_user_profiles(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'security.suggest_user_profiles' } + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + method = if body + Elasticsearch::API::HTTP_POST + else + Elasticsearch::API::HTTP_GET + end + + path = "_security/profile/_suggest" + params = Utils.process_params(arguments) + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb new file mode 100644 index 0000000000..a8e24acf6f --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb @@ -0,0 +1,80 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Security + module Actions + # Update user profile data. + # Update specific data for the user profile that is associated with a unique ID. + # NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + # Individual users and external applications should not call this API directly. + # Elastic reserves the right to change or remove this feature in future releases without prior notice. + # To use this API, you must have one of the following privileges: + # * The +manage_user_profile+ cluster privilege. + # * The +update_profile_data+ global privilege for the namespaces that are referenced in the request. + # This API updates the +labels+ and +data+ fields of an existing user profile document with JSON objects. + # New keys and their values are added to the profile document and conflicting keys are replaced by data that's included in the request. + # For both labels and data, content is namespaced by the top-level fields. + # The +update_profile_data+ global privilege grants privileges for updating only the allowed namespaces. + # + # @option arguments [String] :uid A unique identifier for the user profile. (*Required*) + # @option arguments [Integer] :if_seq_no Only perform the operation if the document has this sequence number. + # @option arguments [Integer] :if_primary_term Only perform the operation if the document has this primary term. + # @option arguments [String] :refresh If 'true', Elasticsearch refreshes the affected shards to make this operation + # visible to search. + # If 'wait_for', it waits for a refresh to make this operation visible to search. + # If 'false', nothing is done with refreshes. Server default: false. + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-user-profile-data + # + def update_user_profile_data(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'security.update_user_profile_data' } + + defined_params = [:uid].inject({}) do |set_variables, variable| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + set_variables + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] + raise ArgumentError, "Required argument 'uid' missing" unless arguments[:uid] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _uid = arguments.delete(:uid) + + method = Elasticsearch::API::HTTP_PUT + path = "_security/profile/#{Utils.__listify(_uid)}/_data" + params = Utils.process_params(arguments) + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/spec/unit/actions/security/activate_user_profile_spec.rb b/elasticsearch-api/spec/unit/actions/security/activate_user_profile_spec.rb new file mode 100644 index 0000000000..030bbeef79 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/security/activate_user_profile_spec.rb @@ -0,0 +1,35 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#security#activate_user_profile' do + let(:expected_args) do + [ + 'POST', + '_security/profile/_activate', + {}, + {}, + {}, + { endpoint: 'security.activate_user_profile' } + ] + end + + it 'performs the request' do + expect(client_double.security.activate_user_profile(body: {})).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/security/disable_user_profile_spec.rb b/elasticsearch-api/spec/unit/actions/security/disable_user_profile_spec.rb new file mode 100644 index 0000000000..67aa731cbf --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/security/disable_user_profile_spec.rb @@ -0,0 +1,35 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#security#disable_user_profile' do + let(:expected_args) do + [ + 'PUT', + '_security/profile/foo/_disable', + {}, + nil, + {}, + { endpoint: 'security.disable_user_profile', defined_params: { uid: 'foo' } } + ] + end + + it 'performs the request' do + expect(client_double.security.disable_user_profile(uid: 'foo')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/security/enable_user_profile_spec.rb b/elasticsearch-api/spec/unit/actions/security/enable_user_profile_spec.rb new file mode 100644 index 0000000000..e5bf0dafab --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/security/enable_user_profile_spec.rb @@ -0,0 +1,35 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#security#enable_user_profile' do + let(:expected_args) do + [ + 'PUT', + '_security/profile/foo/_enable', + {}, + nil, + {}, + { endpoint: 'security.enable_user_profile', defined_params: { uid: 'foo' } } + ] + end + + it 'performs the request' do + expect(client_double.security.enable_user_profile(uid: 'foo')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/security/get_api_key_spec.rb b/elasticsearch-api/spec/unit/actions/security/get_api_key_spec.rb index 082d249109..508cd23dde 100644 --- a/elasticsearch-api/spec/unit/actions/security/get_api_key_spec.rb +++ b/elasticsearch-api/spec/unit/actions/security/get_api_key_spec.rb @@ -18,15 +18,14 @@ require 'spec_helper' describe 'client#security#get_api_key' do - let(:expected_args) do [ - 'GET', - '_security/api_key', - params, - nil, - {}, - { endpoint: 'security.get_api_key' } + 'GET', + '_security/api_key', + params, + nil, + {}, + { endpoint: 'security.get_api_key' } ] end @@ -39,7 +38,6 @@ end context 'when params are specified' do - let(:params) do { id: '1', username: 'user', @@ -49,9 +47,9 @@ it 'performs the request' do expect(client_double.security.get_api_key(id: '1', - username: 'user', - name: 'my-api-key', - realm_name: '_es_api_key')).to be_a Elasticsearch::API::Response + username: 'user', + name: 'my-api-key', + realm_name: '_es_api_key')).to be_a Elasticsearch::API::Response end end end diff --git a/elasticsearch-api/spec/unit/actions/security/get_user_profile_spec.rb b/elasticsearch-api/spec/unit/actions/security/get_user_profile_spec.rb new file mode 100644 index 0000000000..4d528ae1fa --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/security/get_user_profile_spec.rb @@ -0,0 +1,35 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#security#get_user_profile' do + let(:expected_args) do + [ + 'GET', + '_security/profile/foo', + {}, + nil, + {}, + { endpoint: 'security.get_user_profile', defined_params: { uid: 'foo' } } + ] + end + + it 'performs the request' do + expect(client_double.security.get_user_profile(uid: 'foo')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/security/has_privilege_user_profile_spec.rb b/elasticsearch-api/spec/unit/actions/security/has_privilege_user_profile_spec.rb new file mode 100644 index 0000000000..a124ca0142 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/security/has_privilege_user_profile_spec.rb @@ -0,0 +1,35 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#security#has_privileges_user_profile' do + let(:expected_args) do + [ + 'POST', + '_security/profile/_has_privileges', + {}, + {}, + {}, + { endpoint: 'security.has_privileges_user_profile' } + ] + end + + it 'performs the request' do + expect(client_double.security.has_privileges_user_profile(body: {})).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/security/suggest_user_profile_spec.rb b/elasticsearch-api/spec/unit/actions/security/suggest_user_profile_spec.rb new file mode 100644 index 0000000000..dcf0ba20b1 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/security/suggest_user_profile_spec.rb @@ -0,0 +1,35 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#security#suggest_user_profiles' do + let(:expected_args) do + [ + 'POST', + '_security/profile/_suggest', + {}, + {}, + {}, + { endpoint: 'security.suggest_user_profiles' } + ] + end + + it 'performs the request' do + expect(client_double.security.suggest_user_profiles(body: {})).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/security/update_user_profile_spec.rb b/elasticsearch-api/spec/unit/actions/security/update_user_profile_spec.rb new file mode 100644 index 0000000000..1682a97fb5 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/security/update_user_profile_spec.rb @@ -0,0 +1,35 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#security#update_user_profile_data' do + let(:expected_args) do + [ + 'PUT', + '_security/profile/foo/_data', + {}, + {}, + {}, + { endpoint: 'security.update_user_profile_data', defined_params: { uid: 'foo' } } + ] + end + + it 'performs the request' do + expect(client_double.security.update_user_profile_data(uid: 'foo', body: {})).to be_a Elasticsearch::API::Response + end +end From ffb9a0bf54bacdf118e2109bb0bfadac8fa6be4b Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Thu, 6 Mar 2025 09:11:55 +0000 Subject: [PATCH 16/75] [API] Removes rollup APIs The rollup feature was never GA-ed and is still tech preview. It has been deprecated since 8.11.0 in favor of downsampling. --- .../api/actions/rollup/delete_job.rb | 64 ----------------- .../api/actions/rollup/get_jobs.rb | 66 ------------------ .../api/actions/rollup/get_rollup_caps.rb | 66 ------------------ .../actions/rollup/get_rollup_index_caps.rb | 64 ----------------- .../api/actions/rollup/put_job.rb | 66 ------------------ .../api/actions/rollup/rollup_search.rb | 68 ------------------- .../api/actions/rollup/start_job.rb | 64 ----------------- .../api/actions/rollup/stop_job.rb | 66 ------------------ .../lib/elasticsearch/api/namespace/rollup.rb | 36 ---------- .../rollup/get_rollup_index_caps_spec.rb | 35 ---------- 10 files changed, 595 deletions(-) delete mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/rollup/delete_job.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/rollup/get_jobs.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/rollup/get_rollup_caps.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/rollup/get_rollup_index_caps.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/rollup/put_job.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/rollup/rollup_search.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/rollup/start_job.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/rollup/stop_job.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/namespace/rollup.rb delete mode 100644 elasticsearch-api/spec/unit/actions/rollup/get_rollup_index_caps_spec.rb diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/rollup/delete_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/rollup/delete_job.rb deleted file mode 100644 index fe87cfa556..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/actions/rollup/delete_job.rb +++ /dev/null @@ -1,64 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec -# -module Elasticsearch - module API - module Rollup - module Actions - # Deletes an existing rollup job. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. - # - # @option arguments [String] :id The ID of the job to delete - # @option arguments [Hash] :headers Custom HTTP headers - # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-delete-job.html - # - def delete_job(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || 'rollup.delete_job' } - - defined_params = [:id].each_with_object({}) do |variable, set_variables| - set_variables[variable] = arguments[variable] if arguments.key?(variable) - end - request_opts[:defined_params] = defined_params unless defined_params.empty? - - raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] - - arguments = arguments.clone - headers = arguments.delete(:headers) || {} - - body = nil - - _id = arguments.delete(:id) - - method = Elasticsearch::API::HTTP_DELETE - path = "_rollup/job/#{Utils.__listify(_id)}" - params = {} - - Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers, request_opts) - ) - end - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/rollup/get_jobs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/rollup/get_jobs.rb deleted file mode 100644 index 4344386526..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/actions/rollup/get_jobs.rb +++ /dev/null @@ -1,66 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec -# -module Elasticsearch - module API - module Rollup - module Actions - # Retrieves the configuration, stats, and status of rollup jobs. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. - # - # @option arguments [String] :id The ID of the job(s) to fetch. Accepts glob patterns, or left blank for all jobs - # @option arguments [Hash] :headers Custom HTTP headers - # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-get-job.html - # - def get_jobs(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || 'rollup.get_jobs' } - - defined_params = [:id].each_with_object({}) do |variable, set_variables| - set_variables[variable] = arguments[variable] if arguments.key?(variable) - end - request_opts[:defined_params] = defined_params unless defined_params.empty? - - arguments = arguments.clone - headers = arguments.delete(:headers) || {} - - body = nil - - _id = arguments.delete(:id) - - method = Elasticsearch::API::HTTP_GET - path = if _id - "_rollup/job/#{Utils.__listify(_id)}" - else - '_rollup/job' - end - params = {} - - Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers, request_opts) - ) - end - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/rollup/get_rollup_caps.rb b/elasticsearch-api/lib/elasticsearch/api/actions/rollup/get_rollup_caps.rb deleted file mode 100644 index 93ac86cec1..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/actions/rollup/get_rollup_caps.rb +++ /dev/null @@ -1,66 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec -# -module Elasticsearch - module API - module Rollup - module Actions - # Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. - # - # @option arguments [String] :id The ID of the index to check rollup capabilities on, or left blank for all jobs - # @option arguments [Hash] :headers Custom HTTP headers - # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-get-rollup-caps.html - # - def get_rollup_caps(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || 'rollup.get_rollup_caps' } - - defined_params = [:id].each_with_object({}) do |variable, set_variables| - set_variables[variable] = arguments[variable] if arguments.key?(variable) - end - request_opts[:defined_params] = defined_params unless defined_params.empty? - - arguments = arguments.clone - headers = arguments.delete(:headers) || {} - - body = nil - - _id = arguments.delete(:id) - - method = Elasticsearch::API::HTTP_GET - path = if _id - "_rollup/data/#{Utils.__listify(_id)}" - else - '_rollup/data' - end - params = {} - - Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers, request_opts) - ) - end - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/rollup/get_rollup_index_caps.rb b/elasticsearch-api/lib/elasticsearch/api/actions/rollup/get_rollup_index_caps.rb deleted file mode 100644 index d530edc59f..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/actions/rollup/get_rollup_index_caps.rb +++ /dev/null @@ -1,64 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec -# -module Elasticsearch - module API - module Rollup - module Actions - # Returns the rollup capabilities of all jobs inside of a rollup index (e.g. the index where rollup data is stored). - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. - # - # @option arguments [String] :index The rollup index or index pattern to obtain rollup capabilities from. - # @option arguments [Hash] :headers Custom HTTP headers - # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-get-rollup-index-caps.html - # - def get_rollup_index_caps(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || 'rollup.get_rollup_index_caps' } - - defined_params = [:index].each_with_object({}) do |variable, set_variables| - set_variables[variable] = arguments[variable] if arguments.key?(variable) - end - request_opts[:defined_params] = defined_params unless defined_params.empty? - - raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] - - arguments = arguments.clone - headers = arguments.delete(:headers) || {} - - body = nil - - _index = arguments.delete(:index) - - method = Elasticsearch::API::HTTP_GET - path = "#{Utils.__listify(_index)}/_rollup/data" - params = {} - - Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers, request_opts) - ) - end - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/rollup/put_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/rollup/put_job.rb deleted file mode 100644 index 1286e65c2b..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/actions/rollup/put_job.rb +++ /dev/null @@ -1,66 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec -# -module Elasticsearch - module API - module Rollup - module Actions - # Creates a rollup job. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. - # - # @option arguments [String] :id The ID of the job to create - # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The job configuration (*Required*) - # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-put-job.html - # - def put_job(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || 'rollup.put_job' } - - defined_params = [:id].each_with_object({}) do |variable, set_variables| - set_variables[variable] = arguments[variable] if arguments.key?(variable) - end - request_opts[:defined_params] = defined_params unless defined_params.empty? - - raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] - raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] - - arguments = arguments.clone - headers = arguments.delete(:headers) || {} - - body = arguments.delete(:body) - - _id = arguments.delete(:id) - - method = Elasticsearch::API::HTTP_PUT - path = "_rollup/job/#{Utils.__listify(_id)}" - params = {} - - Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers, request_opts) - ) - end - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/rollup/rollup_search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/rollup/rollup_search.rb deleted file mode 100644 index 597524c347..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/actions/rollup/rollup_search.rb +++ /dev/null @@ -1,68 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec -# -module Elasticsearch - module API - module Rollup - module Actions - # Enables searching rolled-up data using the standard query DSL. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. - # - # @option arguments [List] :index The indices or index-pattern(s) (containing rollup or regular data) that should be searched - # @option arguments [Boolean] :typed_keys Specify whether aggregation and suggester names should be prefixed by their respective types in the response - # @option arguments [Boolean] :rest_total_hits_as_int Indicates whether hits.total should be rendered as an integer or an object in the rest search response - # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The search request body (*Required*) - # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-search.html - # - def rollup_search(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || 'rollup.rollup_search' } - - defined_params = [:index].each_with_object({}) do |variable, set_variables| - set_variables[variable] = arguments[variable] if arguments.key?(variable) - end - request_opts[:defined_params] = defined_params unless defined_params.empty? - - raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] - raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] - - arguments = arguments.clone - headers = arguments.delete(:headers) || {} - - body = arguments.delete(:body) - - _index = arguments.delete(:index) - - method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_rollup_search" - params = Utils.process_params(arguments) - - Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers, request_opts) - ) - end - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/rollup/start_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/rollup/start_job.rb deleted file mode 100644 index d1108d1ba3..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/actions/rollup/start_job.rb +++ /dev/null @@ -1,64 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec -# -module Elasticsearch - module API - module Rollup - module Actions - # Starts an existing, stopped rollup job. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. - # - # @option arguments [String] :id The ID of the job to start - # @option arguments [Hash] :headers Custom HTTP headers - # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-start-job.html - # - def start_job(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || 'rollup.start_job' } - - defined_params = [:id].each_with_object({}) do |variable, set_variables| - set_variables[variable] = arguments[variable] if arguments.key?(variable) - end - request_opts[:defined_params] = defined_params unless defined_params.empty? - - raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] - - arguments = arguments.clone - headers = arguments.delete(:headers) || {} - - body = nil - - _id = arguments.delete(:id) - - method = Elasticsearch::API::HTTP_POST - path = "_rollup/job/#{Utils.__listify(_id)}/_start" - params = {} - - Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers, request_opts) - ) - end - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/rollup/stop_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/rollup/stop_job.rb deleted file mode 100644 index f33070a4db..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/actions/rollup/stop_job.rb +++ /dev/null @@ -1,66 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec -# -module Elasticsearch - module API - module Rollup - module Actions - # Stops an existing, started rollup job. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. - # - # @option arguments [String] :id The ID of the job to stop - # @option arguments [Boolean] :wait_for_completion True if the API should block until the job has fully stopped, false if should be executed async. Defaults to false. - # @option arguments [Time] :timeout Block for (at maximum) the specified duration while waiting for the job to stop. Defaults to 30s. - # @option arguments [Hash] :headers Custom HTTP headers - # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-stop-job.html - # - def stop_job(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || 'rollup.stop_job' } - - defined_params = [:id].each_with_object({}) do |variable, set_variables| - set_variables[variable] = arguments[variable] if arguments.key?(variable) - end - request_opts[:defined_params] = defined_params unless defined_params.empty? - - raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] - - arguments = arguments.clone - headers = arguments.delete(:headers) || {} - - body = nil - - _id = arguments.delete(:id) - - method = Elasticsearch::API::HTTP_POST - path = "_rollup/job/#{Utils.__listify(_id)}/_stop" - params = Utils.process_params(arguments) - - Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers, request_opts) - ) - end - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/namespace/rollup.rb b/elasticsearch-api/lib/elasticsearch/api/namespace/rollup.rb deleted file mode 100644 index 1e0e4b1c8e..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/namespace/rollup.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -module Elasticsearch - module API - module Rollup - module Actions; end - - # Client for the "rollup" namespace (includes the {Rollup::Actions} methods) - # - class RollupClient - include Common::Client, Common::Client::Base, Rollup::Actions - end - - # Proxy method for {RollupClient}, available in the receiving object - # - def rollup - @rollup ||= RollupClient.new(self) - end - end - end -end diff --git a/elasticsearch-api/spec/unit/actions/rollup/get_rollup_index_caps_spec.rb b/elasticsearch-api/spec/unit/actions/rollup/get_rollup_index_caps_spec.rb deleted file mode 100644 index 240a98be4b..0000000000 --- a/elasticsearch-api/spec/unit/actions/rollup/get_rollup_index_caps_spec.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -require 'spec_helper' - -describe 'client#rollup.get_rollup_index_caps' do - let(:expected_args) do - [ - 'GET', - 'foo/_rollup/data', - {}, - nil, - {}, - { endpoint: 'rollup.get_rollup_index_caps', defined_params: { index: 'foo' } } - ] - end - - it 'performs the request' do - expect(client_double.rollup.get_rollup_index_caps(index: 'foo')).to be_a Elasticsearch::API::Response - end -end From 2f5589ce66b7ec9a9279fc7af4d9f6291a0006c2 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 31 Mar 2025 14:57:58 +0100 Subject: [PATCH 17/75] [API] Updates create endpoint for new behaviour. The API now makes a request, instead of calling index like in previous versions (< 9.0.0). * `body`, `index` and `id` are now required parameters. * `op_type` is now a String parameter: Set to 'create' to only index the document if it does not already exist (put if absent). If a document with the specified '_id' already exists, the indexing operation will fail. The behavior is the same as using the '/_create' endpoint. If a document ID is specified, this paramater defaults to 'index'. Otherwise, it defaults to `create`. If the request targets a data stream, an `op_type` of `create` is required. Additional new parameters: * :if_primary_term (Integer) - Only perform the operation if the document has this primary term. * :if_seq_no (Integer) - Only perform the operation if the document has this sequence number. --- .../lib/elasticsearch/api/actions/create.rb | 133 +++++++++++++++--- .../spec/unit/actions/create_document_spec.rb | 75 +++------- 2 files changed, 132 insertions(+), 76 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/create.rb index cc1cc723a6..8c103ac5aa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/create.rb @@ -15,44 +15,131 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Creates a new document in the index. + # Create a new document in the index. + # You can index a new JSON document with the +//_doc/+ or +//_create/<_id>+ APIs + # Using +_create+ guarantees that the document is indexed only if it does not already exist. + # It returns a 409 response when a document with a same ID already exists in the index. + # To update an existing document, you must use the +//_doc/+ API. + # If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + # * To add a document using the +PUT //_create/<_id>+ or +POST //_create/<_id>+ request formats, you must have the +create_doc+, +create+, +index+, or +write+ index privilege. + # * To automatically create a data stream or index with this API request, you must have the +auto_configure+, +create_index+, or +manage+ index privilege. + # Automatic data stream creation requires a matching index template with data stream enabled. + # **Automatically create data streams and indices** + # If the request's target doesn't exist and matches an index template with a +data_stream+ definition, the index operation automatically creates the data stream. + # If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + # NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + # If no mapping exists, the index operation creates a dynamic mapping. + # By default, new fields and objects are automatically added to the mapping if needed. + # Automatic index creation is controlled by the +action.auto_create_index+ setting. + # If it is +true+, any index can be created automatically. + # You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to +false+ to turn off automatic index creation entirely. + # Specify a comma-separated list of patterns you want to allow or prefix each pattern with +++ or +-+ to indicate whether it should be allowed or blocked. + # When a list is specified, the default behaviour is to disallow. + # NOTE: The +action.auto_create_index+ setting affects the automatic creation of indices only. + # It does not affect the creation of data streams. + # **Routing** + # By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + # For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the +routing+ parameter. + # When setting up explicit mapping, you can also use the +_routing+ field to direct the index operation to extract the routing value from the document itself. + # This does come at the (very minimal) cost of an additional document parsing pass. + # If the +_routing+ mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + # NOTE: Data streams do not support custom routing unless they were created with the +allow_custom_routing+ setting enabled in the template. + # **Distributed** + # The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + # After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + # **Active shards** + # To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + # If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + # By default, write operations only wait for the primary shards to be active before proceeding (that is to say +wait_for_active_shards+ is +1+). + # This default can be overridden in the index settings dynamically by setting +index.write.wait_for_active_shards+. + # To alter this behavior per operation, use the +wait_for_active_shards request+ parameter. + # Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is +number_of_replicas++1). + # Specifying a negative value or a number greater than the number of shard copies will throw an error. + # For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + # If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + # This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + # If +wait_for_active_shards+ is set on the request to +3+ (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + # This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + # However, if you set +wait_for_active_shards+ to +all+ (or to +4+, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + # The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + # It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + # After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + # The +_shards+ section of the API response reveals the number of shard copies on which replication succeeded and failed. # - # Returns a 409 response when a document with a same ID already exists in the index. - # - # @option arguments [String] :id Document ID - # @option arguments [String] :index The name of the index - # @option arguments [String] :wait_for_active_shards Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) - # @option arguments [String] :refresh If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. (options: true, false, wait_for) - # @option arguments [String] :routing Specific routing value - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Number] :version Explicit version number for concurrency control - # @option arguments [String] :version_type Specific version type (options: internal, external, external_gte) - # @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with - # @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Defaults to true. + # @option arguments [String] :id A unique identifier for the document. + # To automatically generate a document ID, use the +POST //_doc/+ request format. (*Required*) + # @option arguments [String] :index The name of the data stream or index to target. + # If the target doesn't exist and matches the name or wildcard (+*+) pattern of an index template with a +data_stream+ definition, this request creates the data stream. + # If the target doesn't exist and doesn’t match a data stream template, this request creates the index. (*Required*) + # @option arguments [Integer] :if_primary_term Only perform the operation if the document has this primary term. + # @option arguments [Integer] :if_seq_no Only perform the operation if the document has this sequence number. + # @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Server default: true. + # @option arguments [String] :op_type Set to +create+ to only index the document if it does not already exist (put if absent). + # If a document with the specified +_id+ already exists, the indexing operation will fail. + # The behavior is the same as using the +/_create+ endpoint. + # If a document ID is specified, this paramater defaults to +index+. + # Otherwise, it defaults to +create+. + # If the request targets a data stream, an +op_type+ of +create+ is required. + # @option arguments [String] :pipeline The ID of the pipeline to use to preprocess incoming documents. + # If the index has a default ingest pipeline specified, setting the value to +_none+ turns off the default ingest pipeline for this request. + # If a final pipeline is configured, it will always run regardless of the value of this parameter. + # @option arguments [String] :refresh If +true+, Elasticsearch refreshes the affected shards to make this operation visible to search. + # If +wait_for+, it waits for a refresh to make this operation visible to search. + # If +false+, it does nothing with refreshes. Server default: false. + # @option arguments [Boolean] :require_alias If +true+, the destination must be an index alias. + # @option arguments [Boolean] :require_data_stream If +true+, the request's actions must target a data stream (existing or to be created). + # @option arguments [String] :routing A custom value that is used to route operations to a specific shard. + # @option arguments [Time] :timeout The period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. + # Elasticsearch waits for at least the specified timeout period before failing. + # The actual wait time could be longer, particularly when multiple waits occur.This parameter is useful for situations where the primary shard assigned to perform the operation might not be available when the operation runs. + # Some reasons for this might be that the primary shard is currently recovering from a gateway or undergoing relocation. + # By default, the operation will wait on the primary shard to become available for at least 1 minute before failing and responding with an error. + # The actual wait time could be longer, particularly when multiple waits occur. Server default: 1m. + # @option arguments [Integer] :version The explicit version number for concurrency control. + # It must be a non-negative long number. + # @option arguments [String] :version_type The version type. + # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. + # You can set it to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). + # The default value of +1+ means it waits for each primary shard to be active. Server default: 1. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The document (*Required*) + # @option arguments [Hash] :body document # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create # def create(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'create' } - defined_params = %i[index id].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? - if arguments[:id] - index arguments.update op_type: 'create' - else - index arguments - end + raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] + raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] + raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _id = arguments.delete(:id) + + _index = arguments.delete(:index) + + method = Elasticsearch::API::HTTP_PUT + path = "#{Utils.listify(_index)}/_create/#{Utils.listify(_id)}" + params = Utils.process_params(arguments) + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) end end end diff --git a/elasticsearch-api/spec/unit/actions/create_document_spec.rb b/elasticsearch-api/spec/unit/actions/create_document_spec.rb index 7175e4f15b..f3c24c26e8 100644 --- a/elasticsearch-api/spec/unit/actions/create_document_spec.rb +++ b/elasticsearch-api/spec/unit/actions/create_document_spec.rb @@ -18,42 +18,40 @@ require 'spec_helper' describe 'client#create_document' do - let(:expected_args) do [ - 'PUT', - 'foo/_doc/123', - { op_type: 'create' }, - { foo: 'bar' }, - {}, - { defined_params: { id: '123', index: 'foo' }, endpoint: 'index' } + 'PUT', + 'foo/_create/123', + {}, + { foo: 'bar' }, + {}, + { defined_params: { id: '123', index: 'foo' }, endpoint: 'create' } ] end it 'performs the request' do - expect(client_double.create(index: 'foo', id: '123', body: { foo: 'bar'})).to be_a Elasticsearch::API::Response + expect(client_double.create(index: 'foo', id: '123', body: { foo: 'bar' })).to be_a Elasticsearch::API::Response end context 'when the request needs to be URL-escaped' do - let(:expected_args) do [ - 'PUT', - 'foo/_doc/123', - { op_type: 'create' }, - {}, - {} + 'PUT', + 'foo/_doc/123', + {}, + {}, + {} ] end let(:expected_args) do [ 'PUT', - 'foo/_doc/123', - { op_type: 'create' }, + 'foo/_create/123', + {}, {}, {}, - { defined_params: { id: '123', index: 'foo' }, endpoint: 'index' } + { defined_params: { id: '123', index: 'foo' }, endpoint: 'create' } ] end @@ -63,58 +61,29 @@ end context 'when an id is provided as an integer' do - - let(:expected_args) do - [ - 'PUT', - 'foo/_doc/1', - { op_type: 'create' }, - { foo: 'bar' }, - {} - ] - end - let(:expected_args) do [ 'PUT', 'foo/_doc/1', { op_type: 'create' }, { foo: 'bar' }, - {}, - { defined_params: { id: 1, index: 'foo' }, endpoint: 'index' } + {} ] end - it 'updates the arguments with the `op_type`' do - expect(client_double.create(index: 'foo', id: 1, body: { foo: 'bar' })).to be_a Elasticsearch::API::Response - end - end - - context 'when an id is not provided' do - let(:expected_args) do [ - 'POST', - 'foo/_doc', - { }, - { foo: 'bar' }, - {} - ] - end - - let(:expected_args) do - [ - 'POST', - 'foo/_doc', - { }, + 'PUT', + 'foo/_create/1', + {}, { foo: 'bar' }, {}, - { defined_params: { index: 'foo' }, endpoint: 'index' } + { defined_params: { id: 1, index: 'foo' }, endpoint: 'create' } ] end - it 'updates the arguments with the `op_type`' do - expect(client_double.create(index: 'foo', body: { foo: 'bar' })).to be_a Elasticsearch::API::Response + it 'performs the request' do + expect(client_double.create(index: 'foo', id: 1, body: { foo: 'bar' })).to be_a Elasticsearch::API::Response end end end From e62627c708e65836bd21662dfd6c84ee05def00a Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 2 Apr 2025 09:30:22 +0100 Subject: [PATCH 18/75] [API] Updates scroll and clear_scroll endpoints Since sending the `scroll_id` as a parameter was deprecated, now it needs to be sent in the body for `clear_scroll`, `scroll`. --- .../elasticsearch/api/actions/clear_scroll.rb | 24 +++++-------- .../lib/elasticsearch/api/actions/scroll.rb | 36 +++++++++---------- 2 files changed, 27 insertions(+), 33 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb b/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb index 793bff1eab..c2ce74702e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb @@ -21,27 +21,25 @@ module Elasticsearch module API module Actions - # Explicitly clears the search context for a scroll. + # Clear a scrolling search. + # Clear the search context and results for a scrolling search. # - # @option arguments [List] :scroll_id A comma-separated list of scroll IDs to clear *Deprecated* + # @option arguments [String, Array] :scroll_id A comma-separated list of scroll IDs to clear. + # To clear all scroll IDs, use +_all+. + # IMPORTANT: Scroll IDs can be long. It is recommended to specify scroll IDs in the request body parameter. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body A comma-separated list of scroll IDs to clear if none was specified via the scroll_id parameter + # @option arguments [Hash] :body request body # # *Deprecation notice*: # A scroll id can be quite large and should be specified as part of the body # Deprecated since version 7.0.0 # # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-clear-scroll # def clear_scroll(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'clear_scroll' } - defined_params = [:scroll_id].each_with_object({}) do |variable, set_variables| - set_variables[variable] = arguments[variable] if arguments.key?(variable) - end - request_opts[:defined_params] = defined_params unless defined_params.empty? - arguments = arguments.clone headers = arguments.delete(:headers) || {} @@ -50,15 +48,11 @@ def clear_scroll(arguments = {}) _scroll_id = arguments.delete(:scroll_id) method = Elasticsearch::API::HTTP_DELETE - path = if _scroll_id - "_search/scroll/#{Utils.__listify(_scroll_id)}" - else - '_search/scroll' - end + path = '_search/scroll' params = Utils.process_params(arguments) if Array(arguments[:ignore]).include?(404) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb b/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb index 2885c09a83..97dbda7298 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb @@ -15,35 +15,39 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Allows to retrieve a large numbers of results from a single search request. + # Run a scrolling search. + # IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the +search_after+ parameter with a point in time (PIT). + # The scroll API gets large sets of results from a single scrolling search request. + # To get the necessary scroll ID, submit a search API request that includes an argument for the +scroll+ query parameter. + # The +scroll+ parameter indicates how long Elasticsearch should retain the search context for the request. + # The search response returns a scroll ID in the +_scroll_id+ response body parameter. + # You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. + # If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. + # You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. + # IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. # - # @option arguments [String] :scroll_id The scroll ID *Deprecated* - # @option arguments [Time] :scroll Specify how long a consistent view of the index should be maintained for scrolled search - # @option arguments [Boolean] :rest_total_hits_as_int Indicates whether hits.total should be rendered as an integer or an object in the rest search response + # @option arguments [String] :scroll_id The scroll ID + # @option arguments [Time] :scroll The period to retain the search context for scrolling. Server default: 1d. + # @option arguments [Boolean] :rest_total_hits_as_int If true, the API response’s hit.total property is returned as an integer. If false, the API response’s hit.total property is returned as an object. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The scroll ID if not passed by URL or query parameter. + # @option arguments [Hash] :body request body # # *Deprecation notice*: # A scroll id can be quite large and should be specified as part of the body # Deprecated since version 7.0.0 # # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html#request-body-search-scroll + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-scroll # def scroll(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'scroll' } - defined_params = [:scroll_id].each_with_object({}) do |variable, set_variables| - set_variables[variable] = arguments[variable] if arguments.key?(variable) - end - request_opts[:defined_params] = defined_params unless defined_params.empty? - arguments = arguments.clone headers = arguments.delete(:headers) || {} @@ -57,11 +61,7 @@ def scroll(arguments = {}) Elasticsearch::API::HTTP_GET end - path = if _scroll_id - "_search/scroll/#{Utils.__listify(_scroll_id)}" - else - '_search/scroll' - end + path = '_search/scroll' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( From 38ebdbbd4680a97fc0d314c9142e768a04fc2a7f Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 2 Apr 2025 16:37:16 +0100 Subject: [PATCH 19/75] [API] Updates generated code for Connectors API Removes connector.last_sync endpoint The following endpoints have been promoted from Experimental to Beta: connector.delete, connector.get, connector.list, connector.post, connector.put, connector.sync_job_cancel, connector.sync_job_delete, connector.sync_job_get, connector.sync_job_list, connector.sync_job_post, connector.update_api_key_id, connector.update_configuration, connector.update_filtering, connector.update_index_name, connector.update_name, connector.update_native, connector.update_pipelien, connector.update_scheduling, connector.update_service_type --- .../api/actions/connector/check_in.rb | 13 ++-- .../api/actions/connector/delete.rb | 28 ++++---- .../api/actions/connector/get.rb | 23 +++---- .../api/actions/connector/last_sync.rb | 66 ------------------- .../api/actions/connector/list.rb | 31 ++++----- .../api/actions/connector/post.rb | 23 ++++--- .../api/actions/connector/put.rb | 22 +++---- .../api/actions/connector/sync_job_cancel.rb | 22 ++++--- .../actions/connector/sync_job_check_in.rb | 15 +++-- .../api/actions/connector/sync_job_claim.rb | 20 ++++-- .../api/actions/connector/sync_job_delete.rb | 22 ++++--- .../api/actions/connector/sync_job_error.rb | 17 +++-- .../api/actions/connector/sync_job_get.rb | 20 +++--- .../api/actions/connector/sync_job_list.rb | 27 ++++---- .../api/actions/connector/sync_job_post.rb | 21 +++--- .../connector/sync_job_update_stats.rb | 19 ++++-- .../connector/update_active_filtering.rb | 13 ++-- .../actions/connector/update_api_key_id.rb | 26 ++++---- .../actions/connector/update_configuration.rb | 23 +++---- .../api/actions/connector/update_error.rb | 17 +++-- .../api/actions/connector/update_features.rb | 24 +++++-- .../api/actions/connector/update_filtering.rb | 25 +++---- .../connector/update_filtering_validation.rb | 15 +++-- .../actions/connector/update_index_name.rb | 23 +++---- .../api/actions/connector/update_name.rb | 22 +++---- .../api/actions/connector/update_native.rb | 22 +++---- .../api/actions/connector/update_pipeline.rb | 23 +++---- .../actions/connector/update_scheduling.rb | 22 +++---- .../actions/connector/update_service_type.rb | 22 +++---- .../api/actions/connector/update_status.rb | 14 ++-- .../unit/actions/connector/last_sync_spec.rb | 38 ----------- 31 files changed, 336 insertions(+), 382 deletions(-) delete mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/connector/last_sync.rb delete mode 100644 elasticsearch-api/spec/unit/actions/connector/last_sync_spec.rb diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb index e2c46f6ffd..1cdba2af8b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb @@ -15,23 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Updates the last_seen timestamp in the connector document. + # Check in a connector. + # Update the +last_seen+ field in the connector and set it to the current timestamp. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be updated. + # @option arguments [String] :connector_id The unique identifier of the connector to be checked in (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/check-in-connector-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-check-in # def check_in(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.check_in' } @@ -51,7 +52,7 @@ def check_in(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/#{Utils.__listify(_connector_id)}/_check_in" + path = "_connector/#{Utils.listify(_connector_id)}/_check_in" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb index a10c9e3058..5d1de3e2b6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb @@ -15,25 +15,29 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Deletes a connector. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Delete a connector. + # Removes a connector and associated sync jobs. + # This is a destructive action that is not recoverable. + # NOTE: This action doesn’t delete any API keys, ingest pipelines, or data indices associated with the connector. + # These need to be removed manually. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be deleted. - # @option arguments [Boolean] :hard If true, the connector doc is deleted. If false, connector doc is marked as deleted (soft-deleted). - # @option arguments [Boolean] :delete_sync_jobs Determines whether associated sync jobs are also deleted. + # @option arguments [String] :connector_id The unique identifier of the connector to be deleted (*Required*) + # @option arguments [Boolean] :delete_sync_jobs A flag indicating if associated sync jobs should be also removed. Defaults to false. + # @option arguments [Boolean] :hard A flag indicating if the connector should be hard deleted. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-connector-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-delete # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.delete' } @@ -53,7 +57,7 @@ def delete(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_DELETE - path = "_connector/#{Utils.__listify(_connector_id)}" + path = "_connector/#{Utils.listify(_connector_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb index 23b7109386..205965deca 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb @@ -15,24 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Returns the details about a connector. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Get a connector. + # Get the details about a connector. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be returned. - # @option arguments [Boolean] :include_deleted A flag indicating whether to return connectors that have been soft-deleted. + # @option arguments [String] :connector_id The unique identifier of the connector (*Required*) + # @option arguments [Boolean] :include_deleted A flag to indicate if the desired connector should be fetched, even if it was soft-deleted. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-connector-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-get # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.get' } @@ -52,7 +53,7 @@ def get(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_GET - path = "_connector/#{Utils.__listify(_connector_id)}" + path = "_connector/#{Utils.listify(_connector_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/last_sync.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/last_sync.rb deleted file mode 100644 index 1a342f408f..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/last_sync.rb +++ /dev/null @@ -1,66 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec -# -module Elasticsearch - module API - module Connector - module Actions - # Updates the stats of last sync in the connector document. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. - # - # @option arguments [String] :connector_id The unique identifier of the connector to be updated. - # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Object with stats related to the last connector sync run. (*Required*) - # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-last-sync-api.html - # - def last_sync(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || 'connector.last_sync' } - - defined_params = [:connector_id].each_with_object({}) do |variable, set_variables| - set_variables[variable] = arguments[variable] if arguments.key?(variable) - end - request_opts[:defined_params] = defined_params unless defined_params.empty? - - raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] - raise ArgumentError, "Required argument 'connector_id' missing" unless arguments[:connector_id] - - arguments = arguments.clone - headers = arguments.delete(:headers) || {} - - body = arguments.delete(:body) - - _connector_id = arguments.delete(:connector_id) - - method = Elasticsearch::API::HTTP_PUT - path = "_connector/#{Utils.__listify(_connector_id)}/_last_sync" - params = {} - - Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers, request_opts) - ) - end - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb index e79a2ca64e..70fed38a60 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb @@ -15,29 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Lists all connectors. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Get all connectors. + # Get information about all connectors. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # # @option arguments [Integer] :from Starting offset (default: 0) - # @option arguments [Integer] :size Specifies a max number of results to get (default: 100) - # @option arguments [List] :index_name A comma-separated list of connector index names to fetch connector documents for - # @option arguments [List] :connector_name A comma-separated list of connector names to fetch connector documents for - # @option arguments [List] :service_type A comma-separated list of connector service types to fetch connector documents for - # @option arguments [String] :query A search string for querying connectors, filtering results by matching against connector names, descriptions, and index names - # @option arguments [Boolean] :include_deleted A flag indicating whether to return connectors that have been soft-deleted. + # @option arguments [Integer] :size Specifies a max number of results to get + # @option arguments [String, Array] :index_name A comma-separated list of connector index names to fetch connector documents for + # @option arguments [String, Array] :connector_name A comma-separated list of connector names to fetch connector documents for + # @option arguments [String, Array] :service_type A comma-separated list of connector service types to fetch connector documents for + # @option arguments [Boolean] :include_deleted A flag to indicate if the desired connector should be fetched, even if it was soft-deleted. + # @option arguments [String] :query A wildcard query string that filters connectors with matching name, description or index name # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/list-connector-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-list # def list(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.list' } @@ -45,7 +46,7 @@ def list(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_connector' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb index 6e2c055541..b31f131cff 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb @@ -15,23 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Creates a connector. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Create a connector. + # Connectors are Elasticsearch integrations that bring content from third-party data sources, which can be deployed on Elastic Cloud or hosted on your own infrastructure. + # Elastic managed connectors (Native connectors) are a managed service on Elastic Cloud. + # Self-managed connectors (Connector clients) are self-managed on your infrastructure. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The connector configuration. + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/create-connector-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-put # def post(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.post' } @@ -39,7 +42,7 @@ def post(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_connector' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb index 038f37ab3c..c508df35c3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb @@ -15,24 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Creates or updates a connector. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Create or update a connector. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be created or updated. + # @option arguments [String] :connector_id The unique identifier of the connector to be created or updated. ID is auto-generated if not provided. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The connector configuration. + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/create-connector-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-put # def put(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.put' } @@ -51,7 +51,7 @@ def put(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = if _connector_id - "_connector/#{Utils.__listify(_connector_id)}" + "_connector/#{Utils.listify(_connector_id)}" else '_connector' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb index 3a6bcebf48..5eacf02b13 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb @@ -15,23 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Cancels a connector sync job. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Cancel a connector sync job. + # Cancel a connector sync job, which sets the status to cancelling and updates +cancellation_requested_at+ to the current time. + # The connector service is then responsible for setting the status of connector sync jobs to cancelled. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job to be canceled + # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cancel-connector-sync-job-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-cancel # def sync_job_cancel(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_cancel' } @@ -54,7 +56,7 @@ def sync_job_cancel(arguments = {}) _connector_sync_job_id = arguments.delete(:connector_sync_job_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/_sync_job/#{Utils.__listify(_connector_sync_job_id)}/_cancel" + path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}/_cancel" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb index 90e935c527..f6bb93e7f7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb @@ -15,23 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Checks in a connector sync job (refreshes 'last_seen'). + # Check in a connector sync job. + # Check in a connector sync job and set the +last_seen+ field to the current time before updating it in the internal index. + # To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. + # This service runs automatically on Elastic Cloud for Elastic managed connectors. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job to be checked in + # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job to be checked in. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/check-in-connector-sync-job-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-check-in # def sync_job_check_in(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_check_in' } @@ -54,7 +57,7 @@ def sync_job_check_in(arguments = {}) _connector_sync_job_id = arguments.delete(:connector_sync_job_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/_sync_job/#{Utils.__listify(_connector_sync_job_id)}/_check_in" + path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}/_check_in" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb index f524141fc3..09c02dd6f4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb @@ -15,24 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Claims a connector sync job. + # Claim a connector sync job. + # This action updates the job status to +in_progress+ and sets the +last_seen+ and +started_at+ timestamps to the current time. + # Additionally, it can set the +sync_cursor+ property for the sync job. + # This API is not intended for direct connector management by users. + # It supports the implementation of services that utilize the connector protocol to communicate with Elasticsearch. + # To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. + # This service runs automatically on Elastic Cloud for Elastic managed connectors. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job to be claimed. + # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Data to claim a sync job. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/claim-connector-sync-job-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-claim # def sync_job_claim(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_claim' } @@ -57,7 +63,7 @@ def sync_job_claim(arguments = {}) _connector_sync_job_id = arguments.delete(:connector_sync_job_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/_sync_job/#{Utils.__listify(_connector_sync_job_id)}/_claim" + path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}/_claim" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb index 3a7ed141ca..fa01552611 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb @@ -15,23 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Deletes a connector sync job. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Delete a connector sync job. + # Remove a connector sync job and its associated data. + # This is a destructive action that is not recoverable. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job to be deleted. + # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job to be deleted (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-connector-sync-job-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-delete # def sync_job_delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_delete' } @@ -54,7 +56,7 @@ def sync_job_delete(arguments = {}) _connector_sync_job_id = arguments.delete(:connector_sync_job_id) method = Elasticsearch::API::HTTP_DELETE - path = "_connector/_sync_job/#{Utils.__listify(_connector_sync_job_id)}" + path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb index 73ed91cbd3..7b75dec75e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb @@ -15,24 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Sets an error for a connector sync job. + # Set a connector sync job error. + # Set the +error+ field for a connector sync job and set its +status+ to +error+. + # To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. + # This service runs automatically on Elastic Cloud for Elastic managed connectors. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job to set an error for. + # @option arguments [String] :connector_sync_job_id The unique identifier for the connector sync job. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The error to set in the connector sync job. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/set-connector-sync-job-error-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-error # def sync_job_error(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_error' } @@ -57,7 +60,7 @@ def sync_job_error(arguments = {}) _connector_sync_job_id = arguments.delete(:connector_sync_job_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/_sync_job/#{Utils.__listify(_connector_sync_job_id)}/_error" + path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}/_error" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb index 22e7554776..24c2ce5944 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb @@ -15,23 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Returns the details about a connector sync job. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Get a connector sync job. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job to be returned. + # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-connector-sync-job-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-get # def sync_job_get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_get' } @@ -54,7 +54,7 @@ def sync_job_get(arguments = {}) _connector_sync_job_id = arguments.delete(:connector_sync_job_id) method = Elasticsearch::API::HTTP_GET - path = "_connector/_sync_job/#{Utils.__listify(_connector_sync_job_id)}" + path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb index 222314a516..a1ac5317b6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb @@ -15,27 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Lists all connector sync jobs. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Get all connector sync jobs. + # Get information about all stored connector sync jobs listed by their creation date in ascending order. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # # @option arguments [Integer] :from Starting offset (default: 0) - # @option arguments [Integer] :size specifies a max number of results to get (default: 100) - # @option arguments [String] :status Sync job status, which sync jobs are fetched for - # @option arguments [String] :connector_id Id of the connector to fetch the sync jobs for - # @option arguments [List] :job_type A comma-separated list of job types + # @option arguments [Integer] :size Specifies a max number of results to get + # @option arguments [String] :status A sync job status to fetch connector sync jobs for + # @option arguments [String] :connector_id A connector id to fetch connector sync jobs for + # @option arguments [Syncjobtype] :job_type A comma-separated list of job types to fetch the sync jobs for # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/list-connector-sync-jobs-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-list # def sync_job_list(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_list' } @@ -43,7 +44,7 @@ def sync_job_list(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_connector/_sync_job' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb index a455a80281..d359bb289c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb @@ -15,23 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Creates a connector sync job. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Create a connector sync job. + # Create a connector sync job document in the internal index and initialize its counters and timestamps with default values. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The connector sync job data. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/create-connector-sync-job-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-post # def sync_job_post(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_post' } @@ -41,7 +42,7 @@ def sync_job_post(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_connector/_sync_job' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb index 772a28cf31..6f064a6190 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb @@ -15,24 +15,29 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Updates the stats fields in the connector sync job document. + # Set the connector sync job stats. + # Stats include: +deleted_document_count+, +indexed_document_count+, +indexed_document_volume+, and +total_document_count+. + # You can also update +last_seen+. + # This API is mainly used by the connector service for updating sync job information. + # To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. + # This service runs automatically on Elastic Cloud for Elastic managed connectors. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job to be updated. + # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The stats to update for the connector sync job. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/set-connector-sync-job-stats-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-update-stats # def sync_job_update_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_update_stats' } @@ -57,7 +62,7 @@ def sync_job_update_stats(arguments = {}) _connector_sync_job_id = arguments.delete(:connector_sync_job_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/_sync_job/#{Utils.__listify(_connector_sync_job_id)}/_stats" + path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}/_stats" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb index 975c7aa3d7..2e8adca464 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb @@ -15,23 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Activates the draft filtering rules if they are in a validated state. + # Activate the connector draft filter. + # Activates the valid draft filtering for a connector. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be updated. + # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-filtering-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-filtering # def update_active_filtering(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_active_filtering' } @@ -51,7 +52,7 @@ def update_active_filtering(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/#{Utils.__listify(_connector_id)}/_filtering/_activate" + path = "_connector/#{Utils.listify(_connector_id)}/_filtering/_activate" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb index a44130824e..d505ceeaea 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb @@ -15,24 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Updates the API key id and/or API key secret id fields in the connector document. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Update the connector API key ID. + # Update the +api_key_id+ and +api_key_secret_id+ fields of a connector. + # You can specify the ID of the API key used for authorization and the ID of the connector secret where the API key is stored. + # The connector secret ID is required only for Elastic managed (native) connectors. + # Self-managed connectors (connector clients) do not use this field. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be updated. + # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body An object containing the connector's API key id and/or Connector Secret document id for that API key. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-api-key-id-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-api-key-id # def update_api_key_id(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_api_key_id' } @@ -53,7 +57,7 @@ def update_api_key_id(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/#{Utils.__listify(_connector_id)}/_api_key_id" + path = "_connector/#{Utils.listify(_connector_id)}/_api_key_id" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb index fc51bd4315..f5778ea33e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb @@ -15,24 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Updates the connector configuration. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Update the connector configuration. + # Update the configuration field in the connector document. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be updated. + # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Mapping between field names to configuration. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-configuration-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-configuration # def update_configuration(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_configuration' } @@ -53,7 +54,7 @@ def update_configuration(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/#{Utils.__listify(_connector_id)}/_configuration" + path = "_connector/#{Utils.listify(_connector_id)}/_configuration" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb index eec511fc21..eaa7b3ca66 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb @@ -15,24 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Updates the error field in the connector document. + # Update the connector error field. + # Set the error field for the connector. + # If the error provided in the request body is non-null, the connector’s status is updated to error. + # Otherwise, if the error is reset to null, the connector status is updated to connected. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be updated. + # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body An object containing the connector's error. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-error-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-error # def update_error(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_error' } @@ -53,7 +56,7 @@ def update_error(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/#{Utils.__listify(_connector_id)}/_error" + path = "_connector/#{Utils.listify(_connector_id)}/_error" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb index 531a7c2ad1..70636dc3a1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb @@ -15,24 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Updates the connector features in the connector document. + # Update the connector features. + # Update the connector features in the connector document. + # This API can be used to control the following aspects of a connector: + # * document-level security + # * incremental syncs + # * advanced sync rules + # * basic sync rules + # Normally, the running connector service automatically manages these features. + # However, you can use this API to override the default behavior. + # To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. + # This service runs automatically on Elastic Cloud for Elastic managed connectors. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be updated. + # @option arguments [String] :connector_id The unique identifier of the connector to be updated. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body An object containing the connector's features definition. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-features-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-features # def update_features(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_features' } @@ -53,7 +63,7 @@ def update_features(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/#{Utils.__listify(_connector_id)}/_features" + path = "_connector/#{Utils.listify(_connector_id)}/_features" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb index 314a30e6d7..2222a2c8c9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb @@ -15,24 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Updates the filtering field in the connector document. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Update the connector filtering. + # Update the draft filtering configuration of a connector and marks the draft validation state as edited. + # The filtering draft is activated once validated by the running Elastic connector service. + # The filtering property is used to configure sync rules (both basic and advanced) for a connector. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be updated. + # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body A list of connector filtering configurations. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-filtering-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-filtering # def update_filtering(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_filtering' } @@ -53,7 +56,7 @@ def update_filtering(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/#{Utils.__listify(_connector_id)}/_filtering" + path = "_connector/#{Utils.listify(_connector_id)}/_filtering" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb index b42a75b4db..c8f36263c6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb @@ -15,24 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Updates the validation info of the draft filtering rules. + # Update the connector draft filtering validation. + # Update the draft filtering validation info for a connector. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be updated. + # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Validation info for the draft filtering rules (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-filtering-api.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-filtering-validation-api.html # def update_filtering_validation(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_filtering_validation' } @@ -53,7 +54,7 @@ def update_filtering_validation(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/#{Utils.__listify(_connector_id)}/_filtering/_validation" + path = "_connector/#{Utils.listify(_connector_id)}/_filtering/_validation" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb index ce76d01503..782797e3c2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb @@ -15,24 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Updates the index name of the connector. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Update the connector index name. + # Update the +index_name+ field of a connector, specifying the index where the data ingested by the connector is stored. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be updated. + # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body An object containing the connector's index name. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-index-name-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-index-name # def update_index_name(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_index_name' } @@ -53,7 +54,7 @@ def update_index_name(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/#{Utils.__listify(_connector_id)}/_index_name" + path = "_connector/#{Utils.listify(_connector_id)}/_index_name" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb index ecdac5b2a7..b0b07dde11 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb @@ -15,24 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Updates the name and/or description fields in the connector document. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Update the connector name and description. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be updated. + # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body An object containing the connector's name and/or description. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-name-description-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-name # def update_name(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_name' } @@ -53,7 +53,7 @@ def update_name(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/#{Utils.__listify(_connector_id)}/_name" + path = "_connector/#{Utils.listify(_connector_id)}/_name" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb index 81779e6e38..12a14155d6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb @@ -15,24 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Updates the is_native flag of the connector. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Update the connector is_native flag. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be updated. + # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body An object containing the connector's is_native flag (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/connector-apis.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-native-api.html # def update_native(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_native' } @@ -53,7 +53,7 @@ def update_native(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/#{Utils.__listify(_connector_id)}/_native" + path = "_connector/#{Utils.listify(_connector_id)}/_native" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb index e5f7f6ee23..637efa0874 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb @@ -15,24 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Updates the pipeline field in the connector document. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Update the connector pipeline. + # When you create a new connector, the configuration of an ingest pipeline is populated with default settings. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be updated. + # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body An object with connector ingest pipeline configuration. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-pipeline-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-pipeline # def update_pipeline(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_pipeline' } @@ -53,7 +54,7 @@ def update_pipeline(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/#{Utils.__listify(_connector_id)}/_pipeline" + path = "_connector/#{Utils.listify(_connector_id)}/_pipeline" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb index 2c87061c26..b8cf8f832e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb @@ -15,24 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Updates the scheduling field in the connector document. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Update the connector scheduling. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be updated. + # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body An object containing the connector's scheduling configuration. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-scheduling-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-scheduling # def update_scheduling(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_scheduling' } @@ -53,7 +53,7 @@ def update_scheduling(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/#{Utils.__listify(_connector_id)}/_scheduling" + path = "_connector/#{Utils.listify(_connector_id)}/_scheduling" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb index 757b43c8ec..62cc74d24d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb @@ -15,24 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Updates the service type of the connector. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Update the connector service type. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be updated. + # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body An object containing the connector's service type. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-service-type-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-service-type # def update_service_type(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_service_type' } @@ -53,7 +53,7 @@ def update_service_type(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/#{Utils.__listify(_connector_id)}/_service_type" + path = "_connector/#{Utils.listify(_connector_id)}/_service_type" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb index 8b1ef81f37..cc2642599b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb @@ -15,24 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Connector module Actions - # Updates the status of the connector. + # Update the connector status. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :connector_id The unique identifier of the connector to be updated. + # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body An object containing the connector's status. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-status-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-status # def update_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_status' } @@ -53,7 +53,7 @@ def update_status(arguments = {}) _connector_id = arguments.delete(:connector_id) method = Elasticsearch::API::HTTP_PUT - path = "_connector/#{Utils.__listify(_connector_id)}/_status" + path = "_connector/#{Utils.listify(_connector_id)}/_status" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/spec/unit/actions/connector/last_sync_spec.rb b/elasticsearch-api/spec/unit/actions/connector/last_sync_spec.rb deleted file mode 100644 index 68cb2b635e..0000000000 --- a/elasticsearch-api/spec/unit/actions/connector/last_sync_spec.rb +++ /dev/null @@ -1,38 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -require 'spec_helper' - -describe 'client.connector#last_sync' do - let(:expected_args) do - [ - 'PUT', - '_connector/foo/_last_sync', - {}, - {}, - {}, - { - :defined_params=>{ connector_id: 'foo' }, - endpoint: 'connector.last_sync' - } - ] - end - - it 'performs the request' do - expect(client_double.connector.last_sync(connector_id: 'foo', body: {})).to be_a Elasticsearch::API::Response - end -end From 8c1ce1b99d0492735cb4a7725689c27f25a24565 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 1 Apr 2025 09:25:24 +0100 Subject: [PATCH 20/75] [API] Updates inference endpoints --- ...nference.rb => chat_completion_unified.rb} | 31 +++---- .../inference/{inference.rb => completion.rb} | 30 +++---- .../api/actions/inference/delete.rb | 22 ++--- .../api/actions/inference/get.rb | 18 ++-- .../inference/post_eis_chat_completion.rb | 63 ++++++++++++++ .../api/actions/inference/put.rb | 31 ++++--- .../api/actions/inference/put_alibabacloud.rb | 75 ++++++++++++++++ .../actions/inference/put_amazonbedrock.rb | 70 +++++++++++++++ .../api/actions/inference/put_anthropic.rb | 76 ++++++++++++++++ .../actions/inference/put_azureaistudio.rb | 75 ++++++++++++++++ .../api/actions/inference/put_azureopenai.rb | 80 +++++++++++++++++ .../api/actions/inference/put_cohere.rb | 75 ++++++++++++++++ .../api/actions/inference/put_eis.rb | 67 +++++++++++++++ .../actions/inference/put_elasticsearch.rb | 71 +++++++++++++++ .../api/actions/inference/put_elser.rb | 67 +++++++++++++++ .../actions/inference/put_googleaistudio.rb | 75 ++++++++++++++++ .../actions/inference/put_googlevertexai.rb | 75 ++++++++++++++++ .../api/actions/inference/put_hugging_face.rb | 86 +++++++++++++++++++ .../api/actions/inference/put_jinaai.rb | 77 +++++++++++++++++ .../api/actions/inference/put_mistral.rb | 76 ++++++++++++++++ .../api/actions/inference/put_openai.rb | 76 ++++++++++++++++ .../api/actions/inference/put_voyageai.rb | 71 +++++++++++++++ .../api/actions/inference/put_watsonx.rb | 78 +++++++++++++++++ .../api/actions/inference/rerank.rb | 62 +++++++++++++ ...ified_inference.rb => sparse_embedding.rb} | 30 +++---- .../actions/inference/stream_completion.rb | 65 ++++++++++++++ .../api/actions/inference/text_embedding.rb | 62 +++++++++++++ .../api/actions/inference/update.rb | 25 +++--- .../inference/chat_completion_unified_spec.rb | 36 ++++++++ .../unit/actions/inference/completion_spec.rb | 36 ++++++++ .../post_eis_chat_completion_spec.rb | 36 ++++++++ .../inference/put_alibabacloud_spec.rb | 36 ++++++++ .../inference/put_amazonbedrock_spec.rb | 36 ++++++++ .../actions/inference/put_anthropic_spec.rb | 36 ++++++++ .../inference/put_azureaistudio_spec.rb | 36 ++++++++ .../actions/inference/put_azureopenai_spec.rb | 36 ++++++++ .../unit/actions/inference/put_cohere_spec.rb | 36 ++++++++ .../unit/actions/inference/put_eis_spec.rb | 36 ++++++++ .../inference/put_elasticsearch_spec.rb | 36 ++++++++ .../unit/actions/inference/put_elser_spec.rb | 36 ++++++++ .../inference/put_googleaistudio_spec.rb | 36 ++++++++ .../inference/put_googlevertexai_spec.rb | 36 ++++++++ .../inference/put_hugging_face_spec.rb | 36 ++++++++ .../unit/actions/inference/put_jinaai_spec.rb | 36 ++++++++ .../actions/inference/put_mistral_spec.rb | 36 ++++++++ .../unit/actions/inference/put_openai_spec.rb | 36 ++++++++ .../actions/inference/put_voyageai_spec.rb | 36 ++++++++ .../actions/inference/put_watsonx_spec.rb | 36 ++++++++ .../unit/actions/inference/rerank_spec.rb | 35 ++++++++ .../inference/sparse_embedding_spec.rb | 35 ++++++++ .../inference/stream_completion_spec.rb | 35 ++++++++ .../actions/inference/text_embedding_spec.rb | 35 ++++++++ 52 files changed, 2474 insertions(+), 95 deletions(-) rename elasticsearch-api/lib/elasticsearch/api/actions/inference/{stream_inference.rb => chat_completion_unified.rb} (65%) rename elasticsearch-api/lib/elasticsearch/api/actions/inference/{inference.rb => completion.rb} (66%) create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/post_eis_chat_completion.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_eis.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb rename elasticsearch-api/lib/elasticsearch/api/actions/inference/{unified_inference.rb => sparse_embedding.rb} (64%) create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/chat_completion_unified_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/completion_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/post_eis_chat_completion_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_alibabacloud_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_amazonbedrock_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_anthropic_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_azureaistudio_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_azureopenai_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_cohere_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_eis_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_elasticsearch_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_elser_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_googleaistudio_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_googlevertexai_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_hugging_face_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_jinaai_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_mistral_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_openai_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_voyageai_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_watsonx_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/rerank_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/sparse_embedding_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/stream_completion_spec.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/text_embedding_spec.rb diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_inference.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb similarity index 65% rename from elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_inference.rb rename to elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb index 539b4922a1..908bdaeeed 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_inference.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb @@ -15,30 +15,31 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Inference module Actions - # Perform streaming inference + # Perform chat completion inference # - # @option arguments [String] :inference_id The inference Id - # @option arguments [String] :task_type The task type + # @option arguments [String] :inference_id The inference Id (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference request to complete. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The inference payload + # @option arguments [Hash] :body chat_completion_request # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/post-stream-inference-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-unified-inference # - def stream_inference(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || 'inference.stream_inference' } + def chat_completion_unified(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.chat_completion_unified' } - defined_params = %i[inference_id task_type].each_with_object({}) do |variable, set_variables| + defined_params = [:inference_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? + raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] raise ArgumentError, "Required argument 'inference_id' missing" unless arguments[:inference_id] arguments = arguments.clone @@ -48,15 +49,9 @@ def stream_inference(arguments = {}) _inference_id = arguments.delete(:inference_id) - _task_type = arguments.delete(:task_type) - method = Elasticsearch::API::HTTP_POST - path = if _task_type && _inference_id - "_inference/#{Utils.__listify(_task_type)}/#{Utils.__listify(_inference_id)}/_stream" - else - "_inference/#{Utils.__listify(_inference_id)}/_stream" - end - params = {} + path = "_inference/chat_completion/#{Utils.listify(_inference_id)}/_stream" + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb similarity index 66% rename from elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb rename to elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb index 1e7fd39d7c..4bd419772c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb @@ -15,26 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Inference module Actions - # Perform inference + # Perform completion inference on the service # - # @option arguments [String] :inference_id The inference Id - # @option arguments [String] :task_type The task type + # @option arguments [String] :inference_id The inference Id (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference request to complete. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The inference payload + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/post-inference-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference # - def inference(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || 'inference.inference' } + def completion(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.completion' } - defined_params = %i[inference_id task_type].each_with_object({}) do |variable, set_variables| + defined_params = [:inference_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -48,15 +48,9 @@ def inference(arguments = {}) _inference_id = arguments.delete(:inference_id) - _task_type = arguments.delete(:task_type) - method = Elasticsearch::API::HTTP_POST - path = if _task_type && _inference_id - "_inference/#{Utils.__listify(_task_type)}/#{Utils.__listify(_inference_id)}" - else - "_inference/#{Utils.__listify(_inference_id)}" - end - params = {} + path = "_inference/completion/#{Utils.listify(_inference_id)}" + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb index 02d5f328cd..eaf2fb74ca 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb @@ -15,8 +15,8 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API @@ -24,18 +24,18 @@ module Inference module Actions # Delete an inference endpoint # - # @option arguments [String] :inference_id The inference Id # @option arguments [String] :task_type The task type - # @option arguments [Boolean] :dry_run If true the endpoint will not be deleted and a list of ingest processors which reference this endpoint will be returned. - # @option arguments [Boolean] :force If true the endpoint will be forcefully stopped (regardless of whether or not it is referenced by any ingest processors or semantic text fields). + # @option arguments [String] :inference_id The inference identifier. (*Required*) + # @option arguments [Boolean] :dry_run When true, the endpoint is not deleted and a list of ingest processors which reference this endpoint is returned. + # @option arguments [Boolean] :force When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-delete # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.delete' } - defined_params = %i[inference_id task_type].each_with_object({}) do |variable, set_variables| + defined_params = [:inference_id, :task_type].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -47,15 +47,15 @@ def delete(arguments = {}) body = nil - _inference_id = arguments.delete(:inference_id) - _task_type = arguments.delete(:task_type) + _inference_id = arguments.delete(:inference_id) + method = Elasticsearch::API::HTTP_DELETE path = if _task_type && _inference_id - "_inference/#{Utils.__listify(_task_type)}/#{Utils.__listify(_inference_id)}" + "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_inference_id)}" else - "_inference/#{Utils.__listify(_inference_id)}" + "_inference/#{Utils.listify(_inference_id)}" end params = Utils.process_params(arguments) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb index a3fec86adb..4aa9190bd3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb @@ -15,8 +15,8 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API @@ -24,16 +24,16 @@ module Inference module Actions # Get an inference endpoint # - # @option arguments [String] :inference_id The inference Id # @option arguments [String] :task_type The task type + # @option arguments [String] :inference_id The inference Id # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-get # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.get' } - defined_params = %i[inference_id task_type].each_with_object({}) do |variable, set_variables| + defined_params = [:inference_id, :task_type].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -43,15 +43,15 @@ def get(arguments = {}) body = nil - _inference_id = arguments.delete(:inference_id) - _task_type = arguments.delete(:task_type) + _inference_id = arguments.delete(:inference_id) + method = Elasticsearch::API::HTTP_GET path = if _task_type && _inference_id - "_inference/#{Utils.__listify(_task_type)}/#{Utils.__listify(_inference_id)}" + "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_inference_id)}" elsif _inference_id - "_inference/#{Utils.__listify(_inference_id)}" + "_inference/#{Utils.listify(_inference_id)}" else '_inference' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/post_eis_chat_completion.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/post_eis_chat_completion.rb new file mode 100644 index 0000000000..9dd3bfb992 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/post_eis_chat_completion.rb @@ -0,0 +1,63 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Perform a chat completion task through the Elastic Inference Service (EIS). + # Perform a chat completion inference task with the +elastic+ service. + # + # @option arguments [String] :eis_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body chat_completion_request + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-post-eis-chat-completion + # + def post_eis_chat_completion(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.post_eis_chat_completion' } + + defined_params = [:eis_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] + raise ArgumentError, "Required argument 'eis_inference_id' missing" unless arguments[:eis_inference_id] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _eis_inference_id = arguments.delete(:eis_inference_id) + + method = Elasticsearch::API::HTTP_POST + path = "_inference/chat_completion/#{Utils.listify(_eis_inference_id)}/_stream" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb index aabcd25a4e..c76d61652f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb @@ -15,30 +15,39 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Inference module Actions - # Configure an inference endpoint for use in the Inference API + # Create an inference endpoint. + # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + # After creating the endpoint, wait for the model deployment to complete before using it. + # To verify the deployment status, use the get trained model statistics API. + # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. + # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + # For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + # However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. # - # @option arguments [String] :inference_id The inference Id # @option arguments [String] :task_type The task type + # @option arguments [String] :inference_id The inference Id (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The inference endpoint's task and service settings + # @option arguments [Hash] :body inference_config # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-inference-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put # def put(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put' } - defined_params = %i[inference_id task_type].each_with_object({}) do |variable, set_variables| + defined_params = [:inference_id, :task_type].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? + raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] raise ArgumentError, "Required argument 'inference_id' missing" unless arguments[:inference_id] arguments = arguments.clone @@ -46,15 +55,15 @@ def put(arguments = {}) body = arguments.delete(:body) - _inference_id = arguments.delete(:inference_id) - _task_type = arguments.delete(:task_type) + _inference_id = arguments.delete(:inference_id) + method = Elasticsearch::API::HTTP_PUT path = if _task_type && _inference_id - "_inference/#{Utils.__listify(_task_type)}/#{Utils.__listify(_inference_id)}" + "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_inference_id)}" else - "_inference/#{Utils.__listify(_inference_id)}" + "_inference/#{Utils.listify(_inference_id)}" end params = {} diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb new file mode 100644 index 0000000000..660dfa72a5 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb @@ -0,0 +1,75 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create an AlibabaCloud AI Search inference endpoint. + # Create an inference endpoint to perform an inference task with the +alibabacloud-ai-search+ service. + # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + # After creating the endpoint, wait for the model deployment to complete before using it. + # To verify the deployment status, use the get trained model statistics API. + # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. + # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # + # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) + # @option arguments [String] :alibabacloud_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-alibabacloud + # + def put_alibabacloud(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_alibabacloud' } + + defined_params = [:task_type, :alibabacloud_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + + unless arguments[:alibabacloud_inference_id] + raise ArgumentError, + "Required argument 'alibabacloud_inference_id' missing" + end + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _alibabacloud_inference_id = arguments.delete(:alibabacloud_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_alibabacloud_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb new file mode 100644 index 0000000000..562ab9546e --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb @@ -0,0 +1,70 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create an Amazon Bedrock inference endpoint. + # Creates an inference endpoint to perform an inference task with the +amazonbedrock+ service. + # + # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) + # @option arguments [String] :amazonbedrock_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-amazonbedrock + # + def put_amazonbedrock(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_amazonbedrock' } + + defined_params = [:task_type, :amazonbedrock_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + + unless arguments[:amazonbedrock_inference_id] + raise ArgumentError, + "Required argument 'amazonbedrock_inference_id' missing" + end + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _amazonbedrock_inference_id = arguments.delete(:amazonbedrock_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_amazonbedrock_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb new file mode 100644 index 0000000000..c064603045 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb @@ -0,0 +1,76 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create an Anthropic inference endpoint. + # Create an inference endpoint to perform an inference task with the +anthropic+ service. + # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + # After creating the endpoint, wait for the model deployment to complete before using it. + # To verify the deployment status, use the get trained model statistics API. + # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. + # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # + # @option arguments [String] :task_type The task type. + # The only valid task type for the model to perform is +completion+. (*Required*) + # @option arguments [String] :anthropic_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-anthropic + # + def put_anthropic(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_anthropic' } + + defined_params = [:task_type, :anthropic_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + + unless arguments[:anthropic_inference_id] + raise ArgumentError, + "Required argument 'anthropic_inference_id' missing" + end + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _anthropic_inference_id = arguments.delete(:anthropic_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_anthropic_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb new file mode 100644 index 0000000000..35add4e19a --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb @@ -0,0 +1,75 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create an Azure AI studio inference endpoint. + # Create an inference endpoint to perform an inference task with the +azureaistudio+ service. + # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + # After creating the endpoint, wait for the model deployment to complete before using it. + # To verify the deployment status, use the get trained model statistics API. + # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. + # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # + # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) + # @option arguments [String] :azureaistudio_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-azureaistudio + # + def put_azureaistudio(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_azureaistudio' } + + defined_params = [:task_type, :azureaistudio_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + + unless arguments[:azureaistudio_inference_id] + raise ArgumentError, + "Required argument 'azureaistudio_inference_id' missing" + end + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _azureaistudio_inference_id = arguments.delete(:azureaistudio_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_azureaistudio_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb new file mode 100644 index 0000000000..341736f75b --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb @@ -0,0 +1,80 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create an Azure OpenAI inference endpoint. + # Create an inference endpoint to perform an inference task with the +azureopenai+ service. + # The list of chat completion models that you can choose from in your Azure OpenAI deployment include: + # * {https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-4-and-gpt-4-turbo-models GPT-4 and GPT-4 Turbo models} + # * {https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-35 GPT-3.5} + # The list of embeddings models that you can choose from in your deployment can be found in the {https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#embeddings Azure models documentation}. + # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + # After creating the endpoint, wait for the model deployment to complete before using it. + # To verify the deployment status, use the get trained model statistics API. + # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. + # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # + # @option arguments [String] :task_type The type of the inference task that the model will perform. + # NOTE: The +chat_completion+ task type only supports streaming and only through the _stream API. (*Required*) + # @option arguments [String] :azureopenai_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-azureopenai + # + def put_azureopenai(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_azureopenai' } + + defined_params = [:task_type, :azureopenai_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + + unless arguments[:azureopenai_inference_id] + raise ArgumentError, + "Required argument 'azureopenai_inference_id' missing" + end + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _azureopenai_inference_id = arguments.delete(:azureopenai_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_azureopenai_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb new file mode 100644 index 0000000000..b70a33b8a7 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb @@ -0,0 +1,75 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create a Cohere inference endpoint. + # Create an inference endpoint to perform an inference task with the +cohere+ service. + # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + # After creating the endpoint, wait for the model deployment to complete before using it. + # To verify the deployment status, use the get trained model statistics API. + # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. + # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # + # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) + # @option arguments [String] :cohere_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-cohere + # + def put_cohere(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_cohere' } + + defined_params = [:task_type, :cohere_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + + unless arguments[:cohere_inference_id] + raise ArgumentError, + "Required argument 'cohere_inference_id' missing" + end + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _cohere_inference_id = arguments.delete(:cohere_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_cohere_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_eis.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_eis.rb new file mode 100644 index 0000000000..96c97449f1 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_eis.rb @@ -0,0 +1,67 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create an Elastic Inference Service (EIS) inference endpoint. + # Create an inference endpoint to perform an inference task through the Elastic Inference Service (EIS). + # + # @option arguments [String] :task_type The type of the inference task that the model will perform. + # NOTE: The +chat_completion+ task type only supports streaming and only through the _stream API. (*Required*) + # @option arguments [String] :eis_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-eis + # + def put_eis(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_eis' } + + defined_params = [:task_type, :eis_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + raise ArgumentError, "Required argument 'eis_inference_id' missing" unless arguments[:eis_inference_id] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _eis_inference_id = arguments.delete(:eis_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_eis_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb new file mode 100644 index 0000000000..c6c9179335 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb @@ -0,0 +1,71 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create an Elasticsearch inference endpoint. + # Create an inference endpoint to perform an inference task with the +elasticsearch+ service. + # + # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) + # @option arguments [String] :elasticsearch_inference_id The unique identifier of the inference endpoint. + # The must not match the +model_id+. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-elasticsearch + # + def put_elasticsearch(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_elasticsearch' } + + defined_params = [:task_type, :elasticsearch_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + + unless arguments[:elasticsearch_inference_id] + raise ArgumentError, + "Required argument 'elasticsearch_inference_id' missing" + end + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _elasticsearch_inference_id = arguments.delete(:elasticsearch_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_elasticsearch_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb new file mode 100644 index 0000000000..91218289be --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb @@ -0,0 +1,67 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create an ELSER inference endpoint. + # Create an inference endpoint to perform an inference task with the +elser+ service. + # You can also deploy ELSER by using the Elasticsearch inference integration. + # + # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) + # @option arguments [String] :elser_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-elser + # + def put_elser(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_elser' } + + defined_params = [:task_type, :elser_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + raise ArgumentError, "Required argument 'elser_inference_id' missing" unless arguments[:elser_inference_id] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _elser_inference_id = arguments.delete(:elser_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_elser_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb new file mode 100644 index 0000000000..6b8838fa40 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb @@ -0,0 +1,75 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create an Google AI Studio inference endpoint. + # Create an inference endpoint to perform an inference task with the +googleaistudio+ service. + # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + # After creating the endpoint, wait for the model deployment to complete before using it. + # To verify the deployment status, use the get trained model statistics API. + # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. + # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # + # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) + # @option arguments [String] :googleaistudio_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-googleaistudio + # + def put_googleaistudio(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_googleaistudio' } + + defined_params = [:task_type, :googleaistudio_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + + unless arguments[:googleaistudio_inference_id] + raise ArgumentError, + "Required argument 'googleaistudio_inference_id' missing" + end + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _googleaistudio_inference_id = arguments.delete(:googleaistudio_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_googleaistudio_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb new file mode 100644 index 0000000000..6b2077b075 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb @@ -0,0 +1,75 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create a Google Vertex AI inference endpoint. + # Create an inference endpoint to perform an inference task with the +googlevertexai+ service. + # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + # After creating the endpoint, wait for the model deployment to complete before using it. + # To verify the deployment status, use the get trained model statistics API. + # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. + # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # + # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) + # @option arguments [String] :googlevertexai_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-googlevertexai + # + def put_googlevertexai(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_googlevertexai' } + + defined_params = [:task_type, :googlevertexai_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + + unless arguments[:googlevertexai_inference_id] + raise ArgumentError, + "Required argument 'googlevertexai_inference_id' missing" + end + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _googlevertexai_inference_id = arguments.delete(:googlevertexai_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_googlevertexai_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb new file mode 100644 index 0000000000..571c5c8f21 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb @@ -0,0 +1,86 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create a Hugging Face inference endpoint. + # Create an inference endpoint to perform an inference task with the +hugging_face+ service. + # You must first create an inference endpoint on the Hugging Face endpoint page to get an endpoint URL. + # 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. + # Create the endpoint and copy the URL after the endpoint initialization has been finished. + # The following models are recommended for the Hugging Face service: + # * +all-MiniLM-L6-v2+ + # * +all-MiniLM-L12-v2+ + # * +all-mpnet-base-v2+ + # * +e5-base-v2+ + # * +e5-small-v2+ + # * +multilingual-e5-base+ + # * +multilingual-e5-small+ + # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + # After creating the endpoint, wait for the model deployment to complete before using it. + # To verify the deployment status, use the get trained model statistics API. + # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. + # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # + # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) + # @option arguments [String] :huggingface_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-hugging-face + # + def put_hugging_face(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_hugging_face' } + + defined_params = [:task_type, :huggingface_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + + unless arguments[:huggingface_inference_id] + raise ArgumentError, + "Required argument 'huggingface_inference_id' missing" + end + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _huggingface_inference_id = arguments.delete(:huggingface_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_huggingface_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb new file mode 100644 index 0000000000..104a210833 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb @@ -0,0 +1,77 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create an JinaAI inference endpoint. + # Create an inference endpoint to perform an inference task with the +jinaai+ service. + # To review the available +rerank+ models, refer to . + # To review the available +text_embedding+ models, refer to the . + # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + # After creating the endpoint, wait for the model deployment to complete before using it. + # To verify the deployment status, use the get trained model statistics API. + # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. + # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # + # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) + # @option arguments [String] :jinaai_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-jinaai + # + def put_jinaai(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_jinaai' } + + defined_params = [:task_type, :jinaai_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + + unless arguments[:jinaai_inference_id] + raise ArgumentError, + "Required argument 'jinaai_inference_id' missing" + end + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _jinaai_inference_id = arguments.delete(:jinaai_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_jinaai_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb new file mode 100644 index 0000000000..a3a8c3f993 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb @@ -0,0 +1,76 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create a Mistral inference endpoint. + # Creates an inference endpoint to perform an inference task with the +mistral+ service. + # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + # After creating the endpoint, wait for the model deployment to complete before using it. + # To verify the deployment status, use the get trained model statistics API. + # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. + # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # + # @option arguments [String] :task_type The task type. + # The only valid task type for the model to perform is +text_embedding+. (*Required*) + # @option arguments [String] :mistral_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-mistral + # + def put_mistral(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_mistral' } + + defined_params = [:task_type, :mistral_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + + unless arguments[:mistral_inference_id] + raise ArgumentError, + "Required argument 'mistral_inference_id' missing" + end + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _mistral_inference_id = arguments.delete(:mistral_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_mistral_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb new file mode 100644 index 0000000000..7d6e65997a --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb @@ -0,0 +1,76 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create an OpenAI inference endpoint. + # Create an inference endpoint to perform an inference task with the +openai+ service. + # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + # After creating the endpoint, wait for the model deployment to complete before using it. + # To verify the deployment status, use the get trained model statistics API. + # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. + # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # + # @option arguments [String] :task_type The type of the inference task that the model will perform. + # NOTE: The +chat_completion+ task type only supports streaming and only through the _stream API. (*Required*) + # @option arguments [String] :openai_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-openai + # + def put_openai(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_openai' } + + defined_params = [:task_type, :openai_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + + unless arguments[:openai_inference_id] + raise ArgumentError, + "Required argument 'openai_inference_id' missing" + end + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _openai_inference_id = arguments.delete(:openai_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_openai_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb new file mode 100644 index 0000000000..6105798224 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb @@ -0,0 +1,71 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create a VoyageAI inference endpoint. + # Create an inference endpoint to perform an inference task with the +voyageai+ service. + # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # + # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) + # @option arguments [String] :voyageai_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-voyageai + # + def put_voyageai(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_voyageai' } + + defined_params = [:task_type, :voyageai_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + + unless arguments[:voyageai_inference_id] + raise ArgumentError, + "Required argument 'voyageai_inference_id' missing" + end + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _voyageai_inference_id = arguments.delete(:voyageai_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_voyageai_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb new file mode 100644 index 0000000000..17e3e4c5ac --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb @@ -0,0 +1,78 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Create a Watsonx inference endpoint. + # Create an inference endpoint to perform an inference task with the +watsonxai+ service. + # You need an IBM Cloud Databases for Elasticsearch deployment to use the +watsonxai+ inference service. + # You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. + # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + # After creating the endpoint, wait for the model deployment to complete before using it. + # To verify the deployment status, use the get trained model statistics API. + # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. + # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # + # @option arguments [String] :task_type The task type. + # The only valid task type for the model to perform is +text_embedding+. (*Required*) + # @option arguments [String] :watsonx_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-watsonx + # + def put_watsonx(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_watsonx' } + + defined_params = [:task_type, :watsonx_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + + unless arguments[:watsonx_inference_id] + raise ArgumentError, + "Required argument 'watsonx_inference_id' missing" + end + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _watsonx_inference_id = arguments.delete(:watsonx_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_watsonx_inference_id)}" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb new file mode 100644 index 0000000000..af0cad6901 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb @@ -0,0 +1,62 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Perform rereanking inference on the service + # + # @option arguments [String] :inference_id The unique identifier for the inference endpoint. (*Required*) + # @option arguments [Time] :timeout The amount of time to wait for the inference request to complete. Server default: 30s. + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference + # + def rerank(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.rerank' } + + defined_params = [:inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'inference_id' missing" unless arguments[:inference_id] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _inference_id = arguments.delete(:inference_id) + + method = Elasticsearch::API::HTTP_POST + path = "_inference/rerank/#{Utils.listify(_inference_id)}" + params = Utils.process_params(arguments) + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/unified_inference.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb similarity index 64% rename from elasticsearch-api/lib/elasticsearch/api/actions/inference/unified_inference.rb rename to elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb index f06a42fbef..13a6f03930 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/unified_inference.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb @@ -15,26 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Inference module Actions - # Perform inference using the Unified Schema + # Perform sparse embedding inference on the service # - # @option arguments [String] :inference_id The inference Id - # @option arguments [String] :task_type The task type + # @option arguments [String] :inference_id The inference Id (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference request to complete. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The inference payload + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/unified-inference-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference # - def unified_inference(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || 'inference.unified_inference' } + def sparse_embedding(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.sparse_embedding' } - defined_params = %i[inference_id task_type].each_with_object({}) do |variable, set_variables| + defined_params = [:inference_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -48,15 +48,9 @@ def unified_inference(arguments = {}) _inference_id = arguments.delete(:inference_id) - _task_type = arguments.delete(:task_type) - method = Elasticsearch::API::HTTP_POST - path = if _task_type && _inference_id - "_inference/#{Utils.__listify(_task_type)}/#{Utils.__listify(_inference_id)}/_unified" - else - "_inference/#{Utils.__listify(_inference_id)}/_unified" - end - params = {} + path = "_inference/sparse_embedding/#{Utils.listify(_inference_id)}" + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb new file mode 100644 index 0000000000..a6e642419e --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb @@ -0,0 +1,65 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Perform streaming inference. + # Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. + # This API works only with the completion task type. + # IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + # This API requires the +monitor_inference+ cluster privilege (the built-in +inference_admin+ and +inference_user+ roles grant this privilege). You must use a client that supports streaming. + # + # @option arguments [String] :inference_id The unique identifier for the inference endpoint. (*Required*) + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-stream-inference + # + def stream_completion(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.stream_completion' } + + defined_params = [:inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'inference_id' missing" unless arguments[:inference_id] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _inference_id = arguments.delete(:inference_id) + + method = Elasticsearch::API::HTTP_POST + path = "_inference/completion/#{Utils.listify(_inference_id)}/_stream" + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb new file mode 100644 index 0000000000..ac07c2d718 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb @@ -0,0 +1,62 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification +# +module Elasticsearch + module API + module Inference + module Actions + # Perform text embedding inference on the service + # + # @option arguments [String] :inference_id The inference Id (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference request to complete. Server default: 30s. + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference + # + def text_embedding(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.text_embedding' } + + defined_params = [:inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'inference_id' missing" unless arguments[:inference_id] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _inference_id = arguments.delete(:inference_id) + + method = Elasticsearch::API::HTTP_POST + path = "_inference/text_embedding/#{Utils.listify(_inference_id)}" + params = Utils.process_params(arguments) + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb index 00bb270ee5..e533aede91 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb @@ -15,30 +15,35 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Inference module Actions - # Update inference + # Update an inference endpoint. + # Modify +task_settings+, secrets (within +service_settings+), or +num_allocations+ for an inference endpoint, depending on the specific endpoint service and +task_type+. + # IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + # For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + # However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. # - # @option arguments [String] :inference_id The inference Id - # @option arguments [String] :task_type The task type + # @option arguments [String] :inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [String] :task_type The type of inference task that the model performs. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The inference endpoint's task and service settings + # @option arguments [Hash] :body inference_config # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-inference-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-update # def update(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.update' } - defined_params = %i[inference_id task_type].each_with_object({}) do |variable, set_variables| + defined_params = [:inference_id, :task_type].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? + raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] raise ArgumentError, "Required argument 'inference_id' missing" unless arguments[:inference_id] arguments = arguments.clone @@ -52,9 +57,9 @@ def update(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = if _task_type && _inference_id - "_inference/#{Utils.__listify(_task_type)}/#{Utils.__listify(_inference_id)}/_update" + "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_inference_id)}/_update" else - "_inference/#{Utils.__listify(_inference_id)}/_update" + "_inference/#{Utils.listify(_inference_id)}/_update" end params = {} diff --git a/elasticsearch-api/spec/unit/actions/inference/chat_completion_unified_spec.rb b/elasticsearch-api/spec/unit/actions/inference/chat_completion_unified_spec.rb new file mode 100644 index 0000000000..180bcb3f64 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/chat_completion_unified_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.chat_completion_unified' do + let(:expected_args) do + [ + 'POST', + '_inference/chat_completion/bar/_stream', + {}, + {}, + {}, + { defined_params: { inference_id: 'bar' }, + endpoint: 'inference.chat_completion_unified' } + ] + end + + it 'performs the request' do + expect(client_double.inference.chat_completion_unified(inference_id: 'bar', body: {})).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/completion_spec.rb b/elasticsearch-api/spec/unit/actions/inference/completion_spec.rb new file mode 100644 index 0000000000..8817e72a32 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/completion_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.completion' do + let(:expected_args) do + [ + 'POST', + '_inference/completion/bar', + {}, + nil, + {}, + { defined_params: { inference_id: 'bar' }, + endpoint: 'inference.completion' } + ] + end + + it 'performs the request' do + expect(client_double.inference.completion(inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/post_eis_chat_completion_spec.rb b/elasticsearch-api/spec/unit/actions/inference/post_eis_chat_completion_spec.rb new file mode 100644 index 0000000000..b5e62acf81 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/post_eis_chat_completion_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.post_eis_chat_completion' do + let(:expected_args) do + [ + 'POST', + '_inference/chat_completion/foo/_stream', + {}, + {}, + {}, + { defined_params: { eis_inference_id: 'foo' }, + endpoint: 'inference.post_eis_chat_completion' } + ] + end + + it 'performs the request' do + expect(client_double.inference.post_eis_chat_completion(body: {}, eis_inference_id: 'foo')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_alibabacloud_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_alibabacloud_spec.rb new file mode 100644 index 0000000000..0ac550822f --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_alibabacloud_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_alibabacloud' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { alibabacloud_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_alibabacloud' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_alibabacloud(task_type: 'foo', alibabacloud_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_amazonbedrock_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_amazonbedrock_spec.rb new file mode 100644 index 0000000000..23d5b57c39 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_amazonbedrock_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_amazonbedrock' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { amazonbedrock_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_amazonbedrock' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_amazonbedrock(task_type: 'foo', amazonbedrock_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_anthropic_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_anthropic_spec.rb new file mode 100644 index 0000000000..3f4c22cbba --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_anthropic_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_anthropic' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { anthropic_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_anthropic' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_anthropic(task_type: 'foo', anthropic_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_azureaistudio_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_azureaistudio_spec.rb new file mode 100644 index 0000000000..add3ed7eec --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_azureaistudio_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_azureaistudio' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { azureaistudio_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_azureaistudio' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_azureaistudio(task_type: 'foo', azureaistudio_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_azureopenai_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_azureopenai_spec.rb new file mode 100644 index 0000000000..ca0ade65b7 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_azureopenai_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_azureopenai' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { azureopenai_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_azureopenai' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_azureopenai(task_type: 'foo', azureopenai_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_cohere_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_cohere_spec.rb new file mode 100644 index 0000000000..7eb82de752 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_cohere_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_cohere' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { cohere_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_cohere' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_cohere(task_type: 'foo', cohere_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_eis_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_eis_spec.rb new file mode 100644 index 0000000000..fefea73059 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_eis_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_eis' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { eis_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_eis' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_eis(task_type: 'foo', eis_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_elasticsearch_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_elasticsearch_spec.rb new file mode 100644 index 0000000000..e91a89c850 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_elasticsearch_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_elasticsearch' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { elasticsearch_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_elasticsearch' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_elasticsearch(task_type: 'foo', elasticsearch_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_elser_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_elser_spec.rb new file mode 100644 index 0000000000..1862e22721 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_elser_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_elser' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { elser_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_elser' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_elser(task_type: 'foo', elser_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_googleaistudio_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_googleaistudio_spec.rb new file mode 100644 index 0000000000..22c5284990 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_googleaistudio_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_googleaistudio' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { googleaistudio_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_googleaistudio' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_googleaistudio(task_type: 'foo', googleaistudio_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_googlevertexai_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_googlevertexai_spec.rb new file mode 100644 index 0000000000..ccf6c883bf --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_googlevertexai_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_googlevertexai' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { googlevertexai_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_googlevertexai' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_googlevertexai(task_type: 'foo', googlevertexai_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_hugging_face_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_hugging_face_spec.rb new file mode 100644 index 0000000000..8feb11c28e --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_hugging_face_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_hugging_face' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { huggingface_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_hugging_face' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_hugging_face(task_type: 'foo', huggingface_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_jinaai_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_jinaai_spec.rb new file mode 100644 index 0000000000..bcbf0e0f00 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_jinaai_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_jinaai' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { jinaai_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_jinaai' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_jinaai(task_type: 'foo', jinaai_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_mistral_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_mistral_spec.rb new file mode 100644 index 0000000000..2d8d8dbd3f --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_mistral_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_mistral' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { mistral_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_mistral' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_mistral(task_type: 'foo', mistral_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_openai_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_openai_spec.rb new file mode 100644 index 0000000000..b58dd6e568 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_openai_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_openai' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { openai_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_openai' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_openai(task_type: 'foo', openai_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_voyageai_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_voyageai_spec.rb new file mode 100644 index 0000000000..8bac99b82d --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_voyageai_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_voyageai' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { voyageai_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_voyageai' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_voyageai(task_type: 'foo', voyageai_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_watsonx_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_watsonx_spec.rb new file mode 100644 index 0000000000..44245b8b02 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_watsonx_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_watsonx' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/bar', + {}, + nil, + {}, + { defined_params: { watsonx_inference_id: 'bar', task_type: 'foo' }, + endpoint: 'inference.put_watsonx' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_watsonx(task_type: 'foo', watsonx_inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/rerank_spec.rb b/elasticsearch-api/spec/unit/actions/inference/rerank_spec.rb new file mode 100644 index 0000000000..7417cd74fa --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/rerank_spec.rb @@ -0,0 +1,35 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.rerank' do + let(:expected_args) do + [ + 'POST', + '_inference/rerank/foo', + {}, + nil, + {}, + { defined_params: { inference_id: 'foo' }, endpoint: 'inference.rerank' } + ] + end + + it 'performs the request' do + expect(client_double.inference.rerank(inference_id: 'foo')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/sparse_embedding_spec.rb b/elasticsearch-api/spec/unit/actions/inference/sparse_embedding_spec.rb new file mode 100644 index 0000000000..856dface5a --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/sparse_embedding_spec.rb @@ -0,0 +1,35 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.sparse_embedding' do + let(:expected_args) do + [ + 'POST', + '_inference/sparse_embedding/foo', + {}, + nil, + {}, + { defined_params: { inference_id: 'foo' }, endpoint: 'inference.sparse_embedding' } + ] + end + + it 'performs the request' do + expect(client_double.inference.sparse_embedding(inference_id: 'foo')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/stream_completion_spec.rb b/elasticsearch-api/spec/unit/actions/inference/stream_completion_spec.rb new file mode 100644 index 0000000000..542b1d9941 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/stream_completion_spec.rb @@ -0,0 +1,35 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.stream_completion' do + let(:expected_args) do + [ + 'POST', + '_inference/completion/foo/_stream', + {}, + nil, + {}, + { defined_params: { inference_id: 'foo' }, endpoint: 'inference.stream_completion' } + ] + end + + it 'performs the request' do + expect(client_double.inference.stream_completion(inference_id: 'foo')).to be_a Elasticsearch::API::Response + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/text_embedding_spec.rb b/elasticsearch-api/spec/unit/actions/inference/text_embedding_spec.rb new file mode 100644 index 0000000000..e97fda5865 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/text_embedding_spec.rb @@ -0,0 +1,35 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.text_embedding' do + let(:expected_args) do + [ + 'POST', + '_inference/text_embedding/foo', + {}, + nil, + {}, + { defined_params: { inference_id: 'foo' }, endpoint: 'inference.text_embedding' } + ] + end + + it 'performs the request' do + expect(client_double.inference.text_embedding(inference_id: 'foo')).to be_a Elasticsearch::API::Response + end +end From 4075956142cc14579e84e2fb3e5feca5490a7cfe Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Fri, 4 Apr 2025 10:15:30 +0100 Subject: [PATCH 21/75] [API][Tests] Updates unit tests for API and perform_request_spec --- .../spec/unit/actions/clear_scroll_spec.rb | 26 +++----------- .../spec/unit/actions/cluster/reroute_spec.rb | 24 ++++++------- .../actions/indices/get_field_mapping_spec.rb | 9 +++-- .../actions/indices/resolve_cluster_spec.rb | 13 ------- .../unit/actions/inference/inference_spec.rb | 36 ------------------- .../spec/unit/actions/inference/put_spec.rb | 8 ++--- .../inference/stream_inference_spec.rb | 35 ------------------ .../inference/unified_inference_spec.rb | 36 ------------------- .../unit/actions/inference/update_spec.rb | 4 +-- .../ingest/get_ip_location_database_spec.rb | 2 +- .../infer_trained_model_deployment_spec.rb | 2 +- .../spec/unit/actions/mtermvectors_spec.rb | 17 ++++++--- .../spec/unit/actions/scroll_spec.rb | 4 +-- .../spec/unit/perform_request_spec.rb | 12 ++++--- 14 files changed, 49 insertions(+), 179 deletions(-) delete mode 100644 elasticsearch-api/spec/unit/actions/inference/inference_spec.rb delete mode 100644 elasticsearch-api/spec/unit/actions/inference/stream_inference_spec.rb delete mode 100644 elasticsearch-api/spec/unit/actions/inference/unified_inference_spec.rb diff --git a/elasticsearch-api/spec/unit/actions/clear_scroll_spec.rb b/elasticsearch-api/spec/unit/actions/clear_scroll_spec.rb index 041c13d832..1f1f2d4969 100644 --- a/elasticsearch-api/spec/unit/actions/clear_scroll_spec.rb +++ b/elasticsearch-api/spec/unit/actions/clear_scroll_spec.rb @@ -22,33 +22,15 @@ let(:expected_args) do [ 'DELETE', - '_search/scroll/abc123', + '_search/scroll', {}, - nil, + { scroll_id: 'abc123' }, {}, - { defined_params: { scroll_id: 'abc123' }, endpoint: 'clear_scroll' } + { endpoint: 'clear_scroll' } ] end it 'performs the request' do - expect(client_double.clear_scroll(scroll_id: 'abc123')).to be_a Elasticsearch::API::Response - end - - context 'when a list of scroll ids is provided' do - - let(:expected_args) do - [ - 'DELETE', - '_search/scroll/abc123,def456', - {}, - nil, - {}, - { defined_params: { scroll_id: ['abc123', 'def456'] }, endpoint: 'clear_scroll' } - ] - end - - it 'performs the request' do - expect(client_double.clear_scroll(scroll_id: ['abc123', 'def456'])).to be_a Elasticsearch::API::Response - end + expect(client_double.clear_scroll(body: { scroll_id: 'abc123' })).to be_a Elasticsearch::API::Response end end diff --git a/elasticsearch-api/spec/unit/actions/cluster/reroute_spec.rb b/elasticsearch-api/spec/unit/actions/cluster/reroute_spec.rb index 49848ce103..b0d770d055 100644 --- a/elasticsearch-api/spec/unit/actions/cluster/reroute_spec.rb +++ b/elasticsearch-api/spec/unit/actions/cluster/reroute_spec.rb @@ -21,12 +21,12 @@ let(:expected_args) do [ - 'POST', - '_cluster/reroute', - {}, - {}, - {}, - { endpoint: 'cluster.reroute' } + 'POST', + '_cluster/reroute', + {}, + nil, + {}, + { endpoint: 'cluster.reroute' } ] end @@ -38,12 +38,12 @@ let(:expected_args) do [ - 'POST', - '_cluster/reroute', - {}, - { commands: [ move: { index: 'myindex', shard: 0 }] }, - {}, - { endpoint: 'cluster.reroute' } + 'POST', + '_cluster/reroute', + {}, + { commands: [ move: { index: 'myindex', shard: 0 }] }, + {}, + { endpoint: 'cluster.reroute' } ] end diff --git a/elasticsearch-api/spec/unit/actions/indices/get_field_mapping_spec.rb b/elasticsearch-api/spec/unit/actions/indices/get_field_mapping_spec.rb index cd12bf16bc..e9550b65e9 100644 --- a/elasticsearch-api/spec/unit/actions/indices/get_field_mapping_spec.rb +++ b/elasticsearch-api/spec/unit/actions/indices/get_field_mapping_spec.rb @@ -26,7 +26,7 @@ {}, nil, {}, - { endpoint: 'indices.get_field_mapping' } + { endpoint: 'indices.get_field_mapping', defined_params: { fields: 'foo' } } ] end @@ -35,11 +35,10 @@ end it 'performs the request' do - expect(client_double.indices.get_field_mapping(field: 'foo')).to be_a Elasticsearch::API::Response + expect(client_double.indices.get_field_mapping(fields: 'foo')).to be_a Elasticsearch::API::Response end context 'when an index is specified' do - let(:url) do 'foo/_mapping/field/bam' end @@ -51,12 +50,12 @@ {}, nil, {}, - { defined_params: { index: 'foo' }, endpoint: 'indices.get_field_mapping' } + { defined_params: { index: 'foo', fields: 'bam' }, endpoint: 'indices.get_field_mapping' } ] end it 'performs the request' do - expect(client_double.indices.get_field_mapping(index: 'foo', field: 'bam')).to be_a Elasticsearch::API::Response + expect(client_double.indices.get_field_mapping(index: 'foo', fields: 'bam')).to be_a Elasticsearch::API::Response end end end diff --git a/elasticsearch-api/spec/unit/actions/indices/resolve_cluster_spec.rb b/elasticsearch-api/spec/unit/actions/indices/resolve_cluster_spec.rb index 3da0771413..f20bca9264 100644 --- a/elasticsearch-api/spec/unit/actions/indices/resolve_cluster_spec.rb +++ b/elasticsearch-api/spec/unit/actions/indices/resolve_cluster_spec.rb @@ -30,19 +30,6 @@ ] end - context 'when there is no name specified' do - let(:client) do - Class.new { include Elasticsearch::API }.new - end - - it 'raises an exception' do - expect { - client.indices.resolve_cluster - }.to raise_exception(ArgumentError) - end - end - - context 'when name is specified' do it 'performs the request' do expect(client_double.indices.resolve_cluster(name: 'foo')).to be_a Elasticsearch::API::Response diff --git a/elasticsearch-api/spec/unit/actions/inference/inference_spec.rb b/elasticsearch-api/spec/unit/actions/inference/inference_spec.rb deleted file mode 100644 index c87efa07b4..0000000000 --- a/elasticsearch-api/spec/unit/actions/inference/inference_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -require 'spec_helper' - -describe 'client#inference.inference' do - let(:expected_args) do - [ - 'POST', - '_inference/foo/bar', - {}, - nil, - {}, - { defined_params: { inference_id: 'bar', task_type: 'foo' }, - endpoint: 'inference.inference' } - ] - end - - it 'performs the request' do - expect(client_double.inference.inference(task_type: 'foo', inference_id: 'bar')).to be_a Elasticsearch::API::Response - end -end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_spec.rb index e06f205437..bdd6393727 100644 --- a/elasticsearch-api/spec/unit/actions/inference/put_spec.rb +++ b/elasticsearch-api/spec/unit/actions/inference/put_spec.rb @@ -21,16 +21,16 @@ let(:expected_args) do [ 'PUT', - '_inference/foo/bar', + '_inference/bar', {}, - nil, {}, - { defined_params: { inference_id: 'bar', task_type: 'foo' }, + {}, + { defined_params: { inference_id: 'bar' }, endpoint: 'inference.put' } ] end it 'performs the request' do - expect(client_double.inference.put(task_type: 'foo', inference_id: 'bar')).to be_a Elasticsearch::API::Response + expect(client_double.inference.put(body: {}, inference_id: 'bar')).to be_a Elasticsearch::API::Response end end diff --git a/elasticsearch-api/spec/unit/actions/inference/stream_inference_spec.rb b/elasticsearch-api/spec/unit/actions/inference/stream_inference_spec.rb deleted file mode 100644 index 191ad643d5..0000000000 --- a/elasticsearch-api/spec/unit/actions/inference/stream_inference_spec.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -require 'spec_helper' - -describe 'client#inference.stream_inference' do - let(:expected_args) do - [ - 'POST', - '_inference/foo/_stream', - {}, - nil, - {}, - { defined_params: { inference_id: 'foo' }, endpoint: 'inference.stream_inference' } - ] - end - - it 'performs the request' do - expect(client_double.inference.stream_inference(inference_id: 'foo')).to be_a Elasticsearch::API::Response - end -end diff --git a/elasticsearch-api/spec/unit/actions/inference/unified_inference_spec.rb b/elasticsearch-api/spec/unit/actions/inference/unified_inference_spec.rb deleted file mode 100644 index daed8332d7..0000000000 --- a/elasticsearch-api/spec/unit/actions/inference/unified_inference_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -require 'spec_helper' - -describe 'client#inference.unified_inference' do - let(:expected_args) do - [ - 'POST', - '_inference/foo/bar/_unified', - {}, - nil, - {}, - { defined_params: { inference_id: 'bar', task_type: 'foo' }, - endpoint: 'inference.unified_inference' } - ] - end - - it 'performs the request' do - expect(client_double.inference.unified_inference(task_type: 'foo', inference_id: 'bar')).to be_a Elasticsearch::API::Response - end -end diff --git a/elasticsearch-api/spec/unit/actions/inference/update_spec.rb b/elasticsearch-api/spec/unit/actions/inference/update_spec.rb index 6f29cd0b58..0ee998ee5b 100644 --- a/elasticsearch-api/spec/unit/actions/inference/update_spec.rb +++ b/elasticsearch-api/spec/unit/actions/inference/update_spec.rb @@ -23,7 +23,7 @@ 'PUT', '_inference/foo/bar/_update', {}, - nil, + {}, {}, { defined_params: { inference_id: 'bar', task_type: 'foo' }, endpoint: 'inference.update' } @@ -31,6 +31,6 @@ end it 'performs the request' do - expect(client_double.inference.update(task_type: 'foo', inference_id: 'bar')).to be_a Elasticsearch::API::Response + expect(client_double.inference.update(task_type: 'foo', body: {}, inference_id: 'bar')).to be_a Elasticsearch::API::Response end end diff --git a/elasticsearch-api/spec/unit/actions/ingest/get_ip_location_database_spec.rb b/elasticsearch-api/spec/unit/actions/ingest/get_ip_location_database_spec.rb index 41c356c3d3..7f12bddcf8 100644 --- a/elasticsearch-api/spec/unit/actions/ingest/get_ip_location_database_spec.rb +++ b/elasticsearch-api/spec/unit/actions/ingest/get_ip_location_database_spec.rb @@ -22,7 +22,7 @@ [ 'GET', '_ingest/ip_location/database/foo', - {}, + { body: {}}, nil, {}, { defined_params: { id: 'foo' }, endpoint: 'ingest.get_ip_location_database' } diff --git a/elasticsearch-api/spec/unit/actions/machine_learning/infer_trained_model_deployment_spec.rb b/elasticsearch-api/spec/unit/actions/machine_learning/infer_trained_model_deployment_spec.rb index fccbe878bd..77964040e4 100644 --- a/elasticsearch-api/spec/unit/actions/machine_learning/infer_trained_model_deployment_spec.rb +++ b/elasticsearch-api/spec/unit/actions/machine_learning/infer_trained_model_deployment_spec.rb @@ -21,7 +21,7 @@ let(:expected_args) do [ 'POST', - '_ml/trained_models/foo/deployment/_infer', + '_ml/trained_models/foo/_infer', {}, {}, {}, diff --git a/elasticsearch-api/spec/unit/actions/mtermvectors_spec.rb b/elasticsearch-api/spec/unit/actions/mtermvectors_spec.rb index 1bbc458fb4..4913ab2de0 100644 --- a/elasticsearch-api/spec/unit/actions/mtermvectors_spec.rb +++ b/elasticsearch-api/spec/unit/actions/mtermvectors_spec.rb @@ -23,21 +23,28 @@ 'POST', 'my-index/_mtermvectors', {}, - body, + { ids: [1,2,3] }, {}, { defined_params: { index: 'my-index' }, endpoint: 'mtermvectors' } ] end - let(:body) do - { ids: [1, 2, 3] } - end - it 'performs the request' do expect(client_double.mtermvectors(index: 'my-index', body: { ids: [1, 2, 3] })).to be_a Elasticsearch::API::Response end context 'when a list of ids is passed instead of a body' do + let(:expected_args) do + [ + 'GET', + 'my-index/_mtermvectors', + {ids: '1,2,3'}, + nil, + {}, + { defined_params: { index: 'my-index' }, endpoint: 'mtermvectors' } + ] + end + it 'performs the request' do expect(client_double.mtermvectors(index: 'my-index', ids: [1, 2, 3])).to be_a Elasticsearch::API::Response end diff --git a/elasticsearch-api/spec/unit/actions/scroll_spec.rb b/elasticsearch-api/spec/unit/actions/scroll_spec.rb index 36ba031209..d7b2b3aee4 100644 --- a/elasticsearch-api/spec/unit/actions/scroll_spec.rb +++ b/elasticsearch-api/spec/unit/actions/scroll_spec.rb @@ -22,11 +22,11 @@ let(:expected_args) do [ 'GET', - '_search/scroll/cXVlcn...', + '_search/scroll', {}, nil, {}, - { defined_params: { scroll_id: 'cXVlcn...' }, endpoint: 'scroll' } + { endpoint: 'scroll' } ] end diff --git a/elasticsearch-api/spec/unit/perform_request_spec.rb b/elasticsearch-api/spec/unit/perform_request_spec.rb index 154e19bd90..cade50b6f1 100644 --- a/elasticsearch-api/spec/unit/perform_request_spec.rb +++ b/elasticsearch-api/spec/unit/perform_request_spec.rb @@ -23,7 +23,11 @@ describe 'Perform request args' do Elasticsearch::API::FilesHelper.files.each do |filepath| spec = Elasticsearch::API::EndpointSpec.new(filepath) - next if spec.module_namespace.flatten.first == '_internal' || spec.visibility != 'public' + next if spec.module_namespace.flatten.first == '_internal' || + spec.visibility != 'public' || + # TODO: Once the test suite is migrated to elasticsearch-specification, these should be removed + spec.module_namespace.flatten.first == 'rollup' || + ['scroll', 'clear_scroll', 'connector.last_sync'].include?(spec.endpoint_name) # These are the path parts defined by the user in the method argument defined_path_parts = spec.path_params.inject({}) do |params, part| @@ -35,13 +39,11 @@ params.merge(part.to_sym => 'testing') end + required_params.merge!(body: {}) if ['inference.put', 'inference.update', 'inference.chat_completion_unified'].include? spec.endpoint_name + let(:client_double) do Class.new { include Elasticsearch::API }.new.tap do |client| expect(client).to receive(:perform_request) do |_, _, _, _, _, request_params| - # The create method ends up becoming an 'index' request - if expected_perform_request_params[:endpoint] == 'create' - expected_perform_request_params[:endpoint] = 'index' - end # Check that the expected hash is passed to the perform_request method expect(request_params).to eq(expected_perform_request_params) end.and_return(response_double) From 01c2adfcfcd0911d59284a56d376642288242e3f Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 1 Apr 2025 15:55:48 +0100 Subject: [PATCH 22/75] [API] Updates generated API code to 9.0 --- .../api/actions/async_search/delete.rb | 15 +- .../api/actions/async_search/get.rb | 24 ++- .../api/actions/async_search/status.rb | 19 +- .../api/actions/async_search/submit.rb | 85 ++++---- .../lib/elasticsearch/api/actions/bulk.rb | 134 +++++++++++-- .../elasticsearch/api/actions/cat/aliases.rb | 39 ++-- .../api/actions/cat/allocation.rb | 39 ++-- .../api/actions/cat/component_templates.rb | 39 ++-- .../elasticsearch/api/actions/cat/count.rb | 36 ++-- .../api/actions/cat/fielddata.rb | 32 +-- .../elasticsearch/api/actions/cat/health.rb | 39 ++-- .../lib/elasticsearch/api/actions/cat/help.rb | 15 +- .../elasticsearch/api/actions/cat/indices.rb | 56 ++++-- .../elasticsearch/api/actions/cat/master.rb | 33 +-- .../actions/cat/ml_data_frame_analytics.rb | 33 +-- .../api/actions/cat/ml_datafeeds.rb | 41 ++-- .../elasticsearch/api/actions/cat/ml_jobs.rb | 43 ++-- .../api/actions/cat/ml_trained_models.rb | 40 ++-- .../api/actions/cat/nodeattrs.rb | 33 +-- .../elasticsearch/api/actions/cat/nodes.rb | 38 ++-- .../api/actions/cat/pending_tasks.rb | 37 ++-- .../elasticsearch/api/actions/cat/plugins.rb | 33 +-- .../elasticsearch/api/actions/cat/recovery.rb | 43 ++-- .../api/actions/cat/repositories.rb | 33 +-- .../elasticsearch/api/actions/cat/segments.rb | 40 ++-- .../elasticsearch/api/actions/cat/shards.rb | 41 ++-- .../api/actions/cat/snapshots.rb | 38 ++-- .../elasticsearch/api/actions/cat/tasks.rb | 39 ++-- .../api/actions/cat/templates.rb | 37 ++-- .../api/actions/cat/thread_pool.rb | 42 ++-- .../api/actions/cat/transforms.rb | 39 ++-- .../elasticsearch/api/actions/clear_scroll.rb | 4 +- .../api/actions/close_point_in_time.rb | 16 +- .../api/actions/cluster/allocation_explain.rb | 24 ++- .../cluster/delete_component_template.rb | 19 +- .../delete_voting_config_exclusions.rb | 20 +- .../cluster/exists_component_template.rb | 21 +- .../actions/cluster/get_component_template.rb | 21 +- .../api/actions/cluster/get_settings.rb | 21 +- .../api/actions/cluster/health.rb | 43 ++-- .../elasticsearch/api/actions/cluster/info.rb | 13 +- .../api/actions/cluster/pending_tasks.rb | 21 +- .../cluster/post_voting_config_exclusions.rb | 37 +++- .../actions/cluster/put_component_template.rb | 37 +++- .../api/actions/cluster/put_settings.rb | 29 ++- .../api/actions/cluster/remote_info.rb | 12 +- .../api/actions/cluster/reroute.rb | 34 ++-- .../api/actions/cluster/state.rb | 43 ++-- .../api/actions/cluster/stats.rb | 19 +- .../api/actions/connector/check_in.rb | 2 +- .../api/actions/connector/delete.rb | 2 +- .../api/actions/connector/get.rb | 2 +- .../api/actions/connector/list.rb | 2 +- .../api/actions/connector/post.rb | 2 +- .../api/actions/connector/put.rb | 2 +- .../api/actions/connector/sync_job_cancel.rb | 2 +- .../actions/connector/sync_job_check_in.rb | 2 +- .../api/actions/connector/sync_job_claim.rb | 2 +- .../api/actions/connector/sync_job_delete.rb | 2 +- .../api/actions/connector/sync_job_error.rb | 2 +- .../api/actions/connector/sync_job_get.rb | 2 +- .../api/actions/connector/sync_job_list.rb | 2 +- .../api/actions/connector/sync_job_post.rb | 2 +- .../connector/sync_job_update_stats.rb | 2 +- .../connector/update_active_filtering.rb | 2 +- .../actions/connector/update_api_key_id.rb | 2 +- .../actions/connector/update_configuration.rb | 2 +- .../api/actions/connector/update_error.rb | 2 +- .../api/actions/connector/update_features.rb | 2 +- .../api/actions/connector/update_filtering.rb | 2 +- .../connector/update_filtering_validation.rb | 2 +- .../actions/connector/update_index_name.rb | 2 +- .../api/actions/connector/update_name.rb | 2 +- .../api/actions/connector/update_native.rb | 2 +- .../api/actions/connector/update_pipeline.rb | 2 +- .../actions/connector/update_scheduling.rb | 2 +- .../actions/connector/update_service_type.rb | 2 +- .../api/actions/connector/update_status.rb | 2 +- .../lib/elasticsearch/api/actions/count.rb | 74 ++++--- .../lib/elasticsearch/api/actions/create.rb | 2 +- .../delete_auto_follow_pattern.rb | 17 +- .../cross_cluster_replication/follow.rb | 25 ++- .../cross_cluster_replication/follow_info.rb | 20 +- .../cross_cluster_replication/follow_stats.rb | 19 +- .../forget_follower.rb | 27 ++- .../get_auto_follow_pattern.rb | 18 +- .../pause_auto_follow_pattern.rb | 22 +- .../cross_cluster_replication/pause_follow.rb | 22 +- .../put_auto_follow_pattern.rb | 21 +- .../resume_auto_follow_pattern.rb | 19 +- .../resume_follow.rb | 22 +- .../cross_cluster_replication/stats.rb | 17 +- .../cross_cluster_replication/unfollow.rb | 21 +- .../dangling_indices/delete_dangling_index.rb | 18 +- .../dangling_indices/import_dangling_index.rb | 19 +- .../dangling_indices/list_dangling_indices.rb | 13 +- .../lib/elasticsearch/api/actions/delete.rb | 65 ++++-- .../api/actions/delete_by_query.rb | 156 +++++++++++---- .../api/actions/delete_by_query_rethrottle.rb | 17 +- .../api/actions/delete_script.rb | 21 +- .../api/actions/enrich/delete_policy.rb | 13 +- .../api/actions/enrich/execute_policy.rb | 17 +- .../api/actions/enrich/get_policy.rb | 16 +- .../api/actions/enrich/put_policy.rb | 17 +- .../elasticsearch/api/actions/enrich/stats.rb | 13 +- .../elasticsearch/api/actions/eql/delete.rb | 16 +- .../lib/elasticsearch/api/actions/eql/get.rb | 19 +- .../api/actions/eql/get_status.rb | 13 +- .../elasticsearch/api/actions/eql/search.rb | 32 +-- .../api/actions/esql/async_query.rb | 32 ++- .../api/actions/esql/async_query_delete.rb | 19 +- .../api/actions/esql/async_query_get.rb | 27 ++- .../api/actions/esql/async_query_stop.rb | 18 +- .../elasticsearch/api/actions/esql/query.rb | 23 ++- .../lib/elasticsearch/api/actions/exists.rb | 64 ++++-- .../api/actions/exists_source.rb | 44 ++-- .../lib/elasticsearch/api/actions/explain.rb | 56 ++++-- .../api/actions/features/get_features.rb | 19 +- .../api/actions/features/reset_features.rb | 22 +- .../elasticsearch/api/actions/field_caps.rb | 46 +++-- .../api/actions/fleet/global_checkpoints.rb | 28 ++- .../api/actions/fleet/msearch.rb | 40 +++- .../elasticsearch/api/actions/fleet/search.rb | 66 +++++- .../lib/elasticsearch/api/actions/get.rb | 96 +++++++-- .../elasticsearch/api/actions/get_script.rb | 17 +- .../api/actions/get_script_context.rb | 11 +- .../api/actions/get_script_languages.rb | 11 +- .../elasticsearch/api/actions/get_source.rb | 47 +++-- .../api/actions/graph/explore.rb | 25 ++- .../api/actions/health_report.rb | 30 ++- .../lib/elasticsearch/api/actions/index.rb | 146 +++++++++++--- .../delete_lifecycle.rb | 17 +- .../explain_lifecycle.rb | 24 ++- .../get_lifecycle.rb | 16 +- .../index_lifecycle_management/get_status.rb | 11 +- .../migrate_to_data_tiers.rb | 29 ++- .../move_to_step.rb | 26 ++- .../put_lifecycle.rb | 20 +- .../remove_policy.rb | 16 +- .../index_lifecycle_management/retry.rb | 17 +- .../index_lifecycle_management/start.rb | 17 +- .../index_lifecycle_management/stop.rb | 18 +- .../api/actions/indices/add_block.rb | 41 ++-- .../api/actions/indices/analyze.rb | 29 ++- .../actions/indices/cancel_migrate_reindex.rb | 2 +- .../api/actions/indices/clear_cache.rb | 40 ++-- .../api/actions/indices/clone.rb | 59 ++++-- .../api/actions/indices/close.rb | 46 +++-- .../api/actions/indices/create.rb | 40 +++- .../api/actions/indices/create_data_stream.rb | 22 +- .../api/actions/indices/create_from.rb | 2 +- .../api/actions/indices/data_streams_stats.rb | 19 +- .../api/actions/indices/delete.rb | 40 ++-- .../api/actions/indices/delete_alias.rb | 27 ++- .../actions/indices/delete_data_lifecycle.rb | 17 +- .../api/actions/indices/delete_data_stream.rb | 17 +- .../actions/indices/delete_index_template.rb | 19 +- .../api/actions/indices/delete_template.rb | 21 +- .../api/actions/indices/disk_usage.rb | 37 ++-- .../api/actions/indices/downsample.rb | 26 ++- .../api/actions/indices/exists.rb | 33 +-- .../api/actions/indices/exists_alias.rb | 35 ++-- .../actions/indices/exists_index_template.rb | 19 +- .../api/actions/indices/exists_template.rb | 26 ++- .../actions/indices/explain_data_lifecycle.rb | 15 +- .../api/actions/indices/field_usage_stats.rb | 31 ++- .../api/actions/indices/flush.rb | 39 ++-- .../api/actions/indices/forcemerge.rb | 58 +++++- .../elasticsearch/api/actions/indices/get.rb | 37 ++-- .../api/actions/indices/get_alias.rb | 38 ++-- .../api/actions/indices/get_data_lifecycle.rb | 23 ++- .../indices/get_data_lifecycle_stats.rb | 11 +- .../api/actions/indices/get_data_stream.rb | 23 ++- .../api/actions/indices/get_field_mapping.rb | 47 +++-- .../api/actions/indices/get_index_template.rb | 21 +- .../api/actions/indices/get_mapping.rb | 32 +-- .../indices/get_migrate_reindex_status.rb | 2 +- .../api/actions/indices/get_settings.rb | 49 +++-- .../api/actions/indices/get_template.rb | 23 ++- .../api/actions/indices/migrate_reindex.rb | 2 +- .../actions/indices/migrate_to_data_stream.rb | 26 ++- .../api/actions/indices/modify_data_stream.rb | 13 +- .../elasticsearch/api/actions/indices/open.rb | 53 +++-- .../actions/indices/promote_data_stream.rb | 22 +- .../api/actions/indices/put_alias.rb | 31 +-- .../api/actions/indices/put_data_lifecycle.rb | 28 ++- .../api/actions/indices/put_index_template.rb | 39 +++- .../api/actions/indices/put_mapping.rb | 53 +++-- .../api/actions/indices/put_settings.rb | 59 ++++-- .../api/actions/indices/put_template.rb | 38 +++- .../api/actions/indices/recovery.rb | 36 +++- .../api/actions/indices/refresh.rb | 35 +++- .../indices/reload_search_analyzers.rb | 30 ++- .../api/actions/indices/resolve_cluster.rb | 75 +++++-- .../api/actions/indices/resolve_index.rb | 26 ++- .../api/actions/indices/rollover.rb | 64 ++++-- .../api/actions/indices/segments.rb | 28 ++- .../api/actions/indices/shard_stores.rb | 33 ++- .../api/actions/indices/shrink.rb | 51 +++-- .../indices/simulate_index_template.rb | 22 +- .../api/actions/indices/simulate_template.rb | 22 +- .../api/actions/indices/split.rb | 52 +++-- .../api/actions/indices/stats.rb | 47 +++-- .../api/actions/indices/update_aliases.rb | 19 +- .../api/actions/indices/validate_query.rb | 55 ++--- .../api/actions/inference/delete.rb | 2 +- .../api/actions/inference/get.rb | 2 +- .../inference/post_eis_chat_completion.rb | 2 +- .../api/actions/inference/put.rb | 2 +- .../api/actions/inference/put_alibabacloud.rb | 2 +- .../actions/inference/put_amazonbedrock.rb | 2 +- .../api/actions/inference/put_anthropic.rb | 2 +- .../actions/inference/put_azureaistudio.rb | 2 +- .../api/actions/inference/put_azureopenai.rb | 2 +- .../api/actions/inference/put_cohere.rb | 2 +- .../api/actions/inference/put_eis.rb | 2 +- .../actions/inference/put_elasticsearch.rb | 2 +- .../api/actions/inference/put_elser.rb | 2 +- .../actions/inference/put_googleaistudio.rb | 2 +- .../actions/inference/put_googlevertexai.rb | 2 +- .../api/actions/inference/put_hugging_face.rb | 2 +- .../api/actions/inference/put_jinaai.rb | 2 +- .../api/actions/inference/put_mistral.rb | 2 +- .../api/actions/inference/put_openai.rb | 2 +- .../api/actions/inference/put_voyageai.rb | 2 +- .../api/actions/inference/update.rb | 2 +- .../lib/elasticsearch/api/actions/info.rb | 11 +- .../actions/ingest/delete_geoip_database.rb | 18 +- .../ingest/delete_ip_location_database.rb | 20 +- .../api/actions/ingest/delete_pipeline.rb | 20 +- .../api/actions/ingest/geo_ip_stats.rb | 11 +- .../api/actions/ingest/get_geoip_database.rb | 15 +- .../ingest/get_ip_location_database.rb | 19 +- .../api/actions/ingest/get_pipeline.rb | 19 +- .../api/actions/ingest/processor_grok.rb | 13 +- .../api/actions/ingest/put_geoip_database.rb | 20 +- .../ingest/put_ip_location_database.rb | 22 +- .../api/actions/ingest/put_pipeline.rb | 19 +- .../api/actions/ingest/simulate.rb | 19 +- .../elasticsearch/api/actions/knn_search.rb | 29 ++- .../api/actions/license/delete.rb | 16 +- .../elasticsearch/api/actions/license/get.rb | 16 +- .../api/actions/license/get_basic_status.rb | 10 +- .../api/actions/license/get_trial_status.rb | 10 +- .../elasticsearch/api/actions/license/post.rb | 24 ++- .../api/actions/license/post_start_basic.rb | 19 +- .../api/actions/license/post_start_trial.rb | 18 +- .../api/actions/logstash/delete_pipeline.rb | 14 +- .../api/actions/logstash/get_pipeline.rb | 13 +- .../api/actions/logstash/put_pipeline.rb | 16 +- .../clear_trained_model_deployment_cache.rb | 14 +- .../api/actions/machine_learning/close_job.rb | 26 ++- .../machine_learning/delete_calendar.rb | 13 +- .../machine_learning/delete_calendar_event.rb | 17 +- .../machine_learning/delete_calendar_job.rb | 17 +- .../delete_data_frame_analytics.rb | 16 +- .../machine_learning/delete_datafeed.rb | 18 +- .../machine_learning/delete_expired_data.rb | 28 ++- .../actions/machine_learning/delete_filter.rb | 14 +- .../machine_learning/delete_forecast.rb | 33 ++- .../actions/machine_learning/delete_job.rb | 28 ++- .../machine_learning/delete_model_snapshot.rb | 19 +- .../machine_learning/delete_trained_model.rb | 17 +- .../delete_trained_model_alias.rb | 19 +- .../machine_learning/estimate_model_memory.rb | 15 +- .../machine_learning/evaluate_data_frame.rb | 16 +- .../explain_data_frame_analytics.rb | 30 ++- .../api/actions/machine_learning/flush_job.rb | 37 ++-- .../api/actions/machine_learning/forecast.rb | 33 ++- .../actions/machine_learning/get_buckets.rb | 48 +++-- .../machine_learning/get_calendar_events.rb | 22 +- .../actions/machine_learning/get_calendars.rb | 26 +-- .../machine_learning/get_categories.rb | 36 ++-- .../get_data_frame_analytics.rb | 35 +++- .../get_data_frame_analytics_stats.rb | 30 ++- .../machine_learning/get_datafeed_stats.rb | 29 ++- .../actions/machine_learning/get_datafeeds.rb | 32 ++- .../actions/machine_learning/get_filters.rb | 17 +- .../machine_learning/get_influencers.rb | 39 ++-- .../actions/machine_learning/get_job_stats.rb | 24 ++- .../api/actions/machine_learning/get_jobs.rb | 31 ++- .../machine_learning/get_memory_stats.rb | 21 +- .../get_model_snapshot_upgrade_stats.rb | 26 ++- .../machine_learning/get_model_snapshots.rb | 41 ++-- .../machine_learning/get_overall_buckets.rb | 60 ++++-- .../actions/machine_learning/get_records.rb | 42 ++-- .../machine_learning/get_trained_models.rb | 40 ++-- .../get_trained_models_stats.rb | 26 ++- .../machine_learning/infer_trained_model.rb | 17 +- .../api/actions/machine_learning/info.rb | 17 +- .../api/actions/machine_learning/open_job.rb | 23 ++- .../machine_learning/post_calendar_events.rb | 14 +- .../api/actions/machine_learning/post_data.rb | 20 +- .../preview_data_frame_analytics.rb | 23 ++- .../machine_learning/preview_datafeed.rb | 37 ++-- .../actions/machine_learning/put_calendar.rb | 14 +- .../machine_learning/put_calendar_job.rb | 16 +- .../put_data_frame_analytics.rb | 21 +- .../actions/machine_learning/put_datafeed.rb | 36 +++- .../actions/machine_learning/put_filter.rb | 16 +- .../api/actions/machine_learning/put_job.rb | 31 ++- .../machine_learning/put_trained_model.rb | 22 +- .../put_trained_model_alias.rb | 36 +++- .../put_trained_model_definition_part.rb | 19 +- .../put_trained_model_vocabulary.rb | 16 +- .../api/actions/machine_learning/reset_job.rb | 23 ++- .../machine_learning/revert_model_snapshot.rb | 34 +++- .../machine_learning/set_upgrade_mode.rb | 28 ++- .../start_data_frame_analytics.rb | 31 ++- .../machine_learning/start_datafeed.rb | 43 +++- .../start_trained_model_deployment.rb | 41 ++-- .../stop_data_frame_analytics.rb | 34 +++- .../actions/machine_learning/stop_datafeed.rb | 31 ++- .../stop_trained_model_deployment.rb | 19 +- .../update_data_frame_analytics.rb | 16 +- .../machine_learning/update_datafeed.rb | 35 +++- .../actions/machine_learning/update_filter.rb | 15 +- .../actions/machine_learning/update_job.rb | 13 +- .../machine_learning/update_model_snapshot.rb | 17 +- .../update_trained_model_deployment.rb | 21 +- .../machine_learning/upgrade_job_snapshot.rb | 30 ++- .../lib/elasticsearch/api/actions/mget.rb | 50 +++-- .../api/actions/migration/deprecations.rb | 17 +- .../migration/get_feature_upgrade_status.rb | 14 +- .../actions/migration/post_feature_upgrade.rb | 14 +- .../lib/elasticsearch/api/actions/msearch.rb | 56 ++++-- .../api/actions/msearch_template.rb | 40 ++-- .../elasticsearch/api/actions/mtermvectors.rb | 62 +++--- .../clear_repositories_metering_archive.rb | 23 ++- .../nodes/get_repositories_metering_info.rb | 16 +- .../api/actions/nodes/hot_threads.rb | 30 +-- .../elasticsearch/api/actions/nodes/info.rb | 25 +-- .../actions/nodes/reload_secure_settings.rb | 23 ++- .../elasticsearch/api/actions/nodes/stats.rb | 46 +++-- .../elasticsearch/api/actions/nodes/usage.rb | 24 ++- .../api/actions/open_point_in_time.rb | 59 ++++-- .../lib/elasticsearch/api/actions/ping.rb | 11 +- .../elasticsearch/api/actions/put_script.rb | 31 +-- .../api/actions/query_rules/delete_rule.rb | 18 +- .../api/actions/query_rules/delete_ruleset.rb | 30 ++- .../api/actions/query_rules/get_rule.rb | 17 +- .../api/actions/query_rules/get_ruleset.rb | 13 +- .../api/actions/query_rules/list_rulesets.rb | 15 +- .../api/actions/query_rules/put_rule.rb | 23 ++- .../api/actions/query_rules/put_ruleset.rb | 20 +- .../api/actions/query_rules/test.rb | 19 +- .../elasticsearch/api/actions/rank_eval.rb | 27 +-- .../lib/elasticsearch/api/actions/reindex.rb | 171 ++++++++++++++-- .../api/actions/reindex_rethrottle.rb | 23 ++- .../api/actions/render_search_template.rb | 24 ++- .../api/actions/scripts_painless_execute.rb | 17 +- .../lib/elasticsearch/api/actions/scroll.rb | 2 +- .../lib/elasticsearch/api/actions/search.rb | 189 +++++++++++++----- .../api/actions/search_application/delete.rb | 21 +- .../delete_behavioral_analytics.rb | 11 +- .../api/actions/search_application/get.rb | 20 +- .../get_behavioral_analytics.rb | 12 +- .../api/actions/search_application/list.rb | 25 +-- .../post_behavioral_analytics_event.rb | 20 +- .../api/actions/search_application/put.rb | 24 +-- .../put_behavioral_analytics.rb | 12 +- .../search_application/render_query.rb | 18 +- .../api/actions/search_application/search.rb | 26 +-- .../elasticsearch/api/actions/search_mvt.rb | 177 +++++++++++++--- .../api/actions/search_shards.rb | 42 ++-- .../api/actions/search_template.rb | 51 +++-- .../searchable_snapshots/cache_stats.rb | 16 +- .../searchable_snapshots/clear_cache.rb | 20 +- .../api/actions/searchable_snapshots/mount.rb | 29 +-- .../api/actions/searchable_snapshots/stats.rb | 16 +- .../actions/security/activate_user_profile.rb | 2 +- .../api/actions/security/authenticate.rb | 14 +- .../api/actions/security/bulk_delete_role.rb | 16 +- .../api/actions/security/bulk_put_role.rb | 16 +- .../actions/security/bulk_update_api_keys.rb | 21 +- .../api/actions/security/change_password.rb | 18 +- .../actions/security/clear_api_key_cache.rb | 18 +- .../security/clear_cached_privileges.rb | 16 +- .../actions/security/clear_cached_realms.rb | 22 +- .../actions/security/clear_cached_roles.rb | 15 +- .../security/clear_cached_service_tokens.rb | 25 ++- .../api/actions/security/create_api_key.rb | 22 +- .../security/create_cross_cluster_api_key.rb | 21 +- .../actions/security/create_service_token.rb | 28 ++- .../api/actions/security/delegate_pki.rb | 17 +- .../api/actions/security/delete_privileges.rb | 22 +- .../api/actions/security/delete_role.rb | 17 +- .../actions/security/delete_role_mapping.rb | 18 +- .../actions/security/delete_service_token.rb | 21 +- .../api/actions/security/delete_user.rb | 15 +- .../api/actions/security/disable_user.rb | 17 +- .../actions/security/disable_user_profile.rb | 2 +- .../api/actions/security/enable_user.rb | 16 +- .../actions/security/enable_user_profile.rb | 2 +- .../api/actions/security/enroll_kibana.rb | 13 +- .../api/actions/security/enroll_node.rb | 13 +- .../api/actions/security/get_api_key.rb | 36 ++-- .../security/get_builtin_privileges.rb | 11 +- .../api/actions/security/get_privileges.rb | 24 ++- .../api/actions/security/get_role.rb | 19 +- .../api/actions/security/get_role_mapping.rb | 15 +- .../actions/security/get_service_accounts.rb | 23 ++- .../security/get_service_credentials.rb | 20 +- .../api/actions/security/get_settings.rb | 18 +- .../api/actions/security/get_token.rb | 21 +- .../api/actions/security/get_user.rb | 17 +- .../actions/security/get_user_privileges.rb | 19 +- .../api/actions/security/get_user_profile.rb | 2 +- .../api/actions/security/grant_api_key.rb | 30 ++- .../api/actions/security/has_privileges.rb | 15 +- .../security/has_privileges_user_profile.rb | 2 +- .../actions/security/invalidate_api_key.rb | 22 +- .../api/actions/security/invalidate_token.rb | 21 +- .../api/actions/security/oidc_authenticate.rb | 15 +- .../api/actions/security/oidc_logout.rb | 16 +- .../security/oidc_prepare_authentication.rb | 16 +- .../api/actions/security/put_privileges.rb | 26 ++- .../api/actions/security/put_role.rb | 19 +- .../api/actions/security/put_role_mapping.rb | 34 +++- .../api/actions/security/put_user.rb | 22 +- .../api/actions/security/query_api_keys.rb | 28 ++- .../api/actions/security/query_role.rb | 19 +- .../api/actions/security/query_user.rb | 20 +- .../api/actions/security/saml_authenticate.rb | 21 +- .../actions/security/saml_complete_logout.rb | 20 +- .../api/actions/security/saml_invalidate.rb | 19 +- .../api/actions/security/saml_logout.rb | 17 +- .../security/saml_prepare_authentication.rb | 22 +- .../saml_service_provider_metadata.rb | 15 +- .../actions/security/suggest_user_profiles.rb | 4 +- .../api/actions/security/update_api_key.rb | 27 ++- .../security/update_cross_cluster_api_key.rb | 24 ++- .../api/actions/security/update_settings.rb | 22 +- .../security/update_user_profile_data.rb | 7 +- .../api/actions/simulate/ingest.rb | 33 ++- .../actions/snapshot/cleanup_repository.rb | 21 +- .../api/actions/snapshot/clone.rb | 27 ++- .../api/actions/snapshot/create.rb | 27 ++- .../api/actions/snapshot/create_repository.rb | 31 ++- .../api/actions/snapshot/delete.rb | 24 ++- .../api/actions/snapshot/delete_repository.rb | 25 ++- .../elasticsearch/api/actions/snapshot/get.rb | 62 ++++-- .../api/actions/snapshot/get_repository.rb | 22 +- .../actions/snapshot/repository_analyze.rb | 115 +++++++++-- .../api/actions/snapshot/restore.rb | 37 +++- .../api/actions/snapshot/status.rb | 41 ++-- .../api/actions/snapshot/verify_repository.rb | 21 +- .../delete_lifecycle.rb | 20 +- .../execute_lifecycle.rb | 20 +- .../execute_retention.rb | 18 +- .../get_lifecycle.rb | 19 +- .../get_stats.rb | 15 +- .../get_status.rb | 18 +- .../put_lifecycle.rb | 25 ++- .../snapshot_lifecycle_management/start.rb | 20 +- .../snapshot_lifecycle_management/stop.rb | 24 ++- .../api/actions/sql/clear_cursor.rb | 12 +- .../api/actions/sql/delete_async.rb | 17 +- .../api/actions/sql/get_async.rb | 27 ++- .../api/actions/sql/get_async_status.rb | 13 +- .../elasticsearch/api/actions/sql/query.rb | 17 +- .../api/actions/sql/translate.rb | 14 +- .../api/actions/ssl/certificates.rb | 20 +- .../api/actions/synonyms/delete_synonym.rb | 24 ++- .../actions/synonyms/delete_synonym_rule.rb | 17 +- .../api/actions/synonyms/get_synonym.rb | 16 +- .../api/actions/synonyms/get_synonym_rule.rb | 17 +- .../api/actions/synonyms/get_synonyms_sets.rb | 15 +- .../api/actions/synonyms/put_synonym.rb | 18 +- .../api/actions/synonyms/put_synonym_rule.rb | 21 +- .../elasticsearch/api/actions/tasks/cancel.rb | 28 ++- .../elasticsearch/api/actions/tasks/get.rb | 23 ++- .../elasticsearch/api/actions/tasks/list.rb | 82 ++++++-- .../elasticsearch/api/actions/terms_enum.rb | 18 +- .../elasticsearch/api/actions/termvectors.rb | 69 +++++-- .../text_structure/find_field_structure.rb | 101 ++++++++-- .../text_structure/find_message_structure.rb | 96 +++++++-- .../actions/text_structure/find_structure.rb | 116 +++++++++-- .../text_structure/test_grok_pattern.rb | 18 +- .../api/actions/transform/delete_transform.rb | 20 +- .../api/actions/transform/get_node_stats.rb | 13 +- .../api/actions/transform/get_transform.rb | 31 ++- .../actions/transform/get_transform_stats.rb | 27 ++- .../actions/transform/preview_transform.rb | 30 +-- .../api/actions/transform/put_transform.rb | 40 +++- .../api/actions/transform/reset_transform.rb | 20 +- .../transform/schedule_now_transform.rb | 19 +- .../api/actions/transform/start_transform.rb | 29 ++- .../api/actions/transform/stop_transform.rb | 29 ++- .../api/actions/transform/update_transform.rb | 25 ++- .../actions/transform/upgrade_transforms.rb | 26 ++- .../lib/elasticsearch/api/actions/update.rb | 66 +++--- .../api/actions/update_by_query.rb | 169 ++++++++++++---- .../api/actions/update_by_query_rethrottle.rb | 17 +- .../api/actions/watcher/ack_watch.rb | 25 ++- .../api/actions/watcher/activate_watch.rb | 13 +- .../api/actions/watcher/deactivate_watch.rb | 13 +- .../api/actions/watcher/delete_watch.rb | 19 +- .../api/actions/watcher/execute_watch.rb | 25 ++- .../api/actions/watcher/get_settings.rb | 15 +- .../api/actions/watcher/get_watch.rb | 12 +- .../api/actions/watcher/put_watch.rb | 31 ++- .../api/actions/watcher/query_watches.rb | 16 +- .../api/actions/watcher/start.rb | 13 +- .../api/actions/watcher/stats.rb | 16 +- .../elasticsearch/api/actions/watcher/stop.rb | 15 +- .../api/actions/watcher/update_settings.rb | 21 +- .../elasticsearch/api/actions/xpack/info.rb | 22 +- .../elasticsearch/api/actions/xpack/usage.rb | 16 +- 509 files changed, 8638 insertions(+), 4481 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb index 21fefe4527..e122605550 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb @@ -15,19 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module AsyncSearch module Actions - # Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + # Delete an async search. + # If the asynchronous search is still running, it is cancelled. + # Otherwise, the saved search results are deleted. + # If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the +cancel_task+ cluster privilege. # - # @option arguments [String] :id The async search ID + # @option arguments [String] :id A unique identifier for the async search. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'async_search.delete' } @@ -47,7 +50,7 @@ def delete(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_DELETE - path = "_async_search/#{Utils.__listify(_id)}" + path = "_async_search/#{Utils.listify(_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb index 92c26c5887..7d4d756190 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb @@ -15,22 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module AsyncSearch module Actions - # Retrieves the results of a previously submitted async search request given its ID. + # Get async search results. + # Retrieve the results of a previously submitted asynchronous search request. + # If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. # - # @option arguments [String] :id The async search ID - # @option arguments [Time] :wait_for_completion_timeout Specify the time that the request should block waiting for the final response - # @option arguments [Time] :keep_alive Specify the time interval in which the results (partial or final) for this search will be available + # @option arguments [String] :id A unique identifier for the async search. (*Required*) + # @option arguments [Time] :keep_alive The length of time that the async search should be available in the cluster. + # When not specified, the +keep_alive+ set with the corresponding submit async request will be used. + # Otherwise, it is possible to override the value and extend the validity of the request. + # When this period expires, the search, if still running, is cancelled. + # If the search is completed, its saved results are deleted. # @option arguments [Boolean] :typed_keys Specify whether aggregation and suggester names should be prefixed by their respective types in the response + # @option arguments [Time] :wait_for_completion_timeout Specifies to wait for the search to be completed up until the provided timeout. + # Final results will be returned if available before the timeout expires, otherwise the currently available results will be returned once the timeout expires. + # By default no timeout is set meaning that the currently available results will be returned without any additional wait. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'async_search.get' } @@ -50,7 +58,7 @@ def get(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_GET - path = "_async_search/#{Utils.__listify(_id)}" + path = "_async_search/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb index 4b2008d03d..189a996de5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb @@ -15,20 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module AsyncSearch module Actions - # Retrieves the status of a previously submitted async search request given its ID. + # Get the async search status. + # Get the status of a previously submitted async search request given its identifier, without retrieving search results. + # If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: + # * The user or API key that submitted the original async search request. + # * Users that have the +monitor+ cluster privilege or greater privileges. # - # @option arguments [String] :id The async search ID - # @option arguments [Time] :keep_alive Specify the time interval in which the results (partial or final) for this search will be available + # @option arguments [String] :id A unique identifier for the async search. (*Required*) + # @option arguments [Time] :keep_alive The length of time that the async search needs to be available. + # Ongoing async searches and any saved search results are deleted after this period. Server default: 5d. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit # def status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'async_search.status' } @@ -48,7 +53,7 @@ def status(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_GET - path = "_async_search/status/#{Utils.__listify(_id)}" + path = "_async_search/status/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb index 34c9b80ae1..cca52aa334 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb @@ -15,63 +15,70 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module AsyncSearch module Actions - # Executes a search request asynchronously. + # Run an async search. + # When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + # Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + # By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + # The maximum allowed size for a stored async search response can be set by changing the +search.max_async_search_response_size+ cluster level setting. # - # @option arguments [List] :index A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - # @option arguments [Time] :wait_for_completion_timeout Specify the time that the request should block waiting for the final response - # @option arguments [Boolean] :keep_on_completion Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false) - # @option arguments [Time] :keep_alive Update the time interval in which the results (partial or final) for this search will be available - # @option arguments [Number] :batched_reduce_size The number of shard results that should be reduced at once on the coordinating node. This value should be used as the granularity at which progress results will be made available. - # @option arguments [Boolean] :request_cache Specify if request cache should be used for this request or not, defaults to true + # @option arguments [String, Array] :index A comma-separated list of index names to search; use +_all+ or empty string to perform the operation on all indices + # @option arguments [Time] :wait_for_completion_timeout Blocks and waits until the search is completed up to a certain timeout. + # When the async search completes within the timeout, the response won’t include the ID as the results are not stored in the cluster. Server default: 1s. + # @option arguments [Time] :keep_alive Specifies how long the async search needs to be available. + # Ongoing async searches and any saved search results are deleted after this period. Server default: 5d. + # @option arguments [Boolean] :keep_on_completion If +true+, results are stored for later retrieval when the search completes within the +wait_for_completion_timeout+. + # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes +_all+ string or when no indices have been specified) + # @option arguments [Boolean] :allow_partial_search_results Indicate if an error should be returned if there is a partial search failure or timeout # @option arguments [String] :analyzer The analyzer to use for the query string # @option arguments [Boolean] :analyze_wildcard Specify whether wildcard and prefix queries should be analyzed (default: false) - # @option arguments [Boolean] :ccs_minimize_roundtrips When doing a cross-cluster search, setting it to true may improve overall search latency, particularly when searching clusters with a large number of shards. However, when set to true, the progress of searches on the remote clusters will not be received until the search finishes on all clusters. - # @option arguments [String] :default_operator The default operator for query string query (AND or OR) (options: AND, OR) + # @option arguments [Integer] :batched_reduce_size Affects how often partial results become available, which happens whenever shard results are reduced. + # A partial reduction is performed every time the coordinating node has received a certain number of new shard responses (5 by default). Server default: 5. + # @option arguments [Boolean] :ccs_minimize_roundtrips The default value is the only supported value. + # @option arguments [String] :default_operator The default operator for query string query (AND or OR) # @option arguments [String] :df The field to use as default where no field prefix is given in the query string + # @option arguments [String, Array] :docvalue_fields A comma-separated list of fields to return as the docvalue representation of a field for each hit + # @option arguments [String, Array] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. # @option arguments [Boolean] :explain Specify whether to return detailed information about score computation as part of a hit - # @option arguments [List] :stored_fields A comma-separated list of stored fields to return as part of a hit - # @option arguments [List] :docvalue_fields A comma-separated list of fields to return as the docvalue representation of a field for each hit - # @option arguments [Number] :from Starting offset (default: 0) - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) # @option arguments [Boolean] :ignore_throttled Whether specified concrete, expanded or aliased indices should be ignored when throttled - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) + # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) # @option arguments [Boolean] :lenient Specify whether format-based query failures (such as providing text to a numeric field) should be ignored + # @option arguments [Integer] :max_concurrent_shard_requests The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random) - # @option arguments [Boolean] :rest_total_hits_as_int Indicates whether hits.total should be rendered as an integer or an object in the rest search response - # @option arguments [String] :q Query in the Lucene query string syntax - # @option arguments [List] :routing A comma-separated list of specific routing values - # @option arguments [String] :search_type Search operation type (options: query_then_fetch, dfs_query_then_fetch) - # @option arguments [Number] :size Number of hits to return (default: 10) - # @option arguments [List] :sort A comma-separated list of : pairs - # @option arguments [List] :_source True or false to return the _source field or not, or a list of fields to return - # @option arguments [List] :_source_excludes A list of fields to exclude from the returned _source field - # @option arguments [List] :_source_includes A list of fields to extract and return from the _source field - # @option arguments [Number] :terminate_after The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early. - # @option arguments [List] :stats Specific 'tag' of the request for logging and statistical purposes - # @option arguments [String] :suggest_field Specify which field to use for suggestions - # @option arguments [String] :suggest_mode Specify suggest mode (options: missing, popular, always) - # @option arguments [Number] :suggest_size How many suggestions to return in response - # @option arguments [String] :suggest_text The source text for which the suggestions should be returned + # @option arguments [Boolean] :request_cache Specify if request cache should be used for this request or not, defaults to true Server default: true. + # @option arguments [String] :routing A comma-separated list of specific routing values + # @option arguments [String] :search_type Search operation type + # @option arguments [Array] :stats Specific 'tag' of the request for logging and statistical purposes + # @option arguments [String, Array] :stored_fields A comma-separated list of stored fields to return as part of a hit + # @option arguments [String] :suggest_field Specifies which field to use for suggestions. + # @option arguments [String] :suggest_mode Specify suggest mode + # @option arguments [Integer] :suggest_size How many suggestions to return in response + # @option arguments [String] :suggest_text The source text for which the suggestions should be returned. + # @option arguments [Integer] :terminate_after The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early. # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [Boolean, Integer] :track_total_hits Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number. # @option arguments [Boolean] :track_scores Whether to calculate and return scores even if they are not used for sorting - # @option arguments [Boolean|long] :track_total_hits Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number. - # @option arguments [Boolean] :allow_partial_search_results Indicate if an error should be returned if there is a partial search failure or timeout # @option arguments [Boolean] :typed_keys Specify whether aggregation and suggester names should be prefixed by their respective types in the response + # @option arguments [Boolean] :rest_total_hits_as_int Indicates whether hits.total should be rendered as an integer or an object in the rest search response # @option arguments [Boolean] :version Specify whether to return document version as part of a hit + # @option arguments [Boolean, String, Array] :_source True or false to return the _source field or not, or a list of fields to return + # @option arguments [String, Array] :_source_excludes A list of fields to exclude from the returned _source field + # @option arguments [String, Array] :_source_includes A list of fields to extract and return from the _source field # @option arguments [Boolean] :seq_no_primary_term Specify whether to return sequence number and primary term of the last modification of each hit - # @option arguments [Number] :max_concurrent_shard_requests The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests + # @option arguments [String] :q Query in the Lucene query string syntax + # @option arguments [Integer] :size Number of hits to return (default: 10) + # @option arguments [Integer] :from Starting offset (default: 0) + # @option arguments [String] :sort A comma-separated list of : pairs # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The search definition using the Query DSL + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit # def submit(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'async_search.submit' } @@ -84,13 +91,13 @@ def submit(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = if _index - "#{Utils.__listify(_index)}/_async_search" + "#{Utils.listify(_index)}/_async_search" else '_async_search' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb b/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb index c1a0491414..5a174b06c0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb @@ -15,32 +15,122 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Allows to perform multiple index/update/delete operations in a single request. + # Bulk index or delete documents. + # Perform multiple +index+, +create+, +delete+, and +update+ actions in a single request. + # This reduces overhead and can greatly increase indexing speed. + # If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + # * To use the +create+ action, you must have the +create_doc+, +create+, +index+, or +write+ index privilege. Data streams support only the +create+ action. + # * To use the +index+ action, you must have the +create+, +index+, or +write+ index privilege. + # * To use the +delete+ action, you must have the +delete+ or +write+ index privilege. + # * To use the +update+ action, you must have the +index+ or +write+ index privilege. + # * To automatically create a data stream or index with a bulk API request, you must have the +auto_configure+, +create_index+, or +manage+ index privilege. + # * To make the result of a bulk operation visible to search using the +refresh+ parameter, you must have the +maintenance+ or +manage+ index privilege. + # Automatic data stream creation requires a matching index template with data stream enabled. + # The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + # + + # action_and_meta_data\n + # optional_source\n + # action_and_meta_data\n + # optional_source\n + # .... + # action_and_meta_data\n + # optional_source\n + # + + # The +index+ and +create+ actions expect a source on the next line and have the same semantics as the +op_type+ parameter in the standard index API. + # A +create+ action fails if a document with the same ID already exists in the target + # An +index+ action adds or replaces a document as necessary. + # NOTE: Data streams support only the +create+ action. + # To update or delete a document in a data stream, you must target the backing index containing the document. + # An +update+ action expects that the partial doc, upsert, and script and its options are specified on the next line. + # A +delete+ action does not expect a source on the next line and has the same semantics as the standard delete API. + # NOTE: The final line of data must end with a newline character (+\n+). + # Each newline character may be preceded by a carriage return (+\r+). + # When sending NDJSON data to the +_bulk+ endpoint, use a +Content-Type+ header of +application/json+ or +application/x-ndjson+. + # Because this format uses literal newline characters (+\n+) as delimiters, make sure that the JSON actions and sources are not pretty printed. + # If you provide a target in the request path, it is used for any actions that don't explicitly specify an +_index+ argument. + # A note on the format: the idea here is to make processing as fast as possible. + # As some of the actions are redirected to other shards on other nodes, only +action_meta_data+ is parsed on the receiving node side. + # Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + # There is no "correct" number of actions to perform in a single bulk request. + # Experiment with different settings to find the optimal size for your particular workload. + # Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + # It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + # For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + # **Client suppport for bulk requests** + # Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + # * Go: Check out +esutil.BulkIndexer+ + # * Perl: Check out +Search::Elasticsearch::Client::5_0::Bulk+ and +Search::Elasticsearch::Client::5_0::Scroll+ + # * Python: Check out +elasticsearch.helpers.*+ + # * JavaScript: Check out +client.helpers.*+ + # * .NET: Check out +BulkAllObservable+ + # * PHP: Check out bulk indexing. + # **Submitting bulk requests with cURL** + # If you're providing text file input to +curl+, you must use the +--data-binary+ flag instead of plain +-d+. + # The latter doesn't preserve newlines. For example: + # + + # $ cat requests + # { "index" : { "_index" : "test", "_id" : "1" } } + # { "field1" : "value1" } + # $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + # {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + # + + # **Optimistic concurrency control** + # Each +index+ and +delete+ action within a bulk API call may include the +if_seq_no+ and +if_primary_term+ parameters in their respective action and meta data lines. + # The +if_seq_no+ and +if_primary_term+ parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + # **Versioning** + # Each bulk item can include the version value using the +version+ field. + # It automatically follows the behavior of the index or delete operation based on the +_version+ mapping. + # It also support the +version_type+. + # **Routing** + # Each bulk item can include the routing value using the +routing+ field. + # It automatically follows the behavior of the index or delete operation based on the +_routing+ mapping. + # NOTE: Data streams do not support custom routing unless they were created with the +allow_custom_routing+ setting enabled in the template. + # **Wait for active shards** + # When making bulk calls, you can set the +wait_for_active_shards+ parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + # **Refresh** + # Control when the changes made by this request are visible to search. + # NOTE: Only the shards that receive the bulk request will be affected by refresh. + # Imagine a +_bulk?refresh=wait_for+ request with three documents in it that happen to be routed to different shards in an index with five shards. + # The request will only wait for those three shards to refresh. + # The other two shards that make up the index do not participate in the +_bulk+ request at all. # - # @option arguments [String] :index Default index for items which don't provide one - # @option arguments [String] :wait_for_active_shards Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) - # @option arguments [String] :refresh If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. (options: true, false, wait_for) - # @option arguments [String] :routing Specific routing value - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [List] :_source True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request - # @option arguments [List] :_source_excludes Default list of fields to exclude from the returned _source field, can be overridden on each sub-request - # @option arguments [List] :_source_includes Default list of fields to extract and return from the _source field, can be overridden on each sub-request - # @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with - # @option arguments [Boolean] :require_alias If true, the request’s actions must target an index alias. Defaults to false. - # @option arguments [Boolean] :require_data_stream If true, the request's actions must target a data stream (existing or to-be-created). Default to false - # @option arguments [Boolean] :list_executed_pipelines Sets list_executed_pipelines for all incoming documents. Defaults to unset (false) - # @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Defaults to true. + # @option arguments [String] :index The name of the data stream, index, or index alias to perform bulk actions on. + # @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Server default: true. + # @option arguments [Boolean] :list_executed_pipelines If +true+, the response will include the ingest pipelines that were run for each index or create. + # @option arguments [String] :pipeline The pipeline identifier to use to preprocess incoming documents. + # If the index has a default ingest pipeline specified, setting the value to +_none+ turns off the default ingest pipeline for this request. + # If a final pipeline is configured, it will always run regardless of the value of this parameter. + # @option arguments [String] :refresh If +true+, Elasticsearch refreshes the affected shards to make this operation visible to search. + # If +wait_for+, wait for a refresh to make this operation visible to search. + # If +false+, do nothing with refreshes. + # Valid values: +true+, +false+, +wait_for+. Server default: false. + # @option arguments [String] :routing A custom value that is used to route operations to a specific shard. + # @option arguments [Boolean, String, Array] :_source Indicates whether to return the +_source+ field (+true+ or +false+) or contains a list of fields to return. + # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude from the response. + # You can also use this parameter to exclude fields from the subset specified in +_source_includes+ query parameter. + # If the +_source+ parameter is +false+, this parameter is ignored. + # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. + # If this parameter is specified, only these source fields are returned. + # You can exclude fields from this subset using the +_source_excludes+ query parameter. + # If the +_source+ parameter is +false+, this parameter is ignored. + # @option arguments [Time] :timeout The period each action waits for the following operations: automatic index creation, dynamic mapping updates, and waiting for active shards. + # The default is +1m+ (one minute), which guarantees Elasticsearch waits for at least the timeout before failing. + # The actual wait time could be longer, particularly when multiple waits occur. Server default: 1m. + # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. + # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). + # The default is +1+, which waits for each primary shard to be active. Server default: 1. + # @option arguments [Boolean] :require_alias If +true+, the request's actions must target an index alias. + # @option arguments [Boolean] :require_data_stream If +true+, the request's actions must target a data stream (existing or to be created). # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [String|Array] :body The operation definition and data (action-data pairs), separated by newlines. Array of Strings, Header/Data pairs, - # or the conveniency "combined" format can be passed, refer to Elasticsearch::API::Utils.__bulkify documentation. + # @option arguments [String|Array] :body operations. Array of Strings, Header/Data pairs, or the conveniency "combined" format can be passed, refer to Elasticsearch::API::Utils.bulkify documentation. # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-bulk # def bulk(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'bulk' } @@ -55,20 +145,20 @@ def bulk(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = if _index - "#{Utils.__listify(_index)}/_bulk" + "#{Utils.listify(_index)}/_bulk" else '_bulk' end params = Utils.process_params(arguments) payload = if body.is_a? Array - Elasticsearch::API::Utils.__bulkify(body) + Elasticsearch::API::Utils.bulkify(body) else body end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb index 8c13623618..02d7c60201 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb @@ -15,26 +15,37 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Shows information about currently configured aliases to indices including filter and routing infos. + # Get aliases. + # Get the cluster's index aliases, including filter and routing information. + # This API does not return data stream aliases. + # IMPORTANT: CAT APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API. # - # @option arguments [List] :name A comma-separated list of alias names to return - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [Boolean] :v Verbose mode. Display column headers - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Time] :master_timeout Timeout for waiting for new cluster state in case it is blocked + # @option arguments [String, Array] :name A comma-separated list of aliases to retrieve. Supports wildcards (+*+). To retrieve all aliases, omit this parameter or use +*+ or +_all+. + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # It supports comma-separated values, such as +open,hidden+. + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # To indicated that the request should never timeout, you can set it to +-1+. Server default: 30s. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-alias.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-aliases # def aliases(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.aliases' } @@ -53,12 +64,12 @@ def aliases(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _name - "_cat/aliases/#{Utils.__listify(_name)}" + "_cat/aliases/#{Utils.listify(_name)}" else '_cat/aliases' end params = Utils.process_params(arguments) - params[:h] = Utils.__listify(params[:h]) if params[:h] + params[:h] = Utils.listify(params[:h]) if params[:h] Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb index f37b53e12d..736d2ae4de 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb @@ -15,27 +15,36 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using. + # Get shard allocation information. + # Get a snapshot of the number of shards allocated to each data node and their disk space. + # IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. # - # @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb) - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String, Array] :node_id A comma-separated list of node identifiers or names used to limit the returned information. + # @option arguments [String] :bytes The unit used to display byte values. + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the + # local cluster state. If +false+ the list of selected nodes are computed + # from the cluster state of the master node. In both cases the coordinating + # node will send requests for further information to each selected node. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-allocation.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-allocation # def allocation(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.allocation' } @@ -54,12 +63,12 @@ def allocation(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _node_id - "_cat/allocation/#{Utils.__listify(_node_id)}" + "_cat/allocation/#{Utils.listify(_node_id)}" else '_cat/allocation' end params = Utils.process_params(arguments) - params[:h] = Utils.__listify(params[:h]) if params[:h] + params[:h] = Utils.listify(params[:h]) if params[:h] Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb index 0765a09a55..d3e11344d2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb @@ -15,26 +15,39 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Returns information about existing component_templates templates. + # Get component templates. + # Get information about component templates in a cluster. + # Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. + # IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. + # They are not intended for use by applications. For application consumption, use the get component template API. # - # @option arguments [String] :name A pattern that returned component template names must match - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String] :name The name of the component template. + # It accepts wildcard expressions. + # If it is omitted, all component templates are returned. + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the + # local cluster state. If +false+ the list of selected nodes are computed + # from the cluster state of the master node. In both cases the coordinating + # node will send requests for further information to each selected node. + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. Server default: 30s. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-component-templates.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-component-templates # def component_templates(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.component_templates' } @@ -53,7 +66,7 @@ def component_templates(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _name - "_cat/component_templates/#{Utils.__listify(_name)}" + "_cat/component_templates/#{Utils.listify(_name)}" else '_cat/component_templates' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb index 8afd4cade6..8ed35add0d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb @@ -15,24 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Provides quick access to the document count of the entire cluster, or individual indices. + # Get a document count. + # Get quick access to a document count for a data stream, an index, or an entire cluster. + # The document count only includes live documents, not deleted documents which have not yet been removed by the merge process. + # IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. + # They are not intended for use by applications. For application consumption, use the count API. # - # @option arguments [List] :index A comma-separated list of index names to limit the returned information - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases used to limit the request. + # It supports wildcards (+*+). + # To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-count.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-count # def count(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.count' } @@ -45,18 +55,18 @@ def count(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = if _index - "_cat/count/#{Utils.__listify(_index)}" + "_cat/count/#{Utils.listify(_index)}" else '_cat/count' end params = Utils.process_params(arguments) - params[:h] = Utils.__listify(params[:h]) if params[:h] + params[:h] = Utils.listify(params[:h]) if params[:h] Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb index 592958c962..751b9df647 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb @@ -15,25 +15,33 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Shows how much heap memory is currently being used by fielddata on every data node in the cluster. + # Get field data cache information. + # Get the amount of heap memory currently used by the field data cache on every data node in the cluster. + # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. + # They are not intended for use by applications. For application consumption, use the nodes stats API. # - # @option arguments [List] :fields A comma-separated list of fields to return the fielddata size - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb) - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String, Array] :fields Comma-separated list of fields used to limit returned information. + # To retrieve all fields, omit this parameter. + # @option arguments [String] :bytes The unit used to display byte values. + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-fielddata.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-fielddata # def fielddata(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.fielddata' } @@ -52,7 +60,7 @@ def fielddata(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _fields - "_cat/fielddata/#{Utils.__listify(_fields)}" + "_cat/fielddata/#{Utils.listify(_fields)}" else '_cat/fielddata' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb index 59309d5084..9e3c6af868 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb @@ -15,25 +15,38 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Returns a concise representation of the cluster health. + # Get the cluster health status. + # IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. + # They are not intended for use by applications. For application consumption, use the cluster health API. + # This API is often used to check malfunctioning clusters. + # To help you track cluster health alongside log files and alerting systems, the API returns timestamps in two formats: + # +HH:MM:SS+, which is human-readable but includes no date information; + # +Unix epoch time+, which is machine-sortable and includes date information. + # The latter format is useful for cluster recoveries that take multiple days. + # You can use the cat health API to verify cluster health across multiple nodes. + # You also can use the API to track the recovery of a large cluster over a longer period of time. # - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos) - # @option arguments [Boolean] :ts Set to false to disable timestamping - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String] :time The unit used to display time values. + # @option arguments [Boolean] :ts If true, returns +HH:MM:SS+ and Unix epoch timestamps. Server default: true. + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-health.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-health # def health(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.health' } @@ -41,12 +54,12 @@ def health(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_cat/health' params = Utils.process_params(arguments) - params[:h] = Utils.__listify(params[:h]) if params[:h] + params[:h] = Utils.listify(params[:h]) if params[:h] Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/help.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/help.rb index 0d9f22f752..a6c9232581 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/help.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/help.rb @@ -15,20 +15,19 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Returns help for the Cat APIs. + # Get CAT help. + # Get help for the CAT APIs. # - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-cat # def help(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.help' } @@ -36,11 +35,11 @@ def help(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_cat' - params = Utils.process_params(arguments) + params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb index accc79e8cb..e0a7f2a95f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb @@ -15,31 +15,47 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Returns information about indices: number of primaries and replicas, document counts, disk size, ... + # Get index information. + # Get high-level information about indices in a cluster, including backing indices for data streams. + # Use this request to get the following information for each index in a cluster: + # - shard count + # - document count + # - deleted document count + # - primary store size + # - total store size of all shards, including shard replicas + # These metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents. + # To get an accurate count of Elasticsearch documents, use the cat count or count APIs. + # CAT APIs are only intended for human consumption using the command line or Kibana console. + # They are not intended for use by applications. For application consumption, use an index endpoint. # - # @option arguments [List] :index A comma-separated list of index names to limit the returned information - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [String] :health A health status ("green", "yellow", or "red" to filter only indices matching the specified health status (options: green, yellow, red) - # @option arguments [Boolean] :help Return help information - # @option arguments [Boolean] :pri Set to true to return stats only for primary shards - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos) - # @option arguments [Boolean] :v Verbose mode. Display column headers - # @option arguments [Boolean] :include_unloaded_segments If set to true segment stats will include stats for segments that are not currently loaded into memory - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. + # Supports wildcards (+*+). To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [String] :bytes The unit used to display byte values. + # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. + # @option arguments [String] :health The health status used to limit returned indices. By default, the response includes indices of any health status. + # @option arguments [Boolean] :include_unloaded_segments If true, the response includes information from segments that are not loaded into memory. + # @option arguments [Boolean] :pri If true, the response only includes information from primary shards. + # @option arguments [String] :time The unit used to display time values. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-indices # def indices(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.indices' } @@ -52,18 +68,18 @@ def indices(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = if _index - "_cat/indices/#{Utils.__listify(_index)}" + "_cat/indices/#{Utils.listify(_index)}" else '_cat/indices' end params = Utils.process_params(arguments) - params[:h] = Utils.__listify(params[:h]) if params[:h] + params[:h] = Utils.listify(params[:h]) if params[:h] Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb index f8512afd3b..30a64b5099 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb @@ -15,25 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Returns information about the master node. + # Get master node information. + # Get information about the master node, including the ID, bound IP address, and name. + # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API. # - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the + # local cluster state. If +false+ the list of selected nodes are computed + # from the cluster state of the master node. In both cases the coordinating + # node will send requests for further information to each selected node. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-master.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-master # def master(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.master' } @@ -41,7 +50,7 @@ def master(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_cat/master' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb index 72e1f69773..f3652b7bd6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb @@ -15,27 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Gets configuration and usage information about data frame analytics jobs. + # Get data frame analytics jobs. + # Get configuration and usage information about data frame analytics jobs. + # IMPORTANT: CAT APIs are only intended for human consumption using the Kibana + # console or command line. They are not intended for use by applications. For + # application consumption, use the get data frame analytics jobs statistics API. # # @option arguments [String] :id The ID of the data frame analytics to fetch - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no configs. (This includes `_all` string or when no configs have been specified) - # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb) - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos) - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no configs. (This includes +_all+ string or when no configs have been specified) + # @option arguments [String] :bytes The unit in which to display byte values + # @option arguments [String, Array] :h Comma-separated list of column names to display. Server default: create_time,id,state,type. + # @option arguments [String, Array] :s Comma-separated list of column names or column aliases used to sort the + # response. + # @option arguments [String] :time Unit used to display time values. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-dfanalytics.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-data-frame-analytics # def ml_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.ml_data_frame_analytics' } @@ -54,7 +61,7 @@ def ml_data_frame_analytics(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _id - "_cat/ml/data_frame/analytics/#{Utils.__listify(_id)}" + "_cat/ml/data_frame/analytics/#{Utils.listify(_id)}" else '_cat/ml/data_frame/analytics' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb index c00d25ba2c..501d97cc17 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb @@ -15,26 +15,41 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Gets configuration and usage information about datafeeds. + # Get datafeeds. + # Get configuration and usage information about datafeeds. + # This API returns a maximum of 10,000 datafeeds. + # If the Elasticsearch security features are enabled, you must have +monitor_ml+, +monitor+, +manage_ml+, or +manage+ + # cluster privileges to use this API. + # IMPORTANT: CAT APIs are only intended for human consumption using the Kibana + # console or command line. They are not intended for use by applications. For + # application consumption, use the get datafeed statistics API. # - # @option arguments [String] :datafeed_id The ID of the datafeeds stats to fetch - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos) - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String] :datafeed_id A numerical character string that uniquely identifies the datafeed. + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: + # - Contains wildcard expressions and there are no datafeeds that match. + # - Contains the +_all+ string or no identifiers and there are no matches. + # - Contains wildcard expressions and there are only partial matches. + # If +true+, the API returns an empty datafeeds array when there are no matches and the subset of results when + # there are partial matches. If +false+, the API returns a 404 status code when there are no matches or only + # partial matches. Server default: true. + # @option arguments [String, Array] :h Comma-separated list of column names to display. Server default: ['bc', 'id', 'sc', 's']. + # @option arguments [String, Array] :s Comma-separated list of column names or column aliases used to sort the response. + # @option arguments [String] :time The unit used to display time values. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-datafeeds.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-datafeeds # def ml_datafeeds(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.ml_datafeeds' } @@ -53,7 +68,7 @@ def ml_datafeeds(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _datafeed_id - "_cat/ml/datafeeds/#{Utils.__listify(_datafeed_id)}" + "_cat/ml/datafeeds/#{Utils.listify(_datafeed_id)}" else '_cat/ml/datafeeds' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb index 0a9f41ff97..8f344ad41e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb @@ -15,27 +15,42 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Gets configuration and usage information about anomaly detection jobs. + # Get anomaly detection jobs. + # Get configuration and usage information for anomaly detection jobs. + # This API returns a maximum of 10,000 jobs. + # If the Elasticsearch security features are enabled, you must have +monitor_ml+, + # +monitor+, +manage_ml+, or +manage+ cluster privileges to use this API. + # IMPORTANT: CAT APIs are only intended for human consumption using the Kibana + # console or command line. They are not intended for use by applications. For + # application consumption, use the get anomaly detection job statistics API. # - # @option arguments [String] :job_id The ID of the jobs stats to fetch - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) - # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb) - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos) - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String] :job_id Identifier for the anomaly detection job. + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: + # - Contains wildcard expressions and there are no jobs that match. + # - Contains the +_all+ string or no identifiers and there are no matches. + # - Contains wildcard expressions and there are only partial matches. + # If +true+, the API returns an empty jobs array when there are no matches and the subset of results when there + # are partial matches. If +false+, the API returns a 404 status code when there are no matches or only partial + # matches. Server default: true. + # @option arguments [String] :bytes The unit used to display byte values. + # @option arguments [String, Array] :h Comma-separated list of column names to display. Server default: buckets.count,data.processed_records,forecasts.total,id,model.bytes,model.memory_status,state. + # @option arguments [String, Array] :s Comma-separated list of column names or column aliases used to sort the response. + # @option arguments [String] :time The unit used to display time values. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-anomaly-detectors.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-jobs # def ml_jobs(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.ml_jobs' } @@ -54,7 +69,7 @@ def ml_jobs(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _job_id - "_cat/ml/anomaly_detectors/#{Utils.__listify(_job_id)}" + "_cat/ml/anomaly_detectors/#{Utils.listify(_job_id)}" else '_cat/ml/anomaly_detectors' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb index 3af9c15a30..a1ee1416ad 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb @@ -15,29 +15,37 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Gets configuration and usage information about inference trained models. + # Get trained models. + # Get configuration and usage information about inference trained models. + # IMPORTANT: CAT APIs are only intended for human consumption using the Kibana + # console or command line. They are not intended for use by applications. For + # application consumption, use the get trained models statistics API. # - # @option arguments [String] :model_id The ID of the trained models stats to fetch - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no trained models. (This includes `_all` string or when no trained models have been specified) - # @option arguments [Integer] :from skips a number of trained models - # @option arguments [Integer] :size specifies a max number of trained models to get - # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb) - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos) - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String] :model_id A unique identifier for the trained model. + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no models that match; contains the +_all+ string or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches. + # If +true+, the API returns an empty array when there are no matches and the subset of results when there are partial matches. + # If +false+, the API returns a 404 status code when there are no matches or only partial matches. Server default: true. + # @option arguments [String] :bytes The unit used to display byte values. + # @option arguments [String, Array] :h A comma-separated list of column names to display. + # @option arguments [String, Array] :s A comma-separated list of column names or aliases used to sort the response. + # @option arguments [Integer] :from Skips the specified number of transforms. + # @option arguments [Integer] :size The maximum number of transforms to display. + # @option arguments [String] :time Unit used to display time values. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-trained-model.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-trained-models # def ml_trained_models(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.ml_trained_models' } @@ -56,7 +64,7 @@ def ml_trained_models(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _model_id - "_cat/ml/trained_models/#{Utils.__listify(_model_id)}" + "_cat/ml/trained_models/#{Utils.listify(_model_id)}" else '_cat/ml/trained_models' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb index 54102162ef..b549d11029 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb @@ -15,25 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Returns information about custom node attributes. + # Get node attribute information. + # Get information about custom node attributes. + # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API. # - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the + # local cluster state. If +false+ the list of selected nodes are computed + # from the cluster state of the master node. In both cases the coordinating + # node will send requests for further information to each selected node. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-nodeattrs.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-nodeattrs # def nodeattrs(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.nodeattrs' } @@ -41,7 +50,7 @@ def nodeattrs(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_cat/nodeattrs' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb index 1411277c44..fd3d3959a0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb @@ -15,28 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Returns basic statistics about performance of cluster nodes. + # Get node information. + # Get information about the nodes in a cluster. + # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API. # - # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb) - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [Boolean] :full_id Return the full node ID instead of the shortened version (default: false) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos) - # @option arguments [Boolean] :v Verbose mode. Display column headers - # @option arguments [Boolean] :include_unloaded_segments If set to true segment stats will include stats for segments that are not currently loaded into memory + # @option arguments [String] :bytes The unit used to display byte values. + # @option arguments [Boolean, String] :full_id If +true+, return the full node ID. If +false+, return the shortened node ID. Server default: false. + # @option arguments [Boolean] :include_unloaded_segments If true, the response includes information from segments that are not loaded into memory. + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [String] :time Unit used to display time values. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-nodes.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-nodes # def nodes(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.nodes' } @@ -44,12 +50,12 @@ def nodes(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_cat/nodes' params = Utils.process_params(arguments) - params[:h] = Utils.__listify(params[:h], escape: false) if params[:h] + params[:h] = Utils.listify(params[:h], escape: false) if params[:h] Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb index 67acfd7817..c879e35443 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb @@ -15,26 +15,35 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Returns a concise representation of the cluster pending tasks. + # Get pending task information. + # Get information about cluster-level changes that have not yet taken effect. + # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the pending cluster tasks API. # - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos) - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the + # local cluster state. If +false+ the list of selected nodes are computed + # from the cluster state of the master node. In both cases the coordinating + # node will send requests for further information to each selected node. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [String] :time Unit used to display time values. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-pending-tasks.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-pending-tasks # def pending_tasks(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.pending_tasks' } @@ -42,12 +51,12 @@ def pending_tasks(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_cat/pending_tasks' params = Utils.process_params(arguments) - params[:h] = Utils.__listify(params[:h]) if params[:h] + params[:h] = Utils.listify(params[:h]) if params[:h] Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb index fbde5d60ed..4b7c33c3dd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb @@ -15,26 +15,35 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Returns information about installed plugins across nodes node. + # Get plugin information. + # Get a list of plugins running on each node of a cluster. + # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API. # - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. # @option arguments [Boolean] :include_bootstrap Include bootstrap plugins in the response - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the + # local cluster state. If +false+ the list of selected nodes are computed + # from the cluster state of the master node. In both cases the coordinating + # node will send requests for further information to each selected node. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-plugins.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-plugins # def plugins(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.plugins' } @@ -42,7 +51,7 @@ def plugins(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_cat/plugins' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb index 5e6865e47d..8d545bd6ea 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb @@ -15,28 +15,37 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Returns information about index shard recoveries, both on-going completed. + # Get shard recovery information. + # Get information about ongoing and completed shard recoveries. + # Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or syncing a replica shard from a primary shard. When a shard recovery completes, the recovered shard is available for search and indexing. + # For data streams, the API returns information about the stream’s backing indices. + # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index recovery API. # - # @option arguments [List] :index Comma-separated list or wildcard expression of index names to limit the returned information - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [Boolean] :active_only If `true`, the response only includes ongoing shard recoveries - # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb) - # @option arguments [Boolean] :detailed If `true`, the response includes detailed information about shard recoveries - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos) - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases used to limit the request. + # Supports wildcards (+*+). To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [Boolean] :active_only If +true+, the response only includes ongoing shard recoveries. + # @option arguments [String] :bytes The unit used to display byte values. + # @option arguments [Boolean] :detailed If +true+, the response includes detailed information about shard recoveries. + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [String] :time Unit used to display time values. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-recovery.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-recovery # def recovery(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.recovery' } @@ -49,18 +58,18 @@ def recovery(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = if _index - "_cat/recovery/#{Utils.__listify(_index)}" + "_cat/recovery/#{Utils.listify(_index)}" else '_cat/recovery' end params = Utils.process_params(arguments) - params[:h] = Utils.__listify(params[:h]) if params[:h] + params[:h] = Utils.listify(params[:h]) if params[:h] Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb index 482ceff4b3..d297c41bf9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb @@ -15,25 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Returns information about snapshot repositories registered in the cluster. + # Get snapshot repository information. + # Get a list of snapshot repositories for a cluster. + # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot repository API. # - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the + # local cluster state. If +false+ the list of selected nodes are computed + # from the cluster state of the master node. In both cases the coordinating + # node will send requests for further information to each selected node. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-repositories.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-repositories # def repositories(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.repositories' } @@ -41,7 +50,7 @@ def repositories(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_cat/repositories' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb index 8898f52e26..2060c9353c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb @@ -15,25 +15,39 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Provides low-level information about the segments in the shards of an index. + # Get segment information. + # Get low-level information about the Lucene segments in index shards. + # For data streams, the API returns information about the backing indices. + # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index segments API. # - # @option arguments [List] :index A comma-separated list of index names to limit the returned information - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb) - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases used to limit the request. + # Supports wildcards (+*+). + # To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [String] :bytes The unit used to display byte values. + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the + # local cluster state. If +false+ the list of selected nodes are computed + # from the cluster state of the master node. In both cases the coordinating + # node will send requests for further information to each selected node. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-segments.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-segments # def segments(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.segments' } @@ -46,13 +60,13 @@ def segments(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = if _index - "_cat/segments/#{Utils.__listify(_index)}" + "_cat/segments/#{Utils.listify(_index)}" else '_cat/segments' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb index 4e4cae17d5..ff21d03c61 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb @@ -15,27 +15,36 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Provides a detailed view of shard allocation on nodes. + # Get shard information. + # Get information about the shards in a cluster. + # For data streams, the API returns information about the backing indices. + # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. # - # @option arguments [List] :index A comma-separated list of index names to limit the returned information - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos) - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases used to limit the request. + # Supports wildcards (+*+). + # To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [String] :bytes The unit used to display byte values. + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [String] :time Unit used to display time values. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-shards.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-shards # def shards(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.shards' } @@ -48,18 +57,18 @@ def shards(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = if _index - "_cat/shards/#{Utils.__listify(_index)}" + "_cat/shards/#{Utils.listify(_index)}" else '_cat/shards' end params = Utils.process_params(arguments) - params[:h] = Utils.__listify(params[:h]) if params[:h] + params[:h] = Utils.listify(params[:h]) if params[:h] Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb index 3ae1c00888..a63d2ca2a0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb @@ -15,27 +15,37 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Returns all snapshots in a specific repository. + # Get snapshot information. + # Get information about the snapshots stored in one or more repositories. + # A snapshot is a backup of an index or running Elasticsearch cluster. + # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot API. # - # @option arguments [List] :repository Name of repository from which to fetch the snapshot information - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [Boolean] :ignore_unavailable Set to true to ignore unavailable snapshots - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos) - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String, Array] :repository A comma-separated list of snapshot repositories used to limit the request. + # Accepts wildcard expressions. + # +_all+ returns all repositories. + # If any repository fails during the request, Elasticsearch returns an error. + # @option arguments [Boolean] :ignore_unavailable If +true+, the response does not include information from unavailable snapshots. + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [String] :time Unit used to display time values. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-snapshots.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-snapshots # def snapshots(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.snapshots' } @@ -54,7 +64,7 @@ def snapshots(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _repository - "_cat/snapshots/#{Utils.__listify(_repository)}" + "_cat/snapshots/#{Utils.listify(_repository)}" else '_cat/snapshots' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb index 4a60aea199..8badc03c9d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb @@ -15,32 +15,41 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Returns information about the tasks currently executing on one or more nodes in the cluster. + # Get task information. + # Get information about tasks currently running in the cluster. + # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the task management API. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [List] :nodes A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - # @option arguments [List] :actions A comma-separated list of actions that should be returned. Leave empty to return all. - # @option arguments [Boolean] :detailed Return detailed task information (default: false) - # @option arguments [String] :parent_task_id Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all. - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos) - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [Array] :actions The task action names, which are used to limit the response. + # @option arguments [Boolean] :detailed If +true+, the response includes detailed information about shard recoveries. + # @option arguments [Array] :nodes Unique node identifiers, which are used to limit the response. + # @option arguments [String] :parent_task_id The parent task identifier, which is used to limit the response. + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [String] :time Unit used to display time values. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks until the task has completed. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-tasks # def tasks(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.tasks' } @@ -48,7 +57,7 @@ def tasks(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_cat/tasks' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb index 42423d5f2b..1cc5def617 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb @@ -15,26 +15,37 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Returns information about existing templates. + # Get index template information. + # Get information about the index templates in a cluster. + # You can use index templates to apply index settings and field mappings to new indices at creation. + # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index template API. # - # @option arguments [String] :name A pattern that returned template names must match - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String] :name The name of the template to return. + # Accepts wildcard expressions. If omitted, all templates are returned. + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the + # local cluster state. If +false+ the list of selected nodes are computed + # from the cluster state of the master node. In both cases the coordinating + # node will send requests for further information to each selected node. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-templates.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-templates # def templates(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.templates' } @@ -53,7 +64,7 @@ def templates(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _name - "_cat/templates/#{Utils.__listify(_name)}" + "_cat/templates/#{Utils.listify(_name)}" else '_cat/templates' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb index f3ffd705f2..2eb57c365b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb @@ -15,28 +15,38 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Returns cluster-wide thread pool statistics per node. - # By default the active, queue and rejected statistics are returned for all thread pools. + # Get thread pool statistics. + # Get thread pool statistics for each node in a cluster. + # Returned information includes all built-in thread pools and custom thread pools. + # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API. # - # @option arguments [List] :thread_pool_patterns A comma-separated list of regular-expressions to filter the thread pools in the output - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos) - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String, Array] :thread_pool_patterns A comma-separated list of thread pool names used to limit the request. + # Accepts wildcard expressions. + # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # Sorting defaults to ascending and can be changed by setting +:asc+ + # or +:desc+ as a suffix to the column name. + # @option arguments [String] :time The unit used to display time values. + # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the + # local cluster state. If +false+ the list of selected nodes are computed + # from the cluster state of the master node. In both cases the coordinating + # node will send requests for further information to each selected node. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-thread-pool.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-thread-pool # def thread_pool(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.thread_pool' } @@ -55,12 +65,12 @@ def thread_pool(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _thread_pool_patterns - "_cat/thread_pool/#{Utils.__listify(_thread_pool_patterns)}" + "_cat/thread_pool/#{Utils.listify(_thread_pool_patterns)}" else '_cat/thread_pool' end params = Utils.process_params(arguments) - params[:h] = Utils.__listify(params[:h]) if params[:h] + params[:h] = Utils.listify(params[:h]) if params[:h] Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb index 172e7445ae..3e20135a93 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb @@ -15,28 +15,37 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cat module Actions - # Gets configuration and usage information about transforms. + # Get transform information. + # Get configuration and usage information about transforms. + # CAT APIs are only intended for human consumption using the Kibana + # console or command line. They are not intended for use by applications. For + # application consumption, use the get transform statistics API. # - # @option arguments [String] :transform_id The id of the transform for which to get stats. '_all' or '*' implies all transforms - # @option arguments [Integer] :from skips a number of transform configs, defaults to 0 - # @option arguments [Integer] :size specifies a max number of transforms to get, defaults to 100 - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified) - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [List] :h Comma-separated list of column names to display - # @option arguments [Boolean] :help Return help information - # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by - # @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos) - # @option arguments [Boolean] :v Verbose mode. Display column headers + # @option arguments [String] :transform_id A transform identifier or a wildcard expression. + # If you do not specify one of these options, the API returns information for all transforms. + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no transforms that match; contains the +_all+ string or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches. + # If +true+, it returns an empty transforms array when there are no matches and the subset of results when there are partial matches. + # If +false+, the request returns a 404 status code when there are no matches or only partial matches. Server default: true. + # @option arguments [Integer] :from Skips the specified number of transforms. Server default: 0. + # @option arguments [String, Array] :h Comma-separated list of column names to display. Server default: changes_last_detection_time,checkpoint,checkpoint_progress,documents_processed,id,last_search_time,state. + # @option arguments [String, Array] :s Comma-separated list of column names or column aliases used to sort the response. + # @option arguments [String] :time The unit used to display time values. + # @option arguments [Integer] :size The maximum number of transforms to obtain. Server default: 100. + # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to + # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. + # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # can't be combined with any other query string option. + # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-transforms.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-transforms # def transforms(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.transforms' } @@ -55,7 +64,7 @@ def transforms(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _transform_id - "_cat/transforms/#{Utils.__listify(_transform_id)}" + "_cat/transforms/#{Utils.listify(_transform_id)}" else '_cat/transforms' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb b/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb index c2ce74702e..e7e2a266d6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb @@ -15,8 +15,8 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb b/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb index 05b7b5935a..5980e57fc9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb @@ -15,18 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Close a point in time + # Close a point in time. + # A point in time must be opened explicitly before being used in search requests. + # The +keep_alive+ parameter tells Elasticsearch how long it should persist. + # A point in time is automatically closed when the +keep_alive+ period has elapsed. + # However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body a point-in-time id to close + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/point-in-time-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-open-point-in-time # def close_point_in_time(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'close_point_in_time' } @@ -34,7 +38,7 @@ def close_point_in_time(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_DELETE path = '_pit' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb index 08abe8949a..4acc9c56f6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb @@ -15,22 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cluster module Actions - # Provides explanations for shard allocations in the cluster. + # Explain the shard allocations. + # Get explanations for shard allocations in the cluster. + # For unassigned shards, it provides an explanation for why the shard is unassigned. + # For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. + # This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. # - # @option arguments [Time] :master_timeout Timeout for connection to master node - # @option arguments [Boolean] :include_yes_decisions Return 'YES' decisions in explanation (default: false) - # @option arguments [Boolean] :include_disk_info Return information about disk usage and shard sizes (default: false) + # @option arguments [Boolean] :include_disk_info If true, returns information about disk usage and shard sizes. + # @option arguments [Boolean] :include_yes_decisions If true, returns YES decisions in explanation. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The index, shard, and primary flag to explain. Empty means 'explain a randomly-chosen unassigned shard' + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-allocation-explain.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-allocation-explain # def allocation_explain(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.allocation_explain' } @@ -38,7 +42,7 @@ def allocation_explain(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = if body Elasticsearch::API::HTTP_POST @@ -46,7 +50,7 @@ def allocation_explain(arguments = {}) Elasticsearch::API::HTTP_GET end - path = '_cluster/allocation/explain' + path = '_cluster/allocation/explain' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb index a0a62dd669..0d78a39a66 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb @@ -15,21 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cluster module Actions - # Deletes a component template + # Delete component templates. + # Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. # - # @option arguments [String] :name The name of the template - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String, Array] :name Comma-separated list or wildcard expression of component template names used to limit the request. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-component-template.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template # def delete_component_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.delete_component_template' } @@ -49,7 +52,7 @@ def delete_component_template(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_DELETE - path = "_component_template/#{Utils.__listify(_name)}" + path = "_component_template/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb index 4609b743de..223a14989d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb @@ -15,20 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cluster module Actions - # Clears cluster voting config exclusions. + # Clear cluster voting config exclusions. + # Remove master-eligible nodes from the voting configuration exclusion list. # - # @option arguments [Boolean] :wait_for_removal Specifies whether to wait for all excluded nodes to be removed from the cluster before clearing the voting configuration exclusions list. - # @option arguments [Time] :master_timeout Timeout for submitting request to master + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Boolean] :wait_for_removal Specifies whether to wait for all excluded nodes to be removed from the + # cluster before clearing the voting configuration exclusions list. + # Defaults to true, meaning that all excluded nodes must be removed from + # the cluster before this API takes any action. If set to false then the + # voting configuration exclusions list is cleared even if some excluded + # nodes are still in the cluster. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/voting-config-exclusions.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-post-voting-config-exclusions # def delete_voting_config_exclusions(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.delete_voting_config_exclusions' } @@ -36,7 +42,7 @@ def delete_voting_config_exclusions(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_DELETE path = '_cluster/voting_config_exclusions' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb index 505979897d..ff7f4b030c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb @@ -15,21 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cluster module Actions - # Returns information about whether a particular component template exist + # Check component templates. + # Returns information about whether a particular component template exists. # - # @option arguments [String] :name The name of the template - # @option arguments [Time] :master_timeout Timeout for waiting for new cluster state in case it is blocked - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) *Deprecated* + # @option arguments [String, Array] :name Comma-separated list of component template names used to limit the request. + # Wildcard (*) expressions are supported. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is + # received before the timeout expires, the request fails and returns an + # error. Server default: 30s. + # @option arguments [Boolean] :local If true, the request retrieves information from the local node only. + # Defaults to false, which means information is retrieved from the master node. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-component-template.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template # def exists_component_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.exists_component_template' } @@ -49,7 +54,7 @@ def exists_component_template(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_HEAD - path = "_component_template/#{Utils.__listify(_name)}" + path = "_component_template/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb index d4570f23aa..861642bf4b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb @@ -15,22 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cluster module Actions - # Returns one or more component templates + # Get component templates. + # Get information about component templates. # - # @option arguments [List] :name The comma separated names of the component templates - # @option arguments [Time] :master_timeout Timeout for waiting for new cluster state in case it is blocked - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) *Deprecated* + # @option arguments [String] :name Comma-separated list of component template names used to limit the request. + # Wildcard (+*+) expressions are supported. + # @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format. # @option arguments [Boolean] :include_defaults Return all default configurations for the component template (default: false) + # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. + # If +false+, information is retrieved from the master node. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-component-template.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template # def get_component_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.get_component_template' } @@ -49,7 +54,7 @@ def get_component_template(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _name - "_component_template/#{Utils.__listify(_name)}" + "_component_template/#{Utils.listify(_name)}" else '_component_template' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb index 12beaf9acc..f915f16b4b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb @@ -15,22 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cluster module Actions - # Returns cluster settings. + # Get cluster-wide settings. + # By default, it returns only settings that have been explicitly defined. # - # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false) - # @option arguments [Time] :master_timeout Timeout for waiting for new cluster state in case it is blocked - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Boolean] :include_defaults Whether to return all default clusters setting. + # @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format. + # @option arguments [Boolean] :include_defaults If +true+, returns default cluster settings from the local node. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-get-settings.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-get-settings # def get_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.get_settings' } @@ -38,7 +41,7 @@ def get_settings(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_cluster/settings' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb index 3a585036b6..9125956b3e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb @@ -15,30 +15,37 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cluster module Actions - # Returns basic information about the health of the cluster. + # Get the cluster health status. + # You can also use the API to get the health status of only specified data streams and indices. + # For data streams, the API retrieves the health status of the stream’s backing indices. + # The cluster health status is: green, yellow or red. + # On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + # The index level status is controlled by the worst shard status. + # One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + # The cluster status is controlled by the worst index status. # - # @option arguments [List] :index Limit the information returned to a specific index - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [String] :level Specify the level of detail for returned information (options: cluster, indices, shards) - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [String] :wait_for_active_shards Wait until the specified number of shards is active - # @option arguments [String] :wait_for_nodes Wait until the specified number of nodes is available - # @option arguments [String] :wait_for_events Wait until all currently queued events with the given priority are processed (options: immediate, urgent, high, normal, low, languid) - # @option arguments [Boolean] :wait_for_no_relocating_shards Whether to wait until there are no relocating shards in the cluster - # @option arguments [Boolean] :wait_for_no_initializing_shards Whether to wait until there are no initializing shards in the cluster - # @option arguments [String] :wait_for_status Wait until cluster is in a specific state (options: green, yellow, red) + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and index aliases used to limit the request. Wildcard expressions (+*+) are supported. To target all data streams and indices in a cluster, omit this parameter or use _all or +*+. + # @option arguments [String, Array] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. + # @option arguments [String] :level Can be one of cluster, indices or shards. Controls the details level of the health information returned. Server default: cluster. + # @option arguments [Boolean] :local If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Integer, String] :wait_for_active_shards A number controlling to how many active shards to wait for, all to wait for all shards in the cluster to be active, or 0 to not wait. Server default: 0. + # @option arguments [String] :wait_for_events Can be one of immediate, urgent, high, normal, low, languid. Wait until all currently queued events with the given priority are processed. + # @option arguments [String, Integer] :wait_for_nodes The request waits until the specified number N of nodes is available. It also accepts >=N, <=N, >N and yellow > red. By default, will not wait for any status. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-health.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-health # def health(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.health' } @@ -51,13 +58,13 @@ def health(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = if _index - "_cluster/health/#{Utils.__listify(_index)}" + "_cluster/health/#{Utils.listify(_index)}" else '_cluster/health' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb index 83b2e81d83..68f37a0550 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb @@ -15,19 +15,20 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cluster module Actions - # Returns different information about the cluster. + # Get cluster info. + # Returns basic information about the cluster. # - # @option arguments [List] :target Limit the information returned to the specified target. (options: _all, http, ingest, thread_pool, script) + # @option arguments [String, Array] :target Limits the information returned to the specific target. Supports a comma-separated list, such as http,ingest. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-info.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-info # def info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.info' } @@ -47,7 +48,7 @@ def info(arguments = {}) _target = arguments.delete(:target) method = Elasticsearch::API::HTTP_GET - path = "_info/#{Utils.__listify(_target)}" + path = "_info/#{Utils.listify(_target)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb index 783626ef7d..cf8c433cb1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb @@ -15,21 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cluster module Actions - # Returns a list of any cluster-level changes (e.g. create index, update mapping, - # allocate or fail shard) which have not yet been executed. + # Get the pending cluster tasks. + # Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. + # NOTE: This API returns a list of any pending updates to the cluster state. + # These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. + # However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. # - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. + # If +false+, information is retrieved from the master node. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-pending.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-pending-tasks # def pending_tasks(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.pending_tasks' } @@ -37,7 +42,7 @@ def pending_tasks(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_cluster/pending_tasks' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb index dd9edf0cbe..99ea870517 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb @@ -15,22 +15,41 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cluster module Actions - # Updates the cluster voting config exclusions by node ids or node names. + # Update voting configuration exclusions. + # Update the cluster voting config exclusions by node IDs or node names. + # By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks. + # If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually. + # The API adds an entry for each specified node to the cluster’s voting configuration exclusions list. + # It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes. + # Clusters should have no voting configuration exclusions in normal operation. + # Once the excluded nodes have stopped, clear the voting configuration exclusions with +DELETE /_cluster/voting_config_exclusions+. + # This API waits for the nodes to be fully removed from the cluster before it returns. + # If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use +DELETE /_cluster/voting_config_exclusions?wait_for_removal=false+ to clear the voting configuration exclusions without waiting for the nodes to leave the cluster. + # A response to +POST /_cluster/voting_config_exclusions+ with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling +DELETE /_cluster/voting_config_exclusions+. + # If the call to +POST /_cluster/voting_config_exclusions+ fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration. + # In that case, you may safely retry the call. + # NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. + # They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. # - # @option arguments [String] :node_ids A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration. If specified, you may not also specify ?node_names. - # @option arguments [String] :node_names A comma-separated list of the names of the nodes to exclude from the voting configuration. If specified, you may not also specify ?node_ids. - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Timeout for submitting request to master + # @option arguments [String, Array] :node_names A comma-separated list of the names of the nodes to exclude from the + # voting configuration. If specified, you may not also specify node_ids. + # @option arguments [String, Array] :node_ids A comma-separated list of the persistent ids of the nodes to exclude + # from the voting configuration. If specified, you may not also specify node_names. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Time] :timeout When adding a voting configuration exclusion, the API waits for the + # specified nodes to be excluded from the voting configuration before + # returning. If the timeout expires before the appropriate condition + # is satisfied, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/voting-config-exclusions.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-post-voting-config-exclusions # def post_voting_config_exclusions(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.post_voting_config_exclusions' } @@ -38,7 +57,7 @@ def post_voting_config_exclusions(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_POST path = '_cluster/voting_config_exclusions' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb index e6cf352034..da4c3cf2b2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb @@ -15,23 +15,40 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cluster module Actions - # Creates or updates a component template + # Create or update a component template. + # Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. + # An index template can be composed of multiple component templates. + # To use a component template, specify it in an index template’s +composed_of+ list. + # Component templates are only applied to new data streams and indices as part of a matching index template. + # Settings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template. + # Component templates are only used during index creation. + # For data streams, this includes data stream creation and the creation of a stream’s backing indices. + # Changes to component templates do not affect existing indices, including a stream’s backing indices. + # You can use C-style +/* *\/+ block comments in component templates. + # You can include comments anywhere in the request body except before the opening curly bracket. + # **Applying component templates** + # You cannot directly apply a component template to a data stream or index. + # To be applied, a component template must be included in an index template's +composed_of+ list. # - # @option arguments [String] :name The name of the template - # @option arguments [Boolean] :create Whether the index template should only be added if new or can also replace an existing one - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String] :name Name of the component template to create. + # Elasticsearch includes the following built-in component templates: +logs-mappings+; +logs-settings+; +metrics-mappings+; +metrics-settings+;+synthetics-mapping+; +synthetics-settings+. + # Elastic Agent uses these templates to configure backing indices for its data streams. + # If you use Elastic Agent and want to overwrite one of these templates, set the +version+ for your replacement template higher than the current version. + # If you don’t use Elastic Agent and want to disable all built-in component and index templates, set +stack.templates.enabled+ to +false+ using the cluster update settings API. (*Required*) + # @option arguments [Boolean] :create If +true+, this request cannot replace or update existing component templates. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The template definition (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-component-template.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template # def put_component_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.put_component_template' } @@ -52,7 +69,7 @@ def put_component_template(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_PUT - path = "_component_template/#{Utils.__listify(_name)}" + path = "_component_template/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb index 22854aaf9b..b098dc7ddc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb @@ -15,22 +15,35 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cluster module Actions - # Updates the cluster settings. + # Update the cluster settings. + # Configure and update dynamic settings on a running cluster. + # You can also configure dynamic settings locally on an unstarted or shut down node in +elasticsearch.yml+. + # Updates made with this API can be persistent, which apply across cluster restarts, or transient, which reset after a cluster restart. + # You can also reset transient or persistent settings by assigning them a null value. + # If you configure the same setting using multiple methods, Elasticsearch applies the settings in following order of precedence: 1) Transient setting; 2) Persistent setting; 3) +elasticsearch.yml+ setting; 4) Default setting value. + # For example, you can apply a transient setting to override a persistent setting or +elasticsearch.yml+ setting. + # However, a change to an +elasticsearch.yml+ setting will not override a defined transient or persistent setting. + # TIP: In Elastic Cloud, use the user settings feature to configure all cluster settings. This method automatically rejects unsafe settings that could break your cluster. + # If you run Elasticsearch on your own hardware, use this API to configure dynamic cluster settings. + # Only use +elasticsearch.yml+ for static cluster settings and node settings. + # The API doesn’t require a restart and ensures a setting’s value is the same on all nodes. + # WARNING: Transient cluster settings are no longer recommended. Use persistent cluster settings instead. + # If a cluster becomes unstable, transient settings can clear unexpectedly, resulting in a potentially undesired cluster configuration. # # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node Server default: 30s. + # @option arguments [Time] :timeout Explicit operation timeout Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart). (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-settings # def put_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.put_settings' } @@ -40,7 +53,7 @@ def put_settings(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) || {} + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_PUT path = '_cluster/settings' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb index 63d1f824f7..bc4d2f4b79 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb @@ -15,18 +15,20 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cluster module Actions - # Returns the information about configured remote clusters. + # Get remote cluster information. + # Get information about configured remote clusters. + # The API returns connection and endpoint information keyed by the configured remote cluster alias. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-remote-info.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-remote-info # def remote_info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.remote_info' } @@ -34,7 +36,7 @@ def remote_info(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_remote/info' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb index 450384932f..3cb715911e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb @@ -15,25 +15,35 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cluster module Actions - # Allows to manually change the allocation of individual shards in the cluster. + # Reroute the cluster. + # Manually change the allocation of individual shards in the cluster. + # For example, a shard can be moved from one node to another explicitly, an allocation can be canceled, and an unassigned shard can be explicitly allocated to a specific node. + # It is important to note that after processing any reroute commands Elasticsearch will perform rebalancing as normal (respecting the values of settings such as +cluster.routing.rebalance.enable+) in order to remain in a balanced state. + # For example, if the requested allocation includes moving a shard from node1 to node2 then this may cause a shard to be moved from node2 back to node1 to even things out. + # The cluster can be set to disable allocations using the +cluster.routing.allocation.enable+ setting. + # If allocations are disabled then the only allocations that will be performed are explicit ones given using the reroute command, and consequent allocations due to rebalancing. + # The cluster will attempt to allocate a shard a maximum of +index.allocation.max_retries+ times in a row (defaults to +5+), before giving up and leaving the shard unallocated. + # This scenario can be caused by structural problems such as having an analyzer which refers to a stopwords file which doesn’t exist on all nodes. + # Once the problem has been corrected, allocation can be manually retried by calling the reroute API with the +?retry_failed+ URI query parameter, which will attempt a single retry round for these shards. # - # @option arguments [Boolean] :dry_run Simulate the operation only and return the resulting state - # @option arguments [Boolean] :explain Return an explanation of why the commands can or cannot be executed - # @option arguments [Boolean] :retry_failed Retries allocation of shards that are blocked due to too many subsequent allocation failures - # @option arguments [List] :metric Limit the information returned to the specified metrics. Defaults to all but metadata (options: _all, blocks, metadata, nodes, none, routing_table, master_node, version) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [Boolean] :dry_run If true, then the request simulates the operation. + # It will calculate the result of applying the commands to the current cluster state and return the resulting cluster state after the commands (and rebalancing) have been applied; it will not actually perform the requested changes. + # @option arguments [Boolean] :explain If true, then the response contains an explanation of why the commands can or cannot run. + # @option arguments [String, Array] :metric Limits the information returned to the specified metrics. Server default: all. + # @option arguments [Boolean] :retry_failed If true, then retries allocation of shards that are blocked due to too many subsequent allocation failures. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The definition of `commands` to perform (`move`, `cancel`, `allocate`) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-reroute.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-reroute # def reroute(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.reroute' } @@ -41,7 +51,7 @@ def reroute(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) || {} + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_cluster/reroute' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb index 24d7eb487f..a1cfd4cda0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb @@ -15,33 +15,46 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cluster module Actions - # Returns a comprehensive information about the state of the cluster. + # Get the cluster state. + # Get comprehensive information about the state of the cluster. + # The cluster state is an internal data structure which keeps track of a variety of information needed by every node, including the identity and attributes of the other nodes in the cluster; cluster-wide settings; index metadata, including the mapping and settings for each index; the location and status of every shard copy in the cluster. + # The elected master node ensures that every node in the cluster has a copy of the same cluster state. + # This API lets you retrieve a representation of this internal state for debugging or diagnostic purposes. + # You may need to consult the Elasticsearch source code to determine the precise meaning of the response. + # By default the API will route requests to the elected master node since this node is the authoritative source of cluster states. + # You can also retrieve the cluster state held on the node handling the API request by adding the +?local=true+ query parameter. + # Elasticsearch may need to expend significant effort to compute a response to this API in larger clusters, and the response may comprise a very large quantity of data. + # If you use this API repeatedly, your cluster may become unstable. + # WARNING: The response is a representation of an internal data structure. + # Its format is not subject to the same compatibility guarantees as other more stable APIs and may change from version to version. + # Do not query this API using external monitoring tools. + # Instead, obtain the information you require using other more stable cluster APIs. # - # @option arguments [List] :metric Limit the information returned to the specified metrics (options: _all, blocks, metadata, nodes, routing_table, routing_nodes, master_node, version) - # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String, Array] :metric Limit the information returned to the specified metrics + # @option arguments [String, Array] :index A comma-separated list of index names; use +_all+ or empty string to perform the operation on all indices + # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes +_all+ string or when no indices have been specified) Server default: true. + # @option arguments [String, Array] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false) - # @option arguments [Number] :wait_for_metadata_version Wait for the metadata version to be equal or greater than the specified metadata version - # @option arguments [Time] :wait_for_timeout The maximum time to wait for wait_for_metadata_version before timing out # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) + # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) + # @option arguments [Time] :master_timeout Specify timeout for connection to master Server default: 30s. + # @option arguments [Integer] :wait_for_metadata_version Wait for the metadata version to be equal or greater than the specified metadata version + # @option arguments [Time] :wait_for_timeout The maximum time to wait for wait_for_metadata_version before timing out # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-state.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-state # def state(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.state' } - defined_params = %i[metric index].each_with_object({}) do |variable, set_variables| + defined_params = [:metric, :index].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -57,9 +70,9 @@ def state(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _metric && _index - "_cluster/state/#{Utils.__listify(_metric)}/#{Utils.__listify(_index)}" + "_cluster/state/#{Utils.listify(_metric)}/#{Utils.listify(_index)}" elsif _metric - "_cluster/state/#{Utils.__listify(_metric)}" + "_cluster/state/#{Utils.listify(_metric)}" else '_cluster/state' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb index a960c912f6..543f711fed 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb @@ -15,21 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Cluster module Actions - # Returns high-level overview of cluster statistics. + # Get cluster statistics. + # Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). # - # @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - # @option arguments [Boolean] :include_remotes Include remote cluster data into the response (default: false) - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String, Array] :node_id Comma-separated list of node filters used to limit returned information. Defaults to all nodes in the cluster. + # @option arguments [Boolean] :include_remotes Include remote cluster data into the response + # @option arguments [Time] :timeout Period to wait for each node to respond. + # If a node does not respond before its timeout expires, the response does not include its stats. + # However, timed out nodes are included in the response’s +_nodes.failed+ property. Defaults to no timeout. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-stats.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-stats # def stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.stats' } @@ -48,7 +51,7 @@ def stats(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _node_id - "_cluster/stats/nodes/#{Utils.__listify(_node_id)}" + "_cluster/stats/nodes/#{Utils.listify(_node_id)}" else '_cluster/stats' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb index 1cdba2af8b..89b55370ba 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb index 5d1de3e2b6..806b26697b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb index 205965deca..6a6a112c4c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb index 70fed38a60..07267581dc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb index b31f131cff..0f1cf894d6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb index c508df35c3..326362b9db 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb index 5eacf02b13..8b01dbefd9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb index f6bb93e7f7..2603b02971 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb index 09c02dd6f4..f56682e899 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb index fa01552611..662f678a6d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb index 7b75dec75e..23173cdddb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb index 24c2ce5944..224d7e92a3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb index a1ac5317b6..3158cc80c6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb index d359bb289c..787df18c2e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb index 6f064a6190..c9dbc2d0fc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb index 2e8adca464..08994492d2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb index d505ceeaea..7e2f799b35 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb index f5778ea33e..d14b7ca62c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb index eaa7b3ca66..bb49400c9f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb index 70636dc3a1..2b8e4c860a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb index 2222a2c8c9..d3b87e0263 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb index c8f36263c6..f89e3e6964 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb index 782797e3c2..f6edd546de 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb index b0b07dde11..cc995298a1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb index 12a14155d6..be8917b1df 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb index 637efa0874..fcb6e1bb77 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb index b8cf8f832e..5e3ee57699 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb index 62cc74d24d..99eb454372 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb index cc2642599b..5906bdbeb9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/count.rb b/elasticsearch-api/lib/elasticsearch/api/actions/count.rb index 393bbb7fda..3163e31a3f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/count.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/count.rb @@ -15,33 +15,57 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns number of documents matching a query. + # Count search results. + # Get the number of documents matching a query. + # The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + # The query is optional. When no query is provided, the API uses +match_all+ to count all the documents. + # The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + # The operation is broadcast across all shards. + # For each shard ID group, a replica is chosen and the search is run against it. + # This means that replicas increase the scalability of the count. # - # @option arguments [List] :index A comma-separated list of indices to restrict the results - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :ignore_throttled Whether specified concrete, expanded or aliased indices should be ignored when throttled - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Number] :min_score Include only documents with a specific `_score` value in the result - # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random) - # @option arguments [List] :routing A comma-separated list of specific routing values - # @option arguments [String] :q Query in the Lucene query string syntax - # @option arguments [String] :analyzer The analyzer to use for the query string - # @option arguments [Boolean] :analyze_wildcard Specify whether wildcard and prefix queries should be analyzed (default: false) - # @option arguments [String] :default_operator The default operator for query string query (AND or OR) (options: AND, OR) - # @option arguments [String] :df The field to use as default where no field prefix is given in the query string - # @option arguments [Boolean] :lenient Specify whether format-based query failures (such as providing text to a numeric field) should be ignored - # @option arguments [Number] :terminate_after The maximum count for each shard, upon reaching which the query execution will terminate early + # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to search. + # It supports wildcards (+*+). + # To search all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. + # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. + # @option arguments [String] :analyzer The analyzer to use for the query string. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [Boolean] :analyze_wildcard If +true+, wildcard and prefix queries are analyzed. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [String] :default_operator The default operator for query string query: +AND+ or +OR+. + # This parameter can be used only when the +q+ query string parameter is specified. Server default: OR. + # @option arguments [String] :df The field to use as a default when no field prefix is given in the query string. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # It supports comma-separated values, such as +open,hidden+. Server default: open. + # @option arguments [Boolean] :ignore_throttled If +true+, concrete, expanded, or aliased indices are ignored when frozen. Server default: true. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :lenient If +true+, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [Float] :min_score The minimum +_score+ value that documents must have to be included in the result. + # @option arguments [String] :preference The node or shard the operation should be performed on. + # By default, it is random. + # @option arguments [String] :routing A custom value used to route operations to a specific shard. + # @option arguments [Integer] :terminate_after The maximum number of documents to collect for each shard. + # If a query reaches this limit, Elasticsearch terminates the query early. + # Elasticsearch collects documents before sorting.IMPORTANT: Use with caution. + # Elasticsearch applies this parameter to each shard handling the request. + # When possible, let Elasticsearch perform early termination automatically. + # Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. + # @option arguments [String] :q The query in Lucene query string syntax. This parameter cannot be used with a request body. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body A query to restrict the results specified with the Query DSL (optional) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-count.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-count # def count(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'count' } @@ -64,11 +88,11 @@ def count(arguments = {}) Elasticsearch::API::HTTP_GET end - path = if _index - "#{Utils.__listify(_index)}/_count" - else - '_count' - end + path = if _index + "#{Utils.listify(_index)}/_count" + else + '_count' + end params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/create.rb index 8c103ac5aa..a19ed49eeb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/create.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb index b3537c7ad1..f1288a6796 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb @@ -15,20 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module CrossClusterReplication module Actions - # Deletes auto-follow patterns. + # Delete auto-follow patterns. + # Delete a collection of cross-cluster replication auto-follow patterns. # - # @option arguments [String] :name The name of the auto follow pattern. - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node + # @option arguments [String] :name The auto-follow pattern collection to delete. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-delete-auto-follow-pattern.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-delete-auto-follow-pattern # def delete_auto_follow_pattern(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.delete_auto_follow_pattern' } @@ -48,7 +51,7 @@ def delete_auto_follow_pattern(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_DELETE - path = "_ccr/auto_follow/#{Utils.__listify(_name)}" + path = "_ccr/auto_follow/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb index c1fffadc12..cab96e3a11 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb @@ -15,22 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module CrossClusterReplication module Actions - # Creates a new follower index configured to follow the referenced leader index. + # Create a follower. + # Create a cross-cluster replication follower index that follows a specific leader index. + # When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. # - # @option arguments [String] :index The name of the follower index - # @option arguments [String] :wait_for_active_shards Sets the number of shard copies that must be active before returning. Defaults to 0. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node + # @option arguments [String] :index The name of the follower index. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Integer, String] :wait_for_active_shards Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be + # active. + # A shard must be restored from the leader index before being active. Restoring a follower shard requires transferring all the + # remote Lucene segment files to the follower index. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The name of the leader index and other optional ccr related parameters (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-follow # def follow(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.follow' } @@ -46,12 +51,12 @@ def follow(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_PUT - path = "#{Utils.__listify(_index)}/_ccr/follow" + path = "#{Utils.listify(_index)}/_ccr/follow" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb index 7ba6a422b0..7d045aadde 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb @@ -15,20 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module CrossClusterReplication module Actions - # Retrieves information about all follower indices, including parameters and status for each follower index + # Get follower information. + # Get information about all cross-cluster replication follower indices. + # For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. # - # @option arguments [List] :index A comma-separated list of index patterns; use `_all` to perform the operation on all indices - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node + # @option arguments [String, Array] :index A comma-delimited list of follower index patterns. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-info.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-follow-info # def follow_info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.follow_info' } @@ -43,12 +47,12 @@ def follow_info(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET - path = "#{Utils.__listify(_index)}/_ccr/info" + path = "#{Utils.listify(_index)}/_ccr/info" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb index 85e45f1259..d485bdd2f4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb @@ -15,20 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module CrossClusterReplication module Actions - # Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + # Get follower stats. + # Get cross-cluster replication follower stats. + # The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. # - # @option arguments [List] :index A comma-separated list of index patterns; use `_all` to perform the operation on all indices - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String, Array] :index A comma-delimited list of index patterns. (*Required*) + # @option arguments [Time] :timeout The period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-follow-stats # def follow_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.follow_stats' } @@ -43,12 +46,12 @@ def follow_stats(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET - path = "#{Utils.__listify(_index)}/_ccr/stats" + path = "#{Utils.listify(_index)}/_ccr/stats" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb index aa3726b0b6..fc8dda756d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb @@ -15,21 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module CrossClusterReplication module Actions - # Removes the follower retention leases from the leader. + # Forget a follower. + # Remove the cross-cluster replication follower retention leases from the leader. + # A following index takes out retention leases on its leader index. + # These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + # When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + # However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + # While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + # This API exists to enable manually removing the leases when the unfollow API is unable to do so. + # NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + # The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. # - # @option arguments [String] :index the name of the leader index for which specified follower retention leases should be removed - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :index the name of the leader index for which specified follower retention leases should be removed (*Required*) + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body the name and UUID of the follower index, the name of the cluster containing the follower index, and the alias from the perspective of that cluster for the remote cluster containing the leader index (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-forget-follower # def forget_follower(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.forget_follower' } @@ -45,12 +54,12 @@ def forget_follower(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_ccr/forget_follower" + path = "#{Utils.listify(_index)}/_ccr/forget_follower" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb index ea4f844ef9..9124667659 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb @@ -15,20 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module CrossClusterReplication module Actions - # Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. + # Get auto-follow patterns. + # Get cross-cluster replication auto-follow patterns. # - # @option arguments [String] :name The name of the auto follow pattern. - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node + # @option arguments [String] :name The auto-follow pattern collection that you want to retrieve. + # If you do not specify a name, the API returns information for all collections. + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-auto-follow-pattern.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-get-auto-follow-pattern-1 # def get_auto_follow_pattern(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.get_auto_follow_pattern' } @@ -47,7 +51,7 @@ def get_auto_follow_pattern(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _name - "_ccr/auto_follow/#{Utils.__listify(_name)}" + "_ccr/auto_follow/#{Utils.listify(_name)}" else '_ccr/auto_follow' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb index 573bd73ad4..2209bd98cd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb @@ -15,20 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module CrossClusterReplication module Actions - # Pauses an auto-follow pattern + # Pause an auto-follow pattern. + # Pause a cross-cluster replication auto-follow pattern. + # When the API returns, the auto-follow pattern is inactive. + # New indices that are created on the remote cluster and match the auto-follow patterns are ignored. + # You can resume auto-following with the resume auto-follow pattern API. + # When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. + # Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. # - # @option arguments [String] :name The name of the auto follow pattern that should pause discovering new indices to follow. - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node + # @option arguments [String] :name The name of the auto-follow pattern to pause. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-pause-auto-follow-pattern.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-pause-auto-follow-pattern # def pause_auto_follow_pattern(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.pause_auto_follow_pattern' } @@ -48,7 +56,7 @@ def pause_auto_follow_pattern(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_POST - path = "_ccr/auto_follow/#{Utils.__listify(_name)}/pause" + path = "_ccr/auto_follow/#{Utils.listify(_name)}/pause" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb index 275bd1675e..3fc74b3152 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb @@ -15,20 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module CrossClusterReplication module Actions - # Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + # Pause a follower. + # Pause a cross-cluster replication follower index. + # The follower index will not fetch any additional operations from the leader index. + # You can resume following with the resume follower API. + # You can pause and resume a follower index to change the configuration of the following task. # - # @option arguments [String] :index The name of the follower index that should pause following its leader index. - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node + # @option arguments [String] :index The name of the follower index. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-pause-follow.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-pause-follow # def pause_follow(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.pause_follow' } @@ -43,12 +49,12 @@ def pause_follow(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_ccr/pause_follow" + path = "#{Utils.listify(_index)}/_ccr/pause_follow" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb index 4ea1a7a754..ae42014951 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb @@ -15,21 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module CrossClusterReplication module Actions - # Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. + # Create or update auto-follow patterns. + # Create a collection of cross-cluster replication auto-follow patterns for a remote cluster. + # Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices. + # Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern. + # This API can also be used to update auto-follow patterns. + # NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. # - # @option arguments [String] :name The name of the auto follow pattern. - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node + # @option arguments [String] :name The name of the collection of auto-follow patterns. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The specification of the auto follow pattern (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-auto-follow-pattern.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-put-auto-follow-pattern # def put_auto_follow_pattern(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.put_auto_follow_pattern' } @@ -50,7 +55,7 @@ def put_auto_follow_pattern(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_PUT - path = "_ccr/auto_follow/#{Utils.__listify(_name)}" + path = "_ccr/auto_follow/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb index 2a979f9add..8c162a30c9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb @@ -15,20 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module CrossClusterReplication module Actions - # Resumes an auto-follow pattern that has been paused + # Resume an auto-follow pattern. + # Resume a cross-cluster replication auto-follow pattern that was paused. + # The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. + # Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. # - # @option arguments [String] :name The name of the auto follow pattern to resume discovering new indices to follow. - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node + # @option arguments [String] :name The name of the auto-follow pattern to resume. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-resume-auto-follow-pattern.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-resume-auto-follow-pattern # def resume_auto_follow_pattern(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.resume_auto_follow_pattern' } @@ -48,7 +53,7 @@ def resume_auto_follow_pattern(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_POST - path = "_ccr/auto_follow/#{Utils.__listify(_name)}/resume" + path = "_ccr/auto_follow/#{Utils.listify(_name)}/resume" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb index f172d59a88..205612c75f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb @@ -15,21 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module CrossClusterReplication module Actions - # Resumes a follower index that has been paused + # Resume a follower. + # Resume a cross-cluster replication follower index that was paused. + # The follower index could have been paused with the pause follower API. + # Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + # When this API returns, the follower index will resume fetching operations from the leader index. # - # @option arguments [String] :index The name of the follow index to resume following. - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node + # @option arguments [String] :index The name of the follow index to resume following. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The name of the leader index and other optional ccr related parameters + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-resume-follow.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-resume-follow # def resume_follow(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.resume_follow' } @@ -44,12 +48,12 @@ def resume_follow(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_ccr/resume_follow" + path = "#{Utils.listify(_index)}/_ccr/resume_follow" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb index 276ce44b34..c36951761f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb @@ -15,20 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module CrossClusterReplication module Actions - # Gets all stats related to cross-cluster replication. + # Get cross-cluster replication stats. + # This API returns stats about auto-following and the same shard-level stats as the get follower stats API. # - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-stats.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-stats # def stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.stats' } @@ -36,7 +39,7 @@ def stats(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_ccr/stats' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb index 9719fd23a4..1c4540a34b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb @@ -15,20 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module CrossClusterReplication module Actions - # Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + # Unfollow an index. + # Convert a cross-cluster replication follower index to a regular index. + # The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + # The follower index must be paused and closed before you call the unfollow API. # - # @option arguments [String] :index The name of the follower index that should be turned into a regular index. - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node + # @option arguments [String] :index The name of the follower index. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-unfollow # def unfollow(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.unfollow' } @@ -43,12 +48,12 @@ def unfollow(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_ccr/unfollow" + path = "#{Utils.listify(_index)}/_ccr/unfollow" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb index 82810e3a02..3068d0bcbb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb @@ -15,22 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module DanglingIndices module Actions - # Deletes the specified dangling index + # Delete a dangling index. + # If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. + # For example, this can happen if you delete more than +cluster.indices.tombstones.size+ indices while an Elasticsearch node is offline. # - # @option arguments [String] :index_uuid The UUID of the dangling index - # @option arguments [Boolean] :accept_data_loss Must be set to true in order to delete the dangling index - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :index_uuid The UUID of the index to delete. Use the get dangling indices API to find the UUID. (*Required*) + # @option arguments [Boolean] :accept_data_loss This parameter must be set to true to acknowledge that it will no longer be possible to recove data from the dangling index. (*Required*) # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [Time] :timeout Explicit operation timeout # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway-dangling-indices.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-dangling-indices-delete-dangling-index # def delete_dangling_index(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'dangling_indices.delete_dangling_index' } @@ -50,7 +52,7 @@ def delete_dangling_index(arguments = {}) _index_uuid = arguments.delete(:index_uuid) method = Elasticsearch::API::HTTP_DELETE - path = "_dangling/#{Utils.__listify(_index_uuid)}" + path = "_dangling/#{Utils.listify(_index_uuid)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb index 3806639cb2..8435baf231 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb @@ -15,22 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module DanglingIndices module Actions - # Imports the specified dangling index + # Import a dangling index. + # If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. + # For example, this can happen if you delete more than +cluster.indices.tombstones.size+ indices while an Elasticsearch node is offline. # - # @option arguments [String] :index_uuid The UUID of the dangling index - # @option arguments [Boolean] :accept_data_loss Must be set to true in order to import the dangling index - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :index_uuid The UUID of the index to import. Use the get dangling indices API to locate the UUID. (*Required*) + # @option arguments [Boolean] :accept_data_loss This parameter must be set to true to import a dangling index. + # Because Elasticsearch cannot know where the dangling index data came from or determine which shard copies are fresh and which are stale, it cannot guarantee that the imported data represents the latest state of the index when it was last in the cluster. (*Required*) # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [Time] :timeout Explicit operation timeout # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway-dangling-indices.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-dangling-indices-import-dangling-index # def import_dangling_index(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'dangling_indices.import_dangling_index' } @@ -50,7 +53,7 @@ def import_dangling_index(arguments = {}) _index_uuid = arguments.delete(:index_uuid) method = Elasticsearch::API::HTTP_POST - path = "_dangling/#{Utils.__listify(_index_uuid)}" + path = "_dangling/#{Utils.listify(_index_uuid)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb index a46ca9851c..a8d6eddd73 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb @@ -15,18 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module DanglingIndices module Actions - # Returns all dangling indices. + # Get the dangling indices. + # If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. + # For example, this can happen if you delete more than +cluster.indices.tombstones.size+ indices while an Elasticsearch node is offline. + # Use this API to list dangling indices, which you can then import or delete. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway-dangling-indices.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-dangling-indices-list-dangling-indices # def list_dangling_indices(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'dangling_indices.list_dangling_indices' } @@ -34,7 +37,7 @@ def list_dangling_indices(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_dangling' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb index 3d0505817f..44c70011c5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb @@ -15,32 +15,63 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Removes a document from the index. + # Delete a document. + # Remove a JSON document from the specified index. + # NOTE: You cannot send deletion requests directly to a data stream. + # To delete a document in a data stream, you must target the backing index containing the document. + # **Optimistic concurrency control** + # Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the +if_seq_no+ and +if_primary_term+ parameters. + # If a mismatch is detected, the operation will result in a +VersionConflictException+ and a status code of +409+. + # **Versioning** + # Each document indexed is versioned. + # When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + # Every write operation run on a document, deletes included, causes its version to be incremented. + # The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + # The length of time for which a deleted document's version remains available is determined by the +index.gc_deletes+ index setting. + # **Routing** + # If routing is used during indexing, the routing value also needs to be specified to delete a document. + # If the +_routing+ mapping is set to +required+ and no routing value is specified, the delete API throws a +RoutingMissingException+ and rejects the request. + # For example: + # + + # DELETE /my-index-000001/_doc/1?routing=shard-1 + # + + # This request deletes the document with ID 1, but it is routed based on the user. + # The document is not deleted if the correct routing is not specified. + # **Distributed** + # The delete operation gets hashed into a specific shard ID. + # It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. # - # @option arguments [String] :id The document ID - # @option arguments [String] :index The name of the index - # @option arguments [String] :wait_for_active_shards Sets the number of shard copies that must be active before proceeding with the delete operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) - # @option arguments [String] :refresh If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. (options: true, false, wait_for) - # @option arguments [String] :routing Specific routing value - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Number] :if_seq_no only perform the delete operation if the last operation that has changed the document has the specified sequence number - # @option arguments [Number] :if_primary_term only perform the delete operation if the last operation that has changed the document has the specified primary term - # @option arguments [Number] :version Explicit version number for concurrency control - # @option arguments [String] :version_type Specific version type (options: internal, external, external_gte) + # @option arguments [String] :id A unique identifier for the document. (*Required*) + # @option arguments [String] :index The name of the target index. (*Required*) + # @option arguments [Integer] :if_primary_term Only perform the operation if the document has this primary term. + # @option arguments [Integer] :if_seq_no Only perform the operation if the document has this sequence number. + # @option arguments [String] :refresh If +true+, Elasticsearch refreshes the affected shards to make this operation visible to search. + # If +wait_for+, it waits for a refresh to make this operation visible to search. + # If +false+, it does nothing with refreshes. Server default: false. + # @option arguments [String] :routing A custom value used to route operations to a specific shard. + # @option arguments [Time] :timeout The period to wait for active shards.This parameter is useful for situations where the primary shard assigned to perform the delete operation might not be available when the delete operation runs. + # Some reasons for this might be that the primary shard is currently recovering from a store or undergoing relocation. + # By default, the delete operation will wait on the primary shard to become available for up to 1 minute before failing and responding with an error. Server default: 1m. + # @option arguments [Integer] :version An explicit version number for concurrency control. + # It must match the current version of the document for the request to succeed. + # @option arguments [String] :version_type The version type. + # @option arguments [Integer, String] :wait_for_active_shards The minimum number of shard copies that must be active before proceeding with the operation. + # You can set it to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). + # The default value of +1+ means it waits for each primary shard to be active. Server default: 1. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'delete' } - defined_params = %i[index id].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -58,11 +89,11 @@ def delete(arguments = {}) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_DELETE - path = "#{Utils.__listify(_index)}/_doc/#{Utils.__listify(_id)}" + path = "#{Utils.listify(_index)}/_doc/#{Utils.listify(_id)}" params = Utils.process_params(arguments) if Array(arguments[:ignore]).include?(404) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb index 395cd50618..34387b9853 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb @@ -15,48 +15,130 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Deletes documents matching the provided query. + # Delete documents. + # Deletes documents that match the specified query. + # If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + # * +read+ + # * +delete+ or +write+ + # You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + # When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + # If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + # NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + # While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + # A bulk delete request is performed for each batch of matching documents. + # If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + # If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + # Any delete requests that completed successfully still stick, they are not rolled back. + # You can opt to count version conflicts instead of halting and returning by setting +conflicts+ to +proceed+. + # Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than +max_docs+ until it has successfully deleted +max_docs documents+, or it has gone through every document in the source query. + # **Throttling delete requests** + # To control the rate at which delete by query issues batches of delete operations, you can set +requests_per_second+ to any positive decimal number. + # This pads each batch with a wait time to throttle the rate. + # Set +requests_per_second+ to +-1+ to disable throttling. + # Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + # The padding time is the difference between the batch size divided by the +requests_per_second+ and the time spent writing. + # By default the batch size is +1000+, so if +requests_per_second+ is set to +500+: + # + + # target_time = 1000 / 500 per second = 2 seconds + # wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + # + + # Since the batch is issued as a single +_bulk+ request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + # This is "bursty" instead of "smooth". + # **Slicing** + # Delete by query supports sliced scroll to parallelize the delete process. + # This can improve efficiency and provide a convenient way to break the request down into smaller parts. + # Setting +slices+ to +auto+ lets Elasticsearch choose the number of slices to use. + # This setting will use one slice per shard, up to a certain limit. + # If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + # Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + # * You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + # * Fetching the status of the task for the request with slices only contains the status of completed slices. + # * These sub-requests are individually addressable for things like cancellation and rethrottling. + # * Rethrottling the request with +slices+ will rethrottle the unfinished sub-request proportionally. + # * Canceling the request with +slices+ will cancel each sub-request. + # * Due to the nature of +slices+ each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + # * Parameters like +requests_per_second+ and +max_docs+ on a request with +slices+ are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using +max_docs+ with +slices+ might not result in exactly +max_docs+ documents being deleted. + # * Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + # If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + # * Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many +slices+ hurts performance. Setting +slices+ higher than the number of shards generally does not improve efficiency and adds overhead. + # * Delete performance scales linearly across available resources with the number of slices. + # Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + # **Cancel a delete by query operation** + # Any delete by query can be canceled using the task cancel API. For example: + # + + # POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + # + + # The task ID can be found by using the get tasks API. + # Cancellation should happen quickly but might take a few seconds. + # The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. # - # @option arguments [List] :index A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - # @option arguments [String] :analyzer The analyzer to use for the query string - # @option arguments [Boolean] :analyze_wildcard Specify whether wildcard and prefix queries should be analyzed (default: false) - # @option arguments [String] :default_operator The default operator for query string query (AND or OR) (options: AND, OR) - # @option arguments [String] :df The field to use as default where no field prefix is given in the query string - # @option arguments [Number] :from Starting offset (default: 0) - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :conflicts What to do when the delete by query hits version conflicts? (options: abort, proceed) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Boolean] :lenient Specify whether format-based query failures (such as providing text to a numeric field) should be ignored - # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random) - # @option arguments [String] :q Query in the Lucene query string syntax - # @option arguments [List] :routing A comma-separated list of specific routing values - # @option arguments [Time] :scroll Specify how long a consistent view of the index should be maintained for scrolled search - # @option arguments [String] :search_type Search operation type (options: query_then_fetch, dfs_query_then_fetch) - # @option arguments [Time] :search_timeout Explicit timeout for each search request. Defaults to no timeout. - # @option arguments [Number] :max_docs Maximum number of documents to process (default: all documents) - # @option arguments [List] :sort A comma-separated list of : pairs - # @option arguments [Number] :terminate_after The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early. - # @option arguments [List] :stats Specific 'tag' of the request for logging and statistical purposes - # @option arguments [Boolean] :version Specify whether to return document version as part of a hit - # @option arguments [Boolean] :request_cache Specify if request cache should be used for this request or not, defaults to index level setting - # @option arguments [Boolean] :refresh Should the affected indexes be refreshed? - # @option arguments [Time] :timeout Time each individual bulk request should wait for shards that are unavailable. - # @option arguments [String] :wait_for_active_shards Sets the number of shard copies that must be active before proceeding with the delete by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) - # @option arguments [Number] :scroll_size Size on the scroll request powering the delete by query - # @option arguments [Boolean] :wait_for_completion Should the request should block until the delete by query is complete. - # @option arguments [Number] :requests_per_second The throttle for this request in sub-requests per second. -1 means no throttle. - # @option arguments [Number|string] :slices The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`. + # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to search. + # It supports wildcards (+*+). + # To search all data streams or indices, omit this parameter or use +*+ or +_all+. (*Required*) + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. + # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. + # @option arguments [String] :analyzer Analyzer to use for the query string. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [Boolean] :analyze_wildcard If +true+, wildcard and prefix queries are analyzed. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [String] :conflicts What to do if delete by query hits version conflicts: +abort+ or +proceed+. Server default: abort. + # @option arguments [String] :default_operator The default operator for query string query: +AND+ or +OR+. + # This parameter can be used only when the +q+ query string parameter is specified. Server default: OR. + # @option arguments [String] :df The field to use as default where no field prefix is given in the query string. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # It supports comma-separated values, such as +open,hidden+. Server default: open. + # @option arguments [Integer] :from Skips the specified number of documents. Server default: 0. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :lenient If +true+, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [Integer] :max_docs The maximum number of documents to process. + # Defaults to all documents. + # When set to a value less then or equal to +scroll_size+, a scroll will not be used to retrieve the results for the operation. + # @option arguments [String] :preference The node or shard the operation should be performed on. + # It is random by default. + # @option arguments [Boolean] :refresh If +true+, Elasticsearch refreshes all shards involved in the delete by query after the request completes. + # This is different than the delete API's +refresh+ parameter, which causes just the shard that received the delete request to be refreshed. + # Unlike the delete API, it does not support +wait_for+. + # @option arguments [Boolean] :request_cache If +true+, the request cache is used for this request. + # Defaults to the index-level setting. + # @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second. Server default: -1. + # @option arguments [String] :routing A custom value used to route operations to a specific shard. + # @option arguments [String] :q A query in the Lucene query string syntax. + # @option arguments [Time] :scroll The period to retain the search context for scrolling. + # @option arguments [Integer] :scroll_size The size of the scroll request that powers the operation. Server default: 1000. + # @option arguments [Time] :search_timeout The explicit timeout for each search request. + # It defaults to no timeout. + # @option arguments [String] :search_type The type of the search operation. + # Available options include +query_then_fetch+ and +dfs_query_then_fetch+. + # @option arguments [Integer, String] :slices The number of slices this task should be divided into. Server default: 1. + # @option arguments [Array] :sort A comma-separated list of +:+ pairs. + # @option arguments [Array] :stats The specific +tag+ of the request for logging and statistical purposes. + # @option arguments [Integer] :terminate_after The maximum number of documents to collect for each shard. + # If a query reaches this limit, Elasticsearch terminates the query early. + # Elasticsearch collects documents before sorting.Use with caution. + # Elasticsearch applies this parameter to each shard handling the request. + # When possible, let Elasticsearch perform early termination automatically. + # Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. + # @option arguments [Time] :timeout The period each deletion request waits for active shards. Server default: 1m. + # @option arguments [Boolean] :version If +true+, returns the document version as part of a hit. + # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. + # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). + # The +timeout+ value controls how long each write request waits for unavailable shards to become available. Server default: 1. + # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks until the operation is complete. + # If +false+, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. Elasticsearch creates a record of this task as a document at +.tasks/task/${taskId}+. When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The search definition using the Query DSL (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete-by-query # def delete_by_query(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'delete_by_query' } @@ -72,12 +154,12 @@ def delete_by_query(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_delete_by_query" + path = "#{Utils.listify(_index)}/_delete_by_query" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb index 081b6efc86..c103a15e47 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb @@ -15,19 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Changes the number of requests per second for a particular Delete By Query operation. + # Throttle a delete by query operation. + # Change the number of requests per second for a particular delete by query operation. + # Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. # - # @option arguments [String] :task_id The task id to rethrottle - # @option arguments [Number] :requests_per_second The throttle to set on this request in floating sub-requests per second. -1 means set no throttle. (*Required*) + # @option arguments [String, Integer] :task_id The ID for the task. (*Required*) + # @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second. + # To disable throttling, set it to +-1+. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete-by-query-rethrottle # def delete_by_query_rethrottle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'delete_by_query_rethrottle' } @@ -47,7 +50,7 @@ def delete_by_query_rethrottle(arguments = {}) _task_id = arguments.delete(:task_id) method = Elasticsearch::API::HTTP_POST - path = "_delete_by_query/#{Utils.__listify(_task_id)}/_rethrottle" + path = "_delete_by_query/#{Utils.listify(_task_id)}/_rethrottle" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb index 9f1d8be915..e171837f12 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb @@ -15,20 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Deletes a script. + # Delete a script or search template. + # Deletes a stored script or search template. # - # @option arguments [String] :id Script ID - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String] :id The identifier for the stored script or search template. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. + # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. + # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete-script # def delete_script(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'delete_script' } @@ -48,7 +53,7 @@ def delete_script(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_DELETE - path = "_scripts/#{Utils.__listify(_id)}" + path = "_scripts/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb index de116ae993..5190c33e4e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb @@ -15,20 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Enrich module Actions + # Delete an enrich policy. # Deletes an existing enrich policy and its enrich index. # - # @option arguments [String] :name The name of the enrich policy - # @option arguments [Time] :master_timeout Timeout for processing on master node + # @option arguments [String] :name Enrich policy to delete. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-enrich-delete-policy # def delete_policy(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'enrich.delete_policy' } @@ -48,7 +49,7 @@ def delete_policy(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_DELETE - path = "_enrich/policy/#{Utils.__listify(_name)}" + path = "_enrich/policy/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb index f30444fefe..c69556c4e5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb @@ -15,21 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Enrich module Actions - # Creates the enrich index for an existing enrich policy. + # Run an enrich policy. + # Create the enrich index for an existing enrich policy. # - # @option arguments [String] :name The name of the enrich policy - # @option arguments [Boolean] :wait_for_completion Should the request should block until the execution is complete. - # @option arguments [Time] :master_timeout Timeout for processing on master node + # @option arguments [String] :name Enrich policy to execute. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks other enrich policy execution requests until complete. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/execute-enrich-policy-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-enrich-execute-policy # def execute_policy(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'enrich.execute_policy' } @@ -49,7 +50,7 @@ def execute_policy(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_PUT - path = "_enrich/policy/#{Utils.__listify(_name)}/_execute" + path = "_enrich/policy/#{Utils.listify(_name)}/_execute" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb index 76ef6e7367..e8fbc267c2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb @@ -15,20 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Enrich module Actions - # Gets information about an enrich policy. + # Get an enrich policy. + # Returns information about an enrich policy. # - # @option arguments [List] :name A comma-separated list of enrich policy names - # @option arguments [Time] :master_timeout Timeout for waiting for new cluster state in case it is blocked + # @option arguments [String, Array] :name Comma-separated list of enrich policy names used to limit the request. + # To return information for all enrich policies, omit this parameter. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-enrich-get-policy # def get_policy(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'enrich.get_policy' } @@ -47,7 +49,7 @@ def get_policy(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _name - "_enrich/policy/#{Utils.__listify(_name)}" + "_enrich/policy/#{Utils.listify(_name)}" else '_enrich/policy' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb index b93de33b2c..92d7b09586 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb @@ -15,21 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Enrich module Actions - # Creates a new enrich policy. + # Create an enrich policy. + # Creates an enrich policy. # - # @option arguments [String] :name The name of the enrich policy - # @option arguments [Time] :master_timeout Timeout for processing on master node + # @option arguments [String] :name Name of the enrich policy to create or update. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The enrich policy to register (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-enrich-policy-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-enrich-put-policy # def put_policy(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'enrich.put_policy' } @@ -50,7 +51,7 @@ def put_policy(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_PUT - path = "_enrich/policy/#{Utils.__listify(_name)}" + path = "_enrich/policy/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb index 8a71c336d4..de1ffc5935 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb @@ -15,19 +15,20 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Enrich module Actions - # Gets enrich coordinator statistics and information about enrich policies that are currently executing. + # Get enrich stats. + # Returns enrich coordinator statistics and information about enrich policies that are currently executing. # - # @option arguments [Time] :master_timeout Timeout for processing on master node + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-stats-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-enrich-stats # def stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'enrich.stats' } @@ -35,7 +36,7 @@ def stats(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_enrich/_stats' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb index d0a794a594..5c8ce55fb6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb @@ -15,19 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Eql module Actions - # Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + # Delete an async EQL search. + # Delete an async EQL search or a stored synchronous EQL search. + # The API also deletes results for the search. # - # @option arguments [String] :id The async search ID + # @option arguments [String] :id Identifier for the search to delete. + # A search ID is provided in the EQL search API's response for an async search. + # A search ID is also provided if the request’s +keep_on_completion+ parameter is +true+. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-eql-delete # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'eql.delete' } @@ -47,7 +51,7 @@ def delete(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_DELETE - path = "_eql/search/#{Utils.__listify(_id)}" + path = "_eql/search/#{Utils.listify(_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb index 87341090a1..3518cb685b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb @@ -15,21 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Eql module Actions - # Returns async results from previously executed Event Query Language (EQL) search + # Get async EQL search results. + # Get the current status and available results for an async EQL search or a stored synchronous EQL search. # - # @option arguments [String] :id The async search ID - # @option arguments [Time] :wait_for_completion_timeout Specify the time that the request should block waiting for the final response - # @option arguments [Time] :keep_alive Update the time interval in which the results (partial or final) for this search will be available + # @option arguments [String] :id Identifier for the search. (*Required*) + # @option arguments [Time] :keep_alive Period for which the search and its results are stored on the cluster. + # Defaults to the keep_alive value set by the search’s EQL search API request. + # @option arguments [Time] :wait_for_completion_timeout Timeout duration to wait for the request to finish. + # Defaults to no timeout, meaning the request waits for complete search results. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-eql-get # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'eql.get' } @@ -49,7 +52,7 @@ def get(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_GET - path = "_eql/search/#{Utils.__listify(_id)}" + path = "_eql/search/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb index 06e4d98460..c4b30e42ec 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb @@ -15,19 +15,20 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Eql module Actions - # Returns the status of a previously submitted async or stored Event Query Language (EQL) search + # Get the async EQL status. + # Get the current status for an async EQL search or a stored synchronous EQL search without returning results. # - # @option arguments [String] :id The async search ID + # @option arguments [String] :id Identifier for the search. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-eql-get-status # def get_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'eql.get_status' } @@ -47,7 +48,7 @@ def get_status(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_GET - path = "_eql/search/status/#{Utils.__listify(_id)}" + path = "_eql/search/status/#{Utils.listify(_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb index 870291cd16..4d16655670 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb @@ -15,25 +15,31 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Eql module Actions - # Returns results matching a query expressed in Event Query Language (EQL) + # Get EQL search results. + # Returns search results for an Event Query Language (EQL) query. + # EQL assumes each document in a data stream or index corresponds to an event. # - # @option arguments [String] :index The name of the index to scope the operation - # @option arguments [Time] :wait_for_completion_timeout Specify the time that the request should block waiting for the final response - # @option arguments [Boolean] :keep_on_completion Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false) - # @option arguments [Time] :keep_alive Update the time interval in which the results (partial or final) for this search will be available - # @option arguments [Boolean] :allow_partial_search_results Control whether the query should keep running in case of shard failures, and return partial results - # @option arguments [Boolean] :allow_partial_sequence_results Control whether a sequence query should return partial results or no results at all in case of shard failures. This option has effect only if [allow_partial_search_results] is true. + # @option arguments [String, Array] :index The name of the index to scope the operation (*Required*) + # @option arguments [Boolean] :allow_no_indices [TODO] Server default: true. + # @option arguments [Boolean] :allow_partial_search_results If true, returns partial results if there are shard failures. If false, returns an error with no partial results. Server default: true. + # @option arguments [Boolean] :allow_partial_sequence_results If true, sequence queries will return partial results in case of shard failures. If false, they will return no results at all. + # This flag has effect only if allow_partial_search_results is true. + # @option arguments [String, Array] :expand_wildcards [TODO] Server default: open. + # @option arguments [Boolean] :ignore_unavailable If true, missing or closed indices are not included in the response. Server default: true. + # @option arguments [Time] :keep_alive Period for which the search and its results are stored on the cluster. Server default: 5d. + # @option arguments [Boolean] :keep_on_completion If true, the search and its results are stored on the cluster. + # @option arguments [Time] :wait_for_completion_timeout Timeout duration to wait for the request to finish. Defaults to no timeout, meaning the request waits for complete search results. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Eql request body. Use the `query` to limit the query scope. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-eql-search # def search(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'eql.search' } @@ -49,12 +55,12 @@ def search(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_eql/search" + path = "#{Utils.listify(_index)}/_eql/search" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb index fadffc40ef..1ca023a28e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb @@ -15,22 +15,36 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Esql module Actions - # Executes an ESQL request asynchronously + # Run an async ES|QL query. + # Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. + # The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. # - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [String] :delimiter The character to use between values within a CSV row. Only valid for the csv format. - # @option arguments [Boolean] :drop_null_columns Should entirely null columns be removed from the results? Their name and type will be returning in a new `all_columns` section. + # @option arguments [String] :delimiter The character to use between values within a CSV row. + # It is valid only for the CSV format. + # @option arguments [Boolean] :drop_null_columns Indicates whether columns that are entirely +null+ will be removed from the +columns+ and +values+ portion of the results. + # If +true+, the response will include an extra section under the name +all_columns+ which has the name of all the columns. + # @option arguments [String] :format A short version of the Accept header, for example +json+ or +yaml+. + # @option arguments [Time] :keep_alive The period for which the query and its results are stored in the cluster. + # The default period is five days. + # When this period expires, the query and its results are deleted, even if the query is still ongoing. + # If the +keep_on_completion+ parameter is false, Elasticsearch only stores async queries that do not complete within the period set by the +wait_for_completion_timeout+ parameter, regardless of this value. Server default: 5d. + # @option arguments [Boolean] :keep_on_completion Indicates whether the query and its results are stored in the cluster. + # If false, the query and its results are stored in the cluster only if the request does not complete during the period set by the +wait_for_completion_timeout+ parameter. + # @option arguments [Time] :wait_for_completion_timeout The period to wait for the request to finish. + # By default, the request waits for 1 second for the query results. + # If the query completes during this period, results are returned + # Otherwise, a query ID is returned that can later be used to retrieve the results. Server default: 1s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Use the `query` element to start a query. Use `columnar` to format the answer. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-async-query-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-esql-async-query # def async_query(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'esql.async_query' } @@ -40,7 +54,7 @@ def async_query(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_query/async' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb index 647470b44a..d6fccb45a9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb @@ -15,19 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Esql module Actions - # Delete an async query request given its ID. + # Delete an async ES|QL query. + # If the query is still running, it is cancelled. + # Otherwise, the stored results are deleted. + # If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: + # * The authenticated user that submitted the original query request + # * Users with the +cancel_task+ cluster privilege # - # @option arguments [String] :id The async query ID + # @option arguments [String] :id The unique identifier of the query. + # A query ID is provided in the ES|QL async query API response for a query that does not complete in the designated time. + # A query ID is also provided when the request was submitted with the +keep_on_completion+ parameter set to +true+. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-async-query-delete-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-esql-async-query-delete # def async_query_delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'esql.async_query_delete' } @@ -47,7 +54,7 @@ def async_query_delete(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_DELETE - path = "_query/async/#{Utils.__listify(_id)}" + path = "_query/async/#{Utils.listify(_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb index 4d59504018..5b89957b8f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb @@ -15,22 +15,31 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Esql module Actions - # Retrieves the results of a previously submitted async query request given its ID. + # Get async ES|QL query results. + # Get the current status and available results or stored results for an ES|QL asynchronous query. + # If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. # - # @option arguments [String] :id The async query ID - # @option arguments [Time] :wait_for_completion_timeout Specify the time that the request should block waiting for the final response - # @option arguments [Time] :keep_alive Specify the time interval in which the results (partial or final) for this search will be available - # @option arguments [Boolean] :drop_null_columns Should entirely null columns be removed from the results? Their name and type will be returning in a new `all_columns` section. + # @option arguments [String] :id The unique identifier of the query. + # A query ID is provided in the ES|QL async query API response for a query that does not complete in the designated time. + # A query ID is also provided when the request was submitted with the +keep_on_completion+ parameter set to +true+. (*Required*) + # @option arguments [Boolean] :drop_null_columns Indicates whether columns that are entirely +null+ will be removed from the +columns+ and +values+ portion of the results. + # If +true+, the response will include an extra section under the name +all_columns+ which has the name of all the columns. + # @option arguments [Time] :keep_alive The period for which the query and its results are stored in the cluster. + # When this period expires, the query and its results are deleted, even if the query is still ongoing. + # @option arguments [Time] :wait_for_completion_timeout The period to wait for the request to finish. + # By default, the request waits for complete query results. + # If the request completes during the period specified in this parameter, complete query results are returned. + # Otherwise, the response returns an +is_running+ value of +true+ and no results. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-async-query-get-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-esql-async-query-get # def async_query_get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'esql.async_query_get' } @@ -50,7 +59,7 @@ def async_query_get(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_GET - path = "_query/async/#{Utils.__listify(_id)}" + path = "_query/async/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb index 0897edd15a..c27934a453 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb @@ -15,16 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Esql module Actions - # Stops a previously submitted async query request given its ID and collects the results. + # Stop async ES|QL query. + # This API interrupts the query execution and returns the results so far. + # If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. # - # @option arguments [String] :id The async query ID + # @option arguments [String] :id The unique identifier of the query. + # A query ID is provided in the ES|QL async query API response for a query that does not complete in the designated time. + # A query ID is also provided when the request was submitted with the +keep_on_completion+ parameter set to +true+. (*Required*) + # @option arguments [Boolean] :drop_null_columns Indicates whether columns that are entirely +null+ will be removed from the +columns+ and +values+ portion of the results. + # If +true+, the response will include an extra section under the name +all_columns+ which has the name of all the columns. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-async-query-stop-api.html @@ -47,8 +53,8 @@ def async_query_stop(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_POST - path = "_query/async/#{Utils.__listify(_id)}/stop" - params = {} + path = "_query/async/#{Utils.listify(_id)}/stop" + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb index 0d722a7f72..2c4f412a30 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb @@ -15,22 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Esql module Actions - # Executes an ESQL request + # Run an ES|QL query. + # Get search results for an ES|QL (Elasticsearch query language) query. + # This functionality is subject to potential breaking changes within a + # minor version, meaning that your referencing code may break when this + # library is upgraded. # - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml - # @option arguments [String] :delimiter The character to use between values within a CSV row. Only valid for the csv format. - # @option arguments [Boolean] :drop_null_columns Should entirely null columns be removed from the results? Their name and type will be returning in a new `all_columns` section. + # @option arguments [String] :format A short version of the Accept header, e.g. json, yaml. + # @option arguments [String] :delimiter The character to use between values within a CSV row. Only valid for the CSV format. + # @option arguments [Boolean] :drop_null_columns Should columns that are entirely +null+ be removed from the +columns+ and +values+ portion of the results? + # Defaults to +false+. If +true+ then the response will include an extra section under the name +all_columns+ which has the name of all columns. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Use the `query` element to start a query. Use `columnar` to format the answer. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-query-api.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-rest.html # def query(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'esql.query' } @@ -40,7 +45,7 @@ def query(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_query' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb b/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb index aaf756abe1..986c38f48e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb @@ -15,34 +15,60 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns information about whether a document exists in an index. + # Check a document. + # Verify that a document exists. + # For example, check to see if a document with the +_id+ 0 exists: + # + + # HEAD my-index-000001/_doc/0 + # + + # If the document exists, the API returns a status code of +200 - OK+. + # If the document doesn’t exist, the API returns +404 - Not Found+. + # **Versioning support** + # You can use the +version+ parameter to check the document only if its current version is equal to the specified one. + # Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + # The old version of the document doesn't disappear immediately, although you won't be able to access it. + # Elasticsearch cleans up deleted documents in the background as you continue to index more data. # - # @option arguments [String] :id The document ID - # @option arguments [String] :index The name of the index - # @option arguments [List] :stored_fields A comma-separated list of stored fields to return in the response - # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random) - # @option arguments [Boolean] :realtime Specify whether to perform the operation in realtime or search mode - # @option arguments [Boolean] :refresh Refresh the shard containing the document before performing the operation - # @option arguments [String] :routing Specific routing value - # @option arguments [List] :_source True or false to return the _source field or not, or a list of fields to return - # @option arguments [List] :_source_excludes A list of fields to exclude from the returned _source field - # @option arguments [List] :_source_includes A list of fields to extract and return from the _source field - # @option arguments [Number] :version Explicit version number for concurrency control - # @option arguments [String] :version_type Specific version type (options: internal, external, external_gte) + # @option arguments [String] :id A unique document identifier. (*Required*) + # @option arguments [String] :index A comma-separated list of data streams, indices, and aliases. + # It supports wildcards (+*+). (*Required*) + # @option arguments [String] :preference The node or shard the operation should be performed on. + # By default, the operation is randomized between the shard replicas.If it is set to +_local+, the operation will prefer to be run on a local allocated shard when possible. + # If it is set to a custom value, the value is used to guarantee that the same shards will be used for the same custom value. + # This can help with "jumping values" when hitting different shards in different refresh states. + # A sample value can be something like the web session ID or the user name. + # @option arguments [Boolean] :realtime If +true+, the request is real-time as opposed to near-real-time. Server default: true. + # @option arguments [Boolean] :refresh If +true+, the request refreshes the relevant shards before retrieving the document. + # Setting it to +true+ should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). + # @option arguments [String] :routing A custom value used to route operations to a specific shard. + # @option arguments [Boolean, String, Array] :_source Indicates whether to return the +_source+ field (+true+ or +false+) or lists the fields to return. + # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude from the response. + # You can also use this parameter to exclude fields from the subset specified in +_source_includes+ query parameter. + # If the +_source+ parameter is +false+, this parameter is ignored. + # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. + # If this parameter is specified, only these source fields are returned. + # You can exclude fields from this subset using the +_source_excludes+ query parameter. + # If the +_source+ parameter is +false+, this parameter is ignored. + # @option arguments [String, Array] :stored_fields A comma-separated list of stored fields to return as part of a hit. + # If no fields are specified, no stored fields are included in the response. + # If this field is specified, the +_source+ parameter defaults to +false+. + # @option arguments [Integer] :version Explicit version number for concurrency control. + # The specified version must match the current version of the document for the request to succeed. + # @option arguments [String] :version_type The version type. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get # def exists(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'exists' } - defined_params = %i[index id].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -60,10 +86,10 @@ def exists(arguments = {}) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_HEAD - path = "#{Utils.__listify(_index)}/_doc/#{Utils.__listify(_id)}" + path = "#{Utils.listify(_index)}/_doc/#{Utils.listify(_id)}" params = Utils.process_params(arguments) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do perform_request(method, path, params, body, headers, request_opts).status == 200 end end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb b/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb index ce01cb5e22..dff06fe2f6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb @@ -15,33 +15,43 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns information about whether a document source exists in an index. + # Check for a document source. + # Check whether a document source exists in an index. + # For example: + # + + # HEAD my-index-000001/_source/1 + # + + # A document's source is not available if it is disabled in the mapping. # - # @option arguments [String] :id The document ID - # @option arguments [String] :index The name of the index - # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random) - # @option arguments [Boolean] :realtime Specify whether to perform the operation in realtime or search mode - # @option arguments [Boolean] :refresh Refresh the shard containing the document before performing the operation - # @option arguments [String] :routing Specific routing value - # @option arguments [List] :_source True or false to return the _source field or not, or a list of fields to return - # @option arguments [List] :_source_excludes A list of fields to exclude from the returned _source field - # @option arguments [List] :_source_includes A list of fields to extract and return from the _source field - # @option arguments [Number] :version Explicit version number for concurrency control - # @option arguments [String] :version_type Specific version type (options: internal, external, external_gte) + # @option arguments [String] :id A unique identifier for the document. (*Required*) + # @option arguments [String] :index A comma-separated list of data streams, indices, and aliases. + # It supports wildcards (+*+). (*Required*) + # @option arguments [String] :preference The node or shard the operation should be performed on. + # By default, the operation is randomized between the shard replicas. + # @option arguments [Boolean] :realtime If +true+, the request is real-time as opposed to near-real-time. Server default: true. + # @option arguments [Boolean] :refresh If +true+, the request refreshes the relevant shards before retrieving the document. + # Setting it to +true+ should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). + # @option arguments [String] :routing A custom value used to route operations to a specific shard. + # @option arguments [Boolean, String, Array] :_source Indicates whether to return the +_source+ field (+true+ or +false+) or lists the fields to return. + # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude in the response. + # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. + # @option arguments [Integer] :version The version number for concurrency control. + # It must match the current version of the document for the request to succeed. + # @option arguments [String] :version_type The version type. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get # def exists_source(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'exists_source' } - defined_params = %i[index id].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -59,7 +69,7 @@ def exists_source(arguments = {}) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_HEAD - path = "#{Utils.__listify(_index)}/_source/#{Utils.__listify(_id)}" + path = "#{Utils.listify(_index)}/_source/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb b/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb index b78f9160a5..6abb2b9fd8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb @@ -15,37 +15,51 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns information about why a specific matches (or doesn't match) a query. + # Explain a document match result. + # Get information about why a specific document matches, or doesn't match, a query. + # It computes a score explanation for a query and a specific document. # - # @option arguments [String] :id The document ID - # @option arguments [String] :index The name of the index - # @option arguments [Boolean] :analyze_wildcard Specify whether wildcards and prefix queries in the query string query should be analyzed (default: false) - # @option arguments [String] :analyzer The analyzer for the query string query - # @option arguments [String] :default_operator The default operator for query string query (AND or OR) (options: AND, OR) - # @option arguments [String] :df The default field for query string query (default: _all) - # @option arguments [List] :stored_fields A comma-separated list of stored fields to return in the response - # @option arguments [Boolean] :lenient Specify whether format-based query failures (such as providing text to a numeric field) should be ignored - # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random) - # @option arguments [String] :q Query in the Lucene query string syntax - # @option arguments [String] :routing Specific routing value - # @option arguments [List] :_source True or false to return the _source field or not, or a list of fields to return - # @option arguments [List] :_source_excludes A list of fields to exclude from the returned _source field - # @option arguments [List] :_source_includes A list of fields to extract and return from the _source field + # @option arguments [String] :id The document identifier. (*Required*) + # @option arguments [String] :index Index names that are used to limit the request. + # Only a single index name can be provided to this parameter. (*Required*) + # @option arguments [String] :analyzer The analyzer to use for the query string. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [Boolean] :analyze_wildcard If +true+, wildcard and prefix queries are analyzed. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [String] :default_operator The default operator for query string query: +AND+ or +OR+. + # This parameter can be used only when the +q+ query string parameter is specified. Server default: OR. + # @option arguments [String] :df The field to use as default where no field prefix is given in the query string. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [Boolean] :lenient If +true+, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [String] :preference The node or shard the operation should be performed on. + # It is random by default. + # @option arguments [String] :routing A custom value used to route operations to a specific shard. + # @option arguments [Boolean, String, Array] :_source +True+ or +false+ to return the +_source+ field or not or a list of fields to return. + # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude from the response. + # You can also use this parameter to exclude fields from the subset specified in +_source_includes+ query parameter. + # If the +_source+ parameter is +false+, this parameter is ignored. + # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. + # If this parameter is specified, only these source fields are returned. + # You can exclude fields from this subset using the +_source_excludes+ query parameter. + # If the +_source+ parameter is +false+, this parameter is ignored. + # @option arguments [String, Array] :stored_fields A comma-separated list of stored fields to return in the response. + # @option arguments [String] :q The query in the Lucene query string syntax. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The query definition using the Query DSL + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-explain.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-explain # def explain(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'explain' } - defined_params = %i[index id].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -68,7 +82,7 @@ def explain(arguments = {}) Elasticsearch::API::HTTP_GET end - path = "#{Utils.__listify(_index)}/_explain/#{Utils.__listify(_id)}" + path = "#{Utils.listify(_index)}/_explain/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb b/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb index 65c71bc792..90f9b57666 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb @@ -15,19 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Features module Actions - # Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot + # Get the features. + # Get a list of features that can be included in snapshots using the +feature_states+ field when creating a snapshot. + # You can use this API to determine which feature states to include when taking a snapshot. + # By default, all feature states are included in a snapshot if that snapshot includes the global state, or none if it does not. + # A feature state includes one or more system indices necessary for a given feature to function. + # In order to ensure data integrity, all system indices that comprise a feature state are snapshotted and restored together. + # The features listed by this API are a combination of built-in features and features defined by plugins. + # In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. # - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-features-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-features-get-features # def get_features(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'features.get_features' } @@ -35,7 +42,7 @@ def get_features(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_features' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb b/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb index 63ea0c5e85..c5faf08dea 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb @@ -15,23 +15,33 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Features module Actions - # Resets the internal state of features, usually by deleting system indices + # Reset the features. + # Clear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices. + # WARNING: Intended for development and testing use only. Do not reset features on a production cluster. + # Return a cluster to the same state as a new installation by resetting the feature state for all Elasticsearch features. + # This deletes all state information stored in system indices. + # The response code is HTTP 200 if the state is successfully reset for all features. + # It is HTTP 500 if the reset operation failed for any feature. + # Note that select features might provide a way to reset particular system indices. + # Using this API resets all features, both those that are built-in and implemented as plugins. + # To list the features that will be affected, use the get features API. + # IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-features-reset-features # def reset_features(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'features.reset_features' } @@ -39,7 +49,7 @@ def reset_features(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_POST path = '_features/_reset' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb b/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb index 0ad6237bb3..3f4c9091d0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb @@ -15,27 +15,35 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns the information about the capabilities of fields among multiple indices. + # Get the field capabilities. + # Get information about the capabilities of fields among multiple indices. + # For data streams, the API returns field capabilities among the stream’s backing indices. + # It returns runtime fields like any other field. + # For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the +keyword+ family. # - # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - # @option arguments [List] :fields A comma-separated list of field names - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Boolean] :include_unmapped Indicates whether unmapped fields should be included in the response. - # @option arguments [List] :filters An optional set of filters: can include +metadata,-metadata,-nested,-multifield,-parent - # @option arguments [List] :types Only return results for fields that have one of the types in the list - # @option arguments [Boolean] :include_empty_fields Include empty fields in result + # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indices, omit this parameter or use * or _all. + # @option arguments [Boolean] :allow_no_indices If false, the request returns an error if any wildcard expression, index alias, + # or +_all+ value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request + # targeting +foo*,bar*+ returns an error if an index starts with foo but no index starts with bar. Server default: true. + # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such as +open,hidden+. Server default: open. + # @option arguments [String, Array] :fields A comma-separated list of fields to retrieve capabilities for. Wildcard (+*+) expressions are supported. + # @option arguments [Boolean] :ignore_unavailable If +true+, missing or closed indices are not included in the response. + # @option arguments [Boolean] :include_unmapped If true, unmapped fields are included in the response. + # @option arguments [String] :filters A comma-separated list of filters to apply to the response. + # @option arguments [Array] :types A comma-separated list of field types to include. + # Any fields that do not match one of these types will be excluded from the results. + # It defaults to empty, meaning that all field types are returned. + # @option arguments [Boolean] :include_empty_fields If false, empty fields are not included in the response. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body An index filter specified with the Query DSL + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-field-caps.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-field-caps # def field_caps(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'field_caps' } @@ -58,11 +66,11 @@ def field_caps(arguments = {}) Elasticsearch::API::HTTP_GET end - path = if _index - "#{Utils.__listify(_index)}/_field_caps" - else - '_field_caps' - end + path = if _index + "#{Utils.listify(_index)}/_field_caps" + else + '_field_caps' + end params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb index 7768f2c53d..b281b20586 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb @@ -15,23 +15,29 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Fleet module Actions - # Returns the current global checkpoints for an index. This API is design for internal use by the fleet server project. + # Get global checkpoints. + # Get the current global checkpoints for an index. + # This API is designed for internal use by the Fleet server project. # - # @option arguments [String] :index The name of the index. - # @option arguments [Boolean] :wait_for_advance Whether to wait for the global checkpoint to advance past the specified current checkpoints - # @option arguments [Boolean] :wait_for_index Whether to wait for the target index to exist and all primary shards be active - # @option arguments [List] :checkpoints Comma separated list of checkpoints - # @option arguments [Time] :timeout Timeout to wait for global checkpoint to advance + # @option arguments [Indexname, Indexalias] :index A single index or index alias that resolves to a single index. (*Required*) + # @option arguments [Boolean] :wait_for_advance A boolean value which controls whether to wait (until the timeout) for the global checkpoints + # to advance past the provided +checkpoints+. + # @option arguments [Boolean] :wait_for_index A boolean value which controls whether to wait (until the timeout) for the target index to exist + # and all primary shards be active. Can only be true when +wait_for_advance+ is true. + # @option arguments [Array] :checkpoints A comma separated list of previous global checkpoints. When used in combination with +wait_for_advance+, + # the API will only return once the global checkpoints advances past the checkpoints. Providing an empty list + # will cause Elasticsearch to immediately return the current global checkpoints. Server default: []. + # @option arguments [Time] :timeout Period to wait for a global checkpoints to advance past +checkpoints+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-global-checkpoints.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-fleet # def global_checkpoints(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'fleet.global_checkpoints' } @@ -46,12 +52,12 @@ def global_checkpoints(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET - path = "#{Utils.__listify(_index)}/_fleet/global_checkpoints" + path = "#{Utils.listify(_index)}/_fleet/global_checkpoints" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb index d80bbed755..f36eccd5db 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb @@ -15,24 +15,44 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Fleet module Actions - # Multi Search API where the search will only be executed after specified checkpoints are available due to a refresh. This API is designed for internal use by the fleet server project. + # Run multiple Fleet searches. + # Run several Fleet searches with a single API request. + # The API follows the same structure as the multi search API. + # However, similar to the Fleet search API, it supports the +wait_for_checkpoints+ parameter. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :index The index name to use as the default + # @option arguments [Indexname, Indexalias] :index A single target to search. If the target is an index alias, it must resolve to a single index. + # @option arguments [Boolean] :allow_no_indices If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + # @option arguments [Boolean] :ccs_minimize_roundtrips If true, network roundtrips between the coordinating node and remote clusters are minimized for cross-cluster search requests. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard expressions can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # @option arguments [Boolean] :ignore_throttled If true, concrete, expanded or aliased indices are ignored when frozen. + # @option arguments [Boolean] :ignore_unavailable If true, missing or closed indices are not included in the response. + # @option arguments [Integer] :max_concurrent_searches Maximum number of concurrent searches the multi search API can execute. + # @option arguments [Integer] :max_concurrent_shard_requests Maximum number of concurrent shard requests that each sub-search request executes per node. Server default: 5. + # @option arguments [Integer] :pre_filter_shard_size Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method i.e., if date filters are mandatory to match but the shard bounds and the query are disjoint. + # @option arguments [String] :search_type Indicates whether global term and document frequencies should be used when scoring returned documents. + # @option arguments [Boolean] :rest_total_hits_as_int If true, hits.total are returned as an integer in the response. Defaults to false, which returns an object. + # @option arguments [Boolean] :typed_keys Specifies whether aggregation and suggester names should be prefixed by their respective types in the response. + # @option arguments [Array] :wait_for_checkpoints A comma separated list of checkpoints. When configured, the search API will only be executed on a shard + # after the relevant checkpoint has become visible for search. Defaults to an empty list which will cause + # Elasticsearch to immediately execute the search. Server default: []. + # @option arguments [Boolean] :allow_partial_search_results If true, returns partial results if there are shard request timeouts or {https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-replication.html#shard-failures shard failures}. If false, returns + # an error with no partial results. Defaults to the configured cluster setting +search.default_allow_partial_results+ + # which is true by default. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The request definitions (metadata-fleet search request definition pairs), separated by newlines (*Required*) + # @option arguments [Hash] :body searches # - # @see [TODO] + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-fleet-msearch # def msearch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'fleet.msearch' } @@ -47,19 +67,19 @@ def msearch(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = if _index - "#{Utils.__listify(_index)}/_fleet/_fleet_msearch" + "#{Utils.listify(_index)}/_fleet/_fleet_msearch" else '_fleet/_fleet_msearch' end - params = {} + params = Utils.process_params(arguments) - if body.is_a?(Array) && body.any? { |d| d.has_key? :search } + if body.is_a?(Array) && body.any? { |d| d.key? :search } payload = body.each_with_object([]) do |item, sum| meta = item data = meta.delete(:search) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb index d3f67b21dc..9b78f0741e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb @@ -15,27 +15,73 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Fleet module Actions - # Search API where the search will only be executed after specified checkpoints are available due to a refresh. This API is designed for internal use by the fleet server project. + # Run a Fleet search. + # The purpose of the Fleet search API is to provide an API where the search will be run only + # after the provided checkpoint has been processed and is visible for searches inside of Elasticsearch. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :index The index name to search. - # @option arguments [List] :wait_for_checkpoints Comma separated list of checkpoints, one per shard - # @option arguments [Time] :wait_for_checkpoints_timeout Explicit wait_for_checkpoints timeout - # @option arguments [Boolean] :allow_partial_search_results Indicate if an error should be returned if there is a partial search failure or timeout + # @option arguments [Indexname, Indexalias] :index A single target to search. If the target is an index alias, it must resolve to a single index. (*Required*) + # @option arguments [Boolean] :allow_no_indices [TODO] + # @option arguments [String] :analyzer [TODO] + # @option arguments [Boolean] :analyze_wildcard [TODO] + # @option arguments [Integer] :batched_reduce_size [TODO] + # @option arguments [Boolean] :ccs_minimize_roundtrips [TODO] + # @option arguments [String] :default_operator [TODO] + # @option arguments [String] :df [TODO] + # @option arguments [String, Array] :docvalue_fields [TODO] + # @option arguments [String, Array] :expand_wildcards [TODO] + # @option arguments [Boolean] :explain [TODO] + # @option arguments [Boolean] :ignore_throttled [TODO] + # @option arguments [Boolean] :ignore_unavailable [TODO] + # @option arguments [Boolean] :lenient [TODO] + # @option arguments [Integer] :max_concurrent_shard_requests [TODO] + # @option arguments [String] :preference [TODO] + # @option arguments [Integer] :pre_filter_shard_size [TODO] + # @option arguments [Boolean] :request_cache [TODO] + # @option arguments [String] :routing [TODO] + # @option arguments [Time] :scroll [TODO] + # @option arguments [String] :search_type [TODO] + # @option arguments [Array] :stats [TODO] + # @option arguments [String, Array] :stored_fields [TODO] + # @option arguments [String] :suggest_field Specifies which field to use for suggestions. + # @option arguments [String] :suggest_mode [TODO] + # @option arguments [Integer] :suggest_size [TODO] + # @option arguments [String] :suggest_text The source text for which the suggestions should be returned. + # @option arguments [Integer] :terminate_after [TODO] + # @option arguments [Time] :timeout [TODO] + # @option arguments [Boolean, Integer] :track_total_hits [TODO] + # @option arguments [Boolean] :track_scores [TODO] + # @option arguments [Boolean] :typed_keys [TODO] + # @option arguments [Boolean] :rest_total_hits_as_int [TODO] + # @option arguments [Boolean] :version [TODO] + # @option arguments [Boolean, String, Array] :_source [TODO] + # @option arguments [String, Array] :_source_excludes [TODO] + # @option arguments [String, Array] :_source_includes [TODO] + # @option arguments [Boolean] :seq_no_primary_term [TODO] + # @option arguments [String] :q [TODO] + # @option arguments [Integer] :size [TODO] + # @option arguments [Integer] :from [TODO] + # @option arguments [String] :sort [TODO] + # @option arguments [Array] :wait_for_checkpoints A comma separated list of checkpoints. When configured, the search API will only be executed on a shard + # after the relevant checkpoint has become visible for search. Defaults to an empty list which will cause + # Elasticsearch to immediately execute the search. Server default: []. + # @option arguments [Boolean] :allow_partial_search_results If true, returns partial results if there are shard request timeouts or {https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-replication.html#shard-failures shard failures}. If false, returns + # an error with no partial results. Defaults to the configured cluster setting +search.default_allow_partial_results+ + # which is true by default. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The search definition using the Query DSL + # @option arguments [Hash] :body request body # - # @see [TODO] + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-fleet-search # def search(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'fleet.search' } @@ -60,7 +106,7 @@ def search(arguments = {}) Elasticsearch::API::HTTP_GET end - path = "#{Utils.__listify(_index)}/_fleet/_fleet_search" + path = "#{Utils.listify(_index)}/_fleet/_fleet_search" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get.rb index 3b956abf07..f7f9e9a385 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get.rb @@ -15,35 +15,91 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns a document. + # Get a document by its ID. + # Get a document and its source or stored fields from an index. + # By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + # In the case where stored fields are requested with the +stored_fields+ parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + # To turn off realtime behavior, set the +realtime+ parameter to false. + # **Source filtering** + # By default, the API returns the contents of the +_source+ field unless you have used the +stored_fields+ parameter or the +_source+ field is turned off. + # You can turn off +_source+ retrieval by using the +_source+ parameter: + # + + # GET my-index-000001/_doc/0?_source=false + # + + # If you only need one or two fields from the +_source+, use the +_source_includes+ or +_source_excludes+ parameters to include or filter out particular fields. + # This can be helpful with large documents where partial retrieval can save on network overhead + # Both parameters take a comma separated list of fields or wildcard expressions. + # For example: + # + + # GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + # + + # If you only want to specify includes, you can use a shorter notation: + # + + # GET my-index-000001/_doc/0?_source=*.id + # + + # **Routing** + # If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + # For example: + # + + # GET my-index-000001/_doc/2?routing=user1 + # + + # This request gets the document with ID 2, but it is routed based on the user. + # The document is not fetched if the correct routing is not specified. + # **Distributed** + # The GET operation is hashed into a specific shard ID. + # It is then redirected to one of the replicas within that shard ID and returns the result. + # The replicas are the primary shard and its replicas within that shard ID group. + # This means that the more replicas you have, the better your GET scaling will be. + # **Versioning support** + # You can use the +version+ parameter to retrieve the document only if its current version is equal to the specified one. + # Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + # The old version of the document doesn't disappear immediately, although you won't be able to access it. + # Elasticsearch cleans up deleted documents in the background as you continue to index more data. # - # @option arguments [String] :id The document ID - # @option arguments [String] :index The name of the index - # @option arguments [Boolean] :force_synthetic_source Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index. - # @option arguments [List] :stored_fields A comma-separated list of stored fields to return in the response - # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random) - # @option arguments [Boolean] :realtime Specify whether to perform the operation in realtime or search mode - # @option arguments [Boolean] :refresh Refresh the shard containing the document before performing the operation - # @option arguments [String] :routing Specific routing value - # @option arguments [List] :_source True or false to return the _source field or not, or a list of fields to return - # @option arguments [List] :_source_excludes A list of fields to exclude from the returned _source field - # @option arguments [List] :_source_includes A list of fields to extract and return from the _source field - # @option arguments [Number] :version Explicit version number for concurrency control - # @option arguments [String] :version_type Specific version type (options: internal, external, external_gte) + # @option arguments [String] :id A unique document identifier. (*Required*) + # @option arguments [String] :index The name of the index that contains the document. (*Required*) + # @option arguments [Boolean] :force_synthetic_source Indicates whether the request forces synthetic +_source+. + # Use this paramater to test if the mapping supports synthetic +_source+ and to get a sense of the worst case performance. + # Fetches with this parameter enabled will be slower than enabling synthetic source natively in the index. + # @option arguments [String] :preference The node or shard the operation should be performed on. + # By default, the operation is randomized between the shard replicas.If it is set to +_local+, the operation will prefer to be run on a local allocated shard when possible. + # If it is set to a custom value, the value is used to guarantee that the same shards will be used for the same custom value. + # This can help with "jumping values" when hitting different shards in different refresh states. + # A sample value can be something like the web session ID or the user name. + # @option arguments [Boolean] :realtime If +true+, the request is real-time as opposed to near-real-time. Server default: true. + # @option arguments [Boolean] :refresh If +true+, the request refreshes the relevant shards before retrieving the document. + # Setting it to +true+ should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). + # @option arguments [String] :routing A custom value used to route operations to a specific shard. + # @option arguments [Boolean, String, Array] :_source Indicates whether to return the +_source+ field (+true+ or +false+) or lists the fields to return. + # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude from the response. + # You can also use this parameter to exclude fields from the subset specified in +_source_includes+ query parameter. + # If the +_source+ parameter is +false+, this parameter is ignored. + # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. + # If this parameter is specified, only these source fields are returned. + # You can exclude fields from this subset using the +_source_excludes+ query parameter. + # If the +_source+ parameter is +false+, this parameter is ignored. + # @option arguments [String, Array] :stored_fields A comma-separated list of stored fields to return as part of a hit. + # If no fields are specified, no stored fields are included in the response. + # If this field is specified, the +_source+ parameter defaults to +false+. + # Only leaf fields can be retrieved with the +stored_field+ option. + # Object fields can't be returned;​if specified, the request fails. + # @option arguments [Integer] :version The version number for concurrency control. + # It must match the current version of the document for the request to succeed. + # @option arguments [String] :version_type The version type. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'get' } - defined_params = %i[index id].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -61,11 +117,11 @@ def get(arguments = {}) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET - path = "#{Utils.__listify(_index)}/_doc/#{Utils.__listify(_id)}" + path = "#{Utils.listify(_index)}/_doc/#{Utils.listify(_id)}" params = Utils.process_params(arguments) if Array(arguments[:ignore]).include?(404) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb index d1a4baf476..b5b371bd7e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb @@ -15,19 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns a script. + # Get a script or search template. + # Retrieves a stored script or search template. # - # @option arguments [String] :id Script ID - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String] :id The identifier for the stored script or search template. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # It can also be set to +-1+ to indicate that the request should never timeout. Server default: . # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get-script # def get_script(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'get_script' } @@ -47,7 +50,7 @@ def get_script(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_GET - path = "_scripts/#{Utils.__listify(_id)}" + path = "_scripts/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb index 845762ab86..4e9e66603d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb @@ -15,17 +15,18 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns all script contexts. + # Get script contexts. + # Get a list of supported script contexts and their methods. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-contexts.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get-script-context # def get_script_context(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'get_script_context' } @@ -33,7 +34,7 @@ def get_script_context(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_script_context' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb index d8f9d8d77b..0441a829b6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb @@ -15,17 +15,18 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns available script types, languages and contexts + # Get script languages. + # Get a list of available script types, languages, and contexts. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get-script-languages # def get_script_languages(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'get_script_languages' } @@ -33,7 +34,7 @@ def get_script_languages(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_script_language' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb index e66b8c5e6c..1e61d45b31 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb @@ -15,33 +15,46 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns the source of a document. + # Get a document's source. + # Get the source of a document. + # For example: + # + + # GET my-index-000001/_source/1 + # + + # You can use the source filtering parameters to control which parts of the +_source+ are returned: + # + + # GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + # + # - # @option arguments [String] :id The document ID - # @option arguments [String] :index The name of the index - # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random) - # @option arguments [Boolean] :realtime Specify whether to perform the operation in realtime or search mode - # @option arguments [Boolean] :refresh Refresh the shard containing the document before performing the operation - # @option arguments [String] :routing Specific routing value - # @option arguments [List] :_source True or false to return the _source field or not, or a list of fields to return - # @option arguments [List] :_source_excludes A list of fields to exclude from the returned _source field - # @option arguments [List] :_source_includes A list of fields to extract and return from the _source field - # @option arguments [Number] :version Explicit version number for concurrency control - # @option arguments [String] :version_type Specific version type (options: internal, external, external_gte) + # @option arguments [String] :id A unique document identifier. (*Required*) + # @option arguments [String] :index The name of the index that contains the document. (*Required*) + # @option arguments [String] :preference The node or shard the operation should be performed on. + # By default, the operation is randomized between the shard replicas. + # @option arguments [Boolean] :realtime If +true+, the request is real-time as opposed to near-real-time. Server default: true. + # @option arguments [Boolean] :refresh If +true+, the request refreshes the relevant shards before retrieving the document. + # Setting it to +true+ should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). + # @option arguments [String] :routing A custom value used to route operations to a specific shard. + # @option arguments [Boolean, String, Array] :_source Indicates whether to return the +_source+ field (+true+ or +false+) or lists the fields to return. + # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude in the response. + # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. + # @option arguments [String, Array] :stored_fields A comma-separated list of stored fields to return as part of a hit. + # @option arguments [Integer] :version The version number for concurrency control. + # It must match the current version of the document for the request to succeed. + # @option arguments [String] :version_type The version type. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get # def get_source(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'get_source' } - defined_params = %i[index id].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -59,7 +72,7 @@ def get_source(arguments = {}) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET - path = "#{Utils.__listify(_index)}/_source/#{Utils.__listify(_id)}" + path = "#{Utils.listify(_index)}/_source/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb b/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb index 64306ce433..390e733435 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb @@ -15,22 +15,29 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Graph module Actions - # Explore extracted and summarized information about the documents and terms in an index. + # Explore graph analytics. + # Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + # The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + # An initial request to the +_explore+ API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + # Subsequent requests enable you to spider out from one more vertices of interest. + # You can exclude vertices that have already been returned. # - # @option arguments [List] :index A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - # @option arguments [String] :routing Specific routing value - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String, Array] :index Name of the index. (*Required*) + # @option arguments [String] :routing Custom value used to route operations to a specific shard. + # @option arguments [Time] :timeout Specifies the period of time to wait for a response from each shard. + # If no response is received before the timeout expires, the request fails and returns an error. + # Defaults to no timeout. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Graph Query DSL + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-graph # def explore(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'graph.explore' } @@ -55,7 +62,7 @@ def explore(arguments = {}) Elasticsearch::API::HTTP_GET end - path = "#{Utils.__listify(_index)}/_graph/explore" + path = "#{Utils.listify(_index)}/_graph/explore" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb b/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb index 7849b26638..d2eb8f92da 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb @@ -15,21 +15,33 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns the health of the cluster. + # Get the cluster health. + # Get a report with the health status of an Elasticsearch cluster. + # The report contains a list of indicators that compose Elasticsearch functionality. + # Each indicator has a health status of: green, unknown, yellow or red. + # The indicator will provide an explanation and metadata describing the reason for its current health status. + # The cluster’s status is controlled by the worst indicator status. + # In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + # Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + # Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + # The root cause and remediation steps are encapsulated in a diagnosis. + # A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + # NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + # When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. # - # @option arguments [String] :feature A feature of the cluster, as returned by the top-level health API - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Boolean] :verbose Opt in for more information about the health of the system - # @option arguments [Integer] :size Limit the number of affected resources the health API returns + # @option arguments [String] :feature A feature of the cluster, as returned by the top-level health report API. + # @option arguments [Time] :timeout Explicit operation timeout. + # @option arguments [Boolean] :verbose Opt-in for more information about the health of the system. Server default: true. + # @option arguments [Integer] :size Limit the number of affected resources the health report API returns. Server default: 1000. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/health-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-health-report # def health_report(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'health_report' } @@ -48,7 +60,7 @@ def health_report(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _feature - "_health_report/#{Utils.__listify(_feature)}" + "_health_report/#{Utils.listify(_feature)}" else '_health_report' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index.rb index 311e3d1a3d..6086557488 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index.rb @@ -15,38 +15,138 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Creates or updates a document in an index. + # Create or update a document in an index. + # Add a JSON document to the specified data stream or index and make it searchable. + # If the target is an index and the document already exists, the request updates the document and increments its version. + # NOTE: You cannot use this API to send update requests for existing documents in a data stream. + # If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + # * To add or overwrite a document using the +PUT //_doc/<_id>+ request format, you must have the +create+, +index+, or +write+ index privilege. + # * To add a document using the +POST //_doc/+ request format, you must have the +create_doc+, +create+, +index+, or +write+ index privilege. + # * To automatically create a data stream or index with this API request, you must have the +auto_configure+, +create_index+, or +manage+ index privilege. + # Automatic data stream creation requires a matching index template with data stream enabled. + # NOTE: Replica shards might not all be started when an indexing operation returns successfully. + # By default, only the primary is required. Set +wait_for_active_shards+ to change this default behavior. + # **Automatically create data streams and indices** + # If the request's target doesn't exist and matches an index template with a +data_stream+ definition, the index operation automatically creates the data stream. + # If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + # NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + # If no mapping exists, the index operation creates a dynamic mapping. + # By default, new fields and objects are automatically added to the mapping if needed. + # Automatic index creation is controlled by the +action.auto_create_index+ setting. + # If it is +true+, any index can be created automatically. + # You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to +false+ to turn off automatic index creation entirely. + # Specify a comma-separated list of patterns you want to allow or prefix each pattern with +++ or +-+ to indicate whether it should be allowed or blocked. + # When a list is specified, the default behaviour is to disallow. + # NOTE: The +action.auto_create_index+ setting affects the automatic creation of indices only. + # It does not affect the creation of data streams. + # **Optimistic concurrency control** + # Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the +if_seq_no+ and +if_primary_term+ parameters. + # If a mismatch is detected, the operation will result in a +VersionConflictException+ and a status code of +409+. + # **Routing** + # By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + # For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the +routing+ parameter. + # When setting up explicit mapping, you can also use the +_routing+ field to direct the index operation to extract the routing value from the document itself. + # This does come at the (very minimal) cost of an additional document parsing pass. + # If the +_routing+ mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + # NOTE: Data streams do not support custom routing unless they were created with the +allow_custom_routing+ setting enabled in the template. + # **Distributed** + # The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + # After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + # **Active shards** + # To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + # If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + # By default, write operations only wait for the primary shards to be active before proceeding (that is to say +wait_for_active_shards+ is +1+). + # This default can be overridden in the index settings dynamically by setting +index.write.wait_for_active_shards+. + # To alter this behavior per operation, use the +wait_for_active_shards request+ parameter. + # Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is +number_of_replicas++1). + # Specifying a negative value or a number greater than the number of shard copies will throw an error. + # For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + # If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + # This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + # If +wait_for_active_shards+ is set on the request to +3+ (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + # This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + # However, if you set +wait_for_active_shards+ to +all+ (or to +4+, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + # The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + # It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + # After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + # The +_shards+ section of the API response reveals the number of shard copies on which replication succeeded and failed. + # **No operation (noop) updates** + # When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + # If this isn't acceptable use the +_update+ API with +detect_noop+ set to +true+. + # The +detect_noop+ option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + # There isn't a definitive rule for when noop updates aren't acceptable. + # It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + # **Versioning** + # Each indexed document is given a version number. + # By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + # Optionally, the version number can be set to an external value (for example, if maintained in a database). + # To enable this functionality, +version_type+ should be set to +external+. + # The value provided must be a numeric, long value greater than or equal to 0, and less than around +9.2e+18+. + # NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + # If no version is provided, the operation runs without any version checks. + # When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + # If true, the document will be indexed and the new version number used. + # If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + # ``` + # PUT my-index-000001/_doc/1?version=2&version_type=external + # { + # "user": { + # "id": "elkbee" + # } + # } + # In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + # If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + # A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + # Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. # - # @option arguments [String] :id Document ID - # @option arguments [String] :index The name of the index - # @option arguments [String] :wait_for_active_shards Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) - # @option arguments [String] :op_type Explicit operation type. Defaults to `index` for requests with an explicit document ID, and to `create`for requests without an explicit document ID (options: index, create) - # @option arguments [String] :refresh If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. (options: true, false, wait_for) - # @option arguments [String] :routing Specific routing value - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Number] :version Explicit version number for concurrency control - # @option arguments [String] :version_type Specific version type (options: internal, external, external_gte) - # @option arguments [Number] :if_seq_no only perform the index operation if the last operation that has changed the document has the specified sequence number - # @option arguments [Number] :if_primary_term only perform the index operation if the last operation that has changed the document has the specified primary term - # @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with - # @option arguments [Boolean] :require_alias When true, requires destination to be an alias. Default is false - # @option arguments [Boolean] :require_data_stream When true, requires the destination to be a data stream (existing or to-be-created). Default is false - # @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Defaults to true. + # @option arguments [String] :id A unique identifier for the document. + # To automatically generate a document ID, use the +POST //_doc/+ request format and omit this parameter. + # @option arguments [String] :index The name of the data stream or index to target. + # If the target doesn't exist and matches the name or wildcard (+*+) pattern of an index template with a +data_stream+ definition, this request creates the data stream. + # If the target doesn't exist and doesn't match a data stream template, this request creates the index. + # You can check for existing targets with the resolve index API. (*Required*) + # @option arguments [Integer] :if_primary_term Only perform the operation if the document has this primary term. + # @option arguments [Integer] :if_seq_no Only perform the operation if the document has this sequence number. + # @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Server default: true. + # @option arguments [String] :op_type Set to +create+ to only index the document if it does not already exist (put if absent). + # If a document with the specified +_id+ already exists, the indexing operation will fail. + # The behavior is the same as using the +/_create+ endpoint. + # If a document ID is specified, this paramater defaults to +index+. + # Otherwise, it defaults to +create+. + # If the request targets a data stream, an +op_type+ of +create+ is required. + # @option arguments [String] :pipeline The ID of the pipeline to use to preprocess incoming documents. + # If the index has a default ingest pipeline specified, then setting the value to +_none+ disables the default ingest pipeline for this request. + # If a final pipeline is configured it will always run, regardless of the value of this parameter. + # @option arguments [String] :refresh If +true+, Elasticsearch refreshes the affected shards to make this operation visible to search. + # If +wait_for+, it waits for a refresh to make this operation visible to search. + # If +false+, it does nothing with refreshes. Server default: false. + # @option arguments [String] :routing A custom value that is used to route operations to a specific shard. + # @option arguments [Time] :timeout The period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.This parameter is useful for situations where the primary shard assigned to perform the operation might not be available when the operation runs. + # Some reasons for this might be that the primary shard is currently recovering from a gateway or undergoing relocation. + # By default, the operation will wait on the primary shard to become available for at least 1 minute before failing and responding with an error. + # The actual wait time could be longer, particularly when multiple waits occur. Server default: 1m. + # @option arguments [Integer] :version An explicit version number for concurrency control. + # It must be a non-negative long number. + # @option arguments [String] :version_type The version type. + # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. + # You can set it to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). + # The default value of +1+ means it waits for each primary shard to be active. Server default: 1. + # @option arguments [Boolean] :require_alias If +true+, the destination must be an index alias. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The document (*Required*) + # @option arguments [Hash] :body document # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create # def index(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'index' } - defined_params = %i[index id].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -65,9 +165,9 @@ def index(arguments = {}) method = _id ? Elasticsearch::API::HTTP_PUT : Elasticsearch::API::HTTP_POST path = if _index && _id - "#{Utils.__listify(_index)}/_doc/#{Utils.__listify(_id)}" + "#{Utils.listify(_index)}/_doc/#{Utils.listify(_id)}" else - "#{Utils.__listify(_index)}/_doc" + "#{Utils.listify(_index)}/_doc" end params = Utils.process_params(arguments) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb index a73ec735ae..6c7c010c77 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb @@ -15,21 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module IndexLifecycleManagement module Actions - # Deletes the specified lifecycle policy definition. A currently used policy cannot be deleted. + # Delete a lifecycle policy. + # You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. # - # @option arguments [String] :policy The name of the index lifecycle policy - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :policy Identifier for the policy. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-delete-lifecycle.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-delete-lifecycle # def delete_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.delete_lifecycle' } @@ -49,7 +50,7 @@ def delete_lifecycle(arguments = {}) _policy = arguments.delete(:policy) method = Elasticsearch::API::HTTP_DELETE - path = "_ilm/policy/#{Utils.__listify(_policy)}" + path = "_ilm/policy/#{Utils.listify(_policy)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb index dc5f6b9dcf..d436fdf55e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb @@ -15,22 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module IndexLifecycleManagement module Actions - # Retrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step. + # Explain the lifecycle state. + # Get the current lifecycle status for one or more indices. + # For data streams, the API retrieves the current lifecycle status for the stream's backing indices. + # The response indicates when the index entered each lifecycle state, provides the definition of the running phase, and information about any failures. # - # @option arguments [String] :index The name of the index to explain - # @option arguments [Boolean] :only_managed filters the indices included in the response to ones managed by ILM - # @option arguments [Boolean] :only_errors filters the indices included in the response to ones in an ILM error state, implies only_managed - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node + # @option arguments [String] :index Comma-separated list of data streams, indices, and aliases to target. Supports wildcards (+*+). + # To target all data streams and indices, use +*+ or +_all+. (*Required*) + # @option arguments [Boolean] :only_errors Filters the returned indices to only indices that are managed by ILM and are in an error state, either due to an encountering an error while executing the policy, or attempting to use a policy that does not exist. + # @option arguments [Boolean] :only_managed Filters the returned indices to only indices that are managed by ILM. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-explain-lifecycle # def explain_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.explain_lifecycle' } @@ -45,12 +49,12 @@ def explain_lifecycle(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET - path = "#{Utils.__listify(_index)}/_ilm/explain" + path = "#{Utils.listify(_index)}/_ilm/explain" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb index 92b8c607b3..584e76882b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb @@ -15,21 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module IndexLifecycleManagement module Actions - # Returns the specified policy definition. Includes the policy version and last modified date. + # Get lifecycle policies. # - # @option arguments [String] :policy The name of the index lifecycle policy - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :policy Identifier for the policy. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-lifecycle.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-get-lifecycle # def get_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.get_lifecycle' } @@ -48,7 +48,7 @@ def get_lifecycle(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _policy - "_ilm/policy/#{Utils.__listify(_policy)}" + "_ilm/policy/#{Utils.listify(_policy)}" else '_ilm/policy' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb index 0cf68bc5c1..f421b534e6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb @@ -15,18 +15,19 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module IndexLifecycleManagement module Actions - # Retrieves the current index lifecycle management (ILM) status. + # Get the ILM status. + # Get the current index lifecycle management status. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-status.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-get-status # def get_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.get_status' } @@ -34,7 +35,7 @@ def get_status(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_ilm/status' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb index f459f1115d..435477ca71 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb @@ -15,21 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module IndexLifecycleManagement module Actions - # Migrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing + # Migrate to data tiers routing. + # Switch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers. + # Optionally, delete one legacy index template. + # Using node roles enables ILM to automatically move the indices between data tiers. + # Migrating away from custom node attributes routing can be manually performed. + # This API provides an automated way of performing three out of the four manual steps listed in the migration guide: + # 1. Stop setting the custom hot attribute on new indices. + # 1. Remove custom allocation settings from existing ILM policies. + # 1. Replace custom allocation settings from existing indices with the corresponding tier preference. + # ILM must be stopped before performing the migration. + # Use the stop ILM and get ILM status APIs to wait until the reported operation mode is +STOPPED+. # - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Boolean] :dry_run If set to true it will simulate the migration, providing a way to retrieve the ILM policies and indices that need to be migrated. The default is false + # @option arguments [Boolean] :dry_run If true, simulates the migration from node attributes based allocation filters to data tiers, but does not perform the migration. + # This provides a way to retrieve the indices and ILM policies that need to be migrated. + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. + # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Optionally specify a legacy index template name to delete and optionally specify a node attribute name used for index shard routing (defaults to "data") + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-migrate-to-data-tiers.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-migrate-to-data-tiers # def migrate_to_data_tiers(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.migrate_to_data_tiers' } @@ -37,7 +50,7 @@ def migrate_to_data_tiers(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_ilm/migrate_to_data_tiers' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb index 212cb8efc6..aeed8ff3ae 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb @@ -15,20 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module IndexLifecycleManagement module Actions - # Manually moves an index into the specified step and executes that step. + # Move to a lifecycle step. + # Manually move an index into a specific step in the lifecycle policy and run that step. + # WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + # You must specify both the current step and the step to be executed in the body of the request. + # The request will fail if the current step does not match the step currently running for the index + # This is to prevent the index from being moved from an unexpected step into the next step. + # When specifying the target (+next_step+) to which the index will be moved, either the name or both the action and name fields are optional. + # If only the phase is specified, the index will move to the first step of the first action in the target phase. + # If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + # Only actions specified in the ILM policy are considered valid. + # An index cannot move to a step that is not part of its policy. # - # @option arguments [String] :index The name of the index whose lifecycle step is to change + # @option arguments [String] :index The name of the index whose lifecycle step is to change (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The new lifecycle step to move to + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-move-to-step.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-move-to-step # def move_to_step(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.move_to_step' } @@ -43,12 +53,12 @@ def move_to_step(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST - path = "_ilm/move/#{Utils.__listify(_index)}" + path = "_ilm/move/#{Utils.listify(_index)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb index 9035c24731..46e118a519 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb @@ -15,22 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module IndexLifecycleManagement module Actions - # Creates a lifecycle policy + # Create or update a lifecycle policy. + # If the specified policy exists, it is replaced and the policy version is incremented. + # NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. # - # @option arguments [String] :policy The name of the index lifecycle policy - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :policy Identifier for the policy. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The lifecycle policy definition to register + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-put-lifecycle.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-put-lifecycle # def put_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.put_lifecycle' } @@ -50,7 +52,7 @@ def put_lifecycle(arguments = {}) _policy = arguments.delete(:policy) method = Elasticsearch::API::HTTP_PUT - path = "_ilm/policy/#{Utils.__listify(_policy)}" + path = "_ilm/policy/#{Utils.listify(_policy)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb index 96eaed6977..6640558c7a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb @@ -15,19 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module IndexLifecycleManagement module Actions - # Removes the assigned lifecycle policy and stops managing the specified index + # Remove policies from an index. + # Remove the assigned lifecycle policies from an index or a data stream's backing indices. + # It also stops managing the indices. # - # @option arguments [String] :index The name of the index to remove policy on + # @option arguments [String] :index The name of the index to remove policy on (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-policy.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-remove-policy # def remove_policy(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.remove_policy' } @@ -42,12 +44,12 @@ def remove_policy(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_ilm/remove" + path = "#{Utils.listify(_index)}/_ilm/remove" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb index 61fbb1b173..18efccac42 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb @@ -15,19 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module IndexLifecycleManagement module Actions - # Retries executing the policy for an index that is in the ERROR step. + # Retry a policy. + # Retry running the lifecycle policy for an index that is in the ERROR step. + # The API sets the policy back to the step where the error occurred and runs the step. + # Use the explain lifecycle state API to determine whether an index is in the ERROR step. # - # @option arguments [String] :index The name of the indices (comma-separated) whose failed lifecycle step is to be retry + # @option arguments [String] :index The name of the indices (comma-separated) whose failed lifecycle step is to be retry (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-retry-policy.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-retry # def retry(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.retry' } @@ -42,12 +45,12 @@ def retry(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_ilm/retry" + path = "#{Utils.listify(_index)}/_ilm/retry" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb index de72ec031f..a55703acb7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb @@ -15,20 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module IndexLifecycleManagement module Actions - # Start the index lifecycle management (ILM) plugin. + # Start the ILM plugin. + # Start the index lifecycle management plugin if it is currently stopped. + # ILM is started automatically when the cluster is formed. + # Restarting ILM is necessary only when it has been stopped using the stop ILM API. # - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-start.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-start # def start(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.start' } @@ -36,7 +39,7 @@ def start(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_POST path = '_ilm/start' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb index 81009ecb9c..06257df517 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb @@ -15,20 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module IndexLifecycleManagement module Actions - # Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin + # Stop the ILM plugin. + # Halt all lifecycle management operations and stop the index lifecycle management plugin. + # This is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices. + # The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. + # Use the get ILM status API to check whether ILM is running. # - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-stop.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-stop # def stop(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.stop' } @@ -36,7 +40,7 @@ def stop(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_POST path = '_ilm/stop' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb index b04cfd2b68..e061ca96f8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb @@ -15,30 +15,43 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Adds a block to an index. + # Add an index block. + # Add an index block to an index. + # Index blocks limit the operations allowed on an index by blocking specific operation types. # - # @option arguments [List] :index A comma separated list of indices to add a block to - # @option arguments [String] :block The block to add (one of read, write, read_only or metadata) - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Specify timeout for connection to master - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) + # @option arguments [String] :index A comma-separated list or wildcard expression of index names used to limit the request. + # By default, you must explicitly name the indices you are adding blocks to. + # To allow the adding of blocks to indices with +_all+, +*+, or other wildcard expressions, change the +action.destructive_requires_name+ setting to +false+. + # You can update this setting in the +elasticsearch.yml+ file or by using the cluster update settings API. (*Required*) + # @option arguments [String] :block The block type to add to the index. (*Required*) + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. + # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. + # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # It supports comma-separated values, such as +open,hidden+. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Time] :master_timeout The period to wait for the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. + # If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged. + # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-blocks.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-add-block # def add_block(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.add_block' } - defined_params = %i[index block].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :block].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -49,14 +62,14 @@ def add_block(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) _block = arguments.delete(:block) method = Elasticsearch::API::HTTP_PUT - path = "#{Utils.__listify(_index)}/_block/#{Utils.__listify(_block)}" + path = "#{Utils.listify(_index)}/_block/#{Utils.listify(_block)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb index 00e736136e..6e73448a91 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb @@ -15,20 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Performs the analysis process on a text and return the tokens breakdown of the text. + # Get tokens from text analysis. + # The analyze API performs analysis on a text string and returns the resulting tokens. + # Generating excessive amount of tokens may cause a node to run out of memory. + # The +index.analyze.max_token_count+ setting enables you to limit the number of tokens that can be produced. + # If more than this limit of tokens gets generated, an error occurs. + # The +_analyze+ endpoint without a specified index will always use +10000+ as its limit. # - # @option arguments [String] :index The name of the index to scope the operation + # @option arguments [String] :index Index used to derive the analyzer. + # If specified, the +analyzer+ or field parameter overrides this value. + # If no index is specified or the index does not have a default analyzer, the analyze API uses the standard analyzer. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Define analyzer/tokenizer parameters and the text on which the analysis should be performed + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-analyze.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-analyze # def analyze(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.analyze' } @@ -51,11 +58,11 @@ def analyze(arguments = {}) Elasticsearch::API::HTTP_GET end - path = if _index - "#{Utils.__listify(_index)}/_analyze" - else - '_analyze' - end + path = if _index + "#{Utils.listify(_index)}/_analyze" + else + '_analyze' + end params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb index 69e7d7fc40..59334335a7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb index 0e214b6e48..2436c6a4b4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb @@ -15,26 +15,38 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Clears all or specific caches for one or more indices. + # Clear the cache. + # Clear the cache of one or more indices. + # For data streams, the API clears the caches of the stream's backing indices. + # By default, the clear cache API clears all caches. + # To clear only specific caches, use the +fielddata+, +query+, or +request+ parameters. + # To clear the cache only of specific fields, use the +fields+ parameter. # - # @option arguments [List] :index A comma-separated list of index name to limit the operation - # @option arguments [Boolean] :fielddata Clear field data - # @option arguments [List] :fields A comma-separated list of fields to clear when using the `fielddata` parameter (default: all) - # @option arguments [Boolean] :query Clear query caches - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Boolean] :request Clear request cache + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. + # Supports wildcards (+*+). + # To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :fielddata If +true+, clears the fields cache. + # Use the +fields+ parameter to clear the cache of specific fields only. + # @option arguments [String, Array] :fields Comma-separated list of field names used to limit the +fielddata+ parameter. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :query If +true+, clears the query cache. + # @option arguments [Boolean] :request If +true+, clears the request cache. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clearcache.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-clear-cache # def clear_cache(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.clear_cache' } @@ -47,13 +59,13 @@ def clear_cache(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = if _index - "#{Utils.__listify(_index)}/_cache/clear" + "#{Utils.listify(_index)}/_cache/clear" else '_cache/clear' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb index fd336f75ee..2d054732d2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb @@ -15,29 +15,62 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Clones an index + # Clone an index. + # Clone an existing index into a new index. + # Each original primary shard is cloned into a new primary shard in the new index. + # IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + # The API also does not copy index metadata from the original index. + # Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + # For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + # The clone API copies most index settings from the source index to the resulting index, with the exception of +index.number_of_replicas+ and +index.auto_expand_replicas+. + # To set the number of replicas in the resulting index, configure these settings in the clone request. + # Cloning works as follows: + # * First, it creates a new target index with the same definition as the source index. + # * Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + # * Finally, it recovers the target index as though it were a closed index which had just been re-opened. + # IMPORTANT: Indices can only be cloned if they meet the following requirements: + # * The index must be marked as read-only and have a cluster health status of green. + # * The target index must not exist. + # * The source index must have the same number of primary shards as the target index. + # * The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + # The current write index on a data stream cannot be cloned. + # In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + # NOTE: Mappings cannot be specified in the +_clone+ request. The mappings of the source index will be used for the target index. + # **Monitor the cloning process** + # The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the +wait_for_status+ parameter to +yellow+. + # The +_clone+ API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + # At this point, all shards are in the state unassigned. + # If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + # Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + # When the clone operation completes, the shard will become active. + # At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + # **Wait for active shards** + # Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. # - # @option arguments [String] :index The name of the source index to clone - # @option arguments [String] :target The name of the target index to clone into - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Specify timeout for connection to master - # @option arguments [String] :wait_for_active_shards Set the number of active shards to wait for on the cloned index before the operation returns. + # @option arguments [String] :index Name of the source index to clone. (*Required*) + # @option arguments [String] :target Name of the target index to create. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. + # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The configuration for the target index (`settings` and `aliases`) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-clone-index.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-clone # def clone(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.clone' } - defined_params = %i[index target].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :target].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -48,14 +81,14 @@ def clone(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) _target = arguments.delete(:target) method = Elasticsearch::API::HTTP_PUT - path = "#{Utils.__listify(_index)}/_clone/#{Utils.__listify(_target)}" + path = "#{Utils.listify(_index)}/_clone/#{Utils.listify(_target)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb index e3533f1a27..51ae991eee 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb @@ -15,25 +15,45 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Closes an index. + # Close an index. + # A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + # It is not possible to index documents or to search for documents in a closed index. + # Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + # When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + # The shards will then go through the normal recovery process. + # The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + # You can open and close multiple indices. + # An error is thrown if the request explicitly refers to a missing index. + # This behaviour can be turned off using the +ignore_unavailable=true+ parameter. + # By default, you must explicitly name the indices you are opening or closing. + # To open or close indices with +_all+, +*+, or other wildcard expressions, change the+action.destructive_requires_name+ setting to +false+. This setting can also be changed with the cluster update settings API. + # Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + # Closing indices can be turned off with the cluster settings API by setting +cluster.indices.close.enable+ to +false+. # - # @option arguments [List] :index A comma separated list of indices to close - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Specify timeout for connection to master - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [String] :wait_for_active_shards Sets the number of active shards to wait for before the operation returns. + # @option arguments [String, Array] :index Comma-separated list or wildcard expression of index names used to limit the request. (*Required*) + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. + # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-close # def close(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.close' } @@ -48,12 +68,12 @@ def close(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_close" + path = "#{Utils.listify(_index)}/_close" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb index 0135beabd9..722ff22bc4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb @@ -15,23 +15,41 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Creates an index with optional settings and mappings. + # Create an index. + # You can use the create index API to add a new index to an Elasticsearch cluster. + # When creating an index, you can specify the following: + # * Settings for the index. + # * Mappings for fields in the index. + # * Index aliases + # **Wait for active shards** + # By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + # The index creation response will indicate what happened. + # For example, +acknowledged+ indicates whether the index was successfully created in the cluster, +while shards_acknowledged+ indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + # Note that it is still possible for either +acknowledged+ or +shards_acknowledged+ to be +false+, but for the index creation to be successful. + # These values simply indicate whether the operation completed before the timeout. + # If +acknowledged+ is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + # If +shards_acknowledged+ is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, +acknowledged+ is +true+). + # You can change the default of only waiting for the primary shards to start through the index setting +index.write.wait_for_active_shards+. + # Note that changing this setting will also affect the +wait_for_active_shards+ value on all subsequent write operations. # - # @option arguments [String] :index The name of the index - # @option arguments [String] :wait_for_active_shards Set the number of active shards to wait for before the operation returns. - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String] :index Name of the index you wish to create. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. + # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The configuration for the index (`settings` and `mappings`) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-create # def create(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.create' } @@ -46,12 +64,12 @@ def create(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_PUT - path = "#{Utils.__listify(_index)}" + path = Utils.listify(_index).to_s params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb index 66da1e830c..b5d9318ce5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb @@ -15,21 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Creates a data stream + # Create a data stream. + # You must have a matching index template with data stream enabled. # - # @option arguments [String] :name The name of the data stream - # @option arguments [Time] :timeout Specify timeout for acknowledging the cluster state update - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String] :name Name of the data stream, which must meet the following criteria: + # Lowercase only; + # Cannot include +\+, +/+, +*+, +?+, +"+, +<+, +>+, +|+, +,+, +#+, +:+, or a space character; + # Cannot start with +-+, +_+, +++, or +.ds-+; + # Cannot be +.+ or +..+; + # Cannot be longer than 255 bytes. Multi-byte characters count towards this limit faster. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-create-data-stream # def create_data_stream(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.create_data_stream' } @@ -49,7 +55,7 @@ def create_data_stream(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_PUT - path = "_data_stream/#{Utils.__listify(_name)}" + path = "_data_stream/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb index d57741f8ae..ce53a4760f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb index 4d7087632d..3c186ca8f6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb @@ -15,19 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Provides statistics on operations happening in a data stream. + # Get data stream stats. + # Get statistics for one or more data streams. # - # @option arguments [List] :name A comma-separated list of data stream names; use `_all` or empty string to perform the operation on all data streams + # @option arguments [String] :name Comma-separated list of data streams used to limit the request. + # Wildcard expressions (+*+) are supported. + # To target all data streams in a cluster, omit this parameter or use +*+. + # @option arguments [String, Array] :expand_wildcards Type of data stream that wildcard patterns can match. + # Supports comma-separated values, such as +open,hidden+. Server default: open. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-data-streams-stats-1 # def data_streams_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.data_streams_stats' } @@ -46,11 +51,11 @@ def data_streams_stats(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _name - "_data_stream/#{Utils.__listify(_name)}/_stats" + "_data_stream/#{Utils.listify(_name)}/_stats" else '_data_stream/_stats' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb index bb53aaa0cc..8cc4403bd6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb @@ -15,24 +15,38 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Deletes an index. + # Delete indices. + # Deleting an index deletes its documents, shards, and metadata. + # It does not delete related Kibana components, such as data views, visualizations, or dashboards. + # You cannot delete the current write index of a data stream. + # To delete the index, you must roll over the data stream so a new write index is created. + # You can then use the delete index API to delete the previous write index. # - # @option arguments [List] :index A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Specify timeout for connection to master - # @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false) - # @option arguments [Boolean] :allow_no_indices Ignore if a wildcard expression resolves to no concrete indices (default: false) - # @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open, closed, or hidden indices (options: open, closed, hidden, none, all) + # @option arguments [String, Array] :index Comma-separated list of indices to delete. + # You cannot specify index aliases. + # By default, this parameter does not support wildcards (+*+) or +_all+. + # To use wildcards or +_all+, set the +action.destructive_requires_name+ cluster setting to +false+. (*Required*) + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.delete' } @@ -47,16 +61,16 @@ def delete(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_DELETE - path = "#{Utils.__listify(_index)}" + path = Utils.listify(_index).to_s params = Utils.process_params(arguments) if Array(arguments[:ignore]).include?(404) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb index abfd6ebed6..d9cf19a7eb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb @@ -15,27 +15,32 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Deletes an alias. + # Delete an alias. + # Removes a data stream or index from an alias. # - # @option arguments [List] :index A comma-separated list of index names (supports wildcards); use `_all` for all indices - # @option arguments [List] :name A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. - # @option arguments [Time] :timeout Explicit timestamp for the document - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String, Array] :index Comma-separated list of data streams or indices used to limit the request. + # Supports wildcards (+*+). (*Required*) + # @option arguments [String, Array] :name Comma-separated list of aliases to remove. + # Supports wildcards (+*+). To remove all aliases, use +*+ or +_all+. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-alias # def delete_alias(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.delete_alias' } - defined_params = %i[index name].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :name].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -46,14 +51,14 @@ def delete_alias(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_DELETE - path = ("#{Utils.__listify(_index)}/_aliases/#{Utils.__listify(_name)}" if _index && _name) + path = ("#{Utils.listify(_index)}/_aliases/#{Utils.listify(_name)}" if _index && _name) params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb index a3dd50251c..695078561a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb @@ -15,22 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Deletes the data stream lifecycle of the selected data streams. + # Delete data stream lifecycles. + # Removes the data stream lifecycle from a data stream, rendering it not managed by the data stream lifecycle. # - # @option arguments [List] :name A comma-separated list of data streams of which the data stream lifecycle will be deleted; use `*` to get all data streams - # @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, hidden, none, all) - # @option arguments [Time] :timeout Explicit timestamp for the document + # @option arguments [String, Array] :name A comma-separated list of data streams of which the data stream lifecycle will be deleted; use +*+ to get all data streams (*Required*) + # @option arguments [String, Array] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [Time] :timeout Explicit timestamp for the document # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-delete-lifecycle.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-data-lifecycle # def delete_data_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.delete_data_lifecycle' } @@ -50,7 +51,7 @@ def delete_data_lifecycle(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_DELETE - path = "_data_stream/#{Utils.__listify(_name)}/_lifecycle" + path = "_data_stream/#{Utils.listify(_name)}/_lifecycle" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb index c773bbc37a..18c998f2bd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb @@ -15,21 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Deletes a data stream. + # Delete data streams. + # Deletes one or more data streams and their backing indices. # - # @option arguments [List] :name A comma-separated list of data streams to delete; use `*` to delete all data streams - # @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, hidden, none, all) - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String, Array] :name Comma-separated list of data streams to delete. Wildcard (+*+) expressions are supported. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [String, Array] :expand_wildcards Type of data stream that wildcard patterns can match. Supports comma-separated values,such as +open,hidden+. Server default: open. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-data-stream # def delete_data_stream(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.delete_data_stream' } @@ -49,7 +50,7 @@ def delete_data_stream(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_DELETE - path = "_data_stream/#{Utils.__listify(_name)}" + path = "_data_stream/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb index e4e20fad6b..34c23e4c29 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb @@ -15,21 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Deletes an index template. + # Delete an index template. + # The provided may contain multiple template names separated by a comma. If multiple template + # names are specified then there is no wildcard support and the provided names should match completely with + # existing templates. # - # @option arguments [String] :name The name of the template - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String, Array] :name Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-template.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-index-template # def delete_index_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.delete_index_template' } @@ -49,7 +52,7 @@ def delete_index_template(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_DELETE - path = "_index_template/#{Utils.__listify(_name)}" + path = "_index_template/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb index ec10ca44aa..2668bb4aad 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb @@ -15,21 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Deletes an index template. + # Delete a legacy index template. # - # @option arguments [String] :name The name of the template - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String] :name The name of the legacy index template to delete. + # Wildcard (+*+) expressions are supported. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-template-v1.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-template # def delete_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.delete_template' } @@ -49,11 +52,11 @@ def delete_template(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_DELETE - path = "_template/#{Utils.__listify(_name)}" + path = "_template/#{Utils.listify(_name)}" params = Utils.process_params(arguments) if Array(arguments[:ignore]).include?(404) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb index cd3308a1b5..f375647bbb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb @@ -15,28 +15,41 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Analyzes the disk usage of each field of an index or data stream + # Analyze the index disk usage. + # Analyze the disk usage of each field of an index or data stream. + # This API might not support indices created in previous Elasticsearch versions. + # The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. + # NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index +store_size+ value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + # Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + # The stored size of the +_id+ field is likely underestimated while the +_source+ field is overestimated. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :index Comma-separated list of indices or data streams to analyze the disk usage - # @option arguments [Boolean] :run_expensive_tasks Must be set to [true] in order for the task to be performed. Defaults to false. - # @option arguments [Boolean] :flush Whether flush or not before analyzing the index disk usage. Defaults to true - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. + # It’s recommended to execute this API with a single index (or the latest backing index of a data stream) as the API consumes resources significantly. (*Required*) + # @option arguments [Boolean] :allow_no_indices If false, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. + # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. Server default: open. + # @option arguments [Boolean] :flush If +true+, the API performs a flush before analysis. + # If +false+, the response may not include uncommitted data. Server default: true. + # @option arguments [Boolean] :ignore_unavailable If +true+, missing or closed indices are not included in the response. + # @option arguments [Boolean] :run_expensive_tasks Analyzing field disk usage is resource-intensive. + # To use the API, this parameter must be set to +true+. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-disk-usage.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-disk-usage # def disk_usage(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.disk_usage' } @@ -51,12 +64,12 @@ def disk_usage(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_disk_usage" + path = "#{Utils.listify(_index)}/_disk_usage" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb index b08ac1ecee..7ae7f8a093 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb @@ -15,30 +15,36 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Downsample an index + # Downsample an index. + # Aggregate a time series (TSDS) index and store pre-computed statistical summaries (+min+, +max+, +sum+, +value_count+ and +avg+) for each metric field grouped by a configured time interval. + # For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. + # All documents within an hour interval are summarized and stored as a single document in the downsample index. + # NOTE: Only indices in a time series data stream are supported. + # Neither field nor document level security can be defined on the source index. + # The source index must be read only (+index.blocks.write: true+). # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :index The index to downsample (*Required*) - # @option arguments [String] :target_index The name of the target index to store downsampled data (*Required*) + # @option arguments [String] :index Name of the time series index to downsample. (*Required*) + # @option arguments [String] :target_index Name of the index to create. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The downsampling configuration (*Required*) + # @option arguments [Hash] :body config # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-rollup.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-downsample # def downsample(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.downsample' } - defined_params = %i[index target_index].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :target_index].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -50,14 +56,14 @@ def downsample(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) _target_index = arguments.delete(:target_index) method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_downsample/#{Utils.__listify(_target_index)}" + path = "#{Utils.listify(_index)}/_downsample/#{Utils.listify(_target_index)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb index 34e9b34a54..69e6b87f9d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb @@ -15,25 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Returns information about whether a particular index exists. + # Check indices. + # Check if one or more indices, index aliases, or data streams exist. # - # @option arguments [List] :index A comma-separated list of index names - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) - # @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false) - # @option arguments [Boolean] :allow_no_indices Ignore if a wildcard expression resolves to no concrete indices (default: false) - # @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, hidden, none, all) - # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false) - # @option arguments [Boolean] :include_defaults Whether to return all default setting for each of the indices. + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases. Supports wildcards (+*+). (*Required*) + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :include_defaults If +true+, return all default settings in the response. + # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-exists.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-exists # def exists(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.exists' } @@ -48,15 +53,15 @@ def exists(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_HEAD - path = "#{Utils.__listify(_index)}" + path = Utils.listify(_index).to_s params = Utils.process_params(arguments) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do perform_request(method, path, params, body, headers, request_opts).status == 200 end end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb index dc414c862e..8782a05d00 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb @@ -15,29 +15,36 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Returns information about whether a particular alias exists. + # Check aliases. + # Check if one or more data stream or index aliases exist. # - # @option arguments [List] :name A comma-separated list of alias names to return - # @option arguments [List] :index A comma-separated list of index names to filter aliases - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Time] :master_timeout Timeout for waiting for new cluster state in case it is blocked + # @option arguments [String, Array] :name Comma-separated list of aliases to check. Supports wildcards (+*+). (*Required*) + # @option arguments [String, Array] :index Comma-separated list of data streams or indices used to limit the request. Supports wildcards (+*+). + # To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If +false+, requests that include a missing data stream or index in the target indices or data streams return an error. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-exists-alias # def exists_alias(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.exists_alias' } - defined_params = %i[name index].each_with_object({}) do |variable, set_variables| + defined_params = [:name, :index].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -55,13 +62,13 @@ def exists_alias(arguments = {}) method = Elasticsearch::API::HTTP_HEAD path = if _index && _name - "#{Utils.__listify(_index)}/_alias/#{Utils.__listify(_name)}" + "#{Utils.listify(_index)}/_alias/#{Utils.listify(_name)}" else - "_alias/#{Utils.__listify(_name)}" + "_alias/#{Utils.listify(_name)}" end params = Utils.process_params(arguments) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do perform_request(method, path, params, body, headers, request_opts).status == 200 end end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb index b7c2fbb12a..02df204172 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb @@ -15,22 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Returns information about whether a particular index template exists. + # Check index templates. + # Check whether index templates exist. # - # @option arguments [String] :name The name of the template - # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) + # @option arguments [String] :name Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. (*Required*) + # @option arguments [Boolean] :local If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. + # @option arguments [Boolean] :flat_settings If true, returns settings in flat format. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/index-templates.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-exists-index-template # def exists_index_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.exists_index_template' } @@ -50,7 +51,7 @@ def exists_index_template(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_HEAD - path = "_index_template/#{Utils.__listify(_name)}" + path = "_index_template/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb index 3593eed264..c2cfd7ccba 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb @@ -15,22 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Returns information about whether a particular index template exists. + # Check existence of index templates. + # Get information about whether index templates exist. + # Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + # IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. # - # @option arguments [List] :name The comma separated names of the index templates - # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false) - # @option arguments [Time] :master_timeout Timeout for waiting for new cluster state in case it is blocked - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) *Deprecated* + # @option arguments [String, Array] :name A comma-separated list of index template names used to limit the request. + # Wildcard (+*+) expressions are supported. (*Required*) + # @option arguments [Boolean] :flat_settings Indicates whether to use a flat format for the response. + # @option arguments [Boolean] :local Indicates whether to get information from the local node only. + # @option arguments [Time] :master_timeout The period to wait for the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-template-exists-v1.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-exists-template # def exists_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.exists_template' } @@ -50,10 +56,10 @@ def exists_template(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_HEAD - path = "_template/#{Utils.__listify(_name)}" + path = "_template/#{Utils.listify(_name)}" params = Utils.process_params(arguments) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do perform_request(method, path, params, body, headers, request_opts).status == 200 end end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb index 8e5ceca257..03ee8dcb5f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb @@ -15,21 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + # Get the status for a data stream lifecycle. + # Get information about an index or data stream's current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution. # - # @option arguments [String] :index The name of the index to explain + # @option arguments [String, Array] :index The name of the index to explain (*Required*) # @option arguments [Boolean] :include_defaults indicates if the API should return the default values the system uses for the index's lifecycle # @option arguments [Time] :master_timeout Specify timeout for connection to master # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-explain-lifecycle.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-explain-data-lifecycle # def explain_data_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.explain_data_lifecycle' } @@ -44,12 +45,12 @@ def explain_data_lifecycle(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET - path = "#{Utils.__listify(_index)}/_lifecycle/explain" + path = "#{Utils.listify(_index)}/_lifecycle/explain" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb index aaac263510..8deef87967 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb @@ -15,27 +15,36 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Returns the field usage stats for each field of an index + # Get field usage stats. + # Get field usage information for each shard and field of an index. + # Field usage statistics are automatically captured when queries are running on a cluster. + # A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. + # The response body reports the per-shard usage count of the data structures that back the fields in the index. + # A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - # @option arguments [List] :fields A comma-separated list of fields to include in the stats if only a subset of fields should be returned (supports wildcards) - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) + # @option arguments [String, Array] :index Comma-separated list or wildcard expression of index names used to limit the request. (*Required*) + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. + # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # @option arguments [Boolean] :ignore_unavailable If +true+, missing or closed indices are not included in the response. + # @option arguments [String, Array] :fields Comma-separated list or wildcard expressions of fields to include in the statistics. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/field-usage-stats.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-field-usage-stats # def field_usage_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.field_usage_stats' } @@ -50,12 +59,12 @@ def field_usage_stats(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET - path = "#{Utils.__listify(_index)}/_field_usage_stats" + path = "#{Utils.listify(_index)}/_field_usage_stats" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb index 0e92583735..72ca17a885 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb @@ -15,24 +15,39 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Performs the flush operation on one or more indices. + # Flush data streams or indices. + # Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + # When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + # Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + # After each operation has been flushed it is permanently stored in the Lucene index. + # This may mean that there is no need to maintain an additional copy of it in the transaction log. + # The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + # It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + # If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. # - # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string for all indices - # @option arguments [Boolean] :force Whether a flush should be forced even if it is not necessarily needed ie. if no changes will be committed to the index. This is useful if transaction log IDs should be incremented even if no uncommitted changes are present. (This setting can be considered as internal) - # @option arguments [Boolean] :wait_if_ongoing If set to true the flush operation will block until the flush can be executed if another flush operation is already executing. The default is true. If set to false the flush will be skipped iff if another flush operation is already running. - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases to flush. + # Supports wildcards (+*+). + # To flush all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :force If +true+, the request forces a flush even if there are no changes to commit to the index. Server default: true. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :wait_if_ongoing If +true+, the flush operation blocks until execution when another flush operation is running. + # If +false+, Elasticsearch returns an error if you request a flush when another flush operation is running. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-flush.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-flush # def flush(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.flush' } @@ -45,13 +60,13 @@ def flush(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = if _index - "#{Utils.__listify(_index)}/_flush" + "#{Utils.listify(_index)}/_flush" else '_flush' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb index 6ea744edc3..53c6693979 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb @@ -15,26 +15,64 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Performs the force merge operation on one or more indices. + # Force a merge. + # Perform the force merge operation on the shards of one or more indices. + # For data streams, the API forces a merge on the shards of the stream's backing indices. + # Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + # Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + # WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + # When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + # These soft-deleted documents are automatically cleaned up during regular segment merges. + # But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + # So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + # If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. + # **Blocks during a force merge** + # Calls to this API block until the merge is complete (unless request contains +wait_for_completion=false+). + # If the client connection is lost before completion then the force merge process will continue in the background. + # Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + # **Running force merge asynchronously** + # If the request contains +wait_for_completion=false+, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + # However, you can not cancel this task as the force merge task is not cancelable. + # Elasticsearch creates a record of this task as a document at +_tasks/+. + # When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + # **Force merging multiple indices** + # You can force merge multiple indices with a single request by targeting: + # * One or more data streams that contain multiple backing indices + # * Multiple indices + # * One or more aliases + # * All data streams and indices in a cluster + # Each targeted shard is force-merged separately using the force_merge threadpool. + # By default each node only has a single +force_merge+ thread which means that the shards on that node are force-merged one at a time. + # If you expand the +force_merge+ threadpool on a node then it will force merge its shards in parallel + # Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case +max_num_segments parameter+ is set to +1+, to rewrite all segments into a new one. + # **Data streams and time-based indices** + # Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + # In these cases, each index only receives indexing traffic for a certain period of time. + # Once an index receive no more writes, its shards can be force-merged to a single segment. + # This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + # For example: + # + + # POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + # + # - # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + # @option arguments [String, Array] :index A comma-separated list of index names; use +_all+ or empty string to perform the operation on all indices + # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes +_all+ string or when no indices have been specified) + # @option arguments [String, Array] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. # @option arguments [Boolean] :flush Specify whether the index should be flushed after performing the operation (default: true) # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Number] :max_num_segments The number of segments the index should be merged into (default: dynamic) + # @option arguments [Integer] :max_num_segments The number of segments the index should be merged into (default: dynamic) # @option arguments [Boolean] :only_expunge_deletes Specify whether the operation should only expunge deleted documents # @option arguments [Boolean] :wait_for_completion Should the request wait until the force merge is completed. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-forcemerge # def forcemerge(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.forcemerge' } @@ -47,13 +85,13 @@ def forcemerge(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = if _index - "#{Utils.__listify(_index)}/_forcemerge" + "#{Utils.listify(_index)}/_forcemerge" else '_forcemerge' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb index 33836e4e6c..5e5c0ac85e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb @@ -15,27 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Returns information about one or more indices. + # Get index information. + # Get information about one or more indices. For data streams, the API returns information about the + # stream’s backing indices. # - # @option arguments [List] :index A comma-separated list of index names - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) - # @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false) - # @option arguments [Boolean] :allow_no_indices Ignore if a wildcard expression resolves to no concrete indices (default: false) - # @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, hidden, none, all) - # @option arguments [String] :features Return only information on specified index features (options: aliases, mappings, settings) - # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false) - # @option arguments [Boolean] :include_defaults Whether to return all default setting for each of the indices. - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and index aliases used to limit the request. + # Wildcard expressions (*) are supported. (*Required*) + # @option arguments [Boolean] :allow_no_indices If false, the request returns an error if any wildcard expression, index alias, or _all value targets only + # missing or closed indices. This behavior applies even if the request targets other open indices. For example, + # a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard expressions can match. If the request can target data streams, this argument + # determines whether wildcard expressions match hidden data streams. Supports comma-separated values, + # such as open,hidden. Server default: open. + # @option arguments [Boolean] :flat_settings If true, returns settings in flat format. + # @option arguments [Boolean] :ignore_unavailable If false, requests that target a missing index return an error. + # @option arguments [Boolean] :include_defaults If true, return all default settings in the response. + # @option arguments [Boolean] :local If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [String, Array] :features Return only information on specified index features Server default: ['aliases', 'mappings', 'settings']. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-index.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get' } @@ -50,12 +57,12 @@ def get(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET - path = "#{Utils.__listify(_index)}" + path = Utils.listify(_index).to_s params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb index a216dd6c10..772a45ffa8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb @@ -15,29 +15,39 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Returns an alias. + # Get aliases. + # Retrieves information for one or more data stream or index aliases. # - # @option arguments [List] :name A comma-separated list of alias names to return - # @option arguments [List] :index A comma-separated list of index names to filter aliases - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Time] :master_timeout Timeout for waiting for new cluster state in case it is blocked + # @option arguments [String, Array] :name Comma-separated list of aliases to retrieve. + # Supports wildcards (+*+). + # To retrieve all aliases, omit this parameter or use +*+ or +_all+. + # @option arguments [String, Array] :index Comma-separated list of data streams or indices used to limit the request. + # Supports wildcards (+*+). + # To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-alias # def get_alias(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_alias' } - defined_params = %i[name index].each_with_object({}) do |variable, set_variables| + defined_params = [:name, :index].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -53,11 +63,11 @@ def get_alias(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _index && _name - "#{Utils.__listify(_index)}/_alias/#{Utils.__listify(_name)}" + "#{Utils.listify(_index)}/_alias/#{Utils.listify(_name)}" elsif _index - "#{Utils.__listify(_index)}/_alias" + "#{Utils.listify(_index)}/_alias" elsif _name - "_alias/#{Utils.__listify(_name)}" + "_alias/#{Utils.listify(_name)}" else '_alias' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb index a675850592..985715a856 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb @@ -15,22 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Returns the data stream lifecycle of the selected data streams. + # Get data stream lifecycles. + # Get the data stream lifecycle configuration of one or more data streams. # - # @option arguments [List] :name A comma-separated list of data streams to get; use `*` to get all data streams - # @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, hidden, none, all) - # @option arguments [Boolean] :include_defaults Return all relevant default configurations for the data stream (default: false) - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String, Array] :name Comma-separated list of data streams to limit the request. + # Supports wildcards (+*+). + # To target all data streams, omit this parameter or use +*+ or +_all+. (*Required*) + # @option arguments [String, Array] :expand_wildcards Type of data stream that wildcard patterns can match. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :include_defaults If +true+, return all default settings in the response. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-get-lifecycle.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-lifecycle # def get_data_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_data_lifecycle' } @@ -50,7 +55,7 @@ def get_data_lifecycle(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_GET - path = "_data_stream/#{Utils.__listify(_name)}/_lifecycle" + path = "_data_stream/#{Utils.listify(_name)}/_lifecycle" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb index 3446984630..e47c966180 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb @@ -15,18 +15,19 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Get data stream lifecycle statistics. + # Get data stream lifecycle stats. + # Get statistics about the data streams that are managed by a data stream lifecycle. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-get-lifecycle-stats.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-lifecycle-stats # def get_data_lifecycle_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_data_lifecycle_stats' } @@ -34,7 +35,7 @@ def get_data_lifecycle_stats(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_lifecycle/stats' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb index 5e1ff6ff08..3f4ca1936e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb @@ -15,23 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Returns data streams. + # Get data streams. + # Get information about one or more data streams. # - # @option arguments [List] :name A comma-separated list of data streams to get; use `*` to get all data streams - # @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, hidden, none, all) - # @option arguments [Boolean] :include_defaults Return all relevant default configurations for the data stream (default: false) - # @option arguments [Time] :master_timeout Specify timeout for connection to master - # @option arguments [Boolean] :verbose Whether the maximum timestamp for each data stream should be calculated and returned (default: false) + # @option arguments [String, Array] :name Comma-separated list of data stream names used to limit the request. + # Wildcard (+*+) expressions are supported. If omitted, all data streams are returned. + # @option arguments [String, Array] :expand_wildcards Type of data stream that wildcard patterns can match. + # Supports comma-separated values, such as +open,hidden+. Server default: open. + # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :verbose Whether the maximum timestamp for each data stream should be calculated and returned. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-stream # def get_data_stream(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_data_stream' } @@ -50,7 +53,7 @@ def get_data_stream(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _name - "_data_stream/#{Utils.__listify(_name)}" + "_data_stream/#{Utils.listify(_name)}" else '_data_stream' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb index f4aad0249d..464b2c049f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb @@ -15,49 +15,60 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Returns mapping for one or more fields. + # Get mapping definitions. + # Retrieves mapping definitions for one or more fields. + # For data streams, the API retrieves field mappings for the stream’s backing indices. + # This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. # - # @option arguments [List] :fields A comma-separated list of fields - # @option arguments [List] :index A comma-separated list of index names - # @option arguments [Boolean] :include_defaults Whether the default mapping values should be returned as well - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) + # @option arguments [String, Array] :fields Comma-separated list or wildcard expression of fields used to limit returned information. + # Supports wildcards (+*+). (*Required*) + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. + # Supports wildcards (+*+). + # To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :include_defaults If +true+, return all default settings in the response. + # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-mapping # def get_field_mapping(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_field_mapping' } - defined_params = %i[fields index].each_with_object({}) do |variable, set_variables| + defined_params = [:fields, :index].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? - arguments = arguments.clone - _fields = arguments.delete(:field) || arguments.delete(:fields) - raise ArgumentError, "Required argument 'field' missing" unless _fields + raise ArgumentError, "Required argument 'fields' missing" unless arguments[:fields] + arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil + + _fields = arguments.delete(:fields) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = if _index && _fields - "#{Utils.__listify(_index)}/_mapping/field/#{Utils.__listify(_fields)}" + "#{Utils.listify(_index)}/_mapping/field/#{Utils.listify(_fields)}" else - "_mapping/field/#{Utils.__listify(_fields)}" + "_mapping/field/#{Utils.listify(_fields)}" end params = Utils.process_params(arguments) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb index a56bd60806..ba90f8b2c5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb @@ -15,23 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Returns an index template. + # Get index templates. + # Get information about one or more index templates. # - # @option arguments [String] :name A pattern that returned template names must match - # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false) - # @option arguments [Time] :master_timeout Timeout for waiting for new cluster state in case it is blocked - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) *Deprecated* - # @option arguments [Boolean] :include_defaults Return all relevant default configurations for the index template (default: false) + # @option arguments [String] :name Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. + # @option arguments [Boolean] :local If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. + # @option arguments [Boolean] :flat_settings If true, returns settings in flat format. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-template.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-index-template # def get_index_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_index_template' } @@ -50,7 +51,7 @@ def get_index_template(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _name - "_index_template/#{Utils.__listify(_name)}" + "_index_template/#{Utils.listify(_name)}" else '_index_template' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb index 8160fd20b3..745f4d12e2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb @@ -15,24 +15,32 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Returns mappings for one or more indices. + # Get mapping definitions. + # For data streams, the API retrieves mappings for the stream’s backing indices. # - # @option arguments [List] :index A comma-separated list of index names - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Time] :master_timeout Specify timeout for connection to master - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) *Deprecated* + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. + # Supports wildcards (+*+). + # To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-mapping # def get_mapping(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_mapping' } @@ -45,13 +53,13 @@ def get_mapping(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = if _index - "#{Utils.__listify(_index)}/_mapping" + "#{Utils.listify(_index)}/_mapping" else '_mapping' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb index 60f6975b24..6c1fdb69d0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb index a388991927..3e8972b2e0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb @@ -15,32 +15,45 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Returns settings for one or more indices. + # Get index settings. + # Get setting information for one or more indices. + # For data streams, it returns setting information for the stream's backing indices. # - # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - # @option arguments [List] :name The name of the settings that should be included - # @option arguments [Time] :master_timeout Specify timeout for connection to master - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false) - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) - # @option arguments [Boolean] :include_defaults Whether to return all default setting for each of the indices. + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit + # the request. Supports wildcards (+*+). To target all data streams and + # indices, omit this parameter or use +*+ or +_all+. + # @option arguments [String, Array] :name Comma-separated list or wildcard expression of settings to retrieve. + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index + # alias, or +_all+ value targets only missing or closed indices. This + # behavior applies even if the request targets other open indices. For + # example, a request targeting +foo*,bar*+ returns an error if an index + # starts with foo but no index starts with +bar+. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. Server default: open. + # @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :include_defaults If +true+, return all default settings in the response. + # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. If + # +false+, information is retrieved from the master node. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is + # received before the timeout expires, the request fails and returns an + # error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-settings.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-settings # def get_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_settings' } - defined_params = %i[index name].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :name].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -48,7 +61,7 @@ def get_settings(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) @@ -56,11 +69,11 @@ def get_settings(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _index && _name - "#{Utils.__listify(_index)}/_settings/#{Utils.__listify(_name)}" + "#{Utils.listify(_index)}/_settings/#{Utils.listify(_name)}" elsif _index - "#{Utils.__listify(_index)}/_settings" + "#{Utils.listify(_index)}/_settings" elsif _name - "_settings/#{Utils.__listify(_name)}" + "_settings/#{Utils.listify(_name)}" else '_settings' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb index 8c15a38ae5..2faaaa25c9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb @@ -15,22 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Returns an index template. + # Get index templates. + # Get information about one or more index templates. + # IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. # - # @option arguments [List] :name The comma separated names of the index templates - # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false) - # @option arguments [Time] :master_timeout Timeout for waiting for new cluster state in case it is blocked - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) *Deprecated* + # @option arguments [String, Array] :name Comma-separated list of index template names used to limit the request. + # Wildcard (+*+) expressions are supported. + # To return all index templates, omit this parameter or use a value of +_all+ or +*+. + # @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format. + # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-template-v1.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-template # def get_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_template' } @@ -49,7 +54,7 @@ def get_template(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _name - "_template/#{Utils.__listify(_name)}" + "_template/#{Utils.listify(_name)}" else '_template' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb index 3e4a7eb870..dc252b0392 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb index 7b70036ced..922b74e8e4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb @@ -15,21 +15,31 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Migrates an alias to a data stream + # Convert an index alias to a data stream. + # Converts an index alias to a data stream. + # You must have a matching index template that is data stream enabled. + # The alias must meet the following criteria: + # The alias must have a write index; + # All indices for the alias must have a +@timestamp+ field mapping of a +date+ or +date_nanos+ field type; + # The alias must not have any filters; + # The alias must not use custom routing. + # If successful, the request removes the alias and creates a data stream with the same name. + # The indices for the alias become hidden backing indices for the stream. + # The write index for the alias becomes the write index for the stream. # - # @option arguments [String] :name The name of the alias to migrate - # @option arguments [Time] :timeout Specify timeout for acknowledging the cluster state update - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String] :name Name of the index alias to convert to a data stream. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-migrate-to-data-stream # def migrate_to_data_stream(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.migrate_to_data_stream' } @@ -49,7 +59,7 @@ def migrate_to_data_stream(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_POST - path = "_data_stream/_migrate/#{Utils.__listify(_name)}" + path = "_data_stream/_migrate/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb index eb8dedc08e..c0ace0388f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb @@ -15,19 +15,20 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Modifies a data stream + # Update data streams. + # Performs one or more data stream modification actions in a single atomic operation. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The data stream modifications (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-modify-data-stream # def modify_data_stream(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.modify_data_stream' } @@ -37,7 +38,7 @@ def modify_data_stream(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_data_stream/_modify' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb index b1b6844cc0..27d49b34c6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb @@ -15,25 +15,52 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Opens an index. + # Open a closed index. + # For data streams, the API opens any closed backing indices. + # A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + # It is not possible to index documents or to search for documents in a closed index. + # This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + # When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + # The shards will then go through the normal recovery process. + # The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + # You can open and close multiple indices. + # An error is thrown if the request explicitly refers to a missing index. + # This behavior can be turned off by using the +ignore_unavailable=true+ parameter. + # By default, you must explicitly name the indices you are opening or closing. + # To open or close indices with +_all+, +*+, or other wildcard expressions, change the +action.destructive_requires_name+ setting to +false+. + # This setting can also be changed with the cluster update settings API. + # Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + # Closing indices can be turned off with the cluster settings API by setting +cluster.indices.close.enable+ to +false+. + # Because opening or closing an index allocates its shards, the +wait_for_active_shards+ setting on index creation applies to the +_open+ and +_close+ index actions as well. # - # @option arguments [List] :index A comma separated list of indices to open - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Specify timeout for connection to master - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [String] :wait_for_active_shards Sets the number of active shards to wait for before the operation returns. + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. + # Supports wildcards (+*+). + # By default, you must explicitly name the indices you using to limit the request. + # To limit a request using +_all+, +*+, or other wildcard expressions, change the +action.destructive_requires_name+ setting to false. + # You can update this setting in the +elasticsearch.yml+ file or using the cluster update settings API. (*Required*) + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. + # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-open-close.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-open # def open(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.open' } @@ -48,12 +75,12 @@ def open(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_open" + path = "#{Utils.listify(_index)}/_open" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb index 1a55479ee6..d1faeb0bc5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb @@ -15,20 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Promotes a data stream from a replicated data stream managed by CCR to a regular data stream + # Promote a data stream. + # Promote a data stream from a replicated data stream managed by cross-cluster replication (CCR) to a regular data stream. + # With CCR auto following, a data stream from a remote cluster can be replicated to the local cluster. + # These data streams can't be rolled over in the local cluster. + # These replicated data streams roll over only if the upstream data stream rolls over. + # In the event that the remote cluster is no longer available, the data stream in the local cluster can be promoted to a regular data stream, which allows these data streams to be rolled over in the local cluster. + # NOTE: When promoting a data stream, ensure the local cluster has a data stream enabled index template that matches the data stream. + # If this is missing, the data stream will not be able to roll over until a matching index template is created. + # This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. # - # @option arguments [String] :name The name of the data stream - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String] :name The name of the data stream (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-promote-data-stream # def promote_data_stream(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.promote_data_stream' } @@ -48,7 +56,7 @@ def promote_data_stream(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_POST - path = "_data_stream/_promote/#{Utils.__listify(_name)}" + path = "_data_stream/_promote/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb index d18dce3386..17fc6a8ebb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb @@ -15,28 +15,35 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Creates or updates an alias. + # Create or update an alias. + # Adds a data stream or index to an alias. # - # @option arguments [List] :index A comma-separated list of index names the alias should point to (supports wildcards); use `_all` to perform the operation on all indices. - # @option arguments [String] :name The name of the alias to be created or updated - # @option arguments [Time] :timeout Explicit timestamp for the document - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String, Array] :index Comma-separated list of data streams or indices to add. + # Supports wildcards (+*+). + # Wildcard patterns that match both data streams and indices return an error. (*Required*) + # @option arguments [String] :name Alias to update. + # If the alias doesn’t exist, the request creates it. + # Index alias names support date math. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The settings for the alias, such as `routing` or `filter` + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-alias # def put_alias(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.put_alias' } - defined_params = %i[index name].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :name].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -47,14 +54,14 @@ def put_alias(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_PUT - path = ("#{Utils.__listify(_index)}/_aliases/#{Utils.__listify(_name)}" if _index && _name) + path = ("#{Utils.listify(_index)}/_aliases/#{Utils.listify(_name)}" if _index && _name) params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb index 2f03fa0bd3..64bec24498 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb @@ -15,23 +15,31 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Updates the data stream lifecycle of the selected data streams. + # Update data stream lifecycles. + # Update the data stream lifecycle of the specified data streams. # - # @option arguments [List] :name A comma-separated list of data streams whose lifecycle will be updated; use `*` to set the lifecycle to all data streams - # @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, hidden, none, all) - # @option arguments [Time] :timeout Explicit timestamp for the document - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String, Array] :name Comma-separated list of data streams used to limit the request. + # Supports wildcards (+*+). + # To target all data streams use +*+ or +_all+. (*Required*) + # @option arguments [String, Array] :expand_wildcards Type of data stream that wildcard patterns can match. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +hidden+, +open+, +closed+, +none+. Server default: open. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is + # received before the timeout expires, the request fails and returns an + # error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The data stream lifecycle configuration that consist of the data retention + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-put-lifecycle.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-data-lifecycle # def put_data_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.put_data_lifecycle' } @@ -51,7 +59,7 @@ def put_data_lifecycle(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_PUT - path = "_data_stream/#{Utils.__listify(_name)}/_lifecycle" + path = "_data_stream/#{Utils.listify(_name)}/_lifecycle" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb index 061f55edbc..91c254e835 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb @@ -15,23 +15,44 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Creates or updates an index template. + # Create or update an index template. + # Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + # Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. + # Index templates are applied during data stream or index creation. + # For data streams, these settings and mappings are applied when the stream's backing indices are created. + # Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. + # Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. + # You can use C-style +/* *\/+ block comments in index templates. + # You can include comments anywhere in the request body, except before the opening curly bracket. + # **Multiple matching templates** + # If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. + # Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. + # **Composing aliases, mappings, and settings** + # When multiple component templates are specified in the +composed_of+ field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. + # Any mappings, settings, or aliases from the parent index template are merged in next. + # Finally, any configuration on the index request itself is merged. + # Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. + # If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. + # This recursive merging strategy applies not only to field mappings, but also root options like +dynamic_templates+ and +meta+. + # If an earlier component contains a +dynamic_templates+ block, then by default new +dynamic_templates+ entries are appended onto the end. + # If an entry already exists with the same key, then it is overwritten by the new definition. # - # @option arguments [String] :name The name of the template - # @option arguments [Boolean] :create Whether the index template should only be added if new or can also replace an existing one + # @option arguments [String] :name Index or template name (*Required*) + # @option arguments [Boolean] :create If +true+, this request cannot replace or update existing index templates. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [String] :cause User defined reason for creating/updating the index template - # @option arguments [Time] :master_timeout Specify timeout for connection to master # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The template definition (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-template.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-index-template # def put_index_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.put_index_template' } @@ -52,7 +73,7 @@ def put_index_template(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_PUT - path = "_index_template/#{Utils.__listify(_name)}" + path = "_index_template/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb index c0c85affa7..564603da25 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb @@ -15,26 +15,51 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Updates the index mappings. + # Update field mappings. + # Add new fields to an existing data stream or index. + # You can also use this API to change the search settings of existing fields and add new properties to existing object fields. + # For data streams, these changes are applied to all backing indices by default. + # **Add multi-fields to an existing field** + # Multi-fields let you index the same field in different ways. + # You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + # WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + # You can populate the new multi-field with the update by query API. + # **Change supported mapping parameters for an existing field** + # The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + # For example, you can use the update mapping API to update the +ignore_above+ parameter. + # **Change the mapping of an existing field** + # Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + # Changing an existing field could invalidate data that's already indexed. + # If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + # If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + # **Rename a field** + # Renaming a field would invalidate data already indexed under the old field name. + # Instead, add an alias field to create an alternate field name. # - # @option arguments [List] :index A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Specify timeout for connection to master - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Boolean] :write_index_only When true, applies mappings only to the write index of an alias or data stream + # @option arguments [String, Array] :index A comma-separated list of index names the mapping should be added to (supports wildcards); use +_all+ or omit to add the mapping on all indices. (*Required*) + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :write_index_only If +true+, the mappings are applied only to the current write index for the target. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The mapping definition (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-mapping # def put_mapping(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.put_mapping' } @@ -50,12 +75,12 @@ def put_mapping(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_PUT - path = "#{Utils.__listify(_index)}/_mapping" + path = "#{Utils.listify(_index)}/_mapping" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb index 887c817ab4..754d6d29c8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb @@ -15,28 +15,55 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Updates the index settings. + # Update index settings. + # Changes dynamic index settings in real time. + # For data streams, index setting changes are applied to all backing indices by default. + # To revert a setting to the default value, use a null value. + # The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + # To preserve existing settings from being updated, set the +preserve_existing+ parameter to +true+. + # NOTE: You can only define new analyzers on closed indices. + # To add an analyzer, you must close the index, define the analyzer, and reopen the index. + # You cannot close the write index of a data stream. + # To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + # Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + # This affects searches and any new data added to the stream after the rollover. + # However, it does not affect the data stream's backing indices or their existing data. + # To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. # - # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - # @option arguments [Time] :master_timeout Specify timeout for connection to master - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Boolean] :preserve_existing Whether to update existing settings. If set to `true` existing settings on an index remain unchanged, the default is `false` - # @option arguments [Boolean] :reopen Whether to close and reopen the index to apply non-dynamic settings. If set to `true` the indices to which the settings are being applied will be closed temporarily and then reopened in order to apply the changes. The default is `false` - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false) + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit + # the request. Supports wildcards (+*+). To target all data streams and + # indices, omit this parameter or use +*+ or +_all+. + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index + # alias, or +_all+ value targets only missing or closed indices. This + # behavior applies even if the request targets other open indices. For + # example, a request targeting +foo*,bar*+ returns an error if an index + # starts with +foo+ but no index starts with +bar+. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. If the request can target + # data streams, this argument determines whether wildcard expressions match + # hidden data streams. Supports comma-separated values, such as + # +open,hidden+. Server default: open. + # @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format. + # @option arguments [Boolean] :ignore_unavailable If +true+, returns settings in flat format. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is + # received before the timeout expires, the request fails and returns an + # error. Server default: 30s. + # @option arguments [Boolean] :preserve_existing If +true+, existing index settings remain unchanged. + # @option arguments [Boolean] :reopen Whether to close and reopen the index to apply non-dynamic settings. + # If set to +true+ the indices to which the settings are being applied + # will be closed temporarily and then reopened in order to apply the changes. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the + # timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The index settings to be updated (*Required*) + # @option arguments [Hash] :body settings # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-settings # def put_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.put_settings' } @@ -51,13 +78,13 @@ def put_settings(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_PUT path = if _index - "#{Utils.__listify(_index)}/_settings" + "#{Utils.listify(_index)}/_settings" else '_settings' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb index 93888e5236..f950445a81 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb @@ -15,23 +15,41 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Creates or updates an index template. + # Create or update an index template. + # Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + # Elasticsearch applies templates to new indices based on an index pattern that matches the index name. + # IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + # Composable templates always take precedence over legacy templates. + # If no composable template matches a new index, matching legacy templates are applied according to their order. + # Index templates are only applied during index creation. + # Changes to index templates do not affect existing indices. + # Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. + # You can use C-style +/* *\/+ block comments in index templates. + # You can include comments anywhere in the request body, except before the opening curly bracket. + # **Indices matching multiple templates** + # Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. + # The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. + # NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. # - # @option arguments [String] :name The name of the template - # @option arguments [Number] :order The order for this template when merging multiple matching ones (higher numbers are merged later, overriding the lower numbers) - # @option arguments [Boolean] :create Whether the index template should only be added if new or can also replace an existing one - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String] :name The name of the template (*Required*) + # @option arguments [Boolean] :create If true, this request cannot replace or update existing index templates. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is + # received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Integer] :order Order in which Elasticsearch applies this template if index + # matches multiple templates.Templates with lower 'order' values are merged first. Templates with higher + # 'order' values are merged later, overriding templates with lower values. + # @option arguments [String] :cause User defined reason for creating/updating the index template # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The template definition (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-template # def put_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.put_template' } @@ -52,7 +70,7 @@ def put_template(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_PUT - path = "_template/#{Utils.__listify(_name)}" + path = "_template/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb index c599681e96..f1750f205f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb @@ -15,21 +15,39 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Returns information about ongoing index shard recoveries. + # Get index recovery information. + # Get information about ongoing and completed shard recoveries for one or more indices. + # For data streams, the API returns information for the stream's backing indices. + # All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + # Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + # When a shard recovery completes, the recovered shard is available for search and indexing. + # Recovery automatically occurs during the following processes: + # * When creating an index for the first time. + # * When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + # * Creation of new replica shard copies from the primary. + # * Relocation of a shard copy to a different node in the same cluster. + # * A snapshot restore operation. + # * A clone, shrink, or split operation. + # You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + # The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + # It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + # This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. # - # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - # @option arguments [Boolean] :detailed Whether to display detailed information about shard recovery - # @option arguments [Boolean] :active_only Display only those recoveries that are currently on-going + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. + # Supports wildcards (+*+). + # To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [Boolean] :active_only If +true+, the response only includes ongoing shard recoveries. + # @option arguments [Boolean] :detailed If +true+, the response includes detailed information about shard recoveries. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-recovery.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-recovery # def recovery(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.recovery' } @@ -42,13 +60,13 @@ def recovery(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = if _index - "#{Utils.__listify(_index)}/_recovery" + "#{Utils.listify(_index)}/_recovery" else '_recovery' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb index 732d10d415..3cc85868fd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb @@ -15,22 +15,37 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Performs the refresh operation in one or more indices. + # Refresh an index. + # A refresh makes recent operations performed on one or more indices available for search. + # For data streams, the API runs the refresh operation on the stream’s backing indices. + # By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + # You can change this default interval with the +index.refresh_interval+ setting. + # Refresh requests are synchronous and do not return a response until the refresh operation completes. + # Refreshes are resource-intensive. + # To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + # If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's +refresh=wait_for+ query parameter option. + # This option ensures the indexing operation waits for a periodic refresh before running the search. # - # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. + # Supports wildcards (+*+). + # To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-refresh.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-refresh # def refresh(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.refresh' } @@ -43,13 +58,13 @@ def refresh(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = if _index - "#{Utils.__listify(_index)}/_refresh" + "#{Utils.listify(_index)}/_refresh" else '_refresh' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb index 3fb1dcf414..4cb30ce249 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb @@ -15,23 +15,33 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Reloads an index's search analyzers and their resources. + # Reload search analyzers. + # Reload an index's search analyzers and their resources. + # For data streams, the API reloads search analyzers and resources for the stream's backing indices. + # IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + # You can use the reload search analyzers API to pick up changes to synonym files used in the +synonym_graph+ or +synonym+ token filter of a search analyzer. + # To be eligible, the token filter must have an +updateable+ flag of +true+ and only be used in search analyzers. + # NOTE: This API does not perform a reload for each shard of an index. + # Instead, it performs a reload for each node containing index shards. + # As a result, the total shard count returned by the API can differ from the number of index shards. + # Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + # This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. # - # @option arguments [List] :index A comma-separated list of index names to reload analyzers for + # @option arguments [String, Array] :index A comma-separated list of index names to reload analyzers for (*Required*) + # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes +_all+ string or when no indices have been specified) + # @option arguments [String, Array] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [String] :resource changed resource to reload analyzers from if applicable + # @option arguments [String] :resource Changed resource to reload analyzers from if applicable # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-reload-analyzers.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-reload-search-analyzers # def reload_search_analyzers(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.reload_search_analyzers' } @@ -46,12 +56,12 @@ def reload_search_analyzers(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET - path = "#{Utils.__listify(_index)}/_reload_search_analyzers" + path = "#{Utils.listify(_index)}/_reload_search_analyzers" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb index 9f399ef567..04caea7e19 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb @@ -15,23 +15,72 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Resolves the specified index expressions to return information about each cluster, including the local cluster, if included. + # Resolve the cluster. + # Resolve the specified index expressions to return information about each cluster, including the local "querying" cluster, if included. + # If no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster. + # This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. + # You use the same index expression with this endpoint as you would for cross-cluster search. + # Index and cluster exclusions are also supported with this endpoint. + # For each cluster in the index expression, information is returned about: + # * Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the +remote/info+ endpoint. + # * Whether each remote cluster is configured with +skip_unavailable+ as +true+ or +false+. + # * Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + # * Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + # * Cluster version information, including the Elasticsearch server version. + # For example, +GET /_resolve/cluster/my-index-*,cluster*:my-index-*+ returns information about the local cluster and all remotely configured clusters that start with the alias +cluster*+. + # Each cluster returns information about whether it has any indices, aliases or data streams that match +my-index-*+.The ability to query without an index expression was added in version 8.18, so when + # querying remote clusters older than that, the local cluster will send the index + # expression +dummy*+ to those remote clusters. Thus, if an errors occur, you may see a reference + # to that index expression even though you didn't request it. If it causes a problem, you can + # instead include an index expression like +*:*+ to bypass the issue.You may want to exclude a cluster or index from a search when: + # * A remote cluster is not currently connected and is configured with +skip_unavailable=false+. Running a cross-cluster search under those conditions will cause the entire search to fail. + # * A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is +logs*,remote1:logs*+ and the remote1 cluster has no indices, aliases or data streams that match +logs*+. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. + # * The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the +_resolve/cluster+ response will be present. (This is also where security/permission errors will be shown.) + # * A remote cluster is an older version that does not support the feature you want to use in your search.The +remote/info+ endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. + # The remote cluster may be available, while the local cluster is not currently connected to it. + # You can use the +_resolve/cluster+ API to attempt to reconnect to remote clusters. + # For example with +GET _resolve/cluster+ or +GET _resolve/cluster/*:*+. + # The +connected+ field in the response will indicate whether it was successful. + # If a connection was (re-)established, this will also cause the +remote/info+ endpoint to now indicate a connected status. # - # @option arguments [List] :name A comma-separated list of cluster:index names or wildcard expressions - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :ignore_throttled Whether specified concrete, expanded or aliased indices should be ignored when throttled - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, hidden, none, all) + # @option arguments [String, Array] :name A comma-separated list of names or index patterns for the indices, aliases, and data streams to resolve. + # Resources on remote clusters can be specified using the ++:++ syntax. + # Index and cluster exclusions (e.g., +-cluster1:*+) are also supported. + # If no index expression is specified, information about all remote clusters configured on the local cluster + # is returned without doing any index matching + # @option arguments [Boolean] :allow_no_indices If false, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing + # or closed indices. This behavior applies even if the request targets other open indices. For example, a request + # targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. + # NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index + # options to the +_resolve/cluster+ API endpoint that takes no index expression. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. + # NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index + # options to the +_resolve/cluster+ API endpoint that takes no index expression. Server default: open. + # @option arguments [Boolean] :ignore_throttled If true, concrete, expanded, or aliased indices are ignored when frozen. + # NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index + # options to the +_resolve/cluster+ API endpoint that takes no index expression. + # @option arguments [Boolean] :ignore_unavailable If false, the request returns an error if it targets a missing or closed index. + # NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index + # options to the +_resolve/cluster+ API endpoint that takes no index expression. + # @option arguments [Time] :timeout The maximum time to wait for remote clusters to respond. + # If a remote cluster does not respond within this timeout period, the API response + # will show the cluster as not connected and include an error message that the + # request timed out.The default timeout is unset and the query can take + # as long as the networking layer is configured to wait for remote clusters that are + # not responding (typically 30 seconds). # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-resolve-cluster-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-resolve-cluster # def resolve_cluster(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.resolve_cluster' } @@ -41,8 +90,6 @@ def resolve_cluster(arguments = {}) end request_opts[:defined_params] = defined_params unless defined_params.empty? - raise ArgumentError, "Required argument 'name' missing" unless arguments[:name] - arguments = arguments.clone headers = arguments.delete(:headers) || {} @@ -51,7 +98,11 @@ def resolve_cluster(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_GET - path = "_resolve/cluster/#{Utils.__listify(_name)}" + path = if _name + "_resolve/cluster/#{Utils.listify(_name)}" + else + '_resolve/cluster' + end params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb index 9c6e38013d..9879bd589a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb @@ -15,22 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Returns information about any matching indices, aliases, and data streams + # Resolve indices. + # Resolve the names and/or index patterns for indices, aliases, and data streams. + # Multiple patterns and remote clusters are supported. # - # @option arguments [List] :name A comma-separated list of names or wildcard expressions - # @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, hidden, none, all) - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + # @option arguments [String, Array] :name Comma-separated name(s) or index pattern(s) of the indices, aliases, and data streams to resolve. + # Resources on remote clusters can be specified using the ++:++ syntax. (*Required*) + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. + # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-resolve-index-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-resolve-index # def resolve_index(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.resolve_index' } @@ -50,7 +58,7 @@ def resolve_index(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_GET - path = "_resolve/index/#{Utils.__listify(_name)}" + path = "_resolve/index/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb index fe1c79258f..733b54c6c9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb @@ -15,32 +15,62 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Updates an alias to point to a new index when the existing index - # is considered to be too large or too old. + # Roll over to a new index. + # TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + # The rollover API creates a new index for a data stream or index alias. + # The API behavior depends on the rollover target. + # **Roll over a data stream** + # If you roll over a data stream, the API creates a new write index for the stream. + # The stream's previous write index becomes a regular backing index. + # A rollover also increments the data stream's generation. + # **Roll over an index alias with a write index** + # TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + # Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + # If an index alias points to multiple indices, one of the indices must be a write index. + # The rollover API creates a new write index for the alias with +is_write_index+ set to +true+. + # The API also +sets is_write_index+ to +false+ for the previous write index. + # **Roll over an index alias with one index** + # If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + # NOTE: A rollover creates a new index and is subject to the +wait_for_active_shards+ setting. + # **Increment index names for an alias** + # When you roll over an index alias, you can specify a name for the new index. + # If you don't specify a name and the current index ends with +-+ and a number, such as +my-index-000001+ or +my-index-3+, the new index name increments that number. + # For example, if you roll over an alias with a current index of +my-index-000001+, the rollover creates a new index named +my-index-000002+. + # This number is always six characters and zero-padded, regardless of the previous index's name. + # If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + # For example, you can create an alias that points to an index named ++. + # If you create the index on May 6, 2099, the index's name is +my-index-2099.05.06-000001+. + # If you roll over the alias on May 7, 2099, the new index's name is +my-index-2099.05.07-000002+. # - # @option arguments [String] :alias The name of the alias to rollover - # @option arguments [String] :new_index The name of the rollover index - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Boolean] :dry_run If set to true the rollover action will only be validated but not actually performed even if a condition matches. The default is false - # @option arguments [Time] :master_timeout Specify timeout for connection to master - # @option arguments [String] :wait_for_active_shards Set the number of active shards to wait for on the newly created rollover index before the operation returns. - # @option arguments [Boolean] :lazy If set to true, the rollover action will only mark a data stream to signal that it needs to be rolled over at the next write. Only allowed on data streams. + # @option arguments [String] :alias Name of the data stream or index alias to roll over. (*Required*) + # @option arguments [String] :new_index Name of the index to create. + # Supports date math. + # Data streams do not support this parameter. + # @option arguments [Boolean] :dry_run If +true+, checks whether the current index satisfies the specified conditions but does not perform a rollover. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. + # Set to all or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1. + # @option arguments [Boolean] :lazy If set to true, the rollover action will only mark a data stream to signal that it needs to be rolled over at the next write. + # Only allowed on data streams. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The conditions that needs to be met for executing rollover + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-rollover-index.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-rollover # def rollover(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.rollover' } - defined_params = %i[alias new_index].each_with_object({}) do |variable, set_variables| + defined_params = [:alias, :new_index].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -50,7 +80,7 @@ def rollover(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _alias = arguments.delete(:alias) @@ -58,9 +88,9 @@ def rollover(arguments = {}) method = Elasticsearch::API::HTTP_POST path = if _alias && _new_index - "#{Utils.__listify(_alias)}/_rollover/#{Utils.__listify(_new_index)}" + "#{Utils.listify(_alias)}/_rollover/#{Utils.listify(_new_index)}" else - "#{Utils.__listify(_alias)}/_rollover" + "#{Utils.listify(_alias)}/_rollover" end params = Utils.process_params(arguments) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb index 52d5e8c9c3..7436d62aef 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb @@ -15,22 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Provides low-level information about segments in a Lucene index. + # Get index segments. + # Get low-level information about the Lucene segments in index shards. + # For data streams, the API returns information about the stream's backing indices. # - # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. + # Supports wildcards (+*+). + # To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-segments.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-segments # def segments(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.segments' } @@ -43,13 +51,13 @@ def segments(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = if _index - "#{Utils.__listify(_index)}/_segments" + "#{Utils.listify(_index)}/_segments" else '_segments' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb index 04000d4f7e..38458ca3de 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb @@ -15,23 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Provides store information for shard copies of indices. + # Get index shard stores. + # Get store information about replica shards in one or more indices. + # For data streams, the API retrieves store information for the stream's backing indices. + # The index shard stores API returns the following information: + # * The node on which each replica shard exists. + # * The allocation ID for each replica shard. + # * A unique ID for each replica shard. + # * Any errors encountered while opening the shard index or from an earlier failure. + # By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. # - # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - # @option arguments [List] :status A comma-separated list of statuses used to filter on shards to get store information for (options: green, yellow, red, all) - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) + # @option arguments [String, Array] :index List of data streams, indices, and aliases used to limit the request. + # @option arguments [Boolean] :allow_no_indices If false, the request returns an error if any wildcard expression, index alias, or _all + # value targets only missing or closed indices. This behavior applies even if the request + # targets other open indices. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. If the request can target data streams, + # this argument determines whether wildcard expressions match hidden data streams. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If true, missing or closed indices are not included in the response. + # @option arguments [Shardstorestatus] :status List of shard health statuses used to limit the request. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-shards-stores.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-shard-stores # def shard_stores(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.shard_stores' } @@ -44,13 +55,13 @@ def shard_stores(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = if _index - "#{Utils.__listify(_index)}/_shard_stores" + "#{Utils.listify(_index)}/_shard_stores" else '_shard_stores' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb index 00a28b5ec1..eab0ba6a42 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb @@ -15,29 +15,54 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Allow to shrink an existing index into a new index with fewer primary shards. + # Shrink an index. + # Shrink an index into a new index with fewer primary shards. + # Before you can shrink an index: + # * The index must be read-only. + # * A copy of every shard in the index must reside on the same node. + # * The index must have a green health status. + # To make shard allocation easier, we recommend you also remove the index's replica shards. + # You can later re-add replica shards as part of the shrink operation. + # The requested number of primary shards in the target index must be a factor of the number of shards in the source index. + # For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. + # If the number of shards in the index is a prime number it can only be shrunk into a single primary shard + # Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. + # The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. + # A shrink operation: + # * Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. + # * Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. + # * Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the +.routing.allocation.initial_recovery._id+ index setting. + # IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: + # * The target index must not exist. + # * The source index must have more primary shards than the target index. + # * The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. + # * The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. + # * The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. # - # @option arguments [String] :index The name of the source index to shrink - # @option arguments [String] :target The name of the target index to shrink into - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Specify timeout for connection to master - # @option arguments [String] :wait_for_active_shards Set the number of active shards to wait for on the shrunken index before the operation returns. + # @option arguments [String] :index Name of the source index to shrink. (*Required*) + # @option arguments [String] :target Name of the target index to create. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. + # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The configuration for the target index (`settings` and `aliases`) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-shrink-index.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-shrink # def shrink(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.shrink' } - defined_params = %i[index target].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :target].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -48,14 +73,14 @@ def shrink(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) _target = arguments.delete(:target) method = Elasticsearch::API::HTTP_PUT - path = "#{Utils.__listify(_index)}/_shrink/#{Utils.__listify(_target)}" + path = "#{Utils.listify(_index)}/_shrink/#{Utils.listify(_target)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb index 3817f9f5ca..c5a79a5f4d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb @@ -15,24 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Simulate matching the given index name against the index templates in the system + # Simulate an index. + # Get the index configuration that would be applied to the specified index from an existing index template. # - # @option arguments [String] :name The name of the index (it must be a concrete index name) + # @option arguments [String] :name Name of the index to simulate (*Required*) # @option arguments [Boolean] :create Whether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing one - # @option arguments [String] :cause User defined reason for dry-run creating the new template for simulation purposes - # @option arguments [Time] :master_timeout Specify timeout for connection to master - # @option arguments [Boolean] :include_defaults Return all relevant default configurations for this index template simulation (default: false) + # @option arguments [String] :cause User defined reason for dry-run creating the new template for simulation purposes Server default: false. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body New index template definition, which will be included in the simulation, as if it already exists in the system # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-simulate-index.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-simulate-index-template # def simulate_index_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.simulate_index_template' } @@ -47,12 +47,12 @@ def simulate_index_template(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = nil _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_POST - path = "_index_template/_simulate_index/#{Utils.__listify(_name)}" + path = "_index_template/_simulate_index/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb index afb1e8306f..7293b3d514 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb @@ -15,24 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Simulate resolving the given template name or body + # Simulate an index template. + # Get the index configuration that would be applied by a particular index template. # - # @option arguments [String] :name The name of the index template - # @option arguments [Boolean] :create Whether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing one + # @option arguments [String] :name Name of the index template to simulate. To test a template configuration before you add it to the cluster, omit + # this parameter and specify the template configuration in the request body. + # @option arguments [Boolean] :create If true, the template passed in the body is only used if no existing templates match the same index patterns. If false, the simulation uses the template with the highest priority. Note that the template is not permanently added or updated in either case; it is only used for the simulation. # @option arguments [String] :cause User defined reason for dry-run creating the new template for simulation purposes - # @option arguments [Time] :master_timeout Specify timeout for connection to master - # @option arguments [Boolean] :include_defaults Return all relevant default configurations for this template simulation (default: false) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body New index template definition to be simulated, if no index template name is specified + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-simulate-template.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-simulate-template # def simulate_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.simulate_template' } @@ -51,7 +53,7 @@ def simulate_template(arguments = {}) method = Elasticsearch::API::HTTP_POST path = if _name - "_index_template/_simulate/#{Utils.__listify(_name)}" + "_index_template/_simulate/#{Utils.listify(_name)}" else '_index_template/_simulate' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb index 4bd7412a9c..792d9aa067 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb @@ -15,29 +15,55 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Allows you to split an existing index into a new index with more primary shards. + # Split an index. + # Split an index into a new index with more primary shards. + # * Before you can split an index: + # * The index must be read-only. + # * The cluster health status must be green. + # You can do make an index read-only with the following request using the add index block API: + # + + # PUT /my_source_index/_block/write + # + + # The current write index on a data stream cannot be split. + # In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. + # The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the +index.number_of_routing_shards+ setting. + # The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. + # For instance, a 5 shard index with +number_of_routing_shards+ set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. + # A split operation: + # * Creates a new target index with the same definition as the source index, but with a larger number of primary shards. + # * Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + # * Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. + # * Recovers the target index as though it were a closed index which had just been re-opened. + # IMPORTANT: Indices can only be split if they satisfy the following requirements: + # * The target index must not exist. + # * The source index must have fewer primary shards than the target index. + # * The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. + # * The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. # - # @option arguments [String] :index The name of the source index to split - # @option arguments [String] :target The name of the target index to split into - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Specify timeout for connection to master - # @option arguments [String] :wait_for_active_shards Set the number of active shards to wait for on the shrunken index before the operation returns. + # @option arguments [String] :index Name of the source index to split. (*Required*) + # @option arguments [String] :target Name of the target index to create. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. + # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The configuration for the target index (`settings` and `aliases`) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-split-index.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-split # def split(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.split' } - defined_params = %i[index target].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :target].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -48,14 +74,14 @@ def split(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) _target = arguments.delete(:target) method = Elasticsearch::API::HTTP_PUT - path = "#{Utils.__listify(_index)}/_split/#{Utils.__listify(_target)}" + path = "#{Utils.listify(_index)}/_split/#{Utils.listify(_target)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb index c054f9434a..03cf280568 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb @@ -15,34 +15,43 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Provides statistics on operations happening in an index. + # Get index statistics. + # For data streams, the API retrieves statistics for the stream's backing indices. + # By default, the returned statistics are index-level with +primaries+ and +total+ aggregations. + # +primaries+ are the values for only the primary shards. + # +total+ are the accumulated values for both primary and replica shards. + # To get shard-level statistics, set the +level+ parameter to +shards+. + # NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + # Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. # - # @option arguments [List] :metric Limit the information returned the specific metrics. (options: _all, completion, docs, fielddata, query_cache, flush, get, indexing, merge, request_cache, refresh, search, segments, store, warmer, bulk) - # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - # @option arguments [List] :completion_fields A comma-separated list of fields for the `completion` index metric (supports wildcards) - # @option arguments [List] :fielddata_fields A comma-separated list of fields for the `fielddata` index metric (supports wildcards) - # @option arguments [List] :fields A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards) - # @option arguments [List] :groups A comma-separated list of search groups for `search` index metric - # @option arguments [String] :level Return stats aggregated at cluster, index or shard level (options: cluster, indices, shards) - # @option arguments [Boolean] :include_segment_file_sizes Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested) - # @option arguments [Boolean] :include_unloaded_segments If set to true segment stats will include stats for segments that are not currently loaded into memory - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Boolean] :forbid_closed_indices If set to false stats will also collected from closed indices if explicitly specified or if expand_wildcards expands to closed indices + # @option arguments [String, Array] :metric Limit the information returned the specific metrics. + # @option arguments [String, Array] :index A comma-separated list of index names; use +_all+ or empty string to perform the operation on all indices + # @option arguments [String, Array] :completion_fields Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. If the request can target data streams, this argument + # determines whether wildcard expressions match hidden data streams. Supports comma-separated values, + # such as +open,hidden+. + # @option arguments [String, Array] :fielddata_fields Comma-separated list or wildcard expressions of fields to include in fielddata statistics. + # @option arguments [String, Array] :fields Comma-separated list or wildcard expressions of fields to include in the statistics. + # @option arguments [Boolean] :forbid_closed_indices If true, statistics are not collected from closed indices. Server default: true. + # @option arguments [String] :groups Comma-separated list of search groups to include in the search statistics. + # @option arguments [Boolean] :include_segment_file_sizes If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested). + # @option arguments [Boolean] :include_unloaded_segments If true, the response includes information from segments that are not loaded into memory. + # @option arguments [String] :level Indicates whether statistics are aggregated at the cluster, index, or shard level. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-stats # def stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.stats' } - defined_params = %i[metric index].each_with_object({}) do |variable, set_variables| + defined_params = [:metric, :index].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -58,11 +67,11 @@ def stats(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _index && _metric - "#{Utils.__listify(_index)}/_stats/#{Utils.__listify(_metric)}" + "#{Utils.listify(_index)}/_stats/#{Utils.listify(_metric)}" elsif _metric - "_stats/#{Utils.__listify(_metric)}" + "_stats/#{Utils.listify(_metric)}" elsif _index - "#{Utils.__listify(_index)}/_stats" + "#{Utils.listify(_index)}/_stats" else '_stats' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb index e7178802bf..e4cc4c6c2a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb @@ -15,21 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Updates index aliases. + # Create or update an alias. + # Adds a data stream or index to an alias. # - # @option arguments [Time] :timeout Request timeout - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The definition of `actions` to perform (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-update-aliases # def update_aliases(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.update_aliases' } @@ -39,7 +42,7 @@ def update_aliases(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_aliases' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb index 03a22a7bc7..d61f4be83d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb @@ -15,32 +15,41 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Indices module Actions - # Allows a user to validate a potentially expensive query without executing it. + # Validate a query. + # Validates a query without running it. # - # @option arguments [List] :index A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - # @option arguments [Boolean] :explain Return detailed information about the error - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [String] :q Query in the Lucene query string syntax - # @option arguments [String] :analyzer The analyzer to use for the query string - # @option arguments [Boolean] :analyze_wildcard Specify whether wildcard and prefix queries should be analyzed (default: false) - # @option arguments [String] :default_operator The default operator for query string query (AND or OR) (options: AND, OR) - # @option arguments [String] :df The field to use as default where no field prefix is given in the query string - # @option arguments [Boolean] :lenient Specify whether format-based query failures (such as providing text to a numeric field) should be ignored - # @option arguments [Boolean] :rewrite Provide a more detailed explanation showing the actual Lucene query that will be executed. - # @option arguments [Boolean] :all_shards Execute validation on all shards instead of one random shard per index + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases to search. + # Supports wildcards (+*+). + # To search all data streams or indices, omit this parameter or use +*+ or +_all+. + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. Server default: true. + # @option arguments [Boolean] :all_shards If +true+, the validation is executed on all shards instead of one random shard per index. + # @option arguments [String] :analyzer Analyzer to use for the query string. + # This parameter can only be used when the +q+ query string parameter is specified. + # @option arguments [Boolean] :analyze_wildcard If +true+, wildcard and prefix queries are analyzed. + # @option arguments [String] :default_operator The default operator for query string query: +AND+ or +OR+. Server default: OR. + # @option arguments [String] :df Field to use as default where no field prefix is given in the query string. + # This parameter can only be used when the +q+ query string parameter is specified. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :explain If +true+, the response returns detailed information if an error has occurred. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :lenient If +true+, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + # @option arguments [Boolean] :rewrite If +true+, returns a more detailed explanation showing the actual Lucene query that will be executed. + # @option arguments [String] :q Query in the Lucene query string syntax. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The query definition specified with the Query DSL + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-validate.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-validate-query # def validate_query(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.validate_query' } @@ -63,11 +72,11 @@ def validate_query(arguments = {}) Elasticsearch::API::HTTP_GET end - path = if _index - "#{Utils.__listify(_index)}/_validate/query" - else - '_validate/query' - end + path = if _index + "#{Utils.listify(_index)}/_validate/query" + else + '_validate/query' + end params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb index eaf2fb74ca..efce50f2c0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb index 4aa9190bd3..99a658bb51 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/post_eis_chat_completion.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/post_eis_chat_completion.rb index 9dd3bfb992..de7b080f6d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/post_eis_chat_completion.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/post_eis_chat_completion.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb index c76d61652f..e715af059b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb index 660dfa72a5..430bc1260c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb index 562ab9546e..12073e1619 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb index c064603045..8fdeb0ba19 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb index 35add4e19a..d96004a571 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb index 341736f75b..51e837ffad 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb index b70a33b8a7..de0b79061f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_eis.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_eis.rb index 96c97449f1..7e9d805adc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_eis.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_eis.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb index c6c9179335..dfb1e5a683 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb index 91218289be..3a2e53c1e8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb index 6b8838fa40..820ab9600c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb index 6b2077b075..6f4f5a9444 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb index 571c5c8f21..390c376200 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb index 104a210833..76b5b121f9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb index a3a8c3f993..3967fb8b2c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb index 7d6e65997a..4020e37e0e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb index 6105798224..c320b91c9a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb index e533aede91..b6eabdef87 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit c34efd13258a01121b10a538e5b450b4e65c7bf3 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/info.rb index ca00f362a8..69b03de326 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/info.rb @@ -15,17 +15,18 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns basic information about the cluster. + # Get cluster info. + # Get basic build, version, and cluster information. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-info # def info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'info' } @@ -33,7 +34,7 @@ def info(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb index a242aaea65..a3bb681019 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb @@ -15,21 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Ingest module Actions - # Deletes a geoip database configuration + # Delete GeoIP database configurations. + # Delete one or more IP geolocation database configurations. # - # @option arguments [List] :id A comma-separated list of geoip database configurations to delete - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String, Array] :id A comma-separated list of geoip database configurations to delete (*Required*) + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-geoip-database-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-delete-geoip-database # def delete_geoip_database(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.delete_geoip_database' } @@ -49,7 +51,7 @@ def delete_geoip_database(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_DELETE - path = "_ingest/geoip/database/#{Utils.__listify(_id)}" + path = "_ingest/geoip/database/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb index f3a329a184..713a9f7a33 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb @@ -15,21 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Ingest module Actions - # Deletes an ip location database configuration + # Delete IP geolocation database configurations. # - # @option arguments [List] :id A comma-separated list of ip location database configurations to delete - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String, Array] :id A comma-separated list of IP location database configurations. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. + # A value of +-1+ indicates that the request should never time out. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. + # A value of +-1+ indicates that the request should never time out. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-ip-location-database-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-delete-ip-location-database # def delete_ip_location_database(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.delete_ip_location_database' } @@ -49,7 +53,7 @@ def delete_ip_location_database(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_DELETE - path = "_ingest/ip_location/database/#{Utils.__listify(_id)}" + path = "_ingest/ip_location/database/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb index d06a96d72f..a47425ecc2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb @@ -15,21 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Ingest module Actions - # Deletes a pipeline. + # Delete pipelines. + # Delete one or more ingest pipelines. # - # @option arguments [String] :id Pipeline ID - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :id Pipeline ID or wildcard expression of pipeline IDs used to limit the request. + # To delete all ingest pipelines in a cluster, use a value of +*+. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-pipeline-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-delete-pipeline # def delete_pipeline(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.delete_pipeline' } @@ -49,7 +53,7 @@ def delete_pipeline(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_DELETE - path = "_ingest/pipeline/#{Utils.__listify(_id)}" + path = "_ingest/pipeline/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb index 6764c9cd68..d85a7782ed 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb @@ -15,18 +15,19 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Ingest module Actions - # Returns statistical information about geoip databases + # Get GeoIP statistics. + # Get download statistics for GeoIP2 databases that are used with the GeoIP processor. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/geoip-stats-api.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/geoip-processor.html # def geo_ip_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.geo_ip_stats' } @@ -34,7 +35,7 @@ def geo_ip_stats(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_ingest/geoip/stats' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb index 1cc5f6078b..6a708041ac 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb @@ -15,19 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Ingest module Actions - # Returns geoip database configuration. + # Get GeoIP database configurations. + # Get information about one or more IP geolocation database configurations. # - # @option arguments [List] :id A comma-separated list of geoip database configurations to get; use `*` to get all geoip database configurations + # @option arguments [String, Array] :id A comma-separated list of database configuration IDs to retrieve. + # Wildcard (+*+) expressions are supported. + # To get all database configurations, omit this parameter or use +*+. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-geoip-database-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-get-geoip-database # def get_geoip_database(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.get_geoip_database' } @@ -46,7 +49,7 @@ def get_geoip_database(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _id - "_ingest/geoip/database/#{Utils.__listify(_id)}" + "_ingest/geoip/database/#{Utils.listify(_id)}" else '_ingest/geoip/database' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb index 9292718d01..dc3285331d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb @@ -15,19 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Ingest module Actions - # Returns the specified ip location database configuration + # Get IP geolocation database configurations. # - # @option arguments [List] :id A comma-separated list of ip location database configurations to get; use `*` to get all ip location database configurations + # @option arguments [String, Array] :id Comma-separated list of database configuration IDs to retrieve. + # Wildcard (+*+) expressions are supported. + # To get all database configurations, omit this parameter or use +*+. + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. + # A value of +-1+ indicates that the request should never time out. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-ip-location-database-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-get-ip-location-database # def get_ip_location_database(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.get_ip_location_database' } @@ -46,11 +51,11 @@ def get_ip_location_database(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _id - "_ingest/ip_location/database/#{Utils.__listify(_id)}" + "_ingest/ip_location/database/#{Utils.listify(_id)}" else '_ingest/ip_location/database' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb index 250ff6d312..047e8b66a2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb @@ -15,21 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Ingest module Actions - # Returns a pipeline. + # Get pipelines. + # Get information about one or more ingest pipelines. + # This API returns a local reference of the pipeline. # - # @option arguments [String] :id Comma separated list of pipeline ids. Wildcards supported + # @option arguments [String] :id Comma-separated list of pipeline IDs to retrieve. + # Wildcard (+*+) expressions are supported. + # To get all ingest pipelines, omit this parameter or use +*+. + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :summary Return pipelines without their definitions (default: false) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-pipeline-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-get-pipeline # def get_pipeline(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.get_pipeline' } @@ -48,7 +53,7 @@ def get_pipeline(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _id - "_ingest/pipeline/#{Utils.__listify(_id)}" + "_ingest/pipeline/#{Utils.listify(_id)}" else '_ingest/pipeline' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb index 6dbfa81bbc..fc1cc3a532 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb @@ -15,18 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Ingest module Actions - # Returns a list of the built-in patterns. + # Run a grok processor. + # Extract structured fields out of a single text field within a document. + # You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. + # A grok pattern is like a regular expression that supports aliased expressions that can be reused. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/grok-processor.html#grok-processor-rest-get + # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/grok-processor.html # def processor_grok(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.processor_grok' } @@ -34,7 +37,7 @@ def processor_grok(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_ingest/processor/grok' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb index 235affce79..4bb9ebad3f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb @@ -15,22 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Ingest module Actions - # Puts the configuration for a geoip database to be downloaded + # Create or update a GeoIP database configuration. + # Refer to the create or update IP geolocation database configuration API. # - # @option arguments [String] :id The id of the database configuration - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :id ID of the database configuration to create or update. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The database configuration definition (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-geoip-database-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-put-geoip-database # def put_geoip_database(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.put_geoip_database' } @@ -51,7 +53,7 @@ def put_geoip_database(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_PUT - path = "_ingest/geoip/database/#{Utils.__listify(_id)}" + path = "_ingest/geoip/database/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb index 0305aef837..5f54e80b6f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb @@ -15,22 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Ingest module Actions - # Puts the configuration for a ip location database to be downloaded + # Create or update an IP geolocation database configuration. # - # @option arguments [String] :id The id of the database configuration - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :id The database configuration identifier. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. + # A value of +-1+ indicates that the request should never time out. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. + # If no response is received before the timeout expires, the cluster metadata update still applies but the response indicates that it was not completely acknowledged. + # A value of +-1+ indicates that the request should never time out. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The database configuration definition (*Required*) + # @option arguments [Hash] :body configuration # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-ip-location-database-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-put-ip-location-database # def put_ip_location_database(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.put_ip_location_database' } @@ -51,7 +55,7 @@ def put_ip_location_database(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_PUT - path = "_ingest/ip_location/database/#{Utils.__listify(_id)}" + path = "_ingest/ip_location/database/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb index 0c626836e2..2c4e6c0dce 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb @@ -15,23 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Ingest module Actions - # Creates or updates a pipeline. + # Create or update a pipeline. + # Changes made using this API take effect immediately. # - # @option arguments [String] :id Pipeline ID + # @option arguments [String] :id ID of the ingest pipeline to create or update. (*Required*) + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Integer] :if_version Required version for optimistic concurrency control for pipeline updates - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The ingest definition (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-pipeline-api.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html # def put_pipeline(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.put_pipeline' } @@ -52,7 +53,7 @@ def put_pipeline(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_PUT - path = "_ingest/pipeline/#{Utils.__listify(_id)}" + path = "_ingest/pipeline/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb index 8ea6e3c717..8bc914b57d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb @@ -15,21 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Ingest module Actions - # Allows to simulate a pipeline with example documents. + # Simulate a pipeline. + # Run an ingest pipeline against a set of provided documents. + # You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. # - # @option arguments [String] :id Pipeline ID - # @option arguments [Boolean] :verbose Verbose mode. Display data output for each processor in executed pipeline + # @option arguments [String] :id The pipeline to test. + # If you don't specify a +pipeline+ in the request body, this parameter is required. + # @option arguments [Boolean] :verbose If +true+, the response includes output data for each processor in the executed pipeline. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The simulate definition (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/simulate-pipeline-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-simulate # def simulate(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.simulate' } @@ -50,7 +53,7 @@ def simulate(arguments = {}) method = Elasticsearch::API::HTTP_POST path = if _id - "_ingest/pipeline/#{Utils.__listify(_id)}/_simulate" + "_ingest/pipeline/#{Utils.listify(_id)}/_simulate" else '_ingest/pipeline/_simulate' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/knn_search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/knn_search.rb index 8a94ed0529..cd0fb72777 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/knn_search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/knn_search.rb @@ -15,24 +15,37 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Performs a kNN search. + # Run a knn search. + # NOTE: The kNN search API has been replaced by the +knn+ option in the search API. + # Perform a k-nearest neighbor (kNN) search on a dense_vector field and return the matching documents. + # Given a query vector, the API finds the k closest vectors and returns those documents as search hits. + # Elasticsearch uses the HNSW algorithm to support efficient kNN search. + # Like most kNN algorithms, HNSW is an approximate method that sacrifices result accuracy for improved search speed. + # This means the results returned are not always the true k closest neighbors. + # The kNN search API supports restricting the search using a filter. + # The search will return the top k documents that also match the filter query. + # A kNN search response has the exact same structure as a search API response. + # However, certain sections have a meaning specific to kNN search: + # * The document +_score+ is determined by the similarity between the query and document vector. + # * The +hits.total+ object contains the total number of nearest neighbor candidates considered, which is +num_candidates * num_shards+. The +hits.total.relation+ will always be +eq+, indicating an exact value. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [List] :index A comma-separated list of index names to search; use `_all` to perform the operation on all indices - # @option arguments [List] :routing A comma-separated list of specific routing values + # @option arguments [String, Array] :index A comma-separated list of index names to search; + # use +_all+ or to perform the operation on all indices. (*Required*) + # @option arguments [String] :routing A comma-separated list of specific routing values. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The search definition + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search-api.html # def knn_search(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'knn_search' } @@ -57,7 +70,7 @@ def knn_search(arguments = {}) Elasticsearch::API::HTTP_GET end - path = "#{Utils.__listify(_index)}/_knn_search" + path = "#{Utils.listify(_index)}/_knn_search" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb index b4a2a5fd9d..dc4ae06641 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb @@ -15,20 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module License module Actions - # Deletes licensing information for the cluster + # Delete the license. + # When the license expires, your subscription level reverts to Basic. + # If the operator privileges feature is enabled, only operator users can use this API. # - # @option arguments [Time] :master_timeout Timeout for processing on master node - # @option arguments [Time] :timeout Timeout for acknowledgement of update from all nodes in cluster + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-license.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-delete # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.delete' } @@ -36,7 +38,7 @@ def delete(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_DELETE path = '_license' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb index ee9dc42840..151b60ccdd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb @@ -15,20 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module License module Actions - # Retrieves licensing information for the cluster + # Get license information. + # Get information about your Elastic license including its type, its status, when it was issued, and when it expires. # - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) - # @option arguments [Boolean] :accept_enterprise Supported for backwards compatibility with 7.x. If this param is used it must be set to true *Deprecated* + # @option arguments [Boolean] :accept_enterprise If +true+, this parameter returns enterprise for Enterprise license types. If +false+, this parameter returns platinum for both platinum and enterprise license types. This behavior is maintained for backwards compatibility. + # This parameter is deprecated and will always be set to true in 8.x. Server default: true. + # @option arguments [Boolean] :local Specifies whether to retrieve local information. The default value is +false+, which means the information is retrieved from the master node. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-license.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-get # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.get' } @@ -36,7 +38,7 @@ def get(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_license' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb index 351df544dc..da9a11ad96 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb @@ -15,18 +15,18 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module License module Actions - # Retrieves information about the status of the basic license. + # Get the basic license status. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-basic-status.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-get-basic-status # def get_basic_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.get_basic_status' } @@ -34,7 +34,7 @@ def get_basic_status(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_license/basic_status' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb index e611a4570c..3baa5c8ec4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb @@ -15,18 +15,18 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module License module Actions - # Retrieves information about the status of the trial license. + # Get the trial status. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trial-status.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-get-trial-status # def get_trial_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.get_trial_status' } @@ -34,7 +34,7 @@ def get_trial_status(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_license/trial_status' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb index 54a72d52e3..bf6d79a5b6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb @@ -15,22 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module License module Actions - # Updates the license for the cluster. + # Update the license. + # You can update your license at runtime without shutting down your nodes. + # License updates take effect immediately. + # If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. + # You must then re-submit the API request with the acknowledge parameter set to true. + # NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. + # If the operator privileges feature is enabled, only operator users can use this API. # - # @option arguments [Boolean] :acknowledge whether the user has acknowledged acknowledge messages (default: false) - # @option arguments [Time] :master_timeout Timeout for processing on master node - # @option arguments [Time] :timeout Timeout for acknowledgement of update from all nodes in cluster + # @option arguments [Boolean] :acknowledge Specifies whether you acknowledge the license changes. + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body licenses to be installed + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-license.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-post # def post(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.post' } @@ -38,7 +44,7 @@ def post(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_PUT path = '_license' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb index b95eb10bf9..67384130e9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb @@ -15,21 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module License module Actions - # Starts an indefinite basic license. + # Start a basic license. + # Start an indefinite basic license, which gives access to all the basic features. + # NOTE: In order to start a basic license, you must not currently have a basic license. + # If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. + # You must then re-submit the API request with the +acknowledge+ parameter set to +true+. + # To check the status of your basic license, use the get basic license API. # # @option arguments [Boolean] :acknowledge whether the user has acknowledged acknowledge messages (default: false) - # @option arguments [Time] :master_timeout Timeout for processing on master node - # @option arguments [Time] :timeout Timeout for acknowledgement of update from all nodes in cluster + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/start-basic.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-post-start-basic # def post_start_basic(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.post_start_basic' } @@ -37,7 +42,7 @@ def post_start_basic(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_POST path = '_license/start_basic' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb index 561bb0f061..1419772a92 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb @@ -15,21 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module License module Actions - # starts a limited time trial license. + # Start a trial. + # Start a 30-day trial, which gives access to all subscription features. + # NOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version. + # For example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at https://www.elastic.co/trialextension. + # To check the status of your trial, use the get trial status API. # - # @option arguments [String] :type The type of trial license to generate (default: "trial") # @option arguments [Boolean] :acknowledge whether the user has acknowledged acknowledge messages (default: false) - # @option arguments [Time] :master_timeout Timeout for processing on master node + # @option arguments [String] :type_query_string [TODO] + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/start-trial.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-post-start-trial # def post_start_trial(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.post_start_trial' } @@ -37,7 +41,7 @@ def post_start_trial(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_POST path = '_license/start_trial' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb index 3b8a16c6d9..1a2f05d667 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb @@ -15,19 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Logstash module Actions - # Deletes Logstash Pipelines used by Central Management + # Delete a Logstash pipeline. + # Delete a pipeline that is used for Logstash Central Management. + # If the request succeeds, you receive an empty response with an appropriate status code. # - # @option arguments [String] :id The ID of the Pipeline + # @option arguments [String] :id An identifier for the pipeline. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-delete-pipeline.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-delete-pipeline # def delete_pipeline(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'logstash.delete_pipeline' } @@ -47,7 +49,7 @@ def delete_pipeline(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_DELETE - path = "_logstash/pipeline/#{Utils.__listify(_id)}" + path = "_logstash/pipeline/#{Utils.listify(_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb index eaed065ef7..ba6f3b4055 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb @@ -15,19 +15,20 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Logstash module Actions - # Retrieves Logstash Pipelines used by Central Management + # Get Logstash pipelines. + # Get pipelines that are used for Logstash Central Management. # - # @option arguments [String] :id A comma-separated list of Pipeline IDs + # @option arguments [String, Array] :id A comma-separated list of pipeline identifiers. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-get-pipeline.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-get-pipeline # def get_pipeline(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'logstash.get_pipeline' } @@ -46,7 +47,7 @@ def get_pipeline(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _id - "_logstash/pipeline/#{Utils.__listify(_id)}" + "_logstash/pipeline/#{Utils.listify(_id)}" else '_logstash/pipeline' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb index 4e51cb3b13..3a4c03dfa0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb @@ -15,20 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Logstash module Actions - # Adds and updates Logstash Pipelines used for Central Management + # Create or update a Logstash pipeline. + # Create a pipeline that is used for Logstash Central Management. + # If the specified pipeline exists, it is replaced. # - # @option arguments [String] :id The ID of the Pipeline + # @option arguments [String] :id An identifier for the pipeline. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The Pipeline to add or update (*Required*) + # @option arguments [Hash] :body pipeline # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-put-pipeline.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-put-pipeline # def put_pipeline(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'logstash.put_pipeline' } @@ -49,7 +51,7 @@ def put_pipeline(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_PUT - path = "_logstash/pipeline/#{Utils.__listify(_id)}" + path = "_logstash/pipeline/#{Utils.listify(_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb index 24d3aa5fc1..27ebc40c3c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb @@ -15,19 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Clear the cached results from a trained model deployment + # Clear trained model deployment cache. + # Cache will be cleared on all nodes where the trained model is assigned. + # A trained model deployment may have an inference cache enabled. + # As requests are handled by each allocated node, their responses may be cached on that individual node. + # Calling this API clears the caches without restarting the deployment. # # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-trained-model-deployment-cache.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-clear-trained-model-deployment-cache # def clear_trained_model_deployment_cache(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.clear_trained_model_deployment_cache' } @@ -47,7 +51,7 @@ def clear_trained_model_deployment_cache(arguments = {}) _model_id = arguments.delete(:model_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/trained_models/#{Utils.__listify(_model_id)}/deployment/cache/_clear" + path = "_ml/trained_models/#{Utils.listify(_model_id)}/deployment/cache/_clear" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb index 5683ec5644..5347049a90 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb @@ -15,23 +15,29 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Closes one or more anomaly detection jobs. A job can be opened and closed multiple times throughout its lifecycle. + # Close anomaly detection jobs. + # A job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results. + # When you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data. + # If you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request. + # When a datafeed that has a specified end date stops, it automatically closes its associated job. # - # @option arguments [String] :job_id The name of the job to close - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) - # @option arguments [Boolean] :force True if the job should be forcefully closed - # @option arguments [Time] :timeout Controls the time to wait until a job has closed. Default to 30 minutes + # @option arguments [String] :job_id Identifier for the anomaly detection job. It can be a job identifier, a group name, or a wildcard expression. You can close multiple anomaly detection jobs in a single API request by using a group name, a comma-separated list of jobs, or a wildcard expression. You can close all jobs by using +_all+ or by specifying +*+ as the job identifier. (*Required*) + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no jobs that match; contains the +_all+ string or no identifiers and there are no matches; or contains wildcard expressions and there are only partial matches. By default, it returns an empty jobs array when there are no matches and the subset of results when there are partial matches. + # If +false+, the request returns a 404 status code when there are no matches or only partial matches. Server default: true. + # @option arguments [Boolean] :force Use to close a failed job, or to forcefully close a job which has not responded to its initial close request; the request returns without performing the associated actions such as flushing buffers and persisting the model snapshots. + # If you want the job to be in a consistent state after the close job API returns, do not set to +true+. This parameter should be used only in situations where the job has already failed or where you are not interested in results the job might have recently produced or might produce in the future. + # @option arguments [Time] :timeout Controls the time to wait until a job has closed. Server default: 30m. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The URL params optionally sent in the body + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-close-job # def close_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.close_job' } @@ -51,7 +57,7 @@ def close_job(arguments = {}) _job_id = arguments.delete(:job_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/_close" + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/_close" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb index 196d6e25b1..c79b777f1e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb @@ -15,19 +15,20 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Deletes a calendar. + # Delete a calendar. + # Remove all scheduled events from a calendar, then delete it. # - # @option arguments [String] :calendar_id The ID of the calendar to delete + # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-calendar # def delete_calendar(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_calendar' } @@ -47,7 +48,7 @@ def delete_calendar(arguments = {}) _calendar_id = arguments.delete(:calendar_id) method = Elasticsearch::API::HTTP_DELETE - path = "_ml/calendars/#{Utils.__listify(_calendar_id)}" + path = "_ml/calendars/#{Utils.listify(_calendar_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb index 2e9d83e657..69aea3475c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb @@ -15,25 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Deletes scheduled events from a calendar. + # Delete events from a calendar. # - # @option arguments [String] :calendar_id The ID of the calendar to modify - # @option arguments [String] :event_id The ID of the event to remove from the calendar + # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*) + # @option arguments [String] :event_id Identifier for the scheduled event. + # You can obtain this identifier by using the get calendar events API. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-event.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-calendar-event # def delete_calendar_event(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_calendar_event' } - defined_params = %i[calendar_id event_id].each_with_object({}) do |variable, set_variables| + defined_params = [:calendar_id, :event_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -51,7 +52,7 @@ def delete_calendar_event(arguments = {}) _event_id = arguments.delete(:event_id) method = Elasticsearch::API::HTTP_DELETE - path = "_ml/calendars/#{Utils.__listify(_calendar_id)}/events/#{Utils.__listify(_event_id)}" + path = "_ml/calendars/#{Utils.listify(_calendar_id)}/events/#{Utils.listify(_event_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb index f13bc4a282..8b2c5fc76c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb @@ -15,25 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Deletes anomaly detection jobs from a calendar. + # Delete anomaly jobs from a calendar. # - # @option arguments [String] :calendar_id The ID of the calendar to modify - # @option arguments [String] :job_id The ID of the job to remove from the calendar + # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*) + # @option arguments [String, Array] :job_id An identifier for the anomaly detection jobs. It can be a job identifier, a group name, or a + # comma-separated list of jobs or groups. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-job.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-calendar-job # def delete_calendar_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_calendar_job' } - defined_params = %i[calendar_id job_id].each_with_object({}) do |variable, set_variables| + defined_params = [:calendar_id, :job_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -51,7 +52,7 @@ def delete_calendar_job(arguments = {}) _job_id = arguments.delete(:job_id) method = Elasticsearch::API::HTTP_DELETE - path = "_ml/calendars/#{Utils.__listify(_calendar_id)}/jobs/#{Utils.__listify(_job_id)}" + path = "_ml/calendars/#{Utils.listify(_calendar_id)}/jobs/#{Utils.listify(_job_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb index 3bb2df5542..ae3cb98309 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb @@ -15,21 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Deletes an existing data frame analytics job. + # Delete a data frame analytics job. # - # @option arguments [String] :id The ID of the data frame analytics to delete - # @option arguments [Boolean] :force True if the job should be forcefully deleted - # @option arguments [Time] :timeout Controls the time to wait until a job is deleted. Defaults to 1 minute + # @option arguments [String] :id Identifier for the data frame analytics job. (*Required*) + # @option arguments [Boolean] :force If +true+, it deletes a job that is not stopped; this method is quicker than stopping and deleting the job. + # @option arguments [Time] :timeout The time to wait for the job to be deleted. Server default: 1m. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-dfanalytics.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-data-frame-analytics # def delete_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_data_frame_analytics' } @@ -49,7 +49,7 @@ def delete_data_frame_analytics(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_DELETE - path = "_ml/data_frame/analytics/#{Utils.__listify(_id)}" + path = "_ml/data_frame/analytics/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb index d8778a21b3..6c91b697ff 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb @@ -15,20 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Deletes an existing datafeed. + # Delete a datafeed. # - # @option arguments [String] :datafeed_id The ID of the datafeed to delete - # @option arguments [Boolean] :force True if the datafeed should be forcefully deleted + # @option arguments [String] :datafeed_id A numerical character string that uniquely identifies the datafeed. This + # identifier can contain lowercase alphanumeric characters (a-z and 0-9), + # hyphens, and underscores. It must start and end with alphanumeric + # characters. (*Required*) + # @option arguments [Boolean] :force Use to forcefully delete a started datafeed; this method is quicker than + # stopping and deleting the datafeed. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-datafeed # def delete_datafeed(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_datafeed' } @@ -48,7 +52,7 @@ def delete_datafeed(arguments = {}) _datafeed_id = arguments.delete(:datafeed_id) method = Elasticsearch::API::HTTP_DELETE - path = "_ml/datafeeds/#{Utils.__listify(_datafeed_id)}" + path = "_ml/datafeeds/#{Utils.listify(_datafeed_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb index 5d9f381d1d..458ca5e84e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb @@ -15,22 +15,32 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Deletes expired and unused machine learning data. + # Delete expired ML data. + # Delete all job results, model snapshots and forecast data that have exceeded + # their retention days period. Machine learning state documents that are not + # associated with any job are also deleted. + # You can limit the request to a single or set of anomaly detection jobs by + # using a job identifier, a group name, a comma-separated list of jobs, or a + # wildcard expression. You can delete expired data for all anomaly detection + # jobs by using +_all+, by specifying +*+ as the ++, or by omitting the + # ++. # - # @option arguments [String] :job_id The ID of the job(s) to perform expired data hygiene for - # @option arguments [Number] :requests_per_second The desired requests per second for the deletion processes. - # @option arguments [Time] :timeout How long can the underlying delete processes run until they are canceled + # @option arguments [String] :job_id Identifier for an anomaly detection job. It can be a job identifier, a + # group name, or a wildcard expression. + # @option arguments [Float] :requests_per_second The desired requests per second for the deletion processes. The default + # behavior is no throttling. + # @option arguments [Time] :timeout How long can the underlying delete processes run until they are canceled. Server default: 8h. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body deleting expired data parameters + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-expired-data.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-expired-data # def delete_expired_data(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_expired_data' } @@ -49,7 +59,7 @@ def delete_expired_data(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = if _job_id - "_ml/_delete_expired_data/#{Utils.__listify(_job_id)}" + "_ml/_delete_expired_data/#{Utils.listify(_job_id)}" else '_ml/_delete_expired_data' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb index 1079e0b75d..790cc36775 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb @@ -15,19 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Deletes a filter. + # Delete a filter. + # If an anomaly detection job references the filter, you cannot delete the + # filter. You must update or delete the job before you can delete the filter. # - # @option arguments [String] :filter_id The ID of the filter to delete + # @option arguments [String] :filter_id A string that uniquely identifies a filter. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-filter.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-filter # def delete_filter(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_filter' } @@ -47,7 +49,7 @@ def delete_filter(arguments = {}) _filter_id = arguments.delete(:filter_id) method = Elasticsearch::API::HTTP_DELETE - path = "_ml/filters/#{Utils.__listify(_filter_id)}" + path = "_ml/filters/#{Utils.listify(_filter_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb index 0a0d52aab3..921ade9345 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb @@ -15,27 +15,38 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Deletes forecasts from a machine learning job. + # Delete forecasts from a job. + # By default, forecasts are retained for 14 days. You can specify a + # different retention period with the +expires_in+ parameter in the forecast + # jobs API. The delete forecast API enables you to delete one or more + # forecasts before they expire. # - # @option arguments [String] :job_id The ID of the job from which to delete forecasts - # @option arguments [String] :forecast_id The ID of the forecast to delete, can be comma delimited list. Leaving blank implies `_all` - # @option arguments [Boolean] :allow_no_forecasts Whether to ignore if `_all` matches no forecasts - # @option arguments [Time] :timeout Controls the time to wait until the forecast(s) are deleted. Default to 30 seconds + # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) + # @option arguments [String] :forecast_id A comma-separated list of forecast identifiers. If you do not specify + # this optional parameter or if you specify +_all+ or +*+ the API deletes + # all forecasts from the job. + # @option arguments [Boolean] :allow_no_forecasts Specifies whether an error occurs when there are no forecasts. In + # particular, if this parameter is set to +false+ and there are no + # forecasts associated with the job, attempts to delete all forecasts + # return an error. Server default: true. + # @option arguments [Time] :timeout Specifies the period of time to wait for the completion of the delete + # operation. When this period of time elapses, the API fails and returns an + # error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-forecast # def delete_forecast(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_forecast' } - defined_params = %i[job_id forecast_id].each_with_object({}) do |variable, set_variables| + defined_params = [:job_id, :forecast_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -53,9 +64,9 @@ def delete_forecast(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = if _job_id && _forecast_id - "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/_forecast/#{Utils.__listify(_forecast_id)}" + "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/_forecast/#{Utils.listify(_forecast_id)}" else - "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/_forecast" + "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/_forecast" end params = Utils.process_params(arguments) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb index 7ae7b88f3f..66ee758ea1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb @@ -15,22 +15,32 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Deletes an existing anomaly detection job. + # Delete an anomaly detection job. + # All job configuration, model state and results are deleted. + # It is not currently possible to delete multiple jobs using wildcards or a + # comma separated list. If you delete a job that has a datafeed, the request + # first tries to delete the datafeed. This behavior is equivalent to calling + # the delete datafeed API with the same timeout and force parameters as the + # delete job request. # - # @option arguments [String] :job_id The ID of the job to delete - # @option arguments [Boolean] :force True if the job should be forcefully deleted - # @option arguments [Boolean] :wait_for_completion Should this request wait until the operation has completed before returning - # @option arguments [Boolean] :delete_user_annotations Should annotations added by the user be deleted + # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) + # @option arguments [Boolean] :force Use to forcefully delete an opened job; this method is quicker than + # closing and deleting the job. + # @option arguments [Boolean] :delete_user_annotations Specifies whether annotations that have been added by the + # user should be deleted along with any auto-generated annotations when the job is + # reset. + # @option arguments [Boolean] :wait_for_completion Specifies whether the request should return immediately or wait until the + # job deletion completes. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-job # def delete_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_job' } @@ -50,7 +60,7 @@ def delete_job(arguments = {}) _job_id = arguments.delete(:job_id) method = Elasticsearch::API::HTTP_DELETE - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}" + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb index 85cb5b61f7..d09fd5223c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb @@ -15,25 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Deletes an existing model snapshot. + # Delete a model snapshot. + # You cannot delete the active model snapshot. To delete that snapshot, first + # revert to a different one. To identify the active model snapshot, refer to + # the +model_snapshot_id+ in the results from the get jobs API. # - # @option arguments [String] :job_id The ID of the job to fetch - # @option arguments [String] :snapshot_id The ID of the snapshot to delete + # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) + # @option arguments [String] :snapshot_id Identifier for the model snapshot. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-model-snapshot # def delete_model_snapshot(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_model_snapshot' } - defined_params = %i[job_id snapshot_id].each_with_object({}) do |variable, set_variables| + defined_params = [:job_id, :snapshot_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -51,7 +54,7 @@ def delete_model_snapshot(arguments = {}) _snapshot_id = arguments.delete(:snapshot_id) method = Elasticsearch::API::HTTP_DELETE - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/model_snapshots/#{Utils.__listify(_snapshot_id)}" + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/model_snapshots/#{Utils.listify(_snapshot_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb index 56ea524b30..a485cb163b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb @@ -15,21 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Deletes an existing trained inference model that is currently not referenced by an ingest pipeline. + # Delete an unreferenced trained model. + # The request deletes a trained inference model that is not referenced by an ingest pipeline. # - # @option arguments [String] :model_id The ID of the trained model to delete - # @option arguments [Time] :timeout Controls the amount of time to wait for the model to be deleted. - # @option arguments [Boolean] :force True if the model should be forcefully deleted + # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) + # @option arguments [Boolean] :force Forcefully deletes a trained model that is referenced by ingest pipelines or has a started deployment. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-trained-model # def delete_trained_model(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_trained_model' } @@ -49,7 +50,7 @@ def delete_trained_model(arguments = {}) _model_id = arguments.delete(:model_id) method = Elasticsearch::API::HTTP_DELETE - path = "_ml/trained_models/#{Utils.__listify(_model_id)}" + path = "_ml/trained_models/#{Utils.listify(_model_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb index cc56b05856..9f81fa3611 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb @@ -15,25 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Deletes a model alias that refers to the trained model + # Delete a trained model alias. + # This API deletes an existing model alias that refers to a trained model. If + # the model alias is missing or refers to a model other than the one identified + # by the +model_id+, this API returns an error. # - # @option arguments [String] :model_alias The trained model alias to delete - # @option arguments [String] :model_id The trained model where the model alias is assigned + # @option arguments [String] :model_alias The model alias to delete. (*Required*) + # @option arguments [String] :model_id The trained model ID to which the model alias refers. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models-aliases.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-trained-model-alias # def delete_trained_model_alias(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_trained_model_alias' } - defined_params = %i[model_id model_alias].each_with_object({}) do |variable, set_variables| + defined_params = [:model_id, :model_alias].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -51,7 +54,7 @@ def delete_trained_model_alias(arguments = {}) _model_id = arguments.delete(:model_id) method = Elasticsearch::API::HTTP_DELETE - path = "_ml/trained_models/#{Utils.__listify(_model_id)}/model_aliases/#{Utils.__listify(_model_alias)}" + path = "_ml/trained_models/#{Utils.listify(_model_id)}/model_aliases/#{Utils.listify(_model_alias)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb index dc40e34a56..29f81f55cd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb @@ -15,19 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Estimates the model memory + # Estimate job model memory usage. + # Make an estimation of the memory usage for an anomaly detection job model. + # The estimate is based on analysis configuration details for the job and cardinality + # estimates for the fields it references. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The analysis config, plus cardinality estimates for fields it references (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-apis.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-estimate-model-memory # def estimate_model_memory(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.estimate_model_memory' } @@ -37,7 +40,7 @@ def estimate_model_memory(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_ml/anomaly_detectors/_estimate_model_memory' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb index 957f203433..cd9c569778 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb @@ -15,19 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Evaluates the data frame analytics for an annotated index. + # Evaluate data frame analytics. + # The API packages together commonly used evaluation metrics for various types + # of machine learning features. This has been designed for use on indexes + # created by data frame analytics. Evaluation requires both a ground truth + # field and an analytics result field to be present. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The evaluation definition (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-evaluate-data-frame # def evaluate_data_frame(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.evaluate_data_frame' } @@ -37,7 +41,7 @@ def evaluate_data_frame(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_ml/data_frame/_evaluate' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb index 8aef4b83b4..6e86786fba 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb @@ -15,20 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Explains a data frame analytics config. + # Explain data frame analytics config. + # This API provides explanations for a data frame analytics config that either + # exists already or one that has not been created yet. The following + # explanations are provided: + # * which fields are included or not in the analysis and why, + # * how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on. + # If you have object fields or fields that are excluded via source filtering, they are not included in the explanation. # - # @option arguments [String] :id The ID of the data frame analytics to explain + # @option arguments [String] :id Identifier for the data frame analytics job. This identifier can contain + # lowercase alphanumeric characters (a-z and 0-9), hyphens, and + # underscores. It must start and end with alphanumeric characters. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The data frame analytics config to explain + # @option arguments [Hash] :body request body # - # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-explain-data-frame-analytics # def explain_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.explain_data_frame_analytics' } @@ -51,11 +59,11 @@ def explain_data_frame_analytics(arguments = {}) Elasticsearch::API::HTTP_GET end - path = if _id - "_ml/data_frame/analytics/#{Utils.__listify(_id)}/_explain" - else - '_ml/data_frame/analytics/_explain' - end + path = if _id + "_ml/data_frame/analytics/#{Utils.listify(_id)}/_explain" + else + '_ml/data_frame/analytics/_explain' + end params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb index 48b8334e30..3aed9174aa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb @@ -15,25 +15,38 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Forces any buffered data to be processed by the job. + # Force buffered data to be processed. + # The flush jobs API is only applicable when sending data for analysis using + # the post data API. Depending on the content of the buffer, then it might + # additionally calculate new results. Both flush and close operations are + # similar, however the flush is more efficient if you are expecting to send + # more data for analysis. When flushing, the job remains open and is available + # to continue analyzing data. A close operation additionally prunes and + # persists the model state to disk and the job must be opened again before + # analyzing further data. # - # @option arguments [String] :job_id The name of the job to flush - # @option arguments [Boolean] :calc_interim Calculates interim results for the most recent bucket or all buckets within the latency period - # @option arguments [String] :start When used in conjunction with calc_interim, specifies the range of buckets on which to calculate interim results - # @option arguments [String] :end When used in conjunction with calc_interim, specifies the range of buckets on which to calculate interim results - # @option arguments [String] :advance_time Advances time to the given value generating results and updating the model for the advanced interval - # @option arguments [String] :skip_time Skips time to the given value without generating results or updating the model for the skipped interval + # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) + # @option arguments [String, Time] :advance_time Specifies to advance to a particular time value. Results are generated + # and the model is updated for data from the specified time interval. + # @option arguments [Boolean] :calc_interim If true, calculates the interim results for the most recent bucket or all + # buckets within the latency period. + # @option arguments [String, Time] :end When used in conjunction with +calc_interim+ and +start+, specifies the + # range of buckets on which to calculate interim results. + # @option arguments [String, Time] :skip_time Specifies to skip to a particular time value. Results are not generated + # and the model is not updated for data from the specified time interval. + # @option arguments [String, Time] :start When used in conjunction with +calc_interim+, specifies the range of + # buckets on which to calculate interim results. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Flush parameters + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-flush-job # def flush_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.flush_job' } @@ -53,7 +66,7 @@ def flush_job(arguments = {}) _job_id = arguments.delete(:job_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/_flush" + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/_flush" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb index fefe7dbdb5..6f97929752 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb @@ -15,23 +15,36 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Predicts the future behavior of a time series by using its historical behavior. + # Predict future behavior of a time series. + # Forecasts are not supported for jobs that perform population analysis; an + # error occurs if you try to create a forecast for a job that has an + # +over_field_name+ in its configuration. Forcasts predict future behavior + # based on historical data. # - # @option arguments [String] :job_id The ID of the job to forecast for - # @option arguments [Time] :duration The duration of the forecast - # @option arguments [Time] :expires_in The time interval after which the forecast expires. Expired forecasts will be deleted at the first opportunity. - # @option arguments [String] :max_model_memory The max memory able to be used by the forecast. Default is 20mb. + # @option arguments [String] :job_id Identifier for the anomaly detection job. The job must be open when you + # create a forecast; otherwise, an error occurs. (*Required*) + # @option arguments [Time] :duration A period of time that indicates how far into the future to forecast. For + # example, +30d+ corresponds to 30 days. The forecast starts at the last + # record that was processed. Server default: 1d. + # @option arguments [Time] :expires_in The period of time that forecast results are retained. After a forecast + # expires, the results are deleted. If set to a value of 0, the forecast is + # never automatically deleted. Server default: 14d. + # @option arguments [String] :max_model_memory The maximum memory the forecast can use. If the forecast needs to use + # more than the provided amount, it will spool to disk. Default is 20mb, + # maximum is 500mb and minimum is 1mb. If set to 40% or more of the job’s + # configured memory limit, it is automatically reduced to below that + # amount. Server default: 20mb. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Query parameters can be specified in the body + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-forecast.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-forecast # def forecast(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.forecast' } @@ -51,7 +64,7 @@ def forecast(arguments = {}) _job_id = arguments.delete(:job_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/_forecast" + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/_forecast" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb index a68322b96a..02d3078333 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb @@ -15,35 +15,39 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves anomaly detection job results for one or more buckets. + # Get anomaly detection job results for buckets. + # The API presents a chronological view of the records, grouped by bucket. # - # @option arguments [String] :job_id ID of the job to get bucket results from - # @option arguments [String] :timestamp The timestamp of the desired single bucket result - # @option arguments [Boolean] :expand Include anomaly records - # @option arguments [Boolean] :exclude_interim Exclude interim results - # @option arguments [Integer] :from skips a number of buckets - # @option arguments [Integer] :size specifies a max number of buckets to get - # @option arguments [String] :start Start time filter for buckets - # @option arguments [String] :end End time filter for buckets - # @option arguments [Double] :anomaly_score Filter for the most anomalous buckets - # @option arguments [String] :sort Sort buckets by a particular field - # @option arguments [Boolean] :desc Set the sort direction + # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) + # @option arguments [String, Time] :timestamp The timestamp of a single bucket result. If you do not specify this + # parameter, the API returns information about all buckets. + # @option arguments [Float] :anomaly_score Returns buckets with anomaly scores greater or equal than this value. Server default: 0. + # @option arguments [Boolean] :desc If +true+, the buckets are sorted in descending order. + # @option arguments [String, Time] :end Returns buckets with timestamps earlier than this time. +-1+ means it is + # unset and results are not limited to specific timestamps. Server default: -1. + # @option arguments [Boolean] :exclude_interim If +true+, the output excludes interim results. + # @option arguments [Boolean] :expand If true, the output includes anomaly records. + # @option arguments [Integer] :from Skips the specified number of buckets. Server default: 0. + # @option arguments [Integer] :size Specifies the maximum number of buckets to obtain. Server default: 100. + # @option arguments [String] :sort Specifies the sort field for the requested buckets. Server default: timestamp. + # @option arguments [String, Time] :start Returns buckets with timestamps after this time. +-1+ means it is unset + # and results are not limited to specific timestamps. Server default: -1. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Bucket selection details if not provided in URI + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-buckets # def get_buckets(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_buckets' } - defined_params = %i[job_id timestamp].each_with_object({}) do |variable, set_variables| + defined_params = [:job_id, :timestamp].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -65,11 +69,11 @@ def get_buckets(arguments = {}) Elasticsearch::API::HTTP_GET end - path = if _job_id && _timestamp - "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/results/buckets/#{Utils.__listify(_timestamp)}" - else - "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/results/buckets" - end + path = if _job_id && _timestamp + "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/results/buckets/#{Utils.listify(_timestamp)}" + else + "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/results/buckets" + end params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb index d207e8872b..c8621c0a93 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb @@ -15,24 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves information about the scheduled events in calendars. + # Get info about events in calendars. # - # @option arguments [String] :calendar_id The ID of the calendar containing the events - # @option arguments [String] :job_id Get events for the job. When this option is used calendar_id must be '_all' - # @option arguments [String] :start Get events after this time - # @option arguments [Date] :end Get events before this time - # @option arguments [Integer] :from Skips a number of events - # @option arguments [Integer] :size Specifies a max number of events to get + # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids or a wildcard expression. You can get information for all calendars by using +_all+ or +*+ or by omitting the calendar identifier. (*Required*) + # @option arguments [String, Time] :end Specifies to get events with timestamps earlier than this time. + # @option arguments [Integer] :from Skips the specified number of events. Server default: 0. + # @option arguments [String] :job_id Specifies to get events for a specific anomaly detection job identifier or job group. It must be used with a calendar identifier of +_all+ or +*+. + # @option arguments [Integer] :size Specifies the maximum number of events to obtain. Server default: 100. + # @option arguments [String, Time] :start Specifies to get events with timestamps after this time. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar-event.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-calendar-events # def get_calendar_events(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_calendar_events' } @@ -52,7 +52,7 @@ def get_calendar_events(arguments = {}) _calendar_id = arguments.delete(:calendar_id) method = Elasticsearch::API::HTTP_GET - path = "_ml/calendars/#{Utils.__listify(_calendar_id)}/events" + path = "_ml/calendars/#{Utils.listify(_calendar_id)}/events" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb index b068075dbe..0b7816cf53 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb @@ -15,22 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves configuration information for calendars. + # Get calendar configuration info. # - # @option arguments [String] :calendar_id The ID of the calendar to fetch - # @option arguments [Integer] :from skips a number of calendars - # @option arguments [Integer] :size specifies a max number of calendars to get + # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids or a wildcard expression. You can get information for all calendars by using +_all+ or +*+ or by omitting the calendar identifier. + # @option arguments [Integer] :from Skips the specified number of calendars. This parameter is supported only when you omit the calendar identifier. Server default: 0. + # @option arguments [Integer] :size Specifies the maximum number of calendars to obtain. This parameter is supported only when you omit the calendar identifier. Server default: 10000. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The from and size parameters optionally sent in the body + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-calendars # def get_calendars(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_calendars' } @@ -53,11 +53,11 @@ def get_calendars(arguments = {}) Elasticsearch::API::HTTP_GET end - path = if _calendar_id - "_ml/calendars/#{Utils.__listify(_calendar_id)}" - else - '_ml/calendars' - end + path = if _calendar_id + "_ml/calendars/#{Utils.listify(_calendar_id)}" + else + '_ml/calendars' + end params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb index 4bac8ea0e6..d4d93309f5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb @@ -15,29 +15,33 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves anomaly detection job results for one or more categories. + # Get anomaly detection job results for categories. # - # @option arguments [String] :job_id The name of the job - # @option arguments [Long] :category_id The identifier of the category definition of interest - # @option arguments [Integer] :from skips a number of categories - # @option arguments [Integer] :size specifies a max number of categories to get - # @option arguments [String] :partition_field_value Specifies the partition to retrieve categories for. This is optional, and should never be used for jobs where per-partition categorization is disabled. + # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) + # @option arguments [String] :category_id Identifier for the category, which is unique in the job. If you specify + # neither the category ID nor the partition_field_value, the API returns + # information about all categories. If you specify only the + # partition_field_value, it returns information about all categories for + # the specified partition. + # @option arguments [Integer] :from Skips the specified number of categories. Server default: 0. + # @option arguments [String] :partition_field_value Only return categories for the specified partition. + # @option arguments [Integer] :size Specifies the maximum number of categories to obtain. Server default: 100. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Category selection details if not provided in URI + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-categories # def get_categories(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_categories' } - defined_params = %i[job_id category_id].each_with_object({}) do |variable, set_variables| + defined_params = [:job_id, :category_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -59,11 +63,11 @@ def get_categories(arguments = {}) Elasticsearch::API::HTTP_GET end - path = if _job_id && _category_id - "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/results/categories/#{Utils.__listify(_category_id)}" - else - "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/results/categories" - end + path = if _job_id && _category_id + "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/results/categories/#{Utils.listify(_category_id)}" + else + "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/results/categories" + end params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb index a6a097d654..43dbbf160e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb @@ -15,23 +15,38 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves configuration information for data frame analytics jobs. + # Get data frame analytics job configuration info. + # You can get information for multiple data frame analytics jobs in a single + # API request by using a comma-separated list of data frame analytics jobs or a + # wildcard expression. # - # @option arguments [String] :id The ID of the data frame analytics to fetch - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no data frame analytics. (This includes `_all` string or when no data frame analytics have been specified) - # @option arguments [Integer] :from skips a number of analytics - # @option arguments [Integer] :size specifies a max number of analytics to get - # @option arguments [Boolean] :exclude_generated Omits fields that are illegal to set on data frame analytics PUT + # @option arguments [String] :id Identifier for the data frame analytics job. If you do not specify this + # option, the API returns information for the first hundred data frame + # analytics jobs. + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: + # - Contains wildcard expressions and there are no data frame analytics + # jobs that match. + # - Contains the +_all+ string or no identifiers and there are no matches. + # - Contains wildcard expressions and there are only partial matches. + # The default value returns an empty data_frame_analytics array when there + # are no matches and the subset of results when there are partial matches. + # If this parameter is +false+, the request returns a 404 status code when + # there are no matches or only partial matches. Server default: true. + # @option arguments [Integer] :from Skips the specified number of data frame analytics jobs. Server default: 0. + # @option arguments [Integer] :size Specifies the maximum number of data frame analytics jobs to obtain. Server default: 100. + # @option arguments [Boolean] :exclude_generated Indicates if certain fields should be removed from the configuration on + # retrieval. This allows the configuration to be in an acceptable format to + # be retrieved and then added to another cluster. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-data-frame-analytics # def get_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_data_frame_analytics' } @@ -50,7 +65,7 @@ def get_data_frame_analytics(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _id - "_ml/data_frame/analytics/#{Utils.__listify(_id)}" + "_ml/data_frame/analytics/#{Utils.listify(_id)}" else '_ml/data_frame/analytics' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb index 5a12263db7..01600ef990 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb @@ -15,23 +15,33 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves usage information for data frame analytics jobs. + # Get data frame analytics jobs usage info. # - # @option arguments [String] :id The ID of the data frame analytics stats to fetch - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no data frame analytics. (This includes `_all` string or when no data frame analytics have been specified) - # @option arguments [Integer] :from skips a number of analytics - # @option arguments [Integer] :size specifies a max number of analytics to get - # @option arguments [Boolean] :verbose whether the stats response should be verbose + # @option arguments [String] :id Identifier for the data frame analytics job. If you do not specify this + # option, the API returns information for the first hundred data frame + # analytics jobs. + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: + # - Contains wildcard expressions and there are no data frame analytics + # jobs that match. + # - Contains the +_all+ string or no identifiers and there are no matches. + # - Contains wildcard expressions and there are only partial matches. + # The default value returns an empty data_frame_analytics array when there + # are no matches and the subset of results when there are partial matches. + # If this parameter is +false+, the request returns a 404 status code when + # there are no matches or only partial matches. Server default: true. + # @option arguments [Integer] :from Skips the specified number of data frame analytics jobs. Server default: 0. + # @option arguments [Integer] :size Specifies the maximum number of data frame analytics jobs to obtain. Server default: 100. + # @option arguments [Boolean] :verbose Defines whether the stats response should be verbose. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-data-frame-analytics-stats # def get_data_frame_analytics_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_data_frame_analytics_stats' } @@ -50,7 +60,7 @@ def get_data_frame_analytics_stats(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _id - "_ml/data_frame/analytics/#{Utils.__listify(_id)}/_stats" + "_ml/data_frame/analytics/#{Utils.listify(_id)}/_stats" else '_ml/data_frame/analytics/_stats' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb index 9a527cf537..df8fb56dcd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb @@ -15,20 +15,35 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves usage information for datafeeds. + # Get datafeeds usage info. + # You can get statistics for multiple datafeeds in a single API request by + # using a comma-separated list of datafeeds or a wildcard expression. You can + # get statistics for all datafeeds by using +_all+, by specifying +*+ as the + # ++, or by omitting the ++. If the datafeed is stopped, the + # only information you receive is the +datafeed_id+ and the +state+. + # This API returns a maximum of 10,000 datafeeds. # - # @option arguments [String] :datafeed_id The ID of the datafeeds stats to fetch - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) + # @option arguments [String, Array] :datafeed_id Identifier for the datafeed. It can be a datafeed identifier or a + # wildcard expression. If you do not specify one of these options, the API + # returns information about all datafeeds. + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: + # - Contains wildcard expressions and there are no datafeeds that match. + # - Contains the +_all+ string or no identifiers and there are no matches. + # - Contains wildcard expressions and there are only partial matches. + # The default value is +true+, which returns an empty +datafeeds+ array + # when there are no matches and the subset of results when there are + # partial matches. If this parameter is +false+, the request returns a + # +404+ status code when there are no matches or only partial matches. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-datafeed-stats # def get_datafeed_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_datafeed_stats' } @@ -47,7 +62,7 @@ def get_datafeed_stats(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _datafeed_id - "_ml/datafeeds/#{Utils.__listify(_datafeed_id)}/_stats" + "_ml/datafeeds/#{Utils.listify(_datafeed_id)}/_stats" else '_ml/datafeeds/_stats' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb index f7c0d75e1a..4cfb97ea97 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb @@ -15,21 +15,37 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves configuration information for datafeeds. + # Get datafeeds configuration info. + # You can get information for multiple datafeeds in a single API request by + # using a comma-separated list of datafeeds or a wildcard expression. You can + # get information for all datafeeds by using +_all+, by specifying +*+ as the + # ++, or by omitting the ++. + # This API returns a maximum of 10,000 datafeeds. # - # @option arguments [String] :datafeed_id The ID of the datafeeds to fetch - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) - # @option arguments [Boolean] :exclude_generated Omits fields that are illegal to set on datafeed PUT + # @option arguments [String, Array] :datafeed_id Identifier for the datafeed. It can be a datafeed identifier or a + # wildcard expression. If you do not specify one of these options, the API + # returns information about all datafeeds. + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: + # - Contains wildcard expressions and there are no datafeeds that match. + # - Contains the +_all+ string or no identifiers and there are no matches. + # - Contains wildcard expressions and there are only partial matches. + # The default value is +true+, which returns an empty +datafeeds+ array + # when there are no matches and the subset of results when there are + # partial matches. If this parameter is +false+, the request returns a + # +404+ status code when there are no matches or only partial matches. + # @option arguments [Boolean] :exclude_generated Indicates if certain fields should be removed from the configuration on + # retrieval. This allows the configuration to be in an acceptable format to + # be retrieved and then added to another cluster. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-datafeeds # def get_datafeeds(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_datafeeds' } @@ -48,7 +64,7 @@ def get_datafeeds(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _datafeed_id - "_ml/datafeeds/#{Utils.__listify(_datafeed_id)}" + "_ml/datafeeds/#{Utils.listify(_datafeed_id)}" else '_ml/datafeeds' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb index 740d6087d1..ae3c0863ae 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb @@ -15,21 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves filters. + # Get filters. + # You can get a single filter or all filters. # - # @option arguments [String] :filter_id The ID of the filter to fetch - # @option arguments [Integer] :from skips a number of filters - # @option arguments [Integer] :size specifies a max number of filters to get + # @option arguments [String, Array] :filter_id A string that uniquely identifies a filter. + # @option arguments [Integer] :from Skips the specified number of filters. Server default: 0. + # @option arguments [Integer] :size Specifies the maximum number of filters to obtain. Server default: 100. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-filter.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-filters # def get_filters(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_filters' } @@ -48,7 +49,7 @@ def get_filters(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _filter_id - "_ml/filters/#{Utils.__listify(_filter_id)}" + "_ml/filters/#{Utils.listify(_filter_id)}" else '_ml/filters' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb index c26cfe0ee3..117eaa686e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb @@ -15,28 +15,37 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves anomaly detection job results for one or more influencers. + # Get anomaly detection job results for influencers. + # Influencers are the entities that have contributed to, or are to blame for, + # the anomalies. Influencer results are available only if an + # +influencer_field_name+ is specified in the job configuration. # - # @option arguments [String] :job_id Identifier for the anomaly detection job - # @option arguments [Boolean] :exclude_interim Exclude interim results - # @option arguments [Integer] :from skips a number of influencers - # @option arguments [Integer] :size specifies a max number of influencers to get - # @option arguments [String] :start start timestamp for the requested influencers - # @option arguments [String] :end end timestamp for the requested influencers - # @option arguments [Double] :influencer_score influencer score threshold for the requested influencers - # @option arguments [String] :sort sort field for the requested influencers - # @option arguments [Boolean] :desc whether the results should be sorted in decending order + # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) + # @option arguments [Boolean] :desc If true, the results are sorted in descending order. + # @option arguments [String, Time] :end Returns influencers with timestamps earlier than this time. + # The default value means it is unset and results are not limited to + # specific timestamps. Server default: -1. + # @option arguments [Boolean] :exclude_interim If true, the output excludes interim results. By default, interim results + # are included. + # @option arguments [Float] :influencer_score Returns influencers with anomaly scores greater than or equal to this + # value. Server default: 0. + # @option arguments [Integer] :from Skips the specified number of influencers. Server default: 0. + # @option arguments [Integer] :size Specifies the maximum number of influencers to obtain. Server default: 100. + # @option arguments [String] :sort Specifies the sort field for the requested influencers. By default, the + # influencers are sorted by the +influencer_score+ value. + # @option arguments [String, Time] :start Returns influencers with timestamps after this time. The default value + # means it is unset and results are not limited to specific timestamps. Server default: -1. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Influencer selection criteria + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-influencers # def get_influencers(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_influencers' } @@ -61,7 +70,7 @@ def get_influencers(arguments = {}) Elasticsearch::API::HTTP_GET end - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/results/influencers" + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/results/influencers" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb index a775aa6822..1c7120011d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb @@ -15,20 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves usage information for anomaly detection jobs. + # Get anomaly detection jobs usage info. # - # @option arguments [String] :job_id The ID of the jobs stats to fetch - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) + # @option arguments [String] :job_id Identifier for the anomaly detection job. It can be a job identifier, a + # group name, a comma-separated list of jobs, or a wildcard expression. If + # you do not specify one of these options, the API returns information for + # all anomaly detection jobs. + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: + # - Contains wildcard expressions and there are no jobs that match. + # - Contains the _all string or no identifiers and there are no matches. + # - Contains wildcard expressions and there are only partial matches. + # If +true+, the API returns an empty +jobs+ array when + # there are no matches and the subset of results when there are partial + # matches. If +false+, the API returns a +404+ status + # code when there are no matches or only partial matches. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-job-stats # def get_job_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_job_stats' } @@ -47,7 +57,7 @@ def get_job_stats(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _job_id - "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/_stats" + "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/_stats" else '_ml/anomaly_detectors/_stats' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb index ed56801065..089bf49a00 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb @@ -15,21 +15,36 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves configuration information for anomaly detection jobs. + # Get anomaly detection jobs configuration info. + # You can get information for multiple anomaly detection jobs in a single API + # request by using a group name, a comma-separated list of jobs, or a wildcard + # expression. You can get information for all anomaly detection jobs by using + # +_all+, by specifying +*+ as the ++, or by omitting the ++. # - # @option arguments [String] :job_id The ID of the jobs to fetch - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) - # @option arguments [Boolean] :exclude_generated Omits fields that are illegal to set on job PUT + # @option arguments [String, Array] :job_id Identifier for the anomaly detection job. It can be a job identifier, a + # group name, or a wildcard expression. If you do not specify one of these + # options, the API returns information for all anomaly detection jobs. + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: + # - Contains wildcard expressions and there are no jobs that match. + # - Contains the _all string or no identifiers and there are no matches. + # - Contains wildcard expressions and there are only partial matches. + # The default value is +true+, which returns an empty +jobs+ array when + # there are no matches and the subset of results when there are partial + # matches. If this parameter is +false+, the request returns a +404+ status + # code when there are no matches or only partial matches. Server default: true. + # @option arguments [Boolean] :exclude_generated Indicates if certain fields should be removed from the configuration on + # retrieval. This allows the configuration to be in an acceptable format to + # be retrieved and then added to another cluster. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-jobs # def get_jobs(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_jobs' } @@ -48,7 +63,7 @@ def get_jobs(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _job_id - "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}" + "_ml/anomaly_detectors/#{Utils.listify(_job_id)}" else '_ml/anomaly_detectors' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb index 001adaa2d5..3e8becd1f2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb @@ -15,21 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Returns information on how ML is using memory. + # Get machine learning memory usage info. + # Get information about how machine learning jobs and trained models are using memory, + # on each node, both within the JVM heap, and natively, outside of the JVM. # - # @option arguments [String] :node_id Specifies the node or nodes to retrieve stats for. - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :node_id The names of particular nodes in the cluster to target. For example, +nodeId1,nodeId2+ or + # +ml:true+ + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout + # expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request + # fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-ml-memory.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-memory-stats # def get_memory_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_memory_stats' } @@ -48,7 +53,7 @@ def get_memory_stats(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _node_id - "_ml/memory/#{Utils.__listify(_node_id)}/_stats" + "_ml/memory/#{Utils.listify(_node_id)}/_stats" else '_ml/memory/_stats' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb index 561bd95bad..b623fc5487 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb @@ -15,26 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Gets stats for anomaly detection job model snapshot upgrades that are in progress. + # Get anomaly detection job model snapshot upgrade usage info. # - # @option arguments [String] :job_id The ID of the job. May be a wildcard, comma separated list or `_all`. - # @option arguments [String] :snapshot_id The ID of the snapshot. May be a wildcard, comma separated list or `_all`. - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no jobs or no snapshots. (This includes the `_all` string.) + # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) + # @option arguments [String] :snapshot_id A numerical character string that uniquely identifies the model snapshot. You can get information for multiple + # snapshots by using a comma-separated list or a wildcard expression. You can get all snapshots by using +_all+, + # by specifying +*+ as the snapshot ID, or by omitting the snapshot ID. (*Required*) + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: + # - Contains wildcard expressions and there are no jobs that match. + # - Contains the _all string or no identifiers and there are no matches. + # - Contains wildcard expressions and there are only partial matches. + # The default value is true, which returns an empty jobs array when there are no matches and the subset of results + # when there are partial matches. If this parameter is false, the request returns a 404 status code when there are + # no matches or only partial matches. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-model-snapshot-upgrade-stats.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-model-snapshot-upgrade-stats # def get_model_snapshot_upgrade_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_model_snapshot_upgrade_stats' } - defined_params = %i[job_id snapshot_id].each_with_object({}) do |variable, set_variables| + defined_params = [:job_id, :snapshot_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -52,7 +60,7 @@ def get_model_snapshot_upgrade_stats(arguments = {}) _snapshot_id = arguments.delete(:snapshot_id) method = Elasticsearch::API::HTTP_GET - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/model_snapshots/#{Utils.__listify(_snapshot_id)}/_upgrade/_stats" + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/model_snapshots/#{Utils.listify(_snapshot_id)}/_upgrade/_stats" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb index df56a11e88..bc8f0b6c4b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb @@ -15,32 +15,35 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves information about model snapshots. + # Get model snapshots info. # - # @option arguments [String] :job_id The ID of the job to fetch - # @option arguments [String] :snapshot_id The ID of the snapshot to fetch - # @option arguments [Integer] :from Skips a number of documents - # @option arguments [Integer] :size The default number of documents returned in queries as a string. - # @option arguments [Date] :start The filter 'start' query parameter - # @option arguments [Date] :end The filter 'end' query parameter - # @option arguments [String] :sort Name of the field to sort on - # @option arguments [Boolean] :desc True if the results should be sorted in descending order + # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) + # @option arguments [String] :snapshot_id A numerical character string that uniquely identifies the model snapshot. You can get information for multiple + # snapshots by using a comma-separated list or a wildcard expression. You can get all snapshots by using +_all+, + # by specifying +*+ as the snapshot ID, or by omitting the snapshot ID. + # @option arguments [Boolean] :desc If true, the results are sorted in descending order. + # @option arguments [String, Time] :end Returns snapshots with timestamps earlier than this time. + # @option arguments [Integer] :from Skips the specified number of snapshots. Server default: 0. + # @option arguments [Integer] :size Specifies the maximum number of snapshots to obtain. Server default: 100. + # @option arguments [String] :sort Specifies the sort field for the requested snapshots. By default, the + # snapshots are sorted by their timestamp. + # @option arguments [String, Time] :start Returns snapshots with timestamps after this time. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Model snapshot selection criteria + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-model-snapshots # def get_model_snapshots(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_model_snapshots' } - defined_params = %i[job_id snapshot_id].each_with_object({}) do |variable, set_variables| + defined_params = [:job_id, :snapshot_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -62,11 +65,11 @@ def get_model_snapshots(arguments = {}) Elasticsearch::API::HTTP_GET end - path = if _job_id && _snapshot_id - "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/model_snapshots/#{Utils.__listify(_snapshot_id)}" - else - "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/model_snapshots" - end + path = if _job_id && _snapshot_id + "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/model_snapshots/#{Utils.listify(_snapshot_id)}" + else + "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/model_snapshots" + end params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb index fa40a14238..0bf74048f1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb @@ -15,27 +15,59 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves overall bucket results that summarize the bucket results of multiple anomaly detection jobs. + # Get overall bucket results. + # Retrievs overall bucket results that summarize the bucket results of + # multiple anomaly detection jobs. + # The +overall_score+ is calculated by combining the scores of all the + # buckets within the overall bucket span. First, the maximum + # +anomaly_score+ per anomaly detection job in the overall bucket is + # calculated. Then the +top_n+ of those scores are averaged to result in + # the +overall_score+. This means that you can fine-tune the + # +overall_score+ so that it is more or less sensitive to the number of + # jobs that detect an anomaly at the same time. For example, if you set + # +top_n+ to +1+, the +overall_score+ is the maximum bucket score in the + # overall bucket. Alternatively, if you set +top_n+ to the number of jobs, + # the +overall_score+ is high only when all jobs detect anomalies in that + # overall bucket. If you set the +bucket_span+ parameter (to a value + # greater than its default), the +overall_score+ is the maximum + # +overall_score+ of the overall buckets that have a span equal to the + # jobs' largest bucket span. # - # @option arguments [String] :job_id The job IDs for which to calculate overall bucket results - # @option arguments [Integer] :top_n The number of top job bucket scores to be used in the overall_score calculation - # @option arguments [String] :bucket_span The span of the overall buckets. Defaults to the longest job bucket_span - # @option arguments [Double] :overall_score Returns overall buckets with overall scores higher than this value - # @option arguments [Boolean] :exclude_interim If true overall buckets that include interim buckets will be excluded - # @option arguments [String] :start Returns overall buckets with timestamps after this time - # @option arguments [String] :end Returns overall buckets with timestamps earlier than this time - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) + # @option arguments [String] :job_id Identifier for the anomaly detection job. It can be a job identifier, a + # group name, a comma-separated list of jobs or groups, or a wildcard + # expression.You can summarize the bucket results for all anomaly detection jobs by + # using +_all+ or by specifying +*+ as the ++. (*Required*) + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: + # - Contains wildcard expressions and there are no jobs that match. + # - Contains the +_all+ string or no identifiers and there are no matches. + # - Contains wildcard expressions and there are only partial matches. + # If +true+, the request returns an empty +jobs+ array when there are no + # matches and the subset of results when there are partial matches. If this + # parameter is +false+, the request returns a +404+ status code when there + # are no matches or only partial matches. Server default: true. + # @option arguments [Time] :bucket_span The span of the overall buckets. Must be greater or equal to the largest + # bucket span of the specified anomaly detection jobs, which is the default + # value.By default, an overall bucket has a span equal to the largest bucket span + # of the specified anomaly detection jobs. To override that behavior, use + # the optional +bucket_span+ parameter. + # @option arguments [String, Time] :end Returns overall buckets with timestamps earlier than this time. + # @option arguments [Boolean] :exclude_interim If +true+, the output excludes interim results. + # @option arguments [Double, String] :overall_score Returns overall buckets with overall scores greater than or equal to this + # value. + # @option arguments [String, Time] :start Returns overall buckets with timestamps after this time. + # @option arguments [Integer] :top_n The number of top anomaly detection job bucket scores to be used in the + # +overall_score+ calculation. Server default: 1. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Overall bucket selection details if not provided in URI + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-overall-buckets # def get_overall_buckets(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_overall_buckets' } @@ -60,7 +92,7 @@ def get_overall_buckets(arguments = {}) Elasticsearch::API::HTTP_GET end - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/results/overall_buckets" + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/results/overall_buckets" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb index 66b4f6b7df..51789958d5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb @@ -15,28 +15,40 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves anomaly records for an anomaly detection job. + # Get anomaly records for an anomaly detection job. + # Records contain the detailed analytical results. They describe the anomalous + # activity that has been identified in the input data based on the detector + # configuration. + # There can be many anomaly records depending on the characteristics and size + # of the input data. In practice, there are often too many to be able to + # manually process them. The machine learning features therefore perform a + # sophisticated aggregation of the anomaly records into buckets. + # The number of record results depends on the number of anomalies found in each + # bucket, which relates to the number of time series being modeled and the + # number of detectors. # - # @option arguments [String] :job_id The ID of the job - # @option arguments [Boolean] :exclude_interim Exclude interim results - # @option arguments [Integer] :from skips a number of records - # @option arguments [Integer] :size specifies a max number of records to get - # @option arguments [String] :start Start time filter for records - # @option arguments [String] :end End time filter for records - # @option arguments [Double] :record_score Returns records with anomaly scores greater or equal than this value - # @option arguments [String] :sort Sort records by a particular field - # @option arguments [Boolean] :desc Set the sort direction + # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) + # @option arguments [Boolean] :desc If true, the results are sorted in descending order. + # @option arguments [String, Time] :end Returns records with timestamps earlier than this time. The default value + # means results are not limited to specific timestamps. Server default: -1. + # @option arguments [Boolean] :exclude_interim If +true+, the output excludes interim results. + # @option arguments [Integer] :from Skips the specified number of records. Server default: 0. + # @option arguments [Float] :record_score Returns records with anomaly scores greater or equal than this value. Server default: 0. + # @option arguments [Integer] :size Specifies the maximum number of records to obtain. Server default: 100. + # @option arguments [String] :sort Specifies the sort field for the requested records. Server default: record_score. + # @option arguments [String, Time] :start Returns records with timestamps after this time. The default value means + # results are not limited to specific timestamps. Server default: -1. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Record selection criteria + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-records # def get_records(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_records' } @@ -61,7 +73,7 @@ def get_records(arguments = {}) Elasticsearch::API::HTTP_GET end - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/results/records" + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/results/records" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb index 09b7813943..8dbcd630ea 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb @@ -15,27 +15,39 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves configuration information for a trained inference model. + # Get trained model configuration info. # - # @option arguments [String] :model_id The ID of the trained models to fetch - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no trained models. (This includes `_all` string or when no trained models have been specified) - # @option arguments [String] :include A comma-separate list of fields to optionally include. Valid options are 'definition' and 'total_feature_importance'. Default is none. - # @option arguments [Boolean] :include_model_definition Should the full model definition be included in the results. These definitions can be large. So be cautious when including them. Defaults to false. *Deprecated* - # @option arguments [Boolean] :decompress_definition Should the model definition be decompressed into valid JSON or returned in a custom compressed format. Defaults to true. - # @option arguments [Integer] :from skips a number of trained models - # @option arguments [Integer] :size specifies a max number of trained models to get - # @option arguments [List] :tags A comma-separated list of tags that the model must have. - # @option arguments [Boolean] :exclude_generated Omits fields that are illegal to set on model PUT + # @option arguments [String, Array] :model_id The unique identifier of the trained model or a model alias.You can get information for multiple trained models in a single API + # request by using a comma-separated list of model IDs or a wildcard + # expression. + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: + # - Contains wildcard expressions and there are no models that match. + # - Contains the _all string or no identifiers and there are no matches. + # - Contains wildcard expressions and there are only partial matches. + # If true, it returns an empty array when there are no matches and the + # subset of results when there are partial matches. Server default: true. + # @option arguments [Boolean] :decompress_definition Specifies whether the included model definition should be returned as a + # JSON map (true) or in a custom compressed format (false). Server default: true. + # @option arguments [Boolean] :exclude_generated Indicates if certain fields should be removed from the configuration on + # retrieval. This allows the configuration to be in an acceptable format to + # be retrieved and then added to another cluster. + # @option arguments [Integer] :from Skips the specified number of models. Server default: 0. + # @option arguments [String] :include A comma delimited string of optional fields to include in the response + # body. + # @option arguments [Integer] :size Specifies the maximum number of models to obtain. Server default: 100. + # @option arguments [String] :tags A comma delimited string of tags. A trained model can have many tags, or + # none. When supplied, only trained models that contain all the supplied + # tags are returned. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-trained-models # def get_trained_models(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_trained_models' } @@ -54,7 +66,7 @@ def get_trained_models(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _model_id - "_ml/trained_models/#{Utils.__listify(_model_id)}" + "_ml/trained_models/#{Utils.listify(_model_id)}" else '_ml/trained_models' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb index 0d56ddb20a..8f1a99efd2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb @@ -15,22 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Retrieves usage information for trained inference models. + # Get trained models usage info. + # You can get usage information for multiple trained + # models in a single API request by using a comma-separated list of model IDs or a wildcard expression. # - # @option arguments [String] :model_id The ID of the trained models stats to fetch - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no trained models. (This includes `_all` string or when no trained models have been specified) - # @option arguments [Integer] :from skips a number of trained models - # @option arguments [Integer] :size specifies a max number of trained models to get + # @option arguments [String, Array] :model_id The unique identifier of the trained model or a model alias. It can be a + # comma-separated list or a wildcard expression. + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: + # - Contains wildcard expressions and there are no models that match. + # - Contains the _all string or no identifiers and there are no matches. + # - Contains wildcard expressions and there are only partial matches. + # If true, it returns an empty array when there are no matches and the + # subset of results when there are partial matches. Server default: true. + # @option arguments [Integer] :from Skips the specified number of models. Server default: 0. + # @option arguments [Integer] :size Specifies the maximum number of models to obtain. Server default: 100. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models-stats.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-trained-models-stats # def get_trained_models_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_trained_models_stats' } @@ -49,7 +57,7 @@ def get_trained_models_stats(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _model_id - "_ml/trained_models/#{Utils.__listify(_model_id)}/_stats" + "_ml/trained_models/#{Utils.listify(_model_id)}/_stats" else '_ml/trained_models/_stats' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb index 59dbc17156..55e701e778 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb @@ -15,8 +15,8 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API @@ -25,16 +25,11 @@ module Actions # Evaluate a trained model. # # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) - # @option arguments [Time] :timeout Controls the amount of time to wait for inference results. + # @option arguments [Time] :timeout Controls the amount of time to wait for inference results. Server default: 10s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The docs to apply inference on and inference configuration overrides (*Required*) + # @option arguments [Hash] :body request body # - # *Deprecation notice*: - # /_ml/trained_models/{model_id}/deployment/_infer is deprecated. Use /_ml/trained_models/{model_id}/_infer instead - # Deprecated since version 8.3.0 - # - # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-trained-model.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-infer-trained-model # def infer_trained_model(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.infer_trained_model' } @@ -55,7 +50,7 @@ def infer_trained_model(arguments = {}) _model_id = arguments.delete(:model_id) method = Elasticsearch::API::HTTP_POST - path = ("_ml/trained_models/#{Utils.__listify(_model_id)}/deployment/_infer" if _model_id) + path = "_ml/trained_models/#{Utils.listify(_model_id)}/_infer" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb index c1f3d46670..d75f0f774f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb @@ -15,18 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Returns defaults and limits used by machine learning. + # Get machine learning information. + # Get defaults and limits used by machine learning. + # This endpoint is designed to be used by a user interface that needs to fully + # understand machine learning configurations where some options are not + # specified, meaning that the defaults should be used. This endpoint may be + # used to find out what those defaults are. It also provides information about + # the maximum size of machine learning jobs that could run in the current + # cluster configuration. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-ml-info.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-info # def info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.info' } @@ -34,7 +41,7 @@ def info(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_ml/info' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb index 69ab6ad44e..11b831e1fa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb @@ -15,20 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Opens one or more anomaly detection jobs. + # Open anomaly detection jobs. + # An anomaly detection job must be opened to be ready to receive and analyze + # data. It can be opened and closed multiple times throughout its lifecycle. + # When you open a new job, it starts with an empty model. + # When you open an existing job, the most recent model state is automatically + # loaded. The job is ready to resume its analysis from where it left off, once + # new data is received. # - # @option arguments [String] :job_id The ID of the job to open + # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) + # @option arguments [Time] :timeout Controls the time to wait until a job has opened. Server default: 30m. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Query parameters can be specified in the body + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-open-job # def open_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.open_job' } @@ -48,8 +55,8 @@ def open_job(arguments = {}) _job_id = arguments.delete(:job_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/_open" - params = {} + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/_open" + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb index c80bc49eab..9f11926487 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb @@ -15,20 +15,20 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Posts scheduled events in a calendar. + # Add scheduled events to the calendar. # - # @option arguments [String] :calendar_id The ID of the calendar to modify + # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body A list of events (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-calendar-event.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-post-calendar-events # def post_calendar_events(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.post_calendar_events' } @@ -49,7 +49,7 @@ def post_calendar_events(arguments = {}) _calendar_id = arguments.delete(:calendar_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/calendars/#{Utils.__listify(_calendar_id)}/events" + path = "_ml/calendars/#{Utils.listify(_calendar_id)}/events" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb index f19f58530b..59f6ee0a9e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb @@ -15,22 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Sends data to an anomaly detection job for analysis. + # Send data to an anomaly detection job for analysis. + # IMPORTANT: For each job, data can be accepted from only a single connection at a time. + # It is not currently possible to post data to multiple jobs using wildcards or a comma-separated list. # - # @option arguments [String] :job_id The name of the job receiving the data - # @option arguments [String] :reset_start Optional parameter to specify the start of the bucket resetting range - # @option arguments [String] :reset_end Optional parameter to specify the end of the bucket resetting range + # @option arguments [String] :job_id Identifier for the anomaly detection job. The job must have a state of open to receive and process the data. (*Required*) + # @option arguments [String, Time] :reset_end Specifies the end of the bucket resetting range. + # @option arguments [String, Time] :reset_start Specifies the start of the bucket resetting range. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The data to process (*Required*) + # @option arguments [Hash] :body data # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-post-data # def post_data(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.post_data' } @@ -51,7 +53,7 @@ def post_data(arguments = {}) _job_id = arguments.delete(:job_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/_data" + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/_data" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb index 33e7ca9675..571c1ccd4d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb @@ -15,20 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Previews that will be analyzed given a data frame analytics config. + # Preview features used by data frame analytics. + # Preview the extracted features used by a data frame analytics config. # - # @option arguments [String] :id The ID of the data frame analytics to preview + # @option arguments [String] :id Identifier for the data frame analytics job. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The data frame analytics config to preview + # @option arguments [Hash] :body request body # - # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/preview-dfanalytics.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-preview-data-frame-analytics # def preview_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.preview_data_frame_analytics' } @@ -51,11 +52,11 @@ def preview_data_frame_analytics(arguments = {}) Elasticsearch::API::HTTP_GET end - path = if _id - "_ml/data_frame/analytics/#{Utils.__listify(_id)}/_preview" - else - '_ml/data_frame/analytics/_preview' - end + path = if _id + "_ml/data_frame/analytics/#{Utils.listify(_id)}/_preview" + else + '_ml/data_frame/analytics/_preview' + end params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb index 78f421329b..8bba717797 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb @@ -15,22 +15,33 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Previews a datafeed. + # Preview a datafeed. + # This API returns the first "page" of search results from a datafeed. + # You can preview an existing datafeed or provide configuration details for a datafeed + # and anomaly detection job in the API. The preview shows the structure of the data + # that will be passed to the anomaly detection engine. + # IMPORTANT: When Elasticsearch security features are enabled, the preview uses the credentials of the user that + # called the API. However, when the datafeed starts it uses the roles of the last user that created or updated the + # datafeed. To get a preview that accurately reflects the behavior of the datafeed, use the appropriate credentials. + # You can also use secondary authorization headers to supply the credentials. # - # @option arguments [String] :datafeed_id The ID of the datafeed to preview - # @option arguments [String] :start The start time from where the datafeed preview should begin - # @option arguments [String] :end The end time when the datafeed preview should stop + # @option arguments [String] :datafeed_id A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase + # alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric + # characters. NOTE: If you use this path parameter, you cannot provide datafeed or anomaly detection job + # configuration details in the request body. + # @option arguments [String, Time] :start The start time from where the datafeed preview should begin + # @option arguments [String, Time] :end The end time when the datafeed preview should stop # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The datafeed config and job config with which to execute the preview + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-preview-datafeed # def preview_datafeed(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.preview_datafeed' } @@ -53,11 +64,11 @@ def preview_datafeed(arguments = {}) Elasticsearch::API::HTTP_GET end - path = if _datafeed_id - "_ml/datafeeds/#{Utils.__listify(_datafeed_id)}/_preview" - else - '_ml/datafeeds/_preview' - end + path = if _datafeed_id + "_ml/datafeeds/#{Utils.listify(_datafeed_id)}/_preview" + else + '_ml/datafeeds/_preview' + end params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb index 6bac27c8cc..a4adcc8374 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb @@ -15,20 +15,20 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Instantiates a calendar. + # Create a calendar. # - # @option arguments [String] :calendar_id The ID of the calendar to create + # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The calendar details + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-calendar # def put_calendar(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_calendar' } @@ -48,7 +48,7 @@ def put_calendar(arguments = {}) _calendar_id = arguments.delete(:calendar_id) method = Elasticsearch::API::HTTP_PUT - path = "_ml/calendars/#{Utils.__listify(_calendar_id)}" + path = "_ml/calendars/#{Utils.listify(_calendar_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb index 5c7b779e81..756a3f7aaa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb @@ -15,25 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Adds an anomaly detection job to a calendar. + # Add anomaly detection job to calendar. # - # @option arguments [String] :calendar_id The ID of the calendar to modify - # @option arguments [String] :job_id The ID of the job to add to the calendar + # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*) + # @option arguments [String, Array] :job_id An identifier for the anomaly detection jobs. It can be a job identifier, a group name, or a comma-separated list of jobs or groups. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar-job.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-calendar-job # def put_calendar_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_calendar_job' } - defined_params = %i[calendar_id job_id].each_with_object({}) do |variable, set_variables| + defined_params = [:calendar_id, :job_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -51,7 +51,7 @@ def put_calendar_job(arguments = {}) _job_id = arguments.delete(:job_id) method = Elasticsearch::API::HTTP_PUT - path = "_ml/calendars/#{Utils.__listify(_calendar_id)}/jobs/#{Utils.__listify(_job_id)}" + path = "_ml/calendars/#{Utils.listify(_calendar_id)}/jobs/#{Utils.listify(_job_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb index 737b51a739..22ace884b7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb @@ -15,20 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Instantiates a data frame analytics job. + # Create a data frame analytics job. + # This API creates a data frame analytics job that performs an analysis on the + # source indices and stores the outcome in a destination index. + # By default, the query used in the source configuration is +{"match_all": {}}+. + # If the destination index does not exist, it is created automatically when you start the job. + # If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. # - # @option arguments [String] :id The ID of the data frame analytics to create + # @option arguments [String] :id Identifier for the data frame analytics job. This identifier can contain + # lowercase alphanumeric characters (a-z and 0-9), hyphens, and + # underscores. It must start and end with alphanumeric characters. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The data frame analytics configuration (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-dfanalytics.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-data-frame-analytics # def put_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_data_frame_analytics' } @@ -49,7 +56,7 @@ def put_data_frame_analytics(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_PUT - path = "_ml/data_frame/analytics/#{Utils.__listify(_id)}" + path = "_ml/data_frame/analytics/#{Utils.listify(_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb index 55ac679569..fc0db5bc2f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb @@ -15,24 +15,38 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Instantiates a datafeed. + # Create a datafeed. + # Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. + # You can associate only one datafeed with each anomaly detection job. + # The datafeed contains a query that runs at a defined interval (+frequency+). + # If you are concerned about delayed data, you can add a delay (+query_delay') at each interval. + # By default, the datafeed uses the following query:+{"match_all": {"boost": 1}}+. + # When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + # at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + # those credentials are used instead. + # You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + # directly to the+.ml-config+index. Do not give users+write+privileges on the+.ml-config` index. # - # @option arguments [String] :datafeed_id The ID of the datafeed to create - # @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false) - # @option arguments [Boolean] :allow_no_indices Ignore if the source indices expressions resolves to no concrete indices (default: true) - # @option arguments [Boolean] :ignore_throttled Ignore indices that are marked as throttled (default: true) - # @option arguments [String] :expand_wildcards Whether source index expressions should get expanded to open or closed indices (default: open) (options: open, closed, hidden, none, all) + # @option arguments [String] :datafeed_id A numerical character string that uniquely identifies the datafeed. + # This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. + # It must start and end with alphanumeric characters. (*Required*) + # @option arguments [Boolean] :allow_no_indices If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the +_all+ + # string or when no indices are specified. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. If the request can target data streams, this argument determines + # whether wildcard expressions match hidden data streams. Supports comma-separated values. Server default: open. + # @option arguments [Boolean] :ignore_throttled If true, concrete, expanded, or aliased indices are ignored when frozen. Server default: true. + # @option arguments [Boolean] :ignore_unavailable If true, unavailable indices (missing or closed) are ignored. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The datafeed config (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-datafeed # def put_datafeed(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_datafeed' } @@ -53,7 +67,7 @@ def put_datafeed(arguments = {}) _datafeed_id = arguments.delete(:datafeed_id) method = Elasticsearch::API::HTTP_PUT - path = "_ml/datafeeds/#{Utils.__listify(_datafeed_id)}" + path = "_ml/datafeeds/#{Utils.listify(_datafeed_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb index b08ad3dc1c..c2509ab2da 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb @@ -15,20 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Instantiates a filter. + # Create a filter. + # A filter contains a list of strings. It can be used by one or more anomaly detection jobs. + # Specifically, filters are referenced in the +custom_rules+ property of detector configuration objects. # - # @option arguments [String] :filter_id The ID of the filter to create + # @option arguments [String] :filter_id A string that uniquely identifies a filter. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The filter details (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-filter.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-filter # def put_filter(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_filter' } @@ -49,7 +51,7 @@ def put_filter(arguments = {}) _filter_id = arguments.delete(:filter_id) method = Elasticsearch::API::HTTP_PUT - path = "_ml/filters/#{Utils.__listify(_filter_id)}" + path = "_ml/filters/#{Utils.listify(_filter_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb index d5cebda595..7c255c8eea 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb @@ -15,24 +15,33 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Instantiates an anomaly detection job. + # Create an anomaly detection job. + # If you include a +datafeed_config+, you must have read index privileges on the source index. + # If you include a +datafeed_config+ but do not provide a query, the datafeed uses +{"match_all": {"boost": 1}}+. # - # @option arguments [String] :job_id The ID of the job to create - # @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false). Only set if datafeed_config is provided. - # @option arguments [Boolean] :allow_no_indices Ignore if the source indices expressions resolves to no concrete indices (default: true). Only set if datafeed_config is provided. - # @option arguments [Boolean] :ignore_throttled Ignore indices that are marked as throttled (default: true). Only set if datafeed_config is provided. - # @option arguments [String] :expand_wildcards Whether source index expressions should get expanded to open or closed indices (default: open). Only set if datafeed_config is provided. (options: open, closed, hidden, none, all) + # @option arguments [String] :job_id The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. (*Required*) + # @option arguments [Boolean] :allow_no_indices If +true+, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the + # +_all+ string or when no indices are specified. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. If the request can target data streams, this argument determines + # whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are: + # - +all+: Match any data stream or index, including hidden ones. + # - +closed+: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed. + # - +hidden+: Match hidden data streams and hidden indices. Must be combined with +open+, +closed+, or both. + # - +none+: Wildcard patterns are not accepted. + # - +open+: Match open, non-hidden indices. Also matches any non-hidden data stream. Server default: open. + # @option arguments [Boolean] :ignore_throttled If +true+, concrete, expanded or aliased indices are ignored when frozen. Server default: true. + # @option arguments [Boolean] :ignore_unavailable If +true+, unavailable indices (missing or closed) are ignored. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The job (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-job # def put_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_job' } @@ -53,7 +62,7 @@ def put_job(arguments = {}) _job_id = arguments.delete(:job_id) method = Elasticsearch::API::HTTP_PUT - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}" + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb index 5107273c56..56bee1336e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb @@ -15,22 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Creates an inference trained model. + # Create a trained model. + # Enable you to supply a trained model that is not created by data frame analytics. # - # @option arguments [String] :model_id The ID of the trained models to store - # @option arguments [Boolean] :defer_definition_decompression If set to `true` and a `compressed_definition` is provided, the request defers definition decompression and skips relevant validations. - # @option arguments [Boolean] :wait_for_completion Whether to wait for all child operations(e.g. model download) to complete, before returning or not. Default to false + # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) + # @option arguments [Boolean] :defer_definition_decompression If set to +true+ and a +compressed_definition+ is provided, + # the request defers definition decompression and skips relevant + # validations. + # @option arguments [Boolean] :wait_for_completion Whether to wait for all child operations (e.g. model download) + # to complete. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The trained model configuration (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-trained-model # def put_trained_model(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_trained_model' } @@ -51,7 +55,7 @@ def put_trained_model(arguments = {}) _model_id = arguments.delete(:model_id) method = Elasticsearch::API::HTTP_PUT - path = "_ml/trained_models/#{Utils.__listify(_model_id)}" + path = "_ml/trained_models/#{Utils.listify(_model_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb index 9da28749f1..e4f455a759 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb @@ -15,26 +15,44 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Creates a new model alias (or reassigns an existing one) to refer to the trained model + # Create or update a trained model alias. + # A trained model alias is a logical name used to reference a single trained + # model. + # You can use aliases instead of trained model identifiers to make it easier to + # reference your models. For example, you can use aliases in inference + # aggregations and processors. + # An alias must be unique and refer to only a single trained model. However, + # you can have multiple aliases for each trained model. + # If you use this API to update an alias such that it references a different + # trained model ID and the model uses a different type of data frame analytics, + # an error occurs. For example, this situation occurs if you have a trained + # model for regression analysis and a trained model for classification + # analysis; you cannot reassign an alias from one type of trained model to + # another. + # If you use this API to update an alias and there are very few input fields in + # common between the old and new trained models for the model alias, the API + # returns a warning. # - # @option arguments [String] :model_alias The trained model alias to update - # @option arguments [String] :model_id The trained model where the model alias should be assigned - # @option arguments [Boolean] :reassign If the model_alias already exists and points to a separate model_id, this parameter must be true. Defaults to false. + # @option arguments [String] :model_alias The alias to create or update. This value cannot end in numbers. (*Required*) + # @option arguments [String] :model_id The identifier for the trained model that the alias refers to. (*Required*) + # @option arguments [Boolean] :reassign Specifies whether the alias gets reassigned to the specified trained + # model if it is already assigned to a different model. If the alias is + # already assigned and this parameter is false, the API returns an error. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models-aliases.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-trained-model-alias # def put_trained_model_alias(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_trained_model_alias' } - defined_params = %i[model_id model_alias].each_with_object({}) do |variable, set_variables| + defined_params = [:model_id, :model_alias].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -52,7 +70,7 @@ def put_trained_model_alias(arguments = {}) _model_id = arguments.delete(:model_id) method = Elasticsearch::API::HTTP_PUT - path = "_ml/trained_models/#{Utils.__listify(_model_id)}/model_aliases/#{Utils.__listify(_model_alias)}" + path = "_ml/trained_models/#{Utils.listify(_model_id)}/model_aliases/#{Utils.listify(_model_alias)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb index 5fb6155e59..a46852a3eb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb @@ -15,26 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Creates part of a trained model definition + # Create part of a trained model definition. # - # @option arguments [String] :model_id The ID of the trained model for this definition part - # @option arguments [Integer] :part The part number + # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) + # @option arguments [Integer] :part The definition part number. When the definition is loaded for inference the definition parts are streamed in the + # order of their part number. The first part must be +0+ and the final part must be +total_parts - 1+. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The trained model definition part (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-model-definition-part.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-trained-model-definition-part # def put_trained_model_definition_part(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_trained_model_definition_part' } - defined_params = %i[model_id part].each_with_object({}) do |variable, set_variables| + defined_params = [:model_id, :part].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -53,7 +54,7 @@ def put_trained_model_definition_part(arguments = {}) _part = arguments.delete(:part) method = Elasticsearch::API::HTTP_PUT - path = "_ml/trained_models/#{Utils.__listify(_model_id)}/definition/#{Utils.__listify(_part)}" + path = "_ml/trained_models/#{Utils.listify(_model_id)}/definition/#{Utils.listify(_part)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb index f080f5f763..d352b2f7ab 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb @@ -15,20 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Creates a trained model vocabulary + # Create a trained model vocabulary. + # This API is supported only for natural language processing (NLP) models. + # The vocabulary is stored in the index as described in +inference_config.*.vocabulary+ of the trained model definition. # - # @option arguments [String] :model_id The ID of the trained model for this vocabulary + # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The trained model vocabulary (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-model-vocabulary.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-trained-model-vocabulary # def put_trained_model_vocabulary(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_trained_model_vocabulary' } @@ -49,7 +51,7 @@ def put_trained_model_vocabulary(arguments = {}) _model_id = arguments.delete(:model_id) method = Elasticsearch::API::HTTP_PUT - path = "_ml/trained_models/#{Utils.__listify(_model_id)}/vocabulary" + path = "_ml/trained_models/#{Utils.listify(_model_id)}/vocabulary" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb index a5ce0e1b20..b0a5196aed 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb @@ -15,21 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Resets an existing anomaly detection job. + # Reset an anomaly detection job. + # All model state and results are deleted. The job is ready to start over as if + # it had just been created. + # It is not currently possible to reset multiple jobs using wildcards or a + # comma separated list. # - # @option arguments [String] :job_id The ID of the job to reset - # @option arguments [Boolean] :wait_for_completion Should this request wait until the operation has completed before returning - # @option arguments [Boolean] :delete_user_annotations Should annotations added by the user be deleted + # @option arguments [String] :job_id The ID of the job to reset. (*Required*) + # @option arguments [Boolean] :wait_for_completion Should this request wait until the operation has completed before + # returning. Server default: true. + # @option arguments [Boolean] :delete_user_annotations Specifies whether annotations that have been added by the + # user should be deleted along with any auto-generated annotations when the job is + # reset. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-reset-job.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-reset-job # def reset_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.reset_job' } @@ -49,7 +56,7 @@ def reset_job(arguments = {}) _job_id = arguments.delete(:job_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/_reset" + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/_reset" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb index 80f70b212a..8d40a4b9ec 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb @@ -15,27 +15,41 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Reverts to a specific snapshot. + # Revert to a snapshot. + # The machine learning features react quickly to anomalous input, learning new + # behaviors in data. Highly anomalous input increases the variance in the + # models whilst the system learns whether this is a new step-change in behavior + # or a one-off event. In the case where this anomalous input is known to be a + # one-off, then it might be appropriate to reset the model state to a time + # before this event. For example, you might consider reverting to a saved + # snapshot after Black Friday or a critical system failure. # - # @option arguments [String] :job_id The ID of the job to fetch - # @option arguments [String] :snapshot_id The ID of the snapshot to revert to - # @option arguments [Boolean] :delete_intervening_results Should we reset the results back to the time of the snapshot? + # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) + # @option arguments [String] :snapshot_id You can specify +empty+ as the . Reverting to the empty + # snapshot means the anomaly detection job starts learning a new model from + # scratch when it is started. (*Required*) + # @option arguments [Boolean] :delete_intervening_results If true, deletes the results in the time period between the latest + # results and the time of the reverted snapshot. It also resets the model + # to accept records for this time period. If you choose not to delete + # intervening results when reverting a snapshot, the job will not accept + # input data that is older than the current time. If you want to resend + # data, then delete the intervening results. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Reversion options + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-revert-model-snapshot # def revert_model_snapshot(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.revert_model_snapshot' } - defined_params = %i[job_id snapshot_id].each_with_object({}) do |variable, set_variables| + defined_params = [:job_id, :snapshot_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -53,7 +67,7 @@ def revert_model_snapshot(arguments = {}) _snapshot_id = arguments.delete(:snapshot_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/model_snapshots/#{Utils.__listify(_snapshot_id)}/_revert" + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/model_snapshots/#{Utils.listify(_snapshot_id)}/_revert" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb index 08bba48120..af73ac4ab1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb @@ -15,20 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Sets a cluster wide upgrade_mode setting that prepares machine learning indices for an upgrade. + # Set upgrade_mode for ML indices. + # Sets a cluster wide upgrade_mode setting that prepares machine learning + # indices for an upgrade. + # When upgrading your cluster, in some circumstances you must restart your + # nodes and reindex your machine learning indices. In those circumstances, + # there must be no machine learning jobs running. You can close the machine + # learning jobs, do the upgrade, then open all the jobs again. Alternatively, + # you can use this API to temporarily halt tasks associated with the jobs and + # datafeeds and prevent new jobs from opening. You can also use this API + # during upgrades that do not require you to reindex your machine learning + # indices, though stopping jobs is not a requirement in that case. + # You can see the current value for the upgrade_mode setting by using the get + # machine learning info API. # - # @option arguments [Boolean] :enabled Whether to enable upgrade_mode ML setting or not. Defaults to false. - # @option arguments [Time] :timeout Controls the time to wait before action times out. Defaults to 30 seconds + # @option arguments [Boolean] :enabled When +true+, it enables +upgrade_mode+ which temporarily halts all job + # and datafeed tasks and prohibits new job and datafeed tasks from + # starting. + # @option arguments [Time] :timeout The time to wait for the request to be completed. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-set-upgrade-mode.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-set-upgrade-mode # def set_upgrade_mode(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.set_upgrade_mode' } @@ -36,7 +50,7 @@ def set_upgrade_mode(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_POST path = '_ml/set_upgrade_mode' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb index f54893de3d..81de8f3576 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb @@ -15,21 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Starts a data frame analytics job. + # Start a data frame analytics job. + # A data frame analytics job can be started and stopped multiple times + # throughout its lifecycle. + # If the destination index does not exist, it is created automatically the + # first time you start the data frame analytics job. The + # +index.number_of_shards+ and +index.number_of_replicas+ settings for the + # destination index are copied from the source index. If there are multiple + # source indices, the destination index copies the highest setting values. The + # mappings for the destination index are also copied from the source indices. + # If there are any mapping conflicts, the job fails to start. + # If the destination index exists, it is used as is. You can therefore set up + # the destination index in advance with custom settings and mappings. # - # @option arguments [String] :id The ID of the data frame analytics to start - # @option arguments [Time] :timeout Controls the time to wait until the task has started. Defaults to 20 seconds + # @option arguments [String] :id Identifier for the data frame analytics job. This identifier can contain + # lowercase alphanumeric characters (a-z and 0-9), hyphens, and + # underscores. It must start and end with alphanumeric characters. (*Required*) + # @option arguments [Time] :timeout Controls the amount of time to wait until the data frame analytics job + # starts. Server default: 20s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The start data frame analytics parameters # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/start-dfanalytics.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-start-data-frame-analytics # def start_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.start_data_frame_analytics' } @@ -44,12 +57,12 @@ def start_data_frame_analytics(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = nil _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_POST - path = "_ml/data_frame/analytics/#{Utils.__listify(_id)}/_start" + path = "_ml/data_frame/analytics/#{Utils.listify(_id)}/_start" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb index ec6b3957df..da78388d47 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb @@ -15,23 +15,46 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Starts one or more datafeeds. + # Start datafeeds. + # A datafeed must be started in order to retrieve data from Elasticsearch. A datafeed can be started and stopped + # multiple times throughout its lifecycle. + # Before you can start a datafeed, the anomaly detection job must be open. Otherwise, an error occurs. + # If you restart a stopped datafeed, it continues processing input data from the next millisecond after it was stopped. + # If new data was indexed for that exact millisecond between stopping and starting, it will be ignored. + # When Elasticsearch security features are enabled, your datafeed remembers which roles the last user to create or + # update it had at the time of creation or update and runs the query using those same roles. If you provided secondary + # authorization headers when you created or updated the datafeed, those credentials are used instead. # - # @option arguments [String] :datafeed_id The ID of the datafeed to start - # @option arguments [String] :start The start time from where the datafeed should begin - # @option arguments [String] :end The end time when the datafeed should stop. When not set, the datafeed continues in real time - # @option arguments [Time] :timeout Controls the time to wait until a datafeed has started. Default to 20 seconds + # @option arguments [String] :datafeed_id A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase + # alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric + # characters. (*Required*) + # @option arguments [String, Time] :end The time that the datafeed should end, which can be specified by using one of the following formats: + # - ISO 8601 format with milliseconds, for example +2017-01-22T06:00:00.000Z+ + # - ISO 8601 format without milliseconds, for example +2017-01-22T06:00:00+00:00+ + # - Milliseconds since the epoch, for example +1485061200000+ + # Date-time arguments using either of the ISO 8601 formats must have a time zone designator, where +Z+ is accepted + # as an abbreviation for UTC time. When a URL is expected (for example, in browsers), the +++ used in time zone + # designators must be encoded as +%2B+. + # The end time value is exclusive. If you do not specify an end time, the datafeed + # runs continuously. + # @option arguments [String, Time] :start The time that the datafeed should begin, which can be specified by using the same formats as the +end+ parameter. + # This value is inclusive. + # If you do not specify a start time and the datafeed is associated with a new anomaly detection job, the analysis + # starts from the earliest time for which data is available. + # If you restart a stopped datafeed and specify a start value that is earlier than the timestamp of the latest + # processed record, the datafeed continues from 1 millisecond after the timestamp of the latest processed record. + # @option arguments [Time] :timeout Specifies the amount of time to wait until a datafeed starts. Server default: 20s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The start datafeed parameters + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-start-datafeed # def start_datafeed(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.start_datafeed' } @@ -51,7 +74,7 @@ def start_datafeed(arguments = {}) _datafeed_id = arguments.delete(:datafeed_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/datafeeds/#{Utils.__listify(_datafeed_id)}/_start" + path = "_ml/datafeeds/#{Utils.listify(_datafeed_id)}/_start" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb index 9a63f004ab..9c1f0d2553 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb @@ -15,27 +15,42 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions # Start a trained model deployment. + # It allocates the model to every machine learning node. # - # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) - # @option arguments [String] :cache_size A byte-size value for configuring the inference cache size. For example, 20mb. - # @option arguments [String] :deployment_id The Id of the new deployment. Defaults to the model_id if not set. - # @option arguments [Integer] :number_of_allocations The total number of allocations this model is assigned across machine learning nodes. - # @option arguments [Integer] :threads_per_allocation The number of threads used by each model allocation during inference. + # @option arguments [String] :model_id The unique identifier of the trained model. Currently, only PyTorch models are supported. (*Required*) + # @option arguments [Integer, String] :cache_size The inference cache size (in memory outside the JVM heap) per node for the model. + # The default value is the same size as the +model_size_bytes+. To disable the cache, + # +0b+ can be provided. + # @option arguments [String] :deployment_id A unique identifier for the deployment of the model. + # @option arguments [Integer] :number_of_allocations The number of model allocations on each node where the model is deployed. + # All allocations on a node share the same copy of the model in memory but use + # a separate set of threads to evaluate the model. + # Increasing this value generally increases the throughput. + # If this setting is greater than the number of hardware threads + # it will automatically be changed to a value less than the number of hardware threads. + # If adaptive_allocations is enabled, do not set this value, because it’s automatically set. Server default: 1. # @option arguments [String] :priority The deployment priority. - # @option arguments [Integer] :queue_capacity Controls how many inference requests are allowed in the queue at a time. - # @option arguments [Time] :timeout Controls the amount of time to wait for the model to deploy. - # @option arguments [String] :wait_for The allocation status for which to wait (options: starting, started, fully_allocated) + # @option arguments [Integer] :queue_capacity Specifies the number of inference requests that are allowed in the queue. After the number of requests exceeds + # this value, new requests are rejected with a 429 error. Server default: 1024. + # @option arguments [Integer] :threads_per_allocation Sets the number of threads used by each model allocation during inference. This generally increases + # the inference speed. The inference process is a compute-bound process; any number + # greater than the number of available hardware threads on the machine does not increase the + # inference speed. If this setting is greater than the number of hardware threads + # it will automatically be changed to a value less than the number of hardware threads. Server default: 1. + # @option arguments [Time] :timeout Specifies the amount of time to wait for the model to deploy. Server default: 20s. + # @option arguments [String] :wait_for Specifies the allocation status to wait for before returning. Server default: started. # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/start-trained-model-deployment.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-start-trained-model-deployment # def start_trained_model_deployment(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.start_trained_model_deployment' } @@ -50,12 +65,12 @@ def start_trained_model_deployment(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = arguments.delete(:body) _model_id = arguments.delete(:model_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/trained_models/#{Utils.__listify(_model_id)}/deployment/_start" + path = "_ml/trained_models/#{Utils.listify(_model_id)}/deployment/_start" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb index 142085941a..cc4f47ab30 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb @@ -15,23 +15,35 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Stops one or more data frame analytics jobs. + # Stop data frame analytics jobs. + # A data frame analytics job can be started and stopped multiple times + # throughout its lifecycle. # - # @option arguments [String] :id The ID of the data frame analytics to stop - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no data frame analytics. (This includes `_all` string or when no data frame analytics have been specified) - # @option arguments [Boolean] :force True if the data frame analytics should be forcefully stopped - # @option arguments [Time] :timeout Controls the time to wait until the task has stopped. Defaults to 20 seconds + # @option arguments [String] :id Identifier for the data frame analytics job. This identifier can contain + # lowercase alphanumeric characters (a-z and 0-9), hyphens, and + # underscores. It must start and end with alphanumeric characters. (*Required*) + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: + # - Contains wildcard expressions and there are no data frame analytics + # jobs that match. + # - Contains the _all string or no identifiers and there are no matches. + # - Contains wildcard expressions and there are only partial matches. + # The default value is true, which returns an empty data_frame_analytics + # array when there are no matches and the subset of results when there are + # partial matches. If this parameter is false, the request returns a 404 + # status code when there are no matches or only partial matches. Server default: true. + # @option arguments [Boolean] :force If true, the data frame analytics job is stopped forcefully. + # @option arguments [Time] :timeout Controls the amount of time to wait until the data frame analytics job + # stops. Defaults to 20 seconds. Server default: 20s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The stop data frame analytics parameters # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-dfanalytics.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-stop-data-frame-analytics # def stop_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.stop_data_frame_analytics' } @@ -46,12 +58,12 @@ def stop_data_frame_analytics(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = nil _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_POST - path = "_ml/data_frame/analytics/#{Utils.__listify(_id)}/_stop" + path = "_ml/data_frame/analytics/#{Utils.listify(_id)}/_stop" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb index dd7e8f0ad3..7eb8c7b6dd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb @@ -15,24 +15,33 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Stops one or more datafeeds. + # Stop datafeeds. + # A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped + # multiple times throughout its lifecycle. # - # @option arguments [String] :datafeed_id The ID of the datafeed to stop - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) - # @option arguments [Boolean] :allow_no_datafeeds Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) *Deprecated* - # @option arguments [Boolean] :force True if the datafeed should be forcefully stopped. - # @option arguments [Time] :timeout Controls the time to wait until a datafeed has stopped. Default to 20 seconds + # @option arguments [String] :datafeed_id Identifier for the datafeed. You can stop multiple datafeeds in a single API request by using a comma-separated + # list of datafeeds or a wildcard expression. You can close all datafeeds by using +_all+ or by specifying +*+ as + # the identifier. (*Required*) + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: + # - Contains wildcard expressions and there are no datafeeds that match. + # - Contains the +_all+ string or no identifiers and there are no matches. + # - Contains wildcard expressions and there are only partial matches. + # If +true+, the API returns an empty datafeeds array when there are no matches and the subset of results when + # there are partial matches. If +false+, the API returns a 404 status code when there are no matches or only + # partial matches. Server default: true. + # @option arguments [Boolean] :force If +true+, the datafeed is stopped forcefully. + # @option arguments [Time] :timeout Specifies the amount of time to wait until a datafeed stops. Server default: 20s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The URL params optionally sent in the body + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-stop-datafeed # def stop_datafeed(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.stop_datafeed' } @@ -52,7 +61,7 @@ def stop_datafeed(arguments = {}) _datafeed_id = arguments.delete(:datafeed_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/datafeeds/#{Utils.__listify(_datafeed_id)}/_stop" + path = "_ml/datafeeds/#{Utils.listify(_datafeed_id)}/_stop" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb index df59c9fb7a..7b6ee068c4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb @@ -15,8 +15,8 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API @@ -25,12 +25,15 @@ module Actions # Stop a trained model deployment. # # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no deployments. (This includes `_all` string or when no deployments have been specified) - # @option arguments [Boolean] :force True if the deployment should be forcefully stopped + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no deployments that match; + # contains the +_all+ string or no identifiers and there are no matches; or contains wildcard expressions and + # there are only partial matches. By default, it returns an empty array when there are no matches and the subset of results when there are partial matches. + # If +false+, the request returns a 404 status code when there are no matches or only partial matches. Server default: true. + # @option arguments [Boolean] :force Forcefully stops the deployment, even if it is used by ingest pipelines. You can't use these pipelines until you + # restart the model deployment. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The stop deployment parameters # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-trained-model-deployment.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-stop-trained-model-deployment # def stop_trained_model_deployment(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.stop_trained_model_deployment' } @@ -45,12 +48,12 @@ def stop_trained_model_deployment(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = nil _model_id = arguments.delete(:model_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/trained_models/#{Utils.__listify(_model_id)}/deployment/_stop" + path = "_ml/trained_models/#{Utils.listify(_model_id)}/deployment/_stop" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb index fe5c713b46..d5f1181150 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb @@ -15,20 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Updates certain properties of a data frame analytics job. + # Update a data frame analytics job. # - # @option arguments [String] :id The ID of the data frame analytics to update + # @option arguments [String] :id Identifier for the data frame analytics job. This identifier can contain + # lowercase alphanumeric characters (a-z and 0-9), hyphens, and + # underscores. It must start and end with alphanumeric characters. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The data frame analytics settings to update (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-dfanalytics.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-data-frame-analytics # def update_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.update_data_frame_analytics' } @@ -49,7 +51,7 @@ def update_data_frame_analytics(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_POST - path = "_ml/data_frame/analytics/#{Utils.__listify(_id)}/_update" + path = "_ml/data_frame/analytics/#{Utils.listify(_id)}/_update" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb index 34dc4dc9e3..c58e0f0ed0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb @@ -15,24 +15,37 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Updates certain properties of a datafeed. + # Update a datafeed. + # You must stop and start the datafeed for the changes to be applied. + # When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at + # the time of the update and runs the query using those same roles. If you provide secondary authorization headers, + # those credentials are used instead. # - # @option arguments [String] :datafeed_id The ID of the datafeed to update - # @option arguments [Boolean] :ignore_unavailable Ignore unavailable indexes (default: false) - # @option arguments [Boolean] :allow_no_indices Ignore if the source indices expressions resolves to no concrete indices (default: true) - # @option arguments [Boolean] :ignore_throttled Ignore indices that are marked as throttled (default: true) - # @option arguments [String] :expand_wildcards Whether source index expressions should get expanded to open or closed indices (default: open) (options: open, closed, hidden, none, all) + # @option arguments [String] :datafeed_id A numerical character string that uniquely identifies the datafeed. + # This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. + # It must start and end with alphanumeric characters. (*Required*) + # @option arguments [Boolean] :allow_no_indices If +true+, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the + # +_all+ string or when no indices are specified. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. If the request can target data streams, this argument determines + # whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are: + # - +all+: Match any data stream or index, including hidden ones. + # - +closed+: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed. + # - +hidden+: Match hidden data streams and hidden indices. Must be combined with +open+, +closed+, or both. + # - +none+: Wildcard patterns are not accepted. + # - +open+: Match open, non-hidden indices. Also matches any non-hidden data stream. Server default: open. + # @option arguments [Boolean] :ignore_throttled If +true+, concrete, expanded or aliased indices are ignored when frozen. Server default: true. + # @option arguments [Boolean] :ignore_unavailable If +true+, unavailable indices (missing or closed) are ignored. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The datafeed update settings (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-datafeed # def update_datafeed(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.update_datafeed' } @@ -53,7 +66,7 @@ def update_datafeed(arguments = {}) _datafeed_id = arguments.delete(:datafeed_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/datafeeds/#{Utils.__listify(_datafeed_id)}/_update" + path = "_ml/datafeeds/#{Utils.listify(_datafeed_id)}/_update" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb index a540151478..58c248b37d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb @@ -15,20 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Updates the description of a filter, adds items, or removes items. + # Update a filter. + # Updates the description of a filter, adds items, or removes items from the list. # - # @option arguments [String] :filter_id The ID of the filter to update + # @option arguments [String] :filter_id A string that uniquely identifies a filter. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The filter update (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-filter.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-filter # def update_filter(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.update_filter' } @@ -49,7 +50,7 @@ def update_filter(arguments = {}) _filter_id = arguments.delete(:filter_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/filters/#{Utils.__listify(_filter_id)}/_update" + path = "_ml/filters/#{Utils.listify(_filter_id)}/_update" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb index 6ed25d906e..35d9dbb562 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb @@ -15,20 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions + # Update an anomaly detection job. # Updates certain properties of an anomaly detection job. # - # @option arguments [String] :job_id The ID of the job to create + # @option arguments [String] :job_id Identifier for the job. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The job update settings (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-job # def update_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.update_job' } @@ -49,7 +50,7 @@ def update_job(arguments = {}) _job_id = arguments.delete(:job_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/_update" + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/_update" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb index 06c73a0dcc..073aca2f63 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb @@ -15,26 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions + # Update a snapshot. # Updates certain properties of a snapshot. # - # @option arguments [String] :job_id The ID of the job to fetch - # @option arguments [String] :snapshot_id The ID of the snapshot to update + # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) + # @option arguments [String] :snapshot_id Identifier for the model snapshot. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The model snapshot properties to update (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-model-snapshot # def update_model_snapshot(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.update_model_snapshot' } - defined_params = %i[job_id snapshot_id].each_with_object({}) do |variable, set_variables| + defined_params = [:job_id, :snapshot_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -53,7 +54,7 @@ def update_model_snapshot(arguments = {}) _snapshot_id = arguments.delete(:snapshot_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/model_snapshots/#{Utils.__listify(_snapshot_id)}/_update" + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/model_snapshots/#{Utils.listify(_snapshot_id)}/_update" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb index 64c623c328..6bf9f043cd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb @@ -15,21 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Updates certain properties of trained model deployment. + # Update a trained model deployment. # - # @option arguments [String] :model_id The unique identifier of the trained model. - # @option arguments [Integer] :number_of_allocations Update the model deployment to this number of allocations. + # @option arguments [String] :model_id The unique identifier of the trained model. Currently, only PyTorch models are supported. (*Required*) + # @option arguments [Integer] :number_of_allocations The number of model allocations on each node where the model is deployed. + # All allocations on a node share the same copy of the model in memory but use + # a separate set of threads to evaluate the model. + # Increasing this value generally increases the throughput. + # If this setting is greater than the number of hardware threads + # it will automatically be changed to a value less than the number of hardware threads. Server default: 1. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The updated trained model deployment settings + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-trained-model-deployment.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-trained-model-deployment # def update_trained_model_deployment(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.update_trained_model_deployment' } @@ -49,7 +54,7 @@ def update_trained_model_deployment(arguments = {}) _model_id = arguments.delete(:model_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/trained_models/#{Utils.__listify(_model_id)}/deployment/_update" + path = "_ml/trained_models/#{Utils.listify(_model_id)}/deployment/_update" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb index 7d21a2afd3..e090cea1b7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb @@ -15,27 +15,37 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module MachineLearning module Actions - # Upgrades a given job snapshot to the current major version. + # Upgrade a snapshot. + # Upgrade an anomaly detection model snapshot to the latest major version. + # Over time, older snapshot formats are deprecated and removed. Anomaly + # detection jobs support only snapshots that are from the current or previous + # major version. + # This API provides a means to upgrade a snapshot to the current major version. + # This aids in preparing the cluster for an upgrade to the next major version. + # Only one snapshot per anomaly detection job can be upgraded at a time and the + # upgraded snapshot cannot be the current snapshot of the anomaly detection + # job. # - # @option arguments [String] :job_id The ID of the job - # @option arguments [String] :snapshot_id The ID of the snapshot - # @option arguments [Time] :timeout How long should the API wait for the job to be opened and the old snapshot to be loaded. - # @option arguments [Boolean] :wait_for_completion Should the request wait until the task is complete before responding to the caller. Default is false. + # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) + # @option arguments [String] :snapshot_id A numerical character string that uniquely identifies the model snapshot. (*Required*) + # @option arguments [Boolean] :wait_for_completion When true, the API won’t respond until the upgrade is complete. + # Otherwise, it responds as soon as the upgrade task is assigned to a node. + # @option arguments [Time] :timeout Controls the time to wait for the request to complete. Server default: 30m. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-upgrade-job-model-snapshot.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-upgrade-job-snapshot # def upgrade_job_snapshot(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.upgrade_job_snapshot' } - defined_params = %i[job_id snapshot_id].each_with_object({}) do |variable, set_variables| + defined_params = [:job_id, :snapshot_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -53,7 +63,7 @@ def upgrade_job_snapshot(arguments = {}) _snapshot_id = arguments.delete(:snapshot_id) method = Elasticsearch::API::HTTP_POST - path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}/model_snapshots/#{Utils.__listify(_snapshot_id)}/_upgrade" + path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/model_snapshots/#{Utils.listify(_snapshot_id)}/_upgrade" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb b/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb index ada183568f..b6865c69ce 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb @@ -15,28 +15,44 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Allows to get multiple documents in one request. + # Get multiple documents. + # Get multiple JSON documents by ID from one or more indices. + # If you specify an index in the request URI, you only need to specify the document IDs in the request body. + # To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + # **Filter source fields** + # By default, the +_source+ field is returned for every document (if stored). + # Use the +_source+ and +_source_include+ or +source_exclude+ attributes to filter what fields are returned for a particular document. + # You can include the +_source+, +_source_includes+, and +_source_excludes+ query parameters in the request URI to specify the defaults to use when there are no per-document instructions. + # **Get stored fields** + # Use the +stored_fields+ attribute to specify the set of stored fields you want to retrieve. + # Any requested fields that are not stored are ignored. + # You can include the +stored_fields+ query parameter in the request URI to specify the defaults to use when there are no per-document instructions. # - # @option arguments [String] :index The name of the index - # @option arguments [Boolean] :force_synthetic_source Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index. - # @option arguments [List] :stored_fields A comma-separated list of stored fields to return in the response - # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random) - # @option arguments [Boolean] :realtime Specify whether to perform the operation in realtime or search mode - # @option arguments [Boolean] :refresh Refresh the shard containing the document before performing the operation - # @option arguments [String] :routing Specific routing value - # @option arguments [List] :_source True or false to return the _source field or not, or a list of fields to return - # @option arguments [List] :_source_excludes A list of fields to exclude from the returned _source field - # @option arguments [List] :_source_includes A list of fields to extract and return from the _source field + # @option arguments [String] :index Name of the index to retrieve documents from when +ids+ are specified, or when a document in the +docs+ array does not specify an index. + # @option arguments [Boolean] :force_synthetic_source Should this request force synthetic _source? + # Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. + # Fetches with this enabled will be slower the enabling synthetic source natively in the index. + # @option arguments [String] :preference Specifies the node or shard the operation should be performed on. Random by default. + # @option arguments [Boolean] :realtime If +true+, the request is real-time as opposed to near-real-time. Server default: true. + # @option arguments [Boolean] :refresh If +true+, the request refreshes relevant shards before retrieving documents. + # @option arguments [String] :routing Custom value used to route operations to a specific shard. + # @option arguments [Boolean, String, Array] :_source True or false to return the +_source+ field or not, or a list of fields to return. + # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude from the response. + # You can also use this parameter to exclude fields from the subset specified in +_source_includes+ query parameter. + # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. + # If this parameter is specified, only these source fields are returned. You can exclude fields from this subset using the +_source_excludes+ query parameter. + # If the +_source+ parameter is +false+, this parameter is ignored. + # @option arguments [String, Array] :stored_fields If +true+, retrieves the document fields stored in the index rather than the document +_source+. Server default: false. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Document identifiers; can be either `docs` (containing full document information) or `ids` (when index is provided in the URL. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-get.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-mget # def mget(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'mget' } @@ -51,13 +67,13 @@ def mget(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = if _index - "#{Utils.__listify(_index)}/_mget" + "#{Utils.listify(_index)}/_mget" else '_mget' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb b/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb index 561bfa4c0d..502fe77d83 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb @@ -15,19 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Migration module Actions - # Retrieves information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version. + # Get deprecation information. + # Get information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version. + # TIP: This APIs is designed for indirect use by the Upgrade Assistant. + # You are strongly recommended to use the Upgrade Assistant. # - # @option arguments [String] :index Index pattern + # @option arguments [String] :index Comma-separate list of data streams or indices to check. Wildcard (*) expressions are supported. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-migration-deprecations # def deprecations(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'migration.deprecations' } @@ -40,13 +43,13 @@ def deprecations(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = if _index - "#{Utils.__listify(_index)}/_migration/deprecations" + "#{Utils.listify(_index)}/_migration/deprecations" else '_migration/deprecations' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb index b5263b949f..4bd87a3f10 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb @@ -15,18 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Migration module Actions - # Find out whether system features need to be upgraded or not + # Get feature migration information. + # Version upgrades sometimes require changes to how features store configuration information and data in system indices. + # Check which features need to be migrated and the status of any migrations that are in progress. + # TIP: This API is designed for indirect use by the Upgrade Assistant. + # You are strongly recommended to use the Upgrade Assistant. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-feature-upgrade.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-migration-get-feature-upgrade-status # def get_feature_upgrade_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'migration.get_feature_upgrade_status' } @@ -34,7 +38,7 @@ def get_feature_upgrade_status(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_migration/system_features' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb b/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb index 64f31d63d6..37634b7a08 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb @@ -15,18 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Migration module Actions - # Begin upgrades for system features + # Start the feature migration. + # Version upgrades sometimes require changes to how features store configuration information and data in system indices. + # This API starts the automatic migration process. + # Some functionality might be temporarily unavailable during the migration process. + # TIP: The API is designed for indirect use by the Upgrade Assistant. We strongly recommend you use the Upgrade Assistant. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-feature-upgrade.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-migration-get-feature-upgrade-status # def post_feature_upgrade(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'migration.post_feature_upgrade' } @@ -34,7 +38,7 @@ def post_feature_upgrade(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_POST path = '_migration/system_features' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb index 4b326a03fc..90ffdb5f89 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb @@ -15,26 +15,50 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Allows to execute several search operations in one request. + # Run multiple searches. + # The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + # The structure is as follows: + # + + # header\n + # body\n + # header\n + # body\n + # + + # This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + # IMPORTANT: The final line of data must end with a newline character +\n+. + # Each newline character may be preceded by a carriage return +\r+. + # When sending requests to this endpoint the +Content-Type+ header should be set to +application/x-ndjson+. # - # @option arguments [List] :index A comma-separated list of index names to use as default - # @option arguments [String] :search_type Search operation type (options: query_then_fetch, dfs_query_then_fetch) - # @option arguments [Number] :max_concurrent_searches Controls the maximum number of concurrent searches the multi search api will execute - # @option arguments [Boolean] :typed_keys Specify whether aggregation and suggester names should be prefixed by their respective types in the response - # @option arguments [Number] :pre_filter_shard_size A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint. - # @option arguments [Number] :max_concurrent_shard_requests The number of concurrent shard requests each sub search executes concurrently per node. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests - # @option arguments [Boolean] :rest_total_hits_as_int Indicates whether hits.total should be rendered as an integer or an object in the rest search response - # @option arguments [Boolean] :ccs_minimize_roundtrips Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and index aliases to search. + # @option arguments [Boolean] :allow_no_indices If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + # @option arguments [Boolean] :ccs_minimize_roundtrips If true, network roundtrips between the coordinating node and remote clusters are minimized for cross-cluster search requests. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard expressions can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # @option arguments [Boolean] :ignore_throttled If true, concrete, expanded or aliased indices are ignored when frozen. + # @option arguments [Boolean] :ignore_unavailable If true, missing or closed indices are not included in the response. + # @option arguments [Boolean] :include_named_queries_score Indicates whether hit.matched_queries should be rendered as a map that includes + # the name of the matched query associated with its score (true) + # or as an array containing the name of the matched queries (false) + # This functionality reruns each named query on every hit in a search response. + # Typically, this adds a small overhead to a request. + # However, using computationally expensive named queries on a large number of hits may add significant overhead. + # @option arguments [Integer] :max_concurrent_searches Maximum number of concurrent searches the multi search API can execute. + # Defaults to +max(1, (# of data nodes * min(search thread pool size, 10)))+. + # @option arguments [Integer] :max_concurrent_shard_requests Maximum number of concurrent shard requests that each sub-search request executes per node. Server default: 5. + # @option arguments [Integer] :pre_filter_shard_size Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method i.e., if date filters are mandatory to match but the shard bounds and the query are disjoint. + # @option arguments [Boolean] :rest_total_hits_as_int If true, hits.total are returned as an integer in the response. Defaults to false, which returns an object. + # @option arguments [String] :routing Custom routing value used to route search operations to a specific shard. + # @option arguments [String] :search_type Indicates whether global term and document frequencies should be used when scoring returned documents. + # @option arguments [Boolean] :typed_keys Specifies whether aggregation and suggester names should be prefixed by their respective types in the response. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The request definitions (metadata-search request definition pairs), separated by newlines (*Required*) + # @option arguments [Hash] :body searches # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-msearch # def msearch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'msearch' } @@ -49,19 +73,19 @@ def msearch(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = if _index - "#{Utils.__listify(_index)}/_msearch" + "#{Utils.listify(_index)}/_msearch" else '_msearch' end params = Utils.process_params(arguments) - if body.is_a?(Array) && body.any? { |d| d.has_key? :search } + if body.is_a?(Array) && body.any? { |d| d.key? :search } payload = body.each_with_object([]) do |item, sum| meta = item data = meta.delete(:search) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb index 9f8c741f39..4836f0fd09 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb @@ -15,24 +15,38 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Allows to execute several search template operations in one request. + # Run multiple templated searches. + # Run multiple templated searches with a single request. + # If you are providing a text file or text input to +curl+, use the +--data-binary+ flag instead of +-d+ to preserve newlines. + # For example: + # + + # $ cat requests + # { "index": "my-index" } + # { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} + # { "index": "my-other-index" } + # { "id": "my-other-search-template", "params": { "query_type": "match_all" }} + # $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo + # + # - # @option arguments [List] :index A comma-separated list of index names to use as default - # @option arguments [String] :search_type Search operation type (options: query_then_fetch, dfs_query_then_fetch) - # @option arguments [Boolean] :typed_keys Specify whether aggregation and suggester names should be prefixed by their respective types in the response - # @option arguments [Number] :max_concurrent_searches Controls the maximum number of concurrent searches the multi search api will execute - # @option arguments [Boolean] :rest_total_hits_as_int Indicates whether hits.total should be rendered as an integer or an object in the rest search response - # @option arguments [Boolean] :ccs_minimize_roundtrips Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution + # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to search. + # It supports wildcards (+*+). + # To search all data streams and indices, omit this parameter or use +*+. + # @option arguments [Boolean] :ccs_minimize_roundtrips If +true+, network round-trips are minimized for cross-cluster search requests. Server default: true. + # @option arguments [Integer] :max_concurrent_searches The maximum number of concurrent searches the API can run. + # @option arguments [String] :search_type The type of the search operation. + # @option arguments [Boolean] :rest_total_hits_as_int If +true+, the response returns +hits.total+ as an integer. + # If +false+, it returns +hits.total+ as an object. + # @option arguments [Boolean] :typed_keys If +true+, the response prefixes aggregation and suggester names with their respective types. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The request definitions (metadata-search request definition pairs), separated by newlines (*Required*) + # @option arguments [Hash] :body search_templates # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-msearch-template # def msearch_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'msearch_template' } @@ -47,13 +61,13 @@ def msearch_template(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = if _index - "#{Utils.__listify(_index)}/_msearch/template" + "#{Utils.listify(_index)}/_msearch/template" else '_msearch/template' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb b/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb index 2621ff9d51..81e5c1fa3a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb @@ -15,31 +15,41 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns multiple termvectors in one request. + # Get multiple term vectors. + # Get multiple term vectors with a single request. + # You can specify existing documents by index and ID or provide artificial documents in the body of the request. + # You can specify the index in the request body or request URI. + # The response contains a +docs+ array with all the fetched termvectors. + # Each element has the structure provided by the termvectors API. + # **Artificial documents** + # You can also use +mtermvectors+ to generate term vectors for artificial documents provided in the body of the request. + # The mapping used is determined by the specified +_index+. # - # @option arguments [String] :index The index in which the document resides. - # @option arguments [List] :ids A comma-separated list of documents ids. You must define ids as parameter or set "ids" or "docs" in the request body - # @option arguments [Boolean] :term_statistics Specifies if total term frequency and document frequency should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". - # @option arguments [Boolean] :field_statistics Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". - # @option arguments [List] :fields A comma-separated list of fields to return. Applies to all returned documents unless otherwise specified in body "params" or "docs". - # @option arguments [Boolean] :offsets Specifies if term offsets should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". - # @option arguments [Boolean] :positions Specifies if term positions should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". - # @option arguments [Boolean] :payloads Specifies if term payloads should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". - # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random) .Applies to all returned documents unless otherwise specified in body "params" or "docs". - # @option arguments [String] :routing Specific routing value. Applies to all returned documents unless otherwise specified in body "params" or "docs". - # @option arguments [Boolean] :realtime Specifies if requests are real-time as opposed to near-real-time (default: true). - # @option arguments [Number] :version Explicit version number for concurrency control - # @option arguments [String] :version_type Specific version type (options: internal, external, external_gte) + # @option arguments [String] :index The name of the index that contains the documents. + # @option arguments [Array] :ids A comma-separated list of documents ids. You must define ids as parameter or set "ids" or "docs" in the request body + # @option arguments [String, Array] :fields A comma-separated list or wildcard expressions of fields to include in the statistics. + # It is used as the default list unless a specific field list is provided in the +completion_fields+ or +fielddata_fields+ parameters. + # @option arguments [Boolean] :field_statistics If +true+, the response includes the document count, sum of document frequencies, and sum of total term frequencies. Server default: true. + # @option arguments [Boolean] :offsets If +true+, the response includes term offsets. Server default: true. + # @option arguments [Boolean] :payloads If +true+, the response includes term payloads. Server default: true. + # @option arguments [Boolean] :positions If +true+, the response includes term positions. Server default: true. + # @option arguments [String] :preference The node or shard the operation should be performed on. + # It is random by default. + # @option arguments [Boolean] :realtime If true, the request is real-time as opposed to near-real-time. Server default: true. + # @option arguments [String] :routing A custom value used to route operations to a specific shard. + # @option arguments [Boolean] :term_statistics If true, the response includes term frequency and document frequency. + # @option arguments [Integer] :version If +true+, returns the document version as part of a hit. + # @option arguments [String] :version_type The version type. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-multi-termvectors.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-mtermvectors # def mtermvectors(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'mtermvectors' } @@ -52,11 +62,7 @@ def mtermvectors(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = if (ids = arguments.delete(:ids)) - { ids: ids } - else - arguments.delete(:body) - end + body = arguments.delete(:body) _index = arguments.delete(:index) @@ -66,11 +72,11 @@ def mtermvectors(arguments = {}) Elasticsearch::API::HTTP_GET end - path = if _index - "#{Utils.__listify(_index)}/_mtermvectors" - else - '_mtermvectors' - end + path = if _index + "#{Utils.listify(_index)}/_mtermvectors" + else + '_mtermvectors' + end params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb index 9d26816ac4..d758a701b9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb @@ -15,35 +15,40 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Nodes module Actions - # Removes the archived repositories metering information present in the cluster. + # Clear the archived repositories metering. + # Clear the archived repositories metering information in the cluster. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [List] :node_id Comma-separated list of node IDs or names used to limit returned information. - # @option arguments [Long] :max_archive_version Specifies the maximum archive_version to be cleared from the archive. + # @option arguments [String, Array] :node_id Comma-separated list of node IDs or names used to limit returned information. (*Required*) + # @option arguments [Integer] :max_archive_version Specifies the maximum +archive_version+ to be cleared from the archive. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-repositories-metering-archive-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-clear-repositories-metering-archive # def clear_repositories_metering_archive(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'nodes.clear_repositories_metering_archive' } - defined_params = %i[node_id max_archive_version].each_with_object({}) do |variable, set_variables| + defined_params = [:node_id, :max_archive_version].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? raise ArgumentError, "Required argument 'node_id' missing" unless arguments[:node_id] - raise ArgumentError, "Required argument 'max_archive_version' missing" unless arguments[:max_archive_version] + + unless arguments[:max_archive_version] + raise ArgumentError, + "Required argument 'max_archive_version' missing" + end arguments = arguments.clone headers = arguments.delete(:headers) || {} @@ -55,7 +60,7 @@ def clear_repositories_metering_archive(arguments = {}) _max_archive_version = arguments.delete(:max_archive_version) method = Elasticsearch::API::HTTP_DELETE - path = "_nodes/#{Utils.__listify(_node_id)}/_repositories_metering/#{Utils.__listify(_max_archive_version)}" + path = "_nodes/#{Utils.listify(_node_id)}/_repositories_metering/#{Utils.listify(_max_archive_version)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb index 9afe42fab4..9a8013c08e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb @@ -15,23 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Nodes module Actions - # Returns cluster repositories metering information. + # Get cluster repositories metering. + # Get repositories metering information for a cluster. + # This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. + # Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information. + # @option arguments [String, Array] :node_id Comma-separated list of node IDs or names used to limit returned information. + # All the nodes selective options are explained {https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster.html#cluster-nodes here}. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-repositories-metering-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-get-repositories-metering-info # def get_repositories_metering_info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'nodes.get_repositories_metering_info' } @@ -51,7 +55,7 @@ def get_repositories_metering_info(arguments = {}) _node_id = arguments.delete(:node_id) method = Elasticsearch::API::HTTP_GET - path = "_nodes/#{Utils.__listify(_node_id)}/_repositories_metering" + path = "_nodes/#{Utils.listify(_node_id)}/_repositories_metering" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb index 20465247db..0ed3333369 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb @@ -15,26 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Nodes module Actions - # Returns information about hot threads on each node in the cluster. + # Get the hot threads for nodes. + # Get a breakdown of the hot threads on each selected node in the cluster. + # The output is plain text with a breakdown of the top hot threads for each node. # - # @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - # @option arguments [Time] :interval The interval for the second sampling of threads - # @option arguments [Number] :snapshots Number of samples of thread stacktrace (default: 10) - # @option arguments [Number] :threads Specify the number of threads to provide information for (default: 3) - # @option arguments [Boolean] :ignore_idle_threads Don't show threads that are in known-idle places, such as waiting on a socket select or pulling from an empty task queue (default: true) - # @option arguments [String] :type The type to sample (default: cpu) (options: cpu, wait, block, mem) - # @option arguments [String] :sort The sort order for 'cpu' type (default: total) (options: cpu, total) - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String, Array] :node_id List of node IDs or names used to limit returned information. + # @option arguments [Boolean] :ignore_idle_threads If true, known idle threads (e.g. waiting in a socket select, or to get + # a task from an empty queue) are filtered out. Server default: true. + # @option arguments [Time] :interval The interval to do the second sampling of threads. Server default: 500ms. + # @option arguments [Integer] :snapshots Number of samples of thread stacktrace. Server default: 10. + # @option arguments [Integer] :threads Specifies the number of hot threads to provide information for. Server default: 3. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received + # before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [String] :type The type to sample. Server default: cpu. + # @option arguments [String] :sort The sort order for 'cpu' type (default: total) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-hot-threads # def hot_threads(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'nodes.hot_threads' } @@ -53,7 +57,7 @@ def hot_threads(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _node_id - "_nodes/#{Utils.__listify(_node_id)}/hot_threads" + "_nodes/#{Utils.listify(_node_id)}/hot_threads" else '_nodes/hot_threads' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb index 0fb3986309..f2cc88d020 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb @@ -15,27 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Nodes module Actions - # Returns information about nodes in the cluster. + # Get node information. + # By default, the API returns all attributes and core settings for cluster nodes. # - # @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - # @option arguments [List] :metric A comma-separated list of metrics you wish returned. Use `_all` to retrieve all metrics and `_none` to retrieve the node identity without any additional metrics. (options: settings, os, process, jvm, thread_pool, transport, http, plugins, ingest, indices, aggregations, _all, _none) - # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false) - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String, Array] :node_id Comma-separated list of node IDs or names used to limit returned information. + # @option arguments [String, Array] :metric Limits the information returned to the specific metrics. Supports a comma-separated list, such as http,ingest. + # @option arguments [Boolean] :flat_settings If true, returns settings in flat format. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-info.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-info # def info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'nodes.info' } - defined_params = %i[node_id metric].each_with_object({}) do |variable, set_variables| + defined_params = [:node_id, :metric].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -51,11 +52,11 @@ def info(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _node_id && _metric - "_nodes/#{Utils.__listify(_node_id)}/#{Utils.__listify(_metric)}" + "_nodes/#{Utils.listify(_node_id)}/#{Utils.listify(_metric)}" elsif _node_id - "_nodes/#{Utils.__listify(_node_id)}" + "_nodes/#{Utils.listify(_node_id)}" elsif _metric - "_nodes/#{Utils.__listify(_metric)}" + "_nodes/#{Utils.listify(_metric)}" else '_nodes' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb index 8c7ed792db..d6e8a070ae 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb @@ -15,21 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Nodes module Actions - # Reloads secure settings. + # Reload the keystore on nodes in the cluster. + # Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. + # That is, you can change them on disk and reload them without restarting any nodes in the cluster. + # When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node. + # When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. + # Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. + # Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. # - # @option arguments [List] :node_id A comma-separated list of node IDs to span the reload/reinit call. Should stay empty because reloading usually involves all cluster nodes. - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String, Array] :node_id The names of particular nodes in the cluster to target. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body An object containing the password for the elasticsearch keystore + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/secure-settings.html#reloadable-secure-settings + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-reload-secure-settings # def reload_secure_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'nodes.reload_secure_settings' } @@ -48,7 +55,7 @@ def reload_secure_settings(arguments = {}) method = Elasticsearch::API::HTTP_POST path = if _node_id - "_nodes/#{Utils.__listify(_node_id)}/reload_secure_settings" + "_nodes/#{Utils.listify(_node_id)}/reload_secure_settings" else '_nodes/reload_secure_settings' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb index 318d8c217c..f35f9e9b23 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb @@ -15,35 +15,37 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Nodes module Actions - # Returns statistical information about nodes in the cluster. + # Get node statistics. + # Get statistics for nodes in a cluster. + # By default, all stats are returned. You can limit the returned information by using metrics. # - # @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - # @option arguments [List] :metric Limit the information returned to the specified metrics (options: _all, breaker, fs, http, indices, jvm, os, process, thread_pool, transport, discovery, indexing_pressure) - # @option arguments [List] :index_metric Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. (options: _all, completion, docs, fielddata, query_cache, flush, get, indexing, merge, request_cache, refresh, search, segments, store, warmer, bulk, shard_stats) - # @option arguments [List] :completion_fields A comma-separated list of fields for the `completion` index metric (supports wildcards) - # @option arguments [List] :fielddata_fields A comma-separated list of fields for the `fielddata` index metric (supports wildcards) - # @option arguments [List] :fields A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards) - # @option arguments [Boolean] :groups A comma-separated list of search groups for `search` index metric - # @option arguments [String] :level Return indices stats aggregated at index, node or shard level (options: indices, node, shards) - # @option arguments [List] :types A comma-separated list of document types for the `indexing` index metric - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Boolean] :include_segment_file_sizes Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested) - # @option arguments [Boolean] :include_unloaded_segments If set to true segment stats will include stats for segments that are not currently loaded into memory + # @option arguments [String, Array] :node_id Comma-separated list of node IDs or names used to limit returned information. + # @option arguments [String, Array] :metric Limit the information returned to the specified metrics + # @option arguments [String, Array] :index_metric Limit the information returned for indices metric to the specific index metrics. It can be used only if indices (or all) metric is specified. + # @option arguments [String, Array] :completion_fields Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics. + # @option arguments [String, Array] :fielddata_fields Comma-separated list or wildcard expressions of fields to include in fielddata statistics. + # @option arguments [String, Array] :fields Comma-separated list or wildcard expressions of fields to include in the statistics. + # @option arguments [Boolean] :groups Comma-separated list of search groups to include in the search statistics. + # @option arguments [Boolean] :include_segment_file_sizes If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested). + # @option arguments [String] :level Indicates whether statistics are aggregated at the cluster, index, or shard level. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Array] :types A comma-separated list of document types for the indexing index metric. + # @option arguments [Boolean] :include_unloaded_segments If +true+, the response includes information from segments that are not loaded into memory. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-stats # def stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'nodes.stats' } - defined_params = %i[node_id metric index_metric].each_with_object({}) do |variable, set_variables| + defined_params = [:node_id, :metric, :index_metric].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -61,15 +63,15 @@ def stats(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _node_id && _metric && _index_metric - "_nodes/#{Utils.__listify(_node_id)}/stats/#{Utils.__listify(_metric)}/#{Utils.__listify(_index_metric)}" + "_nodes/#{Utils.listify(_node_id)}/stats/#{Utils.listify(_metric)}/#{Utils.listify(_index_metric)}" elsif _metric && _index_metric - "_nodes/stats/#{Utils.__listify(_metric)}/#{Utils.__listify(_index_metric)}" + "_nodes/stats/#{Utils.listify(_metric)}/#{Utils.listify(_index_metric)}" elsif _node_id && _metric - "_nodes/#{Utils.__listify(_node_id)}/stats/#{Utils.__listify(_metric)}" + "_nodes/#{Utils.listify(_node_id)}/stats/#{Utils.listify(_metric)}" elsif _node_id - "_nodes/#{Utils.__listify(_node_id)}/stats" + "_nodes/#{Utils.listify(_node_id)}/stats" elsif _metric - "_nodes/stats/#{Utils.__listify(_metric)}" + "_nodes/stats/#{Utils.listify(_metric)}" else '_nodes/stats' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb index 9d5150ab6c..a861f6ffb8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb @@ -15,26 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Nodes module Actions - # Returns low-level information about REST actions usage on nodes. + # Get feature usage information. # - # @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - # @option arguments [List] :metric Limit the information returned to the specified metrics (options: _all, rest_actions) - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String, Array] :node_id A comma-separated list of node IDs or names to limit the returned information; use +_local+ to return information from the node you're connecting to, leave empty to get information from all nodes + # @option arguments [String, Array] :metric Limits the information returned to the specific metrics. + # A comma-separated list of the following options: +_all+, +rest_actions+. + # @option arguments [Time] :timeout Period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-usage.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-usage # def usage(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'nodes.usage' } - defined_params = %i[node_id metric].each_with_object({}) do |variable, set_variables| + defined_params = [:node_id, :metric].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -50,11 +52,11 @@ def usage(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _node_id && _metric - "_nodes/#{Utils.__listify(_node_id)}/usage/#{Utils.__listify(_metric)}" + "_nodes/#{Utils.listify(_node_id)}/usage/#{Utils.listify(_metric)}" elsif _node_id - "_nodes/#{Utils.__listify(_node_id)}/usage" + "_nodes/#{Utils.listify(_node_id)}/usage" elsif _metric - "_nodes/usage/#{Utils.__listify(_metric)}" + "_nodes/usage/#{Utils.listify(_metric)}" else '_nodes/usage' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb b/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb index 79bda5d140..0d17fbf62c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb @@ -15,25 +15,56 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Open a point in time that can be used in subsequent searches + # Open a point in time. + # A search request by default runs against the most recent visible data of the target indices, + # which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + # state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + # search requests using the same point in time. For example, if refreshes happen between + # +search_after+ requests, then the results of those requests might not be consistent as changes happening + # between searches are only visible to the more recent point in time. + # A point in time must be opened explicitly before being used in search requests. + # A subsequent search request with the +pit+ parameter must not specify +index+, +routing+, or +preference+ values as these parameters are copied from the point in time. + # Just like regular searches, you can use +from+ and +size+ to page through point in time search results, up to the first 10,000 hits. + # If you want to retrieve more hits, use PIT with +search_after+. + # IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + # When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a +NoShardAvailableActionException+ exception. + # To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + # **Keeping point in time alive** + # The +keep_alive+ parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + # The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + # Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + # Once the smaller segments are no longer needed they are deleted. + # However, open point-in-times prevent the old segments from being deleted since they are still in use. + # TIP: Keeping older segments alive means that more disk space and file handles are needed. + # Ensure that you have configured your nodes to have ample free file handles. + # Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + # Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + # Note that a point-in-time doesn't prevent its associated indices from being deleted. + # You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. # - # @option arguments [List] :index A comma-separated list of index names to open point in time; use `_all` or empty string to perform the operation on all indices - # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random) - # @option arguments [String] :routing Specific routing value - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [String] :keep_alive Specific the time to live for the point in time (*Required*) - # @option arguments [Boolean] :allow_partial_search_results Specify whether to tolerate shards missing when creating the point-in-time, or otherwise throw an exception. (default: false) + # @option arguments [String, Array] :index A comma-separated list of index names to open point in time; use +_all+ or empty string to perform the operation on all indices (*Required*) + # @option arguments [Time] :keep_alive Extend the length of time that the point in time persists. (*Required*) + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [String] :preference The node or shard the operation should be performed on. + # By default, it is random. + # @option arguments [String] :routing A custom value that is used to route operations to a specific shard. + # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # It supports comma-separated values, such as +open,hidden+. Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :allow_partial_search_results Indicates whether the point in time tolerates unavailable shards or shard failures when initially creating the PIT. + # If +false+, creating a point in time request when a shard is missing or unavailable will throw an exception. + # If +true+, the point in time will contain all the shards that are available at the time of the request. + # @option arguments [Integer] :max_concurrent_shard_requests Maximum number of concurrent shard requests that each sub-search request executes per node. Server default: 5. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body An index_filter specified with the Query DSL + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/point-in-time-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-open-point-in-time # def open_point_in_time(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'open_point_in_time' } @@ -48,12 +79,12 @@ def open_point_in_time(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_pit" + path = "#{Utils.listify(_index)}/_pit" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb index 7f8dd0bbf8..92943dd314 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb @@ -15,17 +15,18 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns whether the cluster is running. + # Ping the cluster. + # Get information about whether the cluster is running. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-cluster # def ping(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ping' } @@ -33,7 +34,7 @@ def ping(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_HEAD path = '' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb b/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb index b720d74044..3655707178 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb @@ -15,27 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Creates or updates a script. + # Create or update a script or search template. + # Creates or updates a stored script or search template. # - # @option arguments [String] :id Script ID - # @option arguments [String] :context Script context - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [String] :id The identifier for the stored script or search template. + # It must be unique within the cluster. (*Required*) + # @option arguments [String] :context The context in which the script or search template should run. + # To prevent errors, the API immediately compiles the script or template in this context. + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. + # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. + # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The document (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-put-script # def put_script(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'put_script' } - defined_params = %i[id context].each_with_object({}) do |variable, set_variables| + defined_params = [:id, :context].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -54,9 +61,9 @@ def put_script(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = if _id && _context - "_scripts/#{Utils.__listify(_id)}/#{Utils.__listify(_context)}" + "_scripts/#{Utils.listify(_id)}/#{Utils.listify(_context)}" else - "_scripts/#{Utils.__listify(_id)}" + "_scripts/#{Utils.listify(_id)}" end params = Utils.process_params(arguments) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb index a7f69d8916..d17dc6717d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb @@ -15,25 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module QueryRules module Actions - # Deletes an individual query rule within a ruleset. + # Delete a query rule. + # Delete a query rule within a query ruleset. + # This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. # - # @option arguments [String] :ruleset_id The unique identifier of the query ruleset this rule exists in - # @option arguments [String] :rule_id The unique identifier of the rule to delete. + # @option arguments [String] :ruleset_id The unique identifier of the query ruleset containing the rule to delete (*Required*) + # @option arguments [String] :rule_id The unique identifier of the query rule within the specified ruleset to delete (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-query-rule.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-delete-rule # def delete_rule(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'query_rules.delete_rule' } - defined_params = %i[ruleset_id rule_id].each_with_object({}) do |variable, set_variables| + defined_params = [:ruleset_id, :rule_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -51,7 +53,7 @@ def delete_rule(arguments = {}) _rule_id = arguments.delete(:rule_id) method = Elasticsearch::API::HTTP_DELETE - path = "_query_rules/#{Utils.__listify(_ruleset_id)}/_rule/#{Utils.__listify(_rule_id)}" + path = "_query_rules/#{Utils.listify(_ruleset_id)}/_rule/#{Utils.listify(_rule_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb index f6739b40b6..3e0083b970 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb @@ -15,19 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module QueryRules module Actions - # Deletes a query ruleset. + # Delete a query ruleset. + # Remove a query ruleset and its associated data. + # This is a destructive action that is not recoverable. # - # @option arguments [String] :ruleset_id The unique identifier of the query ruleset to delete + # @option arguments [String] :ruleset_id The unique identifier of the query ruleset to delete (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-query-ruleset.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-delete-ruleset # def delete_ruleset(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'query_rules.delete_ruleset' } @@ -47,20 +49,12 @@ def delete_ruleset(arguments = {}) _ruleset_id = arguments.delete(:ruleset_id) method = Elasticsearch::API::HTTP_DELETE - path = "_query_rules/#{Utils.__listify(_ruleset_id)}" - params = Utils.process_params(arguments) + path = "_query_rules/#{Utils.listify(_ruleset_id)}" + params = {} - if Array(arguments[:ignore]).include?(404) - Utils.__rescue_from_not_found do - Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers, request_opts) - ) - end - else - Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers, request_opts) - ) - end + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) end end end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb index 579d2a9627..039d7615d5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb @@ -15,25 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module QueryRules module Actions - # Returns the details about an individual query rule within a ruleset. + # Get a query rule. + # Get details about a query rule within a query ruleset. # - # @option arguments [String] :ruleset_id The unique identifier of the query ruleset the rule exists within - # @option arguments [String] :rule_id The unique identifier of the rule to be retrieved. + # @option arguments [String] :ruleset_id The unique identifier of the query ruleset containing the rule to retrieve (*Required*) + # @option arguments [String] :rule_id The unique identifier of the query rule within the specified ruleset to retrieve (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-query-rule.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-get-rule # def get_rule(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'query_rules.get_rule' } - defined_params = %i[ruleset_id rule_id].each_with_object({}) do |variable, set_variables| + defined_params = [:ruleset_id, :rule_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -51,7 +52,7 @@ def get_rule(arguments = {}) _rule_id = arguments.delete(:rule_id) method = Elasticsearch::API::HTTP_GET - path = "_query_rules/#{Utils.__listify(_ruleset_id)}/_rule/#{Utils.__listify(_rule_id)}" + path = "_query_rules/#{Utils.listify(_ruleset_id)}/_rule/#{Utils.listify(_rule_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb index 3eb2931d90..857ba03ff6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb @@ -15,19 +15,20 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module QueryRules module Actions - # Returns the details about a query ruleset. + # Get a query ruleset. + # Get details about a query ruleset. # - # @option arguments [String] :ruleset_id The unique identifier of the query ruleset + # @option arguments [String] :ruleset_id The unique identifier of the query ruleset (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-query-ruleset.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-get-ruleset # def get_ruleset(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'query_rules.get_ruleset' } @@ -47,7 +48,7 @@ def get_ruleset(arguments = {}) _ruleset_id = arguments.delete(:ruleset_id) method = Elasticsearch::API::HTTP_GET - path = "_query_rules/#{Utils.__listify(_ruleset_id)}" + path = "_query_rules/#{Utils.listify(_ruleset_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb index 46cb469e2a..fff7ad6cc7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb @@ -15,20 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module QueryRules module Actions - # Lists query rulesets. + # Get all query rulesets. + # Get summarized information about the query rulesets. # - # @option arguments [Integer] :from Starting offset (default: 0) - # @option arguments [Integer] :size specifies a max number of results to get (default: 100) + # @option arguments [Integer] :from The offset from the first result to fetch. Server default: 0. + # @option arguments [Integer] :size The maximum number of results to retrieve. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/list-query-rulesets.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-list-rulesets # def list_rulesets(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'query_rules.list_rulesets' } @@ -36,7 +37,7 @@ def list_rulesets(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_query_rules' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb index 659f785d6c..d31e775f5d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb @@ -15,26 +15,31 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module QueryRules module Actions - # Creates or updates a query rule within a ruleset. + # Create or update a query rule. + # Create or update a query rule within a query ruleset. + # IMPORTANT: Due to limitations within pinned queries, you can only pin documents using ids or docs, but cannot use both in single rule. + # It is advised to use one or the other in query rulesets, to avoid errors. + # Additionally, pinned queries have a maximum limit of 100 pinned hits. + # If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. # - # @option arguments [String] :ruleset_id The unique identifier of the ruleset this rule should be added to. The ruleset will be created if it does not exist. - # @option arguments [String] :rule_id The unique identifier of the rule to be created or updated. + # @option arguments [String] :ruleset_id The unique identifier of the query ruleset containing the rule to be created or updated. (*Required*) + # @option arguments [String] :rule_id The unique identifier of the query rule within the specified ruleset to be created or updated. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The query rule configuration, including the type of rule, the criteria to match the rule, and the action that should be taken if the rule matches. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-query-rule.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-put-rule # def put_rule(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'query_rules.put_rule' } - defined_params = %i[ruleset_id rule_id].each_with_object({}) do |variable, set_variables| + defined_params = [:ruleset_id, :rule_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -53,7 +58,7 @@ def put_rule(arguments = {}) _rule_id = arguments.delete(:rule_id) method = Elasticsearch::API::HTTP_PUT - path = "_query_rules/#{Utils.__listify(_ruleset_id)}/_rule/#{Utils.__listify(_rule_id)}" + path = "_query_rules/#{Utils.listify(_ruleset_id)}/_rule/#{Utils.listify(_rule_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb index ed042f3960..ced5bb0664 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb @@ -15,20 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module QueryRules module Actions - # Creates or updates a query ruleset. + # Create or update a query ruleset. + # There is a limit of 100 rules per ruleset. + # This limit can be increased by using the +xpack.applications.rules.max_rules_per_ruleset+ cluster setting. + # IMPORTANT: Due to limitations within pinned queries, you can only select documents using +ids+ or +docs+, but cannot use both in single rule. + # It is advised to use one or the other in query rulesets, to avoid errors. + # Additionally, pinned queries have a maximum limit of 100 pinned hits. + # If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. # - # @option arguments [String] :ruleset_id The unique identifier of the ruleset to be created or updated. + # @option arguments [String] :ruleset_id The unique identifier of the query ruleset to be created or updated. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The query ruleset configuration, including `rules` (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-query-ruleset.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-put-ruleset # def put_ruleset(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'query_rules.put_ruleset' } @@ -49,7 +55,7 @@ def put_ruleset(arguments = {}) _ruleset_id = arguments.delete(:ruleset_id) method = Elasticsearch::API::HTTP_PUT - path = "_query_rules/#{Utils.__listify(_ruleset_id)}" + path = "_query_rules/#{Utils.listify(_ruleset_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb index 0215f0656a..7b88bf5b27 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb @@ -15,24 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module QueryRules module Actions - # Tests a query ruleset to identify the rules that would match input criteria - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Test a query ruleset. + # Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. # - # @option arguments [String] :ruleset_id The unique identifier of the ruleset to test. + # @option arguments [String] :ruleset_id The unique identifier of the query ruleset to be created or updated (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The match criteria to test against the ruleset (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/test-query-ruleset.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-test # def test(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'query_rules.test' } @@ -53,7 +50,7 @@ def test(arguments = {}) _ruleset_id = arguments.delete(:ruleset_id) method = Elasticsearch::API::HTTP_POST - path = "_query_rules/#{Utils.__listify(_ruleset_id)}/_test" + path = "_query_rules/#{Utils.listify(_ruleset_id)}/_test" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb b/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb index f9477705e7..311085f848 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb @@ -15,23 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Allows to evaluate the quality of ranked search results over a set of typical search queries + # Evaluate ranked search results. + # Evaluate the quality of ranked search results over a set of typical search queries. # - # @option arguments [List] :index A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [String] :search_type Search operation type (options: query_then_fetch, dfs_query_then_fetch) + # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and index aliases used to limit the request. + # Wildcard (+*+) expressions are supported. + # To target all data streams and indices in a cluster, omit this parameter or use +_all+ or +*+. + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. + # @option arguments [String, Array] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. + # @option arguments [Boolean] :ignore_unavailable If +true+, missing or closed indices are not included in the response. + # @option arguments [String] :search_type Search operation type # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The ranking evaluation search definition, including search requests, document ratings and ranking metric definition. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-rank-eval.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rank-eval # def rank_eval(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'rank_eval' } @@ -46,13 +49,13 @@ def rank_eval(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = if _index - "#{Utils.__listify(_index)}/_rank_eval" + "#{Utils.listify(_index)}/_rank_eval" else '_rank_eval' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb index 1447568931..b195bab1f3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb @@ -15,28 +15,167 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Allows to copy documents from one index to another, optionally filtering the source - # documents by a query, changing the destination index settings, or fetching the - # documents from a remote cluster. + # Reindex documents. + # Copy documents from a source to a destination. + # You can copy all documents to the destination index or reindex a subset of the documents. + # The source can be any existing index, alias, or data stream. + # The destination must differ from the source. + # For example, you cannot reindex a data stream into itself. + # IMPORTANT: Reindex requires +_source+ to be enabled for all documents in the source. + # The destination should be configured as wanted before calling the reindex API. + # Reindex does not copy the settings from the source or its associated template. + # Mappings, shard counts, and replicas, for example, must be configured ahead of time. + # If the Elasticsearch security features are enabled, you must have the following security privileges: + # * The +read+ index privilege for the source data stream, index, or alias. + # * The +write+ index privilege for the destination data stream, index, or index alias. + # * To automatically create a data stream or index with a reindex API request, you must have the +auto_configure+, +create_index+, or +manage+ index privilege for the destination data stream, index, or alias. + # * If reindexing from a remote cluster, the +source.remote.user+ must have the +monitor+ cluster privilege and the +read+ index privilege for the source data stream, index, or alias. + # If reindexing from a remote cluster, you must explicitly allow the remote host in the +reindex.remote.whitelist+ setting. + # Automatic data stream creation requires a matching index template with data stream enabled. + # The +dest+ element can be configured like the index API to control optimistic concurrency control. + # Omitting +version_type+ or setting it to +internal+ causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. + # Setting +version_type+ to +external+ causes Elasticsearch to preserve the +version+ from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. + # Setting +op_type+ to +create+ causes the reindex API to create only missing documents in the destination. + # All existing documents will cause a version conflict. + # IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an +op_type+ of +create+. + # A reindex can only add new documents to a destination data stream. + # It cannot update existing documents in a destination data stream. + # By default, version conflicts abort the reindex process. + # To continue reindexing if there are conflicts, set the +conflicts+ request body property to +proceed+. + # In this case, the response includes a count of the version conflicts that were encountered. + # Note that the handling of other error types is unaffected by the +conflicts+ property. + # Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than +max_docs+ until it has successfully indexed +max_docs+ documents into the target or it has gone through every document in the source query. + # NOTE: The reindex API makes no effort to handle ID collisions. + # The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. + # Instead, make sure that IDs are unique by using a script. + # **Running reindex asynchronously** + # If the request contains +wait_for_completion=false+, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. + # Elasticsearch creates a record of this task as a document at +_tasks/+. + # **Reindex from multiple sources** + # If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. + # That way you can resume the process if there are any errors by removing the partially completed source and starting over. + # It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. + # For example, you can use a bash script like this: + # + + # for index in i1 i2 i3 i4 i5; do + # curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ + # "source": { + # "index": "'$index'" + # }, + # "dest": { + # "index": "'$index'-reindexed" + # } + # }' + # done + # + + # **Throttling** + # Set +requests_per_second+ to any positive decimal number (+1.4+, +6+, +1000+, for example) to throttle the rate at which reindex issues batches of index operations. + # Requests are throttled by padding each batch with a wait time. + # To turn off throttling, set +requests_per_second+ to +-1+. + # The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. + # The padding time is the difference between the batch size divided by the +requests_per_second+ and the time spent writing. + # By default the batch size is +1000+, so if +requests_per_second+ is set to +500+: + # + + # target_time = 1000 / 500 per second = 2 seconds + # wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + # + + # Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. + # This is "bursty" instead of "smooth". + # **Slicing** + # Reindex supports sliced scroll to parallelize the reindexing process. + # This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. + # NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + # You can slice a reindex request manually by providing a slice ID and total number of slices to each request. + # You can also let reindex automatically parallelize by using sliced scroll to slice on +_id+. + # The +slices+ parameter specifies the number of slices to use. + # Adding +slices+ to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: + # * You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. + # * Fetching the status of the task for the request with +slices+ only contains the status of completed slices. + # * These sub-requests are individually addressable for things like cancellation and rethrottling. + # * Rethrottling the request with +slices+ will rethrottle the unfinished sub-request proportionally. + # * Canceling the request with +slices+ will cancel each sub-request. + # * Due to the nature of +slices+, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + # * Parameters like +requests_per_second+ and +max_docs+ on a request with +slices+ are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using +max_docs+ with +slices+ might not result in exactly +max_docs+ documents being reindexed. + # * Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. + # If slicing automatically, setting +slices+ to +auto+ will choose a reasonable number for most indices. + # If slicing manually or otherwise tuning automatic slicing, use the following guidelines. + # Query performance is most efficient when the number of slices is equal to the number of shards in the index. + # If that number is large (for example, +500+), choose a lower number as too many slices will hurt performance. + # Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + # Indexing performance scales linearly across available resources with the number of slices. + # Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. + # **Modify documents during reindexing** + # Like +_update_by_query+, reindex operations support a script that modifies the document. + # Unlike +_update_by_query+, the script is allowed to modify the document's metadata. + # Just as in +_update_by_query+, you can set +ctx.op+ to change the operation that is run on the destination. + # For example, set +ctx.op+ to +noop+ if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the +noop+ counter in the response body. + # Set +ctx.op+ to +delete+ if your script decides that the document must be deleted from the destination. + # The deletion will be reported in the +deleted+ counter in the response body. + # Setting +ctx.op+ to anything else will return an error, as will setting any other field in +ctx+. + # Think of the possibilities! Just be careful; you are able to change: + # * +_id+ + # * +_index+ + # * +_version+ + # * +_routing+ + # Setting +_version+ to +null+ or clearing it from the +ctx+ map is just like not sending the version in an indexing request. + # It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. + # **Reindex from remote** + # Reindex supports reindexing from a remote Elasticsearch cluster. + # The +host+ parameter must contain a scheme, host, port, and optional path. + # The +username+ and +password+ parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. + # Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. + # There are a range of settings available to configure the behavior of the HTTPS connection. + # When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. + # Remote hosts must be explicitly allowed with the +reindex.remote.whitelist+ setting. + # It can be set to a comma delimited list of allowed remote host and port combinations. + # Scheme is ignored; only the host and port are used. + # For example: + # + + # reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] + # + + # The list of allowed hosts must be configured on any nodes that will coordinate the reindex. + # This feature should work with remote clusters of any version of Elasticsearch. + # This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. + # WARNING: Elasticsearch does not support forward compatibility across major versions. + # For example, you cannot reindex from a 7.x cluster into a 6.x cluster. + # To enable queries sent to older versions of Elasticsearch, the +query+ parameter is sent directly to the remote host without validation or modification. + # NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + # Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. + # If the remote index includes very large documents you'll need to use a smaller batch size. + # It is also possible to set the socket read timeout on the remote connection with the +socket_timeout+ field and the connection timeout with the +connect_timeout+ field. + # Both default to 30 seconds. + # **Configuring SSL parameters** + # Reindex from remote supports configurable SSL settings. + # These must be specified in the +elasticsearch.yml+ file, with the exception of the secure settings, which you add in the Elasticsearch keystore. + # It is not possible to configure SSL in the body of the reindex request. # - # @option arguments [Boolean] :refresh Should the affected indexes be refreshed? - # @option arguments [Time] :timeout Time each individual bulk request should wait for shards that are unavailable. - # @option arguments [String] :wait_for_active_shards Sets the number of shard copies that must be active before proceeding with the reindex operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) - # @option arguments [Boolean] :wait_for_completion Should the request should block until the reindex is complete. - # @option arguments [Number] :requests_per_second The throttle to set on this request in sub-requests per second. -1 means no throttle. - # @option arguments [Time] :scroll Control how long to keep the search context alive - # @option arguments [Number|string] :slices The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`. - # @option arguments [Number] :max_docs Maximum number of documents to process (default: all documents) + # @option arguments [Boolean] :refresh If +true+, the request refreshes affected shards to make this operation visible to search. + # @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second. + # By default, there is no throttle. Server default: -1. + # @option arguments [Time] :scroll The period of time that a consistent view of the index should be maintained for scrolled search. + # @option arguments [Integer, String] :slices The number of slices this task should be divided into. + # It defaults to one slice, which means the task isn't sliced into subtasks.Reindex supports sliced scroll to parallelize the reindexing process. + # This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts.NOTE: Reindexing from remote clusters does not support manual or automatic slicing.If set to +auto+, Elasticsearch chooses the number of slices to use. + # This setting will use one slice per shard, up to a certain limit. + # If there are multiple sources, it will choose the number of slices based on the index or backing index with the smallest number of shards. Server default: 1. + # @option arguments [Time] :timeout The period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards. + # By default, Elasticsearch waits for at least one minute before failing. + # The actual wait time could be longer, particularly when multiple waits occur. Server default: 1m. + # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. + # Set it to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). + # The default value is one, which means it waits for each primary shard to be active. Server default: 1. + # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks until the operation is complete. Server default: true. + # @option arguments [Boolean] :require_alias If +true+, the destination must be an index alias. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The search definition using the Query DSL and the prototype for the index request. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-reindex # def reindex(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'reindex' } @@ -46,7 +185,7 @@ def reindex(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_reindex' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb index e528d3b6ed..794a10d1be 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb @@ -15,19 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Changes the number of requests per second for a particular Reindex operation. + # Throttle a reindex operation. + # Change the number of requests per second for a particular reindex operation. + # For example: + # + + # POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1 + # + + # Rethrottling that speeds up the query takes effect immediately. + # Rethrottling that slows down the query will take effect after completing the current batch. + # This behavior prevents scroll timeouts. # - # @option arguments [String] :task_id The task id to rethrottle - # @option arguments [Number] :requests_per_second The throttle to set on this request in floating sub-requests per second. -1 means set no throttle. (*Required*) + # @option arguments [String] :task_id The task identifier, which can be found by using the tasks API. (*Required*) + # @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second. + # It can be either +-1+ to turn off throttling or any decimal number like +1.7+ or +12+ to throttle to that level. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-reindex # def reindex_rethrottle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'reindex_rethrottle' } @@ -47,7 +56,7 @@ def reindex_rethrottle(arguments = {}) _task_id = arguments.delete(:task_id) method = Elasticsearch::API::HTTP_POST - path = "_reindex/#{Utils.__listify(_task_id)}/_rethrottle" + path = "_reindex/#{Utils.listify(_task_id)}/_rethrottle" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb index 90de6aaea6..67a3a2d7c8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb @@ -15,19 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Allows to use the Mustache language to pre-render a search definition. + # Render a search template. + # Render a search template as a search request body. # - # @option arguments [String] :id The id of the stored search template + # @option arguments [String] :id The ID of the search template to render. + # If no +source+ is specified, this or the +id+ request body parameter is required. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The search definition template and its params + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/render-search-template-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-render-search-template # def render_search_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'render_search_template' } @@ -50,11 +52,11 @@ def render_search_template(arguments = {}) Elasticsearch::API::HTTP_GET end - path = if _id - "_render/template/#{Utils.__listify(_id)}" - else - '_render/template' - end + path = if _id + "_render/template/#{Utils.listify(_id)}" + else + '_render/template' + end params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb b/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb index e9cc67da66..fa1d03e80c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb @@ -15,20 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Allows an arbitrary script to be executed and a result to be returned + # Run a script. + # Runs a script and returns a result. + # Use this API to build and test scripts, such as when defining a script for a runtime field. + # This API requires very few dependencies and is especially useful if you don't have permissions to write documents on a cluster. + # The API uses several _contexts_, which control how scripts are run, what variables are available at runtime, and what the return type is. + # Each context requires a script, but additional parameters depend on the context you're using for that script. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The script to execute + # @option arguments [Hash] :body request body # # @see https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-execute-api.html # @@ -38,7 +43,7 @@ def scripts_painless_execute(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = if body Elasticsearch::API::HTTP_POST @@ -46,7 +51,7 @@ def scripts_painless_execute(arguments = {}) Elasticsearch::API::HTTP_GET end - path = '_scripts/painless/_execute' + path = '_scripts/painless/_execute' params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb b/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb index 97dbda7298..dd7e81d5b9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search.rb index b62d05935d..8227621b61 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search.rb @@ -15,63 +15,142 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns results matching a query. + # Run a search. + # Get search hits that match the query defined in the request. + # You can provide search queries using the +q+ query string parameter or the request body. + # If both are specified, only the query parameter is used. + # If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. + # To search a point in time (PIT) for an alias, you must have the +read+ index privilege for the alias's data streams or indices. + # **Search slicing** + # When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the +slice+ and +pit+ properties. + # By default the splitting is done first on the shards, then locally on each shard. + # The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. + # For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. + # IMPORTANT: The same point-in-time ID should be used for all slices. + # If different PIT IDs are used, slices can overlap and miss documents. + # This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. # - # @option arguments [List] :index A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - # @option arguments [String] :analyzer The analyzer to use for the query string - # @option arguments [Boolean] :analyze_wildcard Specify whether wildcard and prefix queries should be analyzed (default: false) - # @option arguments [Boolean] :ccs_minimize_roundtrips Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution - # @option arguments [String] :default_operator The default operator for query string query (AND or OR) (options: AND, OR) - # @option arguments [String] :df The field to use as default where no field prefix is given in the query string - # @option arguments [Boolean] :explain Specify whether to return detailed information about score computation as part of a hit - # @option arguments [List] :stored_fields A comma-separated list of stored fields to return as part of a hit - # @option arguments [List] :docvalue_fields A comma-separated list of fields to return as the docvalue representation of a field for each hit - # @option arguments [Number] :from Starting offset (default: 0) - # @option arguments [Boolean] :force_synthetic_source Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index. - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :ignore_throttled Whether specified concrete, expanded or aliased indices should be ignored when throttled - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Boolean] :lenient Specify whether format-based query failures (such as providing text to a numeric field) should be ignored - # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random) - # @option arguments [String] :q Query in the Lucene query string syntax - # @option arguments [List] :routing A comma-separated list of specific routing values - # @option arguments [Time] :scroll Specify how long a consistent view of the index should be maintained for scrolled search - # @option arguments [String] :search_type Search operation type (options: query_then_fetch, dfs_query_then_fetch) - # @option arguments [Number] :size Number of hits to return (default: 10) - # @option arguments [List] :sort A comma-separated list of : pairs - # @option arguments [List] :_source True or false to return the _source field or not, or a list of fields to return - # @option arguments [List] :_source_excludes A list of fields to exclude from the returned _source field - # @option arguments [List] :_source_includes A list of fields to extract and return from the _source field - # @option arguments [Number] :terminate_after The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early. - # @option arguments [List] :stats Specific 'tag' of the request for logging and statistical purposes - # @option arguments [String] :suggest_field Specify which field to use for suggestions - # @option arguments [String] :suggest_mode Specify suggest mode (options: missing, popular, always) - # @option arguments [Number] :suggest_size How many suggestions to return in response - # @option arguments [String] :suggest_text The source text for which the suggestions should be returned - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Boolean] :track_scores Whether to calculate and return scores even if they are not used for sorting - # @option arguments [Boolean|long] :track_total_hits Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number. - # @option arguments [Boolean] :allow_partial_search_results Indicate if an error should be returned if there is a partial search failure or timeout - # @option arguments [Boolean] :typed_keys Specify whether aggregation and suggester names should be prefixed by their respective types in the response - # @option arguments [Boolean] :version Specify whether to return document version as part of a hit - # @option arguments [Boolean] :seq_no_primary_term Specify whether to return sequence number and primary term of the last modification of each hit - # @option arguments [Boolean] :request_cache Specify if request cache should be used for this request or not, defaults to index level setting - # @option arguments [Number] :batched_reduce_size The number of shard results that should be reduced at once on the coordinating node. This value should be used as a protection mechanism to reduce the memory overhead per search request if the potential number of shards in the request can be large. - # @option arguments [Number] :max_concurrent_shard_requests The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests - # @option arguments [Number] :pre_filter_shard_size A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method ie. if date filters are mandatory to match but the shard bounds and the query are disjoint. - # @option arguments [Boolean] :rest_total_hits_as_int Indicates whether hits.total should be rendered as an integer or an object in the rest search response - # @option arguments [Boolean] :include_named_queries_score Indicates whether hit.matched_queries should be rendered as a map that includes the name of the matched query associated with its score (true) or as an array containing the name of the matched queries (false) + # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to search. + # It supports wildcards (+*+). + # To search all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. + # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. + # @option arguments [Boolean] :allow_partial_search_results If +true+ and there are shard request timeouts or shard failures, the request returns partial results. + # If +false+, it returns an error with no partial results.To override the default behavior, you can set the +search.default_allow_partial_results+ cluster setting to +false+. Server default: true. + # @option arguments [String] :analyzer The analyzer to use for the query string. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [Boolean] :analyze_wildcard If +true+, wildcard and prefix queries are analyzed. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [Integer] :batched_reduce_size The number of shard results that should be reduced at once on the coordinating node. + # If the potential number of shards in the request can be large, this value should be used as a protection mechanism to reduce the memory overhead per search request. Server default: 512. + # @option arguments [Boolean] :ccs_minimize_roundtrips If +true+, network round-trips between the coordinating node and the remote clusters are minimized when running cross-cluster search (CCS) requests. Server default: true. + # @option arguments [String] :default_operator The default operator for the query string query: +AND+ or +OR+. + # This parameter can be used only when the +q+ query string parameter is specified. Server default: OR. + # @option arguments [String] :df The field to use as a default when no field prefix is given in the query string. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [String, Array] :docvalue_fields A comma-separated list of fields to return as the docvalue representation of a field for each hit. + # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # It supports comma-separated values such as +open,hidden+. Server default: open. + # @option arguments [Boolean] :explain If +true+, the request returns detailed information about score computation as part of a hit. + # @option arguments [Boolean] :ignore_throttled If +true+, concrete, expanded or aliased indices will be ignored when frozen. Server default: true. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :include_named_queries_score If +true+, the response includes the score contribution from any named queries.This functionality reruns each named query on every hit in a search response. + # Typically, this adds a small overhead to a request. + # However, using computationally expensive named queries on a large number of hits may add significant overhead. + # @option arguments [Boolean] :lenient If +true+, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [Integer] :max_concurrent_shard_requests The number of concurrent shard requests per node that the search runs concurrently. + # This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests. Server default: 5. + # @option arguments [String] :preference The nodes and shards used for the search. + # By default, Elasticsearch selects from eligible nodes and shards using adaptive replica selection, accounting for allocation awareness. + # Valid values are: + # - +_only_local+ to run the search only on shards on the local node. + # - +_local+ to, if possible, run the search on shards on the local node, or if not, select shards using the default method. + # - +_only_nodes:,+ to run the search on only the specified nodes IDs. If suitable shards exist on more than one selected node, use shards on those nodes using the default method. If none of the specified nodes are available, select shards from any available node using the default method. + # - +_prefer_nodes:,+ to if possible, run the search on the specified nodes IDs. If not, select shards using the default method. + # +_shards:,+ to run the search only on the specified shards. You can combine this value with other +preference+ values. However, the +_shards+ value must come first. For example: +_shards:2,3|_local+. + # ++ (any string that does not start with +_+) to route searches with the same ++ to the same shards in the same order. + # @option arguments [Integer] :pre_filter_shard_size A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. + # This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method (if date filters are mandatory to match but the shard bounds and the query are disjoint). + # When unspecified, the pre-filter phase is executed if any of these conditions is met: + # - The request targets more than 128 shards. + # - The request targets one or more read-only index. + # - The primary sort of the query targets an indexed field. + # @option arguments [Boolean] :request_cache If +true+, the caching of search results is enabled for requests where +size+ is +0+. + # It defaults to index level settings. + # @option arguments [String] :routing A custom value that is used to route operations to a specific shard. + # @option arguments [Time] :scroll The period to retain the search context for scrolling. + # By default, this value cannot exceed +1d+ (24 hours). + # You can change this limit by using the +search.max_keep_alive+ cluster-level setting. + # @option arguments [String] :search_type Indicates how distributed term frequencies are calculated for relevance scoring. + # @option arguments [Array] :stats Specific +tag+ of the request for logging and statistical purposes. + # @option arguments [String, Array] :stored_fields A comma-separated list of stored fields to return as part of a hit. + # If no fields are specified, no stored fields are included in the response. + # If this field is specified, the +_source+ parameter defaults to +false+. + # You can pass +_source: true+ to return both source fields and stored fields in the search response. + # @option arguments [String] :suggest_field The field to use for suggestions. + # @option arguments [String] :suggest_mode The suggest mode. + # This parameter can be used only when the +suggest_field+ and +suggest_text+ query string parameters are specified. Server default: missing. + # @option arguments [Integer] :suggest_size The number of suggestions to return. + # This parameter can be used only when the +suggest_field+ and +suggest_text+ query string parameters are specified. + # @option arguments [String] :suggest_text The source text for which the suggestions should be returned. + # This parameter can be used only when the +suggest_field+ and +suggest_text+ query string parameters are specified. + # @option arguments [Integer] :terminate_after The maximum number of documents to collect for each shard. + # If a query reaches this limit, Elasticsearch terminates the query early. + # Elasticsearch collects documents before sorting.IMPORTANT: Use with caution. + # Elasticsearch applies this parameter to each shard handling the request. + # When possible, let Elasticsearch perform early termination automatically. + # Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. + # If set to +0+ (default), the query does not terminate early. Server default: 0. + # @option arguments [Time] :timeout The period of time to wait for a response from each shard. + # If no response is received before the timeout expires, the request fails and returns an error. + # It defaults to no timeout. + # @option arguments [Boolean, Integer] :track_total_hits The number of hits matching the query to count accurately. + # If +true+, the exact number of hits is returned at the cost of some performance. + # If +false+, the response does not include the total number of hits matching the query. Server default: 10000. + # @option arguments [Boolean] :track_scores If +true+, the request calculates and returns document scores, even if the scores are not used for sorting. + # @option arguments [Boolean] :typed_keys If +true+, aggregation and suggester names are be prefixed by their respective types in the response. + # @option arguments [Boolean] :rest_total_hits_as_int Indicates whether +hits.total+ should be rendered as an integer or an object in the rest search response. + # @option arguments [Boolean] :version If +true+, the request returns the document version as part of a hit. + # @option arguments [Boolean, String, Array] :_source The source fields that are returned for matching documents. + # These fields are returned in the +hits._source+ property of the search response. + # Valid values are: + # - +true+ to return the entire document source. + # - +false+ to not return the document source. + # - ++ to return the source fields that are specified as a comma-separated list that supports wildcard (+*+) patterns. Server default: true. + # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude from the response. + # You can also use this parameter to exclude fields from the subset specified in +_source_includes+ query parameter. + # If the +_source+ parameter is +false+, this parameter is ignored. + # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. + # If this parameter is specified, only these source fields are returned. + # You can exclude fields from this subset using the +_source_excludes+ query parameter. + # If the +_source+ parameter is +false+, this parameter is ignored. + # @option arguments [Boolean] :seq_no_primary_term If +true+, the request returns the sequence number and primary term of the last modification of each hit. + # @option arguments [String] :q A query in the Lucene query string syntax. + # Query parameter searches do not support the full Elasticsearch Query DSL but are handy for testing.IMPORTANT: This parameter overrides the query parameter in the request body. + # If both parameters are specified, documents matching the query request body parameter are not returned. + # @option arguments [Integer] :size The number of hits to return. + # By default, you cannot page through more than 10,000 hits using the +from+ and +size+ parameters. + # To page through more hits, use the +search_after+ parameter. Server default: 10. + # @option arguments [Integer] :from The starting document offset, which must be non-negative. + # By default, you cannot page through more than 10,000 hits using the +from+ and +size+ parameters. + # To page through more hits, use the +search_after+ parameter. Server default: 0. + # @option arguments [String] :sort A comma-separated list of +:+ pairs. + # @option arguments [Boolean] :force_synthetic_source Should this request force synthetic _source? + # Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. + # Fetches with this enabled will be slower the enabling synthetic source natively in the index. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The search definition using the Query DSL + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search # def search(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search' } @@ -94,11 +173,11 @@ def search(arguments = {}) Elasticsearch::API::HTTP_GET end - path = if _index - "#{Utils.__listify(_index)}/_search" - else - '_search' - end + path = if _index + "#{Utils.listify(_index)}/_search" + else + '_search' + end params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb index 165e1093dd..3a8b63cd9d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb @@ -15,23 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SearchApplication module Actions - # Deletes a search application. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Delete a search application. + # Remove a search application and its associated alias. Indices attached to the search application are not removed. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :name The name of the search application + # @option arguments [String] :name The name of the search application to delete. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-search-application.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-delete # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.delete' } @@ -51,7 +52,7 @@ def delete(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_DELETE - path = "_application/search_application/#{Utils.__listify(_name)}" + path = "_application/search_application/#{Utils.listify(_name)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb index 38ab030e26..3b40bccf48 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb @@ -15,23 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SearchApplication module Actions # Delete a behavioral analytics collection. + # The associated data stream is also deleted. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :name The name of the analytics collection to be deleted + # @option arguments [String] :name The name of the analytics collection to be deleted (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-analytics-collection.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-delete-behavioral-analytics # def delete_behavioral_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.delete_behavioral_analytics' } @@ -51,7 +52,7 @@ def delete_behavioral_analytics(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_DELETE - path = "_application/analytics/#{Utils.__listify(_name)}" + path = "_application/analytics/#{Utils.listify(_name)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb index a860983d7f..c0b215ba23 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb @@ -15,23 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SearchApplication module Actions - # Returns the details about a search application. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Get search application details. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :name The name of the search application + # @option arguments [String] :name The name of the search application (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-search-application.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-get # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.get' } @@ -51,7 +51,7 @@ def get(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_GET - path = "_application/search_application/#{Utils.__listify(_name)}" + path = "_application/search_application/#{Utils.listify(_name)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb index 03162964b8..62932d3109 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb @@ -15,23 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SearchApplication module Actions - # Returns the existing behavioral analytics collections. + # Get behavioral analytics collections. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [List] :name A comma-separated list of analytics collections to limit the returned information + # @option arguments [Array] :name A list of analytics collections to limit the returned information # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/list-analytics-collection.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-get-behavioral-analytics # def get_behavioral_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.get_behavioral_analytics' } @@ -50,7 +50,7 @@ def get_behavioral_analytics(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _name - "_application/analytics/#{Utils.__listify(_name)}" + "_application/analytics/#{Utils.listify(_name)}" else '_application/analytics' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb index e16653f8d0..3aedde956d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb @@ -15,25 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SearchApplication module Actions - # Returns the existing search applications. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Get search applications. + # Get information about search applications. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :q Query in the Lucene query string syntax - # @option arguments [Integer] :from Starting offset (default: 0) - # @option arguments [Integer] :size specifies a max number of results to get + # @option arguments [String] :q Query in the Lucene query string syntax. + # @option arguments [Integer] :from Starting offset. Server default: 0. + # @option arguments [Integer] :size Specifies a max number of results to get. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/list-search-applications.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-get-behavioral-analytics # def list(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.list' } @@ -41,7 +42,7 @@ def list(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_application/search_application' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb index 73ddcf543e..8e49f93b1e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb @@ -15,31 +15,31 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SearchApplication module Actions - # Creates a behavioral analytics event for existing collection. + # Create a behavioral analytics collection event. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :collection_name The name of behavioral analytics collection - # @option arguments [String] :event_type Behavioral analytics event type. Available: page_view, search, search_click - # @option arguments [Boolean] :debug If true, returns event information that will be stored + # @option arguments [String] :collection_name The name of the behavioral analytics collection. (*Required*) + # @option arguments [String] :event_type The analytics event type. (*Required*) + # @option arguments [Boolean] :debug Whether the response type has to include more details # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The event definition (*Required*) + # @option arguments [Hash] :body payload # - # @see http://todo.com/tbd + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-post-behavioral-analytics-event # def post_behavioral_analytics_event(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.post_behavioral_analytics_event' } - defined_params = %i[collection_name event_type].each_with_object({}) do |variable, set_variables| + defined_params = [:collection_name, :event_type].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -58,7 +58,7 @@ def post_behavioral_analytics_event(arguments = {}) _event_type = arguments.delete(:event_type) method = Elasticsearch::API::HTTP_POST - path = "_application/analytics/#{Utils.__listify(_collection_name)}/event/#{Utils.__listify(_event_type)}" + path = "_application/analytics/#{Utils.listify(_collection_name)}/event/#{Utils.listify(_event_type)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb index 4b71715586..49e04af44b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb @@ -15,25 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SearchApplication module Actions - # Creates or updates a search application. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Create or update a search application. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :name The name of the search application to be created or updated - # @option arguments [Boolean] :create If true, requires that a search application with the specified resource_id does not already exist. (default: false) + # @option arguments [String] :name The name of the search application to be created or updated. (*Required*) + # @option arguments [Boolean] :create If +true+, this request cannot replace or update existing Search Applications. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The search application configuration, including `indices` (*Required*) + # @option arguments [Hash] :body search_application # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-search-application.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-put # def put(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.put' } @@ -54,7 +54,7 @@ def put(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_PUT - path = "_application/search_application/#{Utils.__listify(_name)}" + path = "_application/search_application/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb index b04054239f..2cdde42773 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb @@ -15,23 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SearchApplication module Actions - # Creates a behavioral analytics collection. + # Create a behavioral analytics collection. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :name The name of the analytics collection to be created or updated + # @option arguments [String] :name The name of the analytics collection to be created or updated. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-analytics-collection.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-put-behavioral-analytics # def put_behavioral_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.put_behavioral_analytics' } @@ -51,7 +51,7 @@ def put_behavioral_analytics(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_PUT - path = "_application/analytics/#{Utils.__listify(_name)}" + path = "_application/analytics/#{Utils.listify(_name)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb index b6d21c350a..5a550dda1e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb @@ -15,24 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SearchApplication module Actions - # Renders a query for given search application search parameters + # Render a search application query. + # Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. + # If a parameter used in the search template is not specified in +params+, the parameter's default value will be used. + # The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API. + # You must have +read+ privileges on the backing alias of the search application. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :name The name of the search application to render the query for + # @option arguments [String] :name The name of the search application to render teh query for. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Search parameters, which will override any default search parameters defined in the search application template + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-application-render-query.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-render-query # def render_query(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.render_query' } @@ -52,7 +56,7 @@ def render_query(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_POST - path = "_application/search_application/#{Utils.__listify(_name)}/_render_query" + path = "_application/search_application/#{Utils.listify(_name)}/_render_query" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb index f3a7797355..416e93e4ed 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb @@ -15,25 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SearchApplication module Actions - # Perform a search against a search application - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Run a search application search. + # Generate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template. + # Unspecified template parameters are assigned their default values if applicable. + # This functionality is in Beta and is subject to change. The design and + # code is less mature than official GA features and is being provided + # as-is with no warranties. Beta features are not subject to the support + # SLA of official GA features. # - # @option arguments [String] :name The name of the search application to be searched - # @option arguments [Boolean] :typed_keys Specify whether aggregation and suggester names should be prefixed by their respective types in the response + # @option arguments [String] :name The name of the search application to be searched. (*Required*) + # @option arguments [Boolean] :typed_keys Determines whether aggregation names are prefixed by their respective types in the response. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Search parameters, including template parameters that override defaults + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-application-search.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-search # def search(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.search' } @@ -58,7 +60,7 @@ def search(arguments = {}) Elasticsearch::API::HTTP_GET end - path = "_application/search_application/#{Utils.__listify(_name)}/_search" + path = "_application/search_application/#{Utils.listify(_name)}/_search" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb index 80bde3ce4f..4137f3b046 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb @@ -15,39 +15,170 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. + # Search a vector tile. + # Search a vector tile for geospatial values. + # Before using this API, you should be familiar with the Mapbox vector tile specification. + # The API returns results as a binary mapbox vector tile. + # Internally, Elasticsearch translates a vector tile search API request into a search containing: + # * A +geo_bounding_box+ query on the ++. The query uses the +//+ tile as a bounding box. + # * A +geotile_grid+ or +geohex_grid+ aggregation on the ++. The +grid_agg+ parameter determines the aggregation type. The aggregation uses the +//+ tile as a bounding box. + # * Optionally, a +geo_bounds+ aggregation on the ++. The search only includes this aggregation if the +exact_bounds+ parameter is +true+. + # * If the optional parameter +with_labels+ is +true+, the internal search will include a dynamic runtime field that calls the +getLabelPosition+ function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. + # For example, Elasticsearch may translate a vector tile search API request with a +grid_agg+ argument of +geotile+ and an +exact_bounds+ argument of +true+ into the following search + # + + # GET my-index/_search + # { + # "size": 10000, + # "query": { + # "geo_bounding_box": { + # "my-geo-field": { + # "top_left": { + # "lat": -40.979898069620134, + # "lon": -45 + # }, + # "bottom_right": { + # "lat": -66.51326044311186, + # "lon": 0 + # } + # } + # } + # }, + # "aggregations": { + # "grid": { + # "geotile_grid": { + # "field": "my-geo-field", + # "precision": 11, + # "size": 65536, + # "bounds": { + # "top_left": { + # "lat": -40.979898069620134, + # "lon": -45 + # }, + # "bottom_right": { + # "lat": -66.51326044311186, + # "lon": 0 + # } + # } + # } + # }, + # "bounds": { + # "geo_bounds": { + # "field": "my-geo-field", + # "wrap_longitude": false + # } + # } + # } + # } + # + + # The API returns results as a binary Mapbox vector tile. + # Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: + # * A +hits+ layer containing a feature for each ++ value matching the +geo_bounding_box+ query. + # * An +aggs+ layer containing a feature for each cell of the +geotile_grid+ or +geohex_grid+. The layer only contains features for cells with matching data. + # * A meta layer containing: + # * A feature containing a bounding box. By default, this is the bounding box of the tile. + # * Value ranges for any sub-aggregations on the +geotile_grid+ or +geohex_grid+. + # * Metadata for the search. + # The API only returns features that can display at its zoom level. + # For example, if a polygon feature has no area at its zoom level, the API omits it. + # The API returns errors as UTF-8 encoded JSON. + # IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + # If you specify both parameters, the query parameter takes precedence. + # **Grid precision for geotile** + # For a +grid_agg+ of +geotile+, you can use cells in the +aggs+ layer as tiles for lower zoom levels. + # +grid_precision+ represents the additional zoom levels available through these cells. The final precision is computed by as follows: + + grid_precision+. + # For example, if ++ is 7 and +grid_precision+ is 8, then the +geotile_grid+ aggregation will use a precision of 15. + # The maximum final precision is 29. + # The +grid_precision+ also determines the number of cells for the grid as follows: +(2^grid_precision) x (2^grid_precision)+. + # For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + # The +aggs+ layer only contains features for cells with matching data. + # **Grid precision for geohex** + # For a +grid_agg+ of +geohex+, Elasticsearch uses ++ and +grid_precision+ to calculate a final precision as follows: + + grid_precision+. + # This precision determines the H3 resolution of the hexagonal cells produced by the +geohex+ aggregation. + # The following table maps the H3 resolution for each precision. + # For example, if ++ is 3 and +grid_precision+ is 3, the precision is 6. + # At a precision of 6, hexagonal cells have an H3 resolution of 2. + # If ++ is 3 and +grid_precision+ is 4, the precision is 7. + # At a precision of 7, hexagonal cells have an H3 resolution of 3. + # | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + # | --------- | ---------------- | ------------- | ----------------| ----- | + # | 1 | 4 | 0 | 122 | 30.5 | + # | 2 | 16 | 0 | 122 | 7.625 | + # | 3 | 64 | 1 | 842 | 13.15625 | + # | 4 | 256 | 1 | 842 | 3.2890625 | + # | 5 | 1024 | 2 | 5882 | 5.744140625 | + # | 6 | 4096 | 2 | 5882 | 1.436035156 | + # | 7 | 16384 | 3 | 41162 | 2.512329102 | + # | 8 | 65536 | 3 | 41162 | 0.6280822754 | + # | 9 | 262144 | 4 | 288122 | 1.099098206 | + # | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + # | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + # | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + # | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + # | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + # | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + # | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + # | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + # | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + # | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + # | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + # | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + # | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + # | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + # | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + # | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + # | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + # | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + # | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + # | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | + # Hexagonal cells don't align perfectly on a vector tile. + # Some cells may intersect more than one vector tile. + # To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + # Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. # - # @option arguments [List] :index Comma-separated list of data streams, indices, or aliases to search - # @option arguments [String] :field Field containing geospatial data to return - # @option arguments [Integer] :zoom Zoom level for the vector tile to search - # @option arguments [Integer] :x X coordinate for the vector tile to search - # @option arguments [Integer] :y Y coordinate for the vector tile to search - # @option arguments [Boolean] :exact_bounds If false, the meta layer's feature is the bounding box of the tile. If true, the meta layer's feature is a bounding box resulting from a `geo_bounds` aggregation. - # @option arguments [Integer] :extent Size, in pixels, of a side of the vector tile. - # @option arguments [Integer] :grid_precision Additional zoom levels available through the aggs layer. Accepts 0-8. - # @option arguments [String] :grid_type Determines the geometry type for features in the aggs layer. (options: grid, point, centroid) + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, or aliases to search (*Required*) + # @option arguments [String] :field Field containing geospatial data to return (*Required*) + # @option arguments [Integer] :zoom Zoom level for the vector tile to search (*Required*) + # @option arguments [Integer] :x X coordinate for the vector tile to search (*Required*) + # @option arguments [Integer] :y Y coordinate for the vector tile to search (*Required*) + # @option arguments [Boolean] :exact_bounds If +false+, the meta layer's feature is the bounding box of the tile. + # If true, the meta layer's feature is a bounding box resulting from a + # geo_bounds aggregation. The aggregation runs on values that intersect + # the // tile with wrap_longitude set to false. The resulting + # bounding box may be larger than the vector tile. + # @option arguments [Integer] :extent The size, in pixels, of a side of the tile. Vector tiles are square with equal sides. Server default: 4096. + # @option arguments [String] :grid_agg Aggregation used to create a grid for +field+. + # @option arguments [Integer] :grid_precision Additional zoom levels available through the aggs layer. For example, if is 7 + # and grid_precision is 8, you can zoom in up to level 15. Accepts 0-8. If 0, results + # don't include the aggs layer. Server default: 8. + # @option arguments [String] :grid_type Determines the geometry type for features in the aggs layer. In the aggs layer, + # each feature represents a geotile_grid cell. If 'grid' each feature is a Polygon + # of the cells bounding box. If 'point' each feature is a Point that is the centroid + # of the cell. Server default: grid. # @option arguments [Integer] :size Maximum number of features to return in the hits layer. Accepts 0-10000. - # @option arguments [Boolean|long] :track_total_hits Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number. - # @option arguments [Boolean] :with_labels If true, the hits and aggs layers will contain additional point features with suggested label positions for the original features. + # If 0, results don't include the hits layer. Server default: 10000. + # @option arguments [Boolean] :with_labels If +true+, the hits and aggs layers will contain additional point features representing + # suggested label positions for the original features. + # - +Point+ and +MultiPoint+ features will have one of the points selected. + # - +Polygon+ and +MultiPolygon+ features will have a single point generated, either the centroid, if it is within the polygon, or another point within the polygon selected from the sorted triangle-tree. + # - +LineString+ features will likewise provide a roughly central point selected from the triangle-tree. + # - The aggregation results will provide one central point for each aggregation bucket. + # All attributes from the original features will also be copied to the new label features. + # In addition, the new features will be distinguishable using the tag +_mvt_label_position+. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Search request body. + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-vector-tile-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-mvt # def search_mvt(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_mvt' } - defined_params = %i[index field zoom x y].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :field, :zoom, :x, :y].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -61,7 +192,7 @@ def search_mvt(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) @@ -74,7 +205,7 @@ def search_mvt(arguments = {}) _y = arguments.delete(:y) method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_mvt/#{Utils.__listify(_field)}/#{Utils.__listify(_zoom)}/#{Utils.__listify(_x)}/#{Utils.__listify(_y)}" + path = "#{Utils.listify(_index)}/_mvt/#{Utils.listify(_field)}/#{Utils.listify(_zoom)}/#{Utils.listify(_x)}/#{Utils.listify(_y)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb index 70189da643..388c082532 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb @@ -15,25 +15,39 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns information about the indices and shards that a search request would be executed against. + # Get the search shards. + # Get the indices and shards that a search request would be run against. + # This information can be useful for working out issues or planning optimizations with routing and shard preferences. + # When filtered aliases are used, the filter is returned as part of the +indices+ section. + # If the Elasticsearch security features are enabled, you must have the +view_index_metadata+ or +manage+ index privilege for the target data stream, index, or alias. # - # @option arguments [List] :index A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random) - # @option arguments [String] :routing Specific routing value - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node + # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to search. + # It supports wildcards (+*+). + # To search all data streams and indices, omit this parameter or use +*+ or +_all+. + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. + # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # IT can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # @option arguments [String] :preference The node or shard the operation should be performed on. + # It is random by default. + # @option arguments [String] :routing A custom value used to route operations to a specific shard. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-shards.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-shards # def search_shards(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_shards' } @@ -46,13 +60,13 @@ def search_shards(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = if _index - "#{Utils.__listify(_index)}/_search_shards" + "#{Utils.listify(_index)}/_search_shards" else '_search_shards' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb index 5b67dfb582..c78cda38e5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb @@ -15,32 +15,41 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Allows to use the Mustache language to pre-render a search definition. + # Run a search with a search template. # - # @option arguments [List] :index A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :ignore_throttled Whether specified concrete, expanded or aliased indices should be ignored when throttled - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random) - # @option arguments [List] :routing A comma-separated list of specific routing values - # @option arguments [Time] :scroll Specify how long a consistent view of the index should be maintained for scrolled search - # @option arguments [String] :search_type Search operation type (options: query_then_fetch, dfs_query_then_fetch) - # @option arguments [Boolean] :explain Specify whether to return detailed information about score computation as part of a hit - # @option arguments [Boolean] :profile Specify whether to profile the query execution - # @option arguments [Boolean] :typed_keys Specify whether aggregation and suggester names should be prefixed by their respective types in the response - # @option arguments [Boolean] :rest_total_hits_as_int Indicates whether hits.total should be rendered as an integer or an object in the rest search response - # @option arguments [Boolean] :ccs_minimize_roundtrips Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution + # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to search. + # It supports wildcards (+*+). + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. + # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. + # @option arguments [Boolean] :ccs_minimize_roundtrips If +true+, network round-trips are minimized for cross-cluster search requests. + # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. + # @option arguments [Boolean] :explain If +true+, the response includes additional details about score computation as part of a hit. + # @option arguments [Boolean] :ignore_throttled If +true+, specified concrete, expanded, or aliased indices are not included in the response when throttled. Server default: true. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [String] :preference The node or shard the operation should be performed on. + # It is random by default. + # @option arguments [Boolean] :profile If +true+, the query execution is profiled. + # @option arguments [String] :routing A custom value used to route operations to a specific shard. + # @option arguments [Time] :scroll Specifies how long a consistent view of the index + # should be maintained for scrolled search. + # @option arguments [String] :search_type The type of the search operation. + # @option arguments [Boolean] :rest_total_hits_as_int If +true+, +hits.total+ is rendered as an integer in the response. + # If +false+, it is rendered as an object. + # @option arguments [Boolean] :typed_keys If +true+, the response prefixes aggregation and suggester names with their respective types. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The search definition template and its params (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-template # def search_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_template' } @@ -55,13 +64,13 @@ def search_template(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = if _index - "#{Utils.__listify(_index)}/_search/template" + "#{Utils.listify(_index)}/_search/template" else '_search/template' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb index 89b16a6c14..97cff541ff 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb @@ -15,23 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SearchableSnapshots module Actions - # Retrieve node-level cache statistics about searchable snapshots. + # Get cache statistics. + # Get statistics about the shared cache for partially mounted indices. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + # @option arguments [String, Array] :node_id The names of the nodes in the cluster to target. + # @option arguments [Time] :master_timeout [TODO] # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-searchable-snapshots-cache-stats # def cache_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'searchable_snapshots.cache_stats' } @@ -50,11 +52,11 @@ def cache_stats(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _node_id - "_searchable_snapshots/#{Utils.__listify(_node_id)}/cache/stats" + "_searchable_snapshots/#{Utils.listify(_node_id)}/cache/stats" else '_searchable_snapshots/cache/stats' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb index a7d0b6a246..3408221a64 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb @@ -15,26 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SearchableSnapshots module Actions - # Clear the cache of searchable snapshots. + # Clear the cache. + # Clear indices and data streams from the shared cache for partially mounted indices. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [List] :index A comma-separated list of index names + # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to clear from the cache. + # It supports wildcards (+*+). + # @option arguments [String, Array] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. + # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes +_all+ string or when no indices have been specified) # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-searchable-snapshots-clear-cache # def clear_cache(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'searchable_snapshots.clear_cache' } @@ -47,13 +49,13 @@ def clear_cache(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = if _index - "#{Utils.__listify(_index)}/_searchable_snapshots/cache/clear" + "#{Utils.listify(_index)}/_searchable_snapshots/cache/clear" else '_searchable_snapshots/cache/clear' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb index e8238c98b7..bf222dc59d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb @@ -15,29 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SearchableSnapshots module Actions - # Mount a snapshot as a searchable index. + # Mount a snapshot. + # Mount a snapshot as a searchable snapshot index. + # Do not use this API for snapshots managed by index lifecycle management (ILM). + # Manually mounting ILM-managed snapshots can interfere with ILM processes. # - # @option arguments [String] :repository The name of the repository containing the snapshot of the index to mount - # @option arguments [String] :snapshot The name of the snapshot of the index to mount - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Boolean] :wait_for_completion Should this request wait until the operation has completed before returning - # @option arguments [String] :storage Selects the kind of local storage used to accelerate searches. Experimental, and defaults to `full_copy` + # @option arguments [String] :repository The name of the repository containing the snapshot of the index to mount. (*Required*) + # @option arguments [String] :snapshot The name of the snapshot of the index to mount. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # @option arguments [Boolean] :wait_for_completion If true, the request blocks until the operation is complete. + # @option arguments [String] :storage The mount option for the searchable snapshot index. Server default: full_copy. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The restore configuration for mounting the snapshot as searchable (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-api-mount-snapshot.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-searchable-snapshots-mount # def mount(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'searchable_snapshots.mount' } - defined_params = %i[repository snapshot].each_with_object({}) do |variable, set_variables| + defined_params = [:repository, :snapshot].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -56,7 +61,7 @@ def mount(arguments = {}) _snapshot = arguments.delete(:snapshot) method = Elasticsearch::API::HTTP_POST - path = "_snapshot/#{Utils.__listify(_repository)}/#{Utils.__listify(_snapshot)}/_mount" + path = "_snapshot/#{Utils.listify(_repository)}/#{Utils.listify(_snapshot)}/_mount" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb index eafb705ad0..f52d0dde97 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb @@ -15,20 +15,20 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SearchableSnapshots module Actions - # Retrieve shard-level statistics about searchable snapshots. + # Get searchable snapshot statistics. # - # @option arguments [List] :index A comma-separated list of index names - # @option arguments [String] :level Return stats aggregated at cluster, index or shard level (options: cluster, indices, shards) + # @option arguments [String, Array] :index A comma-separated list of data streams and indices to retrieve statistics for. + # @option arguments [String] :level Return stats aggregated at cluster, index or shard level # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-searchable-snapshots-stats # def stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'searchable_snapshots.stats' } @@ -41,13 +41,13 @@ def stats(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = if _index - "#{Utils.__listify(_index)}/_searchable_snapshots/stats" + "#{Utils.listify(_index)}/_searchable_snapshots/stats" else '_searchable_snapshots/stats' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb index 73fb59b0c1..c8c0a5876a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb index 03f02c57ea..73b87753ec 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb @@ -15,18 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Enables authentication as a user and retrieve information about the authenticated user. + # Authenticate a user. + # Authenticates a user and returns information about the authenticated user. + # Include the user information in a {https://en.wikipedia.org/wiki/Basic_access_authentication basic auth header}. + # A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. + # If the user cannot be authenticated, this API returns a 401 status code. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-authenticate # def authenticate(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.authenticate' } @@ -34,7 +38,7 @@ def authenticate(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_security/_authenticate' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb index ae3d6bbfd1..b3abbd76b1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb @@ -15,20 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Bulk delete roles in the native realm. + # Bulk delete roles. + # The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + # The bulk delete roles API cannot delete roles that are defined in roles files. # - # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) + # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The roles to delete (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-delete-role.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-bulk-delete-role # def bulk_delete_role(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.bulk_delete_role' } @@ -38,7 +40,7 @@ def bulk_delete_role(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_DELETE path = '_security/role' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb index 5ec4578391..4c87abc8ca 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb @@ -15,20 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Bulk adds and updates roles in the native realm. + # Bulk create or update roles. + # The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + # The bulk create or update roles API cannot update roles that are defined in roles files. # - # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) + # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The roles to add (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-put-role.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-bulk-put-role # def bulk_put_role(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.bulk_put_role' } @@ -38,7 +40,7 @@ def bulk_put_role(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_security/role' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb index bf311c01f4..27a5896cf9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb @@ -15,19 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Updates the attributes of multiple existing API keys. + # Bulk update API keys. + # Update the attributes for multiple API keys. + # IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. + # This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. + # It is not possible to update expired or invalidated API keys. + # This API supports updates to API key access scope, metadata and expiration. + # The access scope of each API key is derived from the +role_descriptors+ you specify in the request and a snapshot of the owner user's permissions at the time of the request. + # The snapshot of the owner's permissions is updated automatically on every call. + # IMPORTANT: If you don't specify +role_descriptors+ in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. + # A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The API key request to update the attributes of multiple API keys. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-bulk-update-api-keys.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-bulk-update-api-keys # def bulk_update_api_keys(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.bulk_update_api_keys' } @@ -37,7 +46,7 @@ def bulk_update_api_keys(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_security/api_key/_bulk_update' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb index 186861cdb7..ef42d0ead4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb @@ -15,21 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Changes the passwords of users in the native realm and built-in users. + # Change passwords. + # Change the passwords of users in the native realm and built-in users. # - # @option arguments [String] :username The username of the user to change the password for - # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) + # @option arguments [String] :username The user whose password you want to change. If you do not specify this + # parameter, the password is changed for the current user. + # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body the new password for the user (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-change-password # def change_password(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.change_password' } @@ -50,7 +52,7 @@ def change_password(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = if _username - "_security/user/#{Utils.__listify(_username)}/_password" + "_security/user/#{Utils.listify(_username)}/_password" else '_security/user/_password' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb index 8eb36221f1..64cdeee572 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb @@ -15,19 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Clear a subset or all entries from the API key cache. + # Clear the API key cache. + # Evict a subset of all entries from the API key cache. + # The cache is also automatically cleared on state changes of the security index. # - # @option arguments [List] :ids A comma-separated list of IDs of API keys to clear from the cache + # @option arguments [String, Array] :ids Comma-separated list of API key IDs to evict from the API key cache. + # To evict all API keys, use +*+. + # Does not support other wildcard patterns. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-api-key-cache.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-api-key-cache # def clear_api_key_cache(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.clear_api_key_cache' } @@ -42,12 +46,12 @@ def clear_api_key_cache(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil _ids = arguments.delete(:ids) method = Elasticsearch::API::HTTP_POST - path = "_security/api_key/#{Utils.__listify(_ids)}/_clear_cache" + path = "_security/api_key/#{Utils.listify(_ids)}/_clear_cache" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb index 2b6ff2d79e..2a63c66eb6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb @@ -15,19 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Evicts application privileges from the native application privileges cache. + # Clear the privileges cache. + # Evict privileges from the native application privilege cache. + # The cache is also automatically cleared for applications that have their privileges updated. # - # @option arguments [List] :application A comma-separated list of application names + # @option arguments [String] :application A comma-separated list of applications. + # To clear all applications, use an asterism (+*+). + # It does not support other wildcard patterns. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-privilege-cache.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-cached-privileges # def clear_cached_privileges(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.clear_cached_privileges' } @@ -47,7 +51,7 @@ def clear_cached_privileges(arguments = {}) _application = arguments.delete(:application) method = Elasticsearch::API::HTTP_POST - path = "_security/privilege/#{Utils.__listify(_application)}/_clear_cache" + path = "_security/privilege/#{Utils.listify(_application)}/_clear_cache" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb index 9f427c62e3..f380fb91ce 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb @@ -15,20 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Evicts users from the user cache. Can completely clear the cache or evict specific users. + # Clear the user cache. + # Evict users from the user cache. + # You can completely clear the cache or evict specific users. + # User credentials are cached in memory on each node to avoid connecting to a remote authentication service or hitting the disk for every incoming request. + # There are realm settings that you can use to configure the user cache. + # For more information, refer to the documentation about controlling the user cache. # - # @option arguments [List] :realms Comma-separated list of realms to clear - # @option arguments [List] :usernames Comma-separated list of usernames to clear from the cache + # @option arguments [String, Array] :realms A comma-separated list of realms. + # To clear all realms, use an asterisk (+*+). + # It does not support other wildcard patterns. (*Required*) + # @option arguments [Array] :usernames A comma-separated list of the users to clear from the cache. + # If you do not specify this parameter, the API evicts all users from the user cache. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-cached-realms # def clear_cached_realms(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.clear_cached_realms' } @@ -48,7 +56,7 @@ def clear_cached_realms(arguments = {}) _realms = arguments.delete(:realms) method = Elasticsearch::API::HTTP_POST - path = "_security/realm/#{Utils.__listify(_realms)}/_clear_cache" + path = "_security/realm/#{Utils.listify(_realms)}/_clear_cache" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb index 8e253de2d5..6370615715 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb @@ -15,19 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Evicts roles from the native role cache. + # Clear the roles cache. + # Evict roles from the native role cache. # - # @option arguments [List] :name Role name + # @option arguments [String, Array] :name A comma-separated list of roles to evict from the role cache. + # To evict all roles, use an asterisk (+*+). + # It does not support other wildcard patterns. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-cached-roles # def clear_cached_roles(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.clear_cached_roles' } @@ -47,7 +50,7 @@ def clear_cached_roles(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_POST - path = "_security/role/#{Utils.__listify(_name)}/_clear_cache" + path = "_security/role/#{Utils.listify(_name)}/_clear_cache" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb index e2d0d96d0b..ed33f89772 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb @@ -15,26 +15,33 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Evicts tokens from the service account token caches. + # Clear service account token caches. + # Evict a subset of all entries from the service account token caches. + # Two separate caches exist for service account tokens: one cache for tokens backed by the +service_tokens+ file, and another for tokens backed by the +.security+ index. + # This API clears matching entries from both caches. + # The cache for service account tokens backed by the +.security+ index is cleared automatically on state changes of the security index. + # The cache for tokens backed by the +service_tokens+ file is cleared automatically on file changes. # - # @option arguments [String] :namespace An identifier for the namespace - # @option arguments [String] :service An identifier for the service name - # @option arguments [List] :name A comma-separated list of service token names + # @option arguments [String] :namespace The namespace, which is a top-level grouping of service accounts. (*Required*) + # @option arguments [String] :service The name of the service, which must be unique within its namespace. (*Required*) + # @option arguments [String, Array] :name A comma-separated list of token names to evict from the service account token caches. + # Use a wildcard (+*+) to evict all tokens that belong to a service account. + # It does not support other wildcard patterns. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-service-token-caches.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-cached-service-tokens # def clear_cached_service_tokens(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.clear_cached_service_tokens' } - defined_params = %i[namespace service name].each_with_object({}) do |variable, set_variables| + defined_params = [:namespace, :service, :name].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -55,7 +62,7 @@ def clear_cached_service_tokens(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_POST - path = "_security/service/#{Utils.__listify(_namespace)}/#{Utils.__listify(_service)}/credential/token/#{Utils.__listify(_name)}/_clear_cache" + path = "_security/service/#{Utils.listify(_namespace)}/#{Utils.listify(_service)}/credential/token/#{Utils.listify(_name)}/_clear_cache" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb index eb05c11c87..20c1bdda4c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb @@ -15,20 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Creates an API key for access without requiring basic authentication. + # Create an API key. + # Create an API key for access without requiring basic authentication. + # IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. + # If you specify privileges, the API returns an error. + # A successful request returns a JSON structure that contains the API key, its unique id, and its name. + # If applicable, it also returns expiration information for the API key in milliseconds. + # NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + # The API keys are created by the Elasticsearch API key service, which is automatically enabled. + # To configure or turn off the API key service, refer to API key service setting documentation. # - # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) + # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The api key request to create an API key (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-create-api-key # def create_api_key(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.create_api_key' } @@ -38,7 +46,7 @@ def create_api_key(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_PUT path = '_security/api_key' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb index 4933f9fbb8..d03a8904f3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb @@ -15,19 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Creates a cross-cluster API key for API key based remote cluster access. + # Create a cross-cluster API key. + # Create an API key of the +cross_cluster+ type for the API key based remote cluster access. + # A +cross_cluster+ API key cannot be used to authenticate through the REST interface. + # IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + # Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + # NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the +access+ property. + # A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + # By default, API keys never expire. You can specify expiration information when you create the API keys. + # Cross-cluster API keys can only be updated with the update cross-cluster API key API. + # Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The request to create a cross-cluster API key (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-cross-cluster-api-key.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-create-cross-cluster-api-key # def create_cross_cluster_api_key(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.create_cross_cluster_api_key' } @@ -37,7 +46,7 @@ def create_cross_cluster_api_key(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_security/cross_cluster/api_key' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb index 9ebfacea38..faa0a94437 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb @@ -15,27 +15,33 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Creates a service account token for access without requiring basic authentication. + # Create a service account token. + # Create a service accounts token for access without requiring basic authentication. + # NOTE: Service account tokens never expire. + # You must actively delete them if they are no longer needed. # - # @option arguments [String] :namespace An identifier for the namespace - # @option arguments [String] :service An identifier for the service name - # @option arguments [String] :name An identifier for the token name - # @option arguments [String] :refresh If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) + # @option arguments [String] :namespace The name of the namespace, which is a top-level grouping of service accounts. (*Required*) + # @option arguments [String] :service The name of the service. (*Required*) + # @option arguments [String] :name The name for the service account token. + # If omitted, a random name will be generated.Token names must be at least one and no more than 256 characters. + # They can contain alphanumeric characters (a-z, A-Z, 0-9), dashes (+-+), and underscores (+_+), but cannot begin with an underscore.NOTE: Token names must be unique in the context of the associated service account. + # They must also be globally unique with their fully qualified names, which are comprised of the service account principal and token name, such as +//+. + # @option arguments [String] :refresh If +true+ then refresh the affected shards to make this operation visible to search, if +wait_for+ (the default) then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-service-token.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-create-service-token # def create_service_token(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.create_service_token' } - defined_params = %i[namespace service name].each_with_object({}) do |variable, set_variables| + defined_params = [:namespace, :service, :name].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -56,9 +62,9 @@ def create_service_token(arguments = {}) method = _name ? Elasticsearch::API::HTTP_PUT : Elasticsearch::API::HTTP_POST path = if _namespace && _service && _name - "_security/service/#{Utils.__listify(_namespace)}/#{Utils.__listify(_service)}/credential/token/#{Utils.__listify(_name)}" + "_security/service/#{Utils.listify(_namespace)}/#{Utils.listify(_service)}/credential/token/#{Utils.listify(_name)}" else - "_security/service/#{Utils.__listify(_namespace)}/#{Utils.__listify(_service)}/credential/token" + "_security/service/#{Utils.listify(_namespace)}/#{Utils.listify(_service)}/credential/token" end params = Utils.process_params(arguments) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb index 1d637ba77e..fe880ece38 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb @@ -15,19 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions # Delegate PKI authentication. + # This API implements the exchange of an X509Certificate chain for an Elasticsearch access token. + # The certificate chain is validated, according to RFC 5280, by sequentially considering the trust configuration of every installed PKI realm that has +delegation.enabled+ set to +true+. + # A successfully trusted client certificate is also subject to the validation of the subject distinguished name according to thw +username_pattern+ of the respective realm. + # This API is called by smart and trusted proxies, such as Kibana, which terminate the user's TLS session but still want to authenticate the user by using a PKI realm—-​as if the user connected directly to Elasticsearch. + # IMPORTANT: The association between the subject public key in the target certificate and the corresponding private key is not validated. + # This is part of the TLS authentication process and it is delegated to the proxy that calls this API. + # The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The X509Certificate chain. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delegate-pki-authentication.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delegate-pki # def delegate_pki(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.delegate_pki' } @@ -37,7 +44,7 @@ def delegate_pki(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_security/delegate_pki' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb index fa4260b296..37e2428734 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb @@ -15,26 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Removes application privileges. + # Delete application privileges. + # To use this API, you must have one of the following privileges: + # * The +manage_security+ cluster privilege (or a greater privilege such as +all+). + # * The "Manage Application Privileges" global privilege for the application being referenced in the request. # - # @option arguments [String] :application Application name - # @option arguments [String] :name Privilege name - # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) + # @option arguments [String] :application The name of the application. + # Application privileges are always associated with exactly one application. (*Required*) + # @option arguments [String, Array] :name The name of the privilege. (*Required*) + # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-privileges # def delete_privileges(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.delete_privileges' } - defined_params = %i[application name].each_with_object({}) do |variable, set_variables| + defined_params = [:application, :name].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -52,7 +56,7 @@ def delete_privileges(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_DELETE - path = "_security/privilege/#{Utils.__listify(_application)}/#{Utils.__listify(_name)}" + path = "_security/privilege/#{Utils.listify(_application)}/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb index 81a755ea5a..1ee7b80cd1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb @@ -15,20 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Removes roles in the native realm. + # Delete roles. + # Delete roles in the native realm. + # The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + # The delete roles API cannot remove roles that are defined in roles files. # - # @option arguments [String] :name Role name - # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) + # @option arguments [String] :name The name of the role. (*Required*) + # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-role # def delete_role(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.delete_role' } @@ -48,7 +51,7 @@ def delete_role(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_DELETE - path = "_security/role/#{Utils.__listify(_name)}" + path = "_security/role/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb index 57cc5f4258..6eaef52dfe 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb @@ -15,20 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Removes role mappings. + # Delete role mappings. + # Role mappings define which roles are assigned to each user. + # The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + # The delete role mappings API cannot remove role mappings that are defined in role mapping files. # - # @option arguments [String] :name Role-mapping name - # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) + # @option arguments [String] :name The distinct name that identifies the role mapping. + # The name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way. (*Required*) + # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-role-mapping # def delete_role_mapping(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.delete_role_mapping' } @@ -48,7 +52,7 @@ def delete_role_mapping(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_DELETE - path = "_security/role_mapping/#{Utils.__listify(_name)}" + path = "_security/role_mapping/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb index e1e956f288..75c4de2320 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb @@ -15,27 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Deletes a service account token. + # Delete service account tokens. + # Delete service account tokens for a service in a specified namespace. # - # @option arguments [String] :namespace An identifier for the namespace - # @option arguments [String] :service An identifier for the service name - # @option arguments [String] :name An identifier for the token name - # @option arguments [String] :refresh If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) + # @option arguments [String] :namespace The namespace, which is a top-level grouping of service accounts. (*Required*) + # @option arguments [String] :service The service name. (*Required*) + # @option arguments [String] :name The name of the service account token. (*Required*) + # @option arguments [String] :refresh If +true+ then refresh the affected shards to make this operation visible to search, if +wait_for+ (the default) then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-service-token.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-service-token # def delete_service_token(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.delete_service_token' } - defined_params = %i[namespace service name].each_with_object({}) do |variable, set_variables| + defined_params = [:namespace, :service, :name].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -56,7 +57,7 @@ def delete_service_token(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_DELETE - path = "_security/service/#{Utils.__listify(_namespace)}/#{Utils.__listify(_service)}/credential/token/#{Utils.__listify(_name)}" + path = "_security/service/#{Utils.listify(_namespace)}/#{Utils.listify(_service)}/credential/token/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb index 6c60f97ffc..c96edad064 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb @@ -15,20 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Deletes users from the native realm. + # Delete users. + # Delete users from the native realm. # - # @option arguments [String] :username username - # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) + # @option arguments [String] :username An identifier for the user. (*Required*) + # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-user # def delete_user(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.delete_user' } @@ -48,7 +49,7 @@ def delete_user(arguments = {}) _username = arguments.delete(:username) method = Elasticsearch::API::HTTP_DELETE - path = "_security/user/#{Utils.__listify(_username)}" + path = "_security/user/#{Utils.listify(_username)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb index cd15f71593..57080531f2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb @@ -15,20 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Disables users in the native realm. + # Disable users. + # Disable users in the native realm. + # By default, when you create users, they are enabled. + # You can use this API to revoke a user's access to Elasticsearch. # - # @option arguments [String] :username The username of the user to disable - # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) + # @option arguments [String] :username An identifier for the user. (*Required*) + # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-disable-user # def disable_user(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.disable_user' } @@ -48,7 +51,7 @@ def disable_user(arguments = {}) _username = arguments.delete(:username) method = Elasticsearch::API::HTTP_PUT - path = "_security/user/#{Utils.__listify(_username)}/_disable" + path = "_security/user/#{Utils.listify(_username)}/_disable" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb index 30b86ec2a2..27d11b35c9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb index e6dadc479f..e835158b06 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb @@ -15,20 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Enables users in the native realm. + # Enable users. + # Enable users in the native realm. + # By default, when you create users, they are enabled. # - # @option arguments [String] :username The username of the user to enable - # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) + # @option arguments [String] :username An identifier for the user. (*Required*) + # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-enable-user # def enable_user(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.enable_user' } @@ -48,7 +50,7 @@ def enable_user(arguments = {}) _username = arguments.delete(:username) method = Elasticsearch::API::HTTP_PUT - path = "_security/user/#{Utils.__listify(_username)}/_enable" + path = "_security/user/#{Utils.listify(_username)}/_enable" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb index 5e3da8160b..e26a4d1445 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb index 9c16f925ef..e2beb90fb9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb @@ -15,18 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Allows a kibana instance to configure itself to communicate with a secured elasticsearch cluster. + # Enroll Kibana. + # Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. + # NOTE: This API is currently intended for internal use only by Kibana. + # Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-kibana-enrollment.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-enroll-kibana # def enroll_kibana(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.enroll_kibana' } @@ -34,7 +37,7 @@ def enroll_kibana(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_security/enroll/kibana' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb index 2a9dc5c0af..90eb424584 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb @@ -15,18 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Allows a new node to enroll to an existing cluster with security enabled. + # Enroll a node. + # Enroll a new node to allow it to join an existing cluster with security features enabled. + # The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. + # The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-node-enrollment.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-enroll-node # def enroll_node(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.enroll_node' } @@ -34,7 +37,7 @@ def enroll_node(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_security/enroll/node' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb index b023edb480..c368a7e605 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb @@ -15,26 +15,38 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions + # Get API key information. # Retrieves information for one or more API keys. + # NOTE: If you have only the +manage_own_api_key+ privilege, this API returns only the API keys that you own. + # If you have +read_security+, +manage_api_key+ or greater privileges (including +manage_security+), this API returns all API keys regardless of ownership. # - # @option arguments [String] :id API key id of the API key to be retrieved - # @option arguments [String] :name API key name of the API key to be retrieved - # @option arguments [String] :username user name of the user who created this API key to be retrieved - # @option arguments [String] :realm_name realm name of the user who created this API key to be retrieved - # @option arguments [Boolean] :owner flag to query API keys owned by the currently authenticated user - # @option arguments [Boolean] :with_limited_by flag to show the limited-by role descriptors of API Keys - # @option arguments [Boolean] :with_profile_uid flag to also retrieve the API Key's owner profile uid, if it exists - # @option arguments [Boolean] :active_only flag to limit response to only active (not invalidated or expired) API keys + # @option arguments [String] :id An API key id. + # This parameter cannot be used with any of +name+, +realm_name+ or +username+. + # @option arguments [String] :name An API key name. + # This parameter cannot be used with any of +id+, +realm_name+ or +username+. + # It supports prefix search with wildcard. + # @option arguments [Boolean] :owner A boolean flag that can be used to query API keys owned by the currently authenticated user. + # The +realm_name+ or +username+ parameters cannot be specified when this parameter is set to +true+ as they are assumed to be the currently authenticated ones. + # @option arguments [String] :realm_name The name of an authentication realm. + # This parameter cannot be used with either +id+ or +name+ or when +owner+ flag is set to +true+. + # @option arguments [String] :username The username of a user. + # This parameter cannot be used with either +id+ or +name+ or when +owner+ flag is set to +true+. + # @option arguments [Boolean] :with_limited_by Return the snapshot of the owner user's role descriptors + # associated with the API key. An API key's actual + # permission is the intersection of its assigned role + # descriptors and the owner user's role descriptors. + # @option arguments [Boolean] :active_only A boolean flag that can be used to query API keys that are currently active. An API key is considered active if it is neither invalidated, nor expired at query time. You can specify this together with other parameters such as +owner+ or +name+. If +active_only+ is false, the response will include both active and inactive (expired or invalidated) keys. + # @option arguments [Boolean] :with_profile_uid Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-api-key # def get_api_key(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_api_key' } @@ -42,7 +54,7 @@ def get_api_key(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_security/api_key' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb index aac95e8a75..f277da7521 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb @@ -15,18 +15,19 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. + # Get builtin privileges. + # Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-builtin-privileges.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-builtin-privileges # def get_builtin_privileges(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_builtin_privileges' } @@ -34,7 +35,7 @@ def get_builtin_privileges(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_security/privilege/_builtin' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb index 08b6a96c22..08da13c824 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb @@ -15,25 +15,31 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Retrieves application privileges. + # Get application privileges. + # To use this API, you must have one of the following privileges: + # * The +read_security+ cluster privilege (or a greater privilege such as +manage_security+ or +all+). + # * The "Manage Application Privileges" global privilege for the application being referenced in the request. # - # @option arguments [String] :application Application name - # @option arguments [String] :name Privilege name + # @option arguments [String] :application The name of the application. + # Application privileges are always associated with exactly one application. + # If you do not specify this parameter, the API returns information about all privileges for all applications. + # @option arguments [String, Array] :name The name of the privilege. + # If you do not specify this parameter, the API returns information about all privileges for the requested application. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-privileges.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-privileges # def get_privileges(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_privileges' } - defined_params = %i[application name].each_with_object({}) do |variable, set_variables| + defined_params = [:application, :name].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -49,9 +55,9 @@ def get_privileges(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _application && _name - "_security/privilege/#{Utils.__listify(_application)}/#{Utils.__listify(_name)}" + "_security/privilege/#{Utils.listify(_application)}/#{Utils.listify(_name)}" elsif _application - "_security/privilege/#{Utils.__listify(_application)}" + "_security/privilege/#{Utils.listify(_application)}" else '_security/privilege' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb index 9b8f533987..04448d3ef3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb @@ -15,19 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Retrieves roles in the native realm. + # Get roles. + # Get roles in the native realm. + # The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + # The get roles API cannot retrieve roles that are defined in roles files. # - # @option arguments [List] :name A comma-separated list of role names + # @option arguments [String, Array] :name The name of the role. + # You can specify multiple roles as a comma-separated list. + # If you do not specify this parameter, the API returns information about all roles. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-role # def get_role(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_role' } @@ -46,14 +51,14 @@ def get_role(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _name - "_security/role/#{Utils.__listify(_name)}" + "_security/role/#{Utils.listify(_name)}" else '_security/role' end params = Utils.process_params(arguments) if Array(arguments[:ignore]).include?(404) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb index 2c6a79f930..78bec489c4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb @@ -15,19 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Retrieves role mappings. + # Get role mappings. + # Role mappings define which roles are assigned to each user. + # The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + # The get role mappings API cannot retrieve role mappings that are defined in role mapping files. # - # @option arguments [List] :name A comma-separated list of role-mapping names + # @option arguments [String, Array] :name The distinct name that identifies the role mapping. The name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way. You can specify multiple mapping names as a comma-separated list. If you do not specify this parameter, the API returns information about all role mappings. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-role-mapping # def get_role_mapping(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_role_mapping' } @@ -46,7 +49,7 @@ def get_role_mapping(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _name - "_security/role_mapping/#{Utils.__listify(_name)}" + "_security/role_mapping/#{Utils.listify(_name)}" else '_security/role_mapping' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb index 4bf5a17cf6..a249f00325 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb @@ -15,25 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Retrieves information about service accounts. + # Get service accounts. + # Get a list of service accounts that match the provided path parameters. + # NOTE: Currently, only the +elastic/fleet-server+ service account is available. # - # @option arguments [String] :namespace An identifier for the namespace - # @option arguments [String] :service An identifier for the service name + # @option arguments [String] :namespace The name of the namespace. + # Omit this parameter to retrieve information about all service accounts. + # If you omit this parameter, you must also omit the +service+ parameter. + # @option arguments [String] :service The service name. + # Omit this parameter to retrieve information about all service accounts that belong to the specified +namespace+. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-accounts.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-service-accounts # def get_service_accounts(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_service_accounts' } - defined_params = %i[namespace service].each_with_object({}) do |variable, set_variables| + defined_params = [:namespace, :service].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -49,9 +54,9 @@ def get_service_accounts(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _namespace && _service - "_security/service/#{Utils.__listify(_namespace)}/#{Utils.__listify(_service)}" + "_security/service/#{Utils.listify(_namespace)}/#{Utils.listify(_service)}" elsif _namespace - "_security/service/#{Utils.__listify(_namespace)}" + "_security/service/#{Utils.listify(_namespace)}" else '_security/service' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb index b66a44c054..fffea747c3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb @@ -15,25 +15,29 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Retrieves information of all service credentials for a service account. + # Get service account credentials. + # To use this API, you must have at least the +read_security+ cluster privilege (or a greater privilege such as +manage_service_account+ or +manage_security+). + # The response includes service account tokens that were created with the create service account tokens API as well as file-backed tokens from all nodes of the cluster. + # NOTE: For tokens backed by the +service_tokens+ file, the API collects them from all nodes of the cluster. + # Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. # - # @option arguments [String] :namespace An identifier for the namespace - # @option arguments [String] :service An identifier for the service name + # @option arguments [String] :namespace The name of the namespace. (*Required*) + # @option arguments [String] :service The service name. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-credentials.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-service-credentials # def get_service_credentials(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_service_credentials' } - defined_params = %i[namespace service].each_with_object({}) do |variable, set_variables| + defined_params = [:namespace, :service].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -51,7 +55,7 @@ def get_service_credentials(arguments = {}) _service = arguments.delete(:service) method = Elasticsearch::API::HTTP_GET - path = "_security/service/#{Utils.__listify(_namespace)}/#{Utils.__listify(_service)}/credential" + path = "_security/service/#{Utils.listify(_namespace)}/#{Utils.listify(_service)}/credential" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb index ce1a6ba852..5b6b196fc8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb @@ -15,19 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Retrieve settings for the security system indices + # Get security index settings. + # Get the user-configurable settings for the security internal index (+.security+ and associated indices). + # Only a subset of the index settings — those that are user-configurable—will be shown. + # This includes: + # * +index.auto_expand_replicas+ + # * +index.number_of_replicas+ # - # @option arguments [Time] :master_timeout Timeout for connection to master + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-settings.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-settings # def get_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_settings' } @@ -35,7 +41,7 @@ def get_settings(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_security/settings' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb index bbe77102bb..b3e665da9c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb @@ -15,19 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Creates a bearer token for access without requiring basic authentication. + # Get a token. + # Create a bearer token for access without requiring basic authentication. + # The tokens are created by the Elasticsearch Token Service, which is automatically enabled when you configure TLS on the HTTP interface. + # Alternatively, you can explicitly enable the +xpack.security.authc.token.enabled+ setting. + # When you are running in production mode, a bootstrap check prevents you from enabling the token service unless you also enable TLS on the HTTP interface. + # The get token API takes the same parameters as a typical OAuth 2.0 token API except for the use of a JSON request body. + # A successful get token API call returns a JSON structure that contains the access token, the amount of time (seconds) that the token expires in, the type, and the scope if available. + # The tokens returned by the get token API have a finite period of time for which they are valid and after that time period, they can no longer be used. + # That time period is defined by the +xpack.security.authc.token.timeout+ setting. + # If you want to invalidate a token immediately, you can do so by using the invalidate token API. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The token request to get (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-token # def get_token(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_token' } @@ -37,7 +46,7 @@ def get_token(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_security/oauth2/token' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb index 94efebad8b..0b5c3d6d03 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb @@ -15,20 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Retrieves information about users in the native realm and built-in users. + # Get users. + # Get information about users in the native realm and built-in users. # - # @option arguments [List] :username A comma-separated list of usernames - # @option arguments [Boolean] :with_profile_uid flag to retrieve profile uid (if exists) associated to the user + # @option arguments [Username] :username An identifier for the user. You can specify multiple usernames as a comma-separated list. If you omit this parameter, the API retrieves information about all users. + # @option arguments [Boolean] :with_profile_uid Determines whether to retrieve the user profile UID, if it exists, for the users. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-user # def get_user(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_user' } @@ -47,14 +48,14 @@ def get_user(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _username - "_security/user/#{Utils.__listify(_username)}" + "_security/user/#{Utils.listify(_username)}" else '_security/user' end params = Utils.process_params(arguments) if Array(arguments[:ignore]).include?(404) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb index 926460dc99..7553d9cef7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb @@ -15,18 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Retrieves security privileges for the logged in user. + # Get user privileges. + # Get the security privileges for the logged in user. + # All users can use this API, but only to determine their own privileges. + # To check the privileges of other users, you must use the run as feature. + # To check whether a user has a specific list of privileges, use the has privileges API. # + # @option arguments [String] :application The name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, the API returns information about all privileges for all applications. + # @option arguments [String] :priviledge The name of the privilege. If you do not specify this parameter, the API returns information about all privileges for the requested application. + # @option arguments [Name, Null] :username [TODO] # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-privileges.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-user-privileges # def get_user_privileges(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_user_privileges' } @@ -34,11 +41,11 @@ def get_user_privileges(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_security/user/_privileges' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb index 26ba054916..dcf23955a9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb index 19567099a6..f7ca22beab 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb @@ -15,20 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Creates an API key on behalf of another user. + # Grant an API key. + # Create an API key on behalf of another user. + # This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. + # The caller must have authentication credentials for the user on whose behalf the API key will be created. + # It is not possible to use this API to create an API key without that user's credentials. + # The supported user authentication credential types are: + # * username and password + # * Elasticsearch access tokens + # * JWTs + # The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. + # In this case, the API key will be created on behalf of the impersonated user. + # This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. + # The API keys are created by the Elasticsearch API key service, which is automatically enabled. + # A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. + # If applicable, it also returns expiration information for the API key in milliseconds. + # By default, API keys never expire. You can specify expiration information when you create the API keys. # - # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The api key request to create an API key (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-grant-api-key.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-grant-api-key # def grant_api_key(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.grant_api_key' } @@ -38,11 +52,11 @@ def grant_api_key(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_security/api_key/grant' - params = Utils.process_params(arguments) + params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb index db564b4390..6b2b721aac 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb @@ -15,20 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Determines whether the specified user has a specified list of privileges. + # Check user privileges. + # Determine whether the specified user has a specified list of privileges. + # All users can use this API, but only to determine their own privileges. + # To check the privileges of other users, you must use the run as feature. # # @option arguments [String] :user Username # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The privileges to test (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-has-privileges # def has_privileges(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.has_privileges' } @@ -49,7 +52,7 @@ def has_privileges(arguments = {}) method = Elasticsearch::API::HTTP_POST path = if _user - "_security/user/#{Utils.__listify(_user)}/_has_privileges" + "_security/user/#{Utils.listify(_user)}/_has_privileges" else '_security/user/_has_privileges' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb index 5bb59b68ce..a5fb0630c9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb index 4bc0e103fa..c12d9caa07 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb @@ -15,19 +15,29 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Invalidates one or more API keys. + # Invalidate API keys. + # This API invalidates API keys created by the create API key or grant API key APIs. + # Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. + # To use this API, you must have at least the +manage_security+, +manage_api_key+, or +manage_own_api_key+ cluster privileges. + # The +manage_security+ privilege allows deleting any API key, including both REST and cross cluster API keys. + # The +manage_api_key+ privilege allows deleting any REST API key, but not cross cluster API keys. + # The +manage_own_api_key+ only allows deleting REST API keys that are owned by the user. + # In addition, with the +manage_own_api_key+ privilege, an invalidation request must be issued in one of the three formats: + # - Set the parameter +owner=true+. + # - Or, set both +username+ and +realm_name+ to match the user's identity. + # - Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the +ids+ field. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The api key request to invalidate API key(s) (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-api-key.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-invalidate-api-key # def invalidate_api_key(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.invalidate_api_key' } @@ -37,7 +47,7 @@ def invalidate_api_key(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_DELETE path = '_security/api_key' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb index dcae33c44c..a9e59c7a89 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb @@ -15,19 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Invalidates one or more access tokens or refresh tokens. + # Invalidate a token. + # The access tokens returned by the get token API have a finite period of time for which they are valid. + # After that time period, they can no longer be used. + # The time period is defined by the +xpack.security.authc.token.timeout+ setting. + # The refresh tokens returned by the get token API are only valid for 24 hours. + # They can also be used exactly once. + # If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. + # NOTE: While all parameters are optional, at least one of them is required. + # More specifically, either one of +token+ or +refresh_token+ parameters is required. + # If none of these two are specified, then +realm_name+ and/or +username+ need to be specified. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The token to invalidate (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-invalidate-token # def invalidate_token(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.invalidate_token' } @@ -37,7 +46,7 @@ def invalidate_token(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_DELETE path = '_security/oauth2/token' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb index e100fc59b2..72e917fa54 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb @@ -15,19 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Exchanges an OpenID Connection authentication response message for an Elasticsearch access token and refresh token pair + # Authenticate OpenID Connect. + # Exchange an OpenID Connect authentication response message for an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + # Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + # These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The OpenID Connect response to authenticate (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-oidc-authenticate.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-oidc-authenticate # def oidc_authenticate(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.oidc_authenticate' } @@ -37,7 +40,7 @@ def oidc_authenticate(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_security/oidc/authenticate' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb index e39f9d4b34..cefc68f0ed 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb @@ -15,19 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Invalidates a refresh token and access token that was generated from the OpenID Connect Authenticate API + # Logout of OpenID Connect. + # Invalidate an access token and a refresh token that were generated as a response to the +/_security/oidc/authenticate+ API. + # If the OpenID Connect authentication realm in Elasticsearch is accordingly configured, the response to this call will contain a URI pointing to the end session endpoint of the OpenID Connect Provider in order to perform single logout. + # Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + # These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Access token and refresh token to invalidate (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-oidc-logout.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-oidc-logout # def oidc_logout(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.oidc_logout' } @@ -37,7 +41,7 @@ def oidc_logout(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_security/oidc/logout' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb index 2d9247ecd4..6a0ff3c8b1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb @@ -15,19 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Creates an OAuth 2.0 authentication request as a URL string + # Prepare OpenID connect authentication. + # Create an oAuth 2.0 authentication request as a URL string based on the configuration of the OpenID Connect authentication realm in Elasticsearch. + # The response of this API is a URL pointing to the Authorization Endpoint of the configured OpenID Connect Provider, which can be used to redirect the browser of the user in order to continue the authentication process. + # Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + # These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The OpenID Connect authentication realm configuration (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-oidc-prepare-authentication.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-oidc-prepare-authentication # def oidc_prepare_authentication(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.oidc_prepare_authentication' } @@ -37,7 +41,7 @@ def oidc_prepare_authentication(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_security/oidc/prepare' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb index 0e4b52836e..42a55d0a92 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb @@ -15,20 +15,32 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Adds or updates application privileges. + # Create or update application privileges. + # To use this API, you must have one of the following privileges: + # * The +manage_security+ cluster privilege (or a greater privilege such as +all+). + # * The "Manage Application Privileges" global privilege for the application being referenced in the request. + # Application names are formed from a prefix, with an optional suffix that conform to the following rules: + # * The prefix must begin with a lowercase ASCII letter. + # * The prefix must contain only ASCII letters or digits. + # * The prefix must be at least 3 characters long. + # * If the suffix exists, it must begin with either a dash +-+ or +_+. + # * The suffix cannot contain any of the following characters: +\+, +/+, +*+, +?+, +"+, +<+, +>+, +|+, +,+, +*+. + # * No part of the name can contain whitespace. + # Privilege names must begin with a lowercase ASCII letter and must contain only ASCII letters and digits along with the characters +_+, +-+, and +.+. + # Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: +/+, +*+, +:+. # - # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) + # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The privilege(s) to add (*Required*) + # @option arguments [Hash] :body privileges # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-privileges # def put_privileges(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.put_privileges' } @@ -38,7 +50,7 @@ def put_privileges(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_PUT path = '_security/privilege' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb index a0e102ee73..e3eb6a3884 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb @@ -15,21 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Adds and updates roles in the native realm. + # Create or update roles. + # The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. + # The create or update roles API cannot update roles that are defined in roles files. + # File-based role management is not available in Elastic Serverless. # - # @option arguments [String] :name Role name - # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) + # @option arguments [String] :name The name of the role that is being created or updated. On Elasticsearch Serverless, the role name must begin with a letter or digit and can only contain letters, digits and the characters '_', '-', and '.'. Each role must have a unique name, as this will serve as the identifier for that role. (*Required*) + # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The role to add (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-role # def put_role(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.put_role' } @@ -50,7 +53,7 @@ def put_role(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_PUT - path = "_security/role/#{Utils.__listify(_name)}" + path = "_security/role/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb index 4e238c2d0b..4a04f7dd91 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb @@ -15,21 +15,39 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Creates and updates role mappings. + # Create or update role mappings. + # Role mappings define which roles are assigned to each user. + # Each mapping has rules that identify users and a list of roles that are granted to those users. + # The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + # NOTE: This API does not create roles. Rather, it maps users to existing roles. + # Roles can be created by using the create or update roles API or roles files. + # **Role templates** + # The most common use for role mappings is to create a mapping from a known value on the user to a fixed role name. + # For example, all users in the +cn=admin,dc=example,dc=com+ LDAP group should be given the superuser role in Elasticsearch. + # The +roles+ field is used for this purpose. + # For more complex needs, it is possible to use Mustache templates to dynamically determine the names of the roles that should be granted to the user. + # The +role_templates+ field is used for this purpose. + # NOTE: To use role templates successfully, the relevant scripting feature must be enabled. + # Otherwise, all attempts to create a role mapping with role templates fail. + # All of the user fields that are available in the role mapping rules are also available in the role templates. + # Thus it is possible to assign a user to a role that reflects their username, their groups, or the name of the realm to which they authenticated. + # By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. + # If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. # - # @option arguments [String] :name Role-mapping name - # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) + # @option arguments [String] :name The distinct name that identifies the role mapping. + # The name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way. (*Required*) + # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The role mapping to add (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-role-mapping # def put_role_mapping(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.put_role_mapping' } @@ -50,7 +68,7 @@ def put_role_mapping(arguments = {}) _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_PUT - path = "_security/role_mapping/#{Utils.__listify(_name)}" + path = "_security/role_mapping/#{Utils.listify(_name)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb index 453d00ef59..f054bba0e5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb @@ -15,21 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Adds and updates users in the native realm. These users are commonly referred to as native users. + # Create or update users. + # Add and update users in the native realm. + # A password is required for adding a new user but is optional when updating an existing user. + # To change a user's password without updating any other fields, use the change password API. # - # @option arguments [String] :username The username of the User - # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for) + # @option arguments [String] :username An identifier for the user.NOTE: Usernames must be at least 1 and no more than 507 characters. + # They can contain alphanumeric characters (a-z, A-Z, 0-9), spaces, punctuation, and printable symbols in the Basic Latin (ASCII) block. + # Leading or trailing whitespace is not allowed. (*Required*) + # @option arguments [String] :refresh Valid values are +true+, +false+, and +wait_for+. + # These values have the same meaning as in the index API, but the default value for this API is true. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The user to add (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-user # def put_user(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.put_user' } @@ -50,7 +56,7 @@ def put_user(arguments = {}) _username = arguments.delete(:username) method = Elasticsearch::API::HTTP_PUT - path = "_security/user/#{Utils.__listify(_username)}" + path = "_security/user/#{Utils.listify(_username)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb index 02cf165e18..ad1d5c10da 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb @@ -15,22 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Retrieves information for API keys using a subset of query DSL + # Find API keys with a query. + # Get a paginated list of API keys and their information. + # You can optionally filter the results with a query. + # To use this API, you must have at least the +manage_own_api_key+ or the +read_security+ cluster privileges. + # If you have only the +manage_own_api_key+ privilege, this API returns only the API keys that you own. + # If you have the +read_security+, +manage_api_key+, or greater privileges (including +manage_security+), this API returns all API keys regardless of ownership. # - # @option arguments [Boolean] :with_limited_by flag to show the limited-by role descriptors of API Keys - # @option arguments [Boolean] :with_profile_uid flag to also retrieve the API Key's owner profile uid, if it exists - # @option arguments [Boolean] :typed_keys flag to prefix aggregation names by their respective types in the response + # @option arguments [Boolean] :with_limited_by Return the snapshot of the owner user's role descriptors associated with the API key. + # An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors (effectively limited by it). + # An API key cannot retrieve any API key’s limited-by role descriptors (including itself) unless it has +manage_api_key+ or higher privileges. + # @option arguments [Boolean] :with_profile_uid Determines whether to also retrieve the profile UID for the API key owner principal. + # If it exists, the profile UID is returned under the +profile_uid+ response field for each API key. + # @option arguments [Boolean] :typed_keys Determines whether aggregation names are prefixed by their respective types in the response. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body From, size, query, sort and search_after + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-api-key.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-query-api-keys # def query_api_keys(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.query_api_keys' } @@ -38,7 +46,7 @@ def query_api_keys(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = if body Elasticsearch::API::HTTP_POST @@ -46,7 +54,7 @@ def query_api_keys(arguments = {}) Elasticsearch::API::HTTP_GET end - path = '_security/_query/api_key' + path = '_security/_query/api_key' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb index c5d84ec159..4e1d6ce18a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb @@ -15,19 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Retrieves information for Roles using a subset of query DSL + # Find roles with a query. + # Get roles in a paginated manner. + # The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + # The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. + # You can optionally filter the results with a query. + # Also, the results can be paginated and sorted. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body From, size, query, sort and search_after + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-role.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-query-role # def query_role(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.query_role' } @@ -35,7 +40,7 @@ def query_role(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = if body Elasticsearch::API::HTTP_POST @@ -43,7 +48,7 @@ def query_role(arguments = {}) Elasticsearch::API::HTTP_GET end - path = '_security/_query/role' + path = '_security/_query/role' params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb index a4df6bb7ee..f66e390b79 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb @@ -15,20 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Retrieves information for Users using a subset of query DSL + # Find users with a query. + # Get information for users in a paginated manner. + # You can optionally filter the results with a query. + # NOTE: As opposed to the get user API, built-in users are excluded from the result. + # This API is only for native users. # - # @option arguments [Boolean] :with_profile_uid flag to retrieve profile uid (if exists) associated with the user + # @option arguments [Boolean] :with_profile_uid Determines whether to retrieve the user profile UID, if it exists, for the users. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body From, size, query, sort and search_after + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-user.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-query-user # def query_user(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.query_user' } @@ -36,7 +40,7 @@ def query_user(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = if body Elasticsearch::API::HTTP_POST @@ -44,7 +48,7 @@ def query_user(arguments = {}) Elasticsearch::API::HTTP_GET end - path = '_security/_query/user' + path = '_security/_query/user' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb index 7d0486ca5c..813dcac743 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb @@ -15,19 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Exchanges a SAML Response message for an Elasticsearch access token and refresh token pair + # Authenticate SAML. + # Submit a SAML response message to Elasticsearch for consumption. + # NOTE: This API is intended for use by custom web applications other than Kibana. + # If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + # The SAML message that is submitted can be: + # * A response to a SAML authentication request that was previously created using the SAML prepare authentication API. + # * An unsolicited SAML message in the case of an IdP-initiated single sign-on (SSO) flow. + # In either case, the SAML message needs to be a base64 encoded XML document with a root element of ++. + # After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + # This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The SAML response to authenticate (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-authenticate.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-authenticate # def saml_authenticate(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.saml_authenticate' } @@ -37,7 +46,7 @@ def saml_authenticate(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_security/saml/authenticate' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb index 7d0db5fec3..cae40f90af 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb @@ -15,19 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Verifies the logout response sent from the SAML IdP + # Logout of SAML completely. + # Verifies the logout response sent from the SAML IdP. + # NOTE: This API is intended for use by custom web applications other than Kibana. + # If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + # The SAML IdP may send a logout response back to the SP after handling the SP-initiated SAML Single Logout. + # This API verifies the response by ensuring the content is relevant and validating its signature. + # An empty response is returned if the verification process is successful. + # The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. + # The caller of this API must prepare the request accordingly so that this API can handle either of them. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The logout response to verify (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-complete-logout.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-complete-logout # def saml_complete_logout(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.saml_complete_logout' } @@ -37,7 +45,7 @@ def saml_complete_logout(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_security/saml/complete_logout' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb index 28951664e4..e618a54d00 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb @@ -15,19 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Consumes a SAML LogoutRequest + # Invalidate SAML. + # Submit a SAML LogoutRequest message to Elasticsearch for consumption. + # NOTE: This API is intended for use by custom web applications other than Kibana. + # If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + # The logout request comes from the SAML IdP during an IdP initiated Single Logout. + # The custom web application can use this API to have Elasticsearch process the +LogoutRequest+. + # After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. + # Thus the user can be redirected back to their IdP. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The LogoutRequest message (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-invalidate.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-invalidate # def saml_invalidate(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.saml_invalidate' } @@ -37,7 +44,7 @@ def saml_invalidate(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_security/saml/invalidate' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb index 17bccc2ddd..3c377d82b0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb @@ -15,19 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Invalidates an access token and a refresh token that were generated via the SAML Authenticate API + # Logout of SAML. + # Submits a request to invalidate an access token and refresh token. + # NOTE: This API is intended for use by custom web applications other than Kibana. + # If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + # This API invalidates the tokens that were generated for a user by the SAML authenticate API. + # If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The tokens to invalidate (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-logout.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-logout # def saml_logout(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.saml_logout' } @@ -37,7 +42,7 @@ def saml_logout(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_security/saml/logout' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb index 81bec3685d..985313e652 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb @@ -15,19 +15,29 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Creates a SAML authentication request + # Prepare SAML authentication. + # Create a SAML authentication request (++) as a URL string based on the configuration of the respective SAML realm in Elasticsearch. + # NOTE: This API is intended for use by custom web applications other than Kibana. + # If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + # This API returns a URL pointing to the SAML Identity Provider. + # You can use the URL to redirect the browser of the user in order to continue the authentication process. + # The URL includes a single parameter named +SAMLRequest+, which contains a SAML Authentication request that is deflated and Base64 encoded. + # If the configuration dictates that SAML authentication requests should be signed, the URL has two extra parameters named +SigAlg+ and +Signature+. + # These parameters contain the algorithm used for the signature and the signature value itself. + # It also returns a random string that uniquely identifies this SAML Authentication request. + # The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The realm for which to create the authentication request, identified by either its name or the ACS URL (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-prepare-authentication.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-prepare-authentication # def saml_prepare_authentication(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.saml_prepare_authentication' } @@ -37,7 +47,7 @@ def saml_prepare_authentication(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_security/saml/prepare' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb index cecd339eee..29c81f8430 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb @@ -15,19 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Generates SAML metadata for the Elastic stack SAML 2.0 Service Provider + # Create SAML service provider metadata. + # Generate SAML metadata for a SAML 2.0 Service Provider. + # The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. + # This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. # - # @option arguments [String] :realm_name The name of the SAML realm to get the metadata for + # @option arguments [String] :realm_name The name of the SAML realm in Elasticsearch. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-saml-sp-metadata.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-service-provider-metadata # def saml_service_provider_metadata(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.saml_service_provider_metadata' } @@ -47,7 +50,7 @@ def saml_service_provider_metadata(arguments = {}) _realm_name = arguments.delete(:realm_name) method = Elasticsearch::API::HTTP_GET - path = "_security/saml/metadata/#{Utils.__listify(_realm_name)}" + path = "_security/saml/metadata/#{Utils.listify(_realm_name)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb index 3586f601f0..5c123213d4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch @@ -52,7 +52,7 @@ def suggest_user_profiles(arguments = {}) Elasticsearch::API::HTTP_GET end - path = "_security/profile/_suggest" + path = '_security/profile/_suggest' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb index dad4b51305..3eaee88596 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb @@ -15,20 +15,33 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Updates attributes of an existing API key. + # Update an API key. + # Update attributes of an existing API key. + # This API supports updates to an API key's access scope, expiration, and metadata. + # To use this API, you must have at least the +manage_own_api_key+ cluster privilege. + # Users can only update API keys that they created or that were granted to them. + # To update another user’s API key, use the +run_as+ feature to submit a request on behalf of another user. + # IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. + # Use this API to update API keys created by the create API key or grant API Key APIs. + # If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. + # It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. + # The access scope of an API key is derived from the +role_descriptors+ you specify in the request and a snapshot of the owner user's permissions at the time of the request. + # The snapshot of the owner's permissions is updated automatically on every call. + # IMPORTANT: If you don't specify +role_descriptors+ in the request, a call to this API might still change the API key's access scope. + # This change can occur if the owner user's permissions have changed since the API key was created or last modified. # - # @option arguments [String] :id The ID of the API key to update + # @option arguments [String] :id The ID of the API key to update. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The API key request to update attributes of an API key. + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-update-api-key.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-api-key # def update_api_key(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.update_api_key' } @@ -48,7 +61,7 @@ def update_api_key(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_PUT - path = "_security/api_key/#{Utils.__listify(_id)}" + path = "_security/api_key/#{Utils.listify(_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb index 141a5cd3af..0e159a0884 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb @@ -15,20 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Updates attributes of an existing cross-cluster API key. + # Update a cross-cluster API key. + # Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + # To use this API, you must have at least the +manage_security+ cluster privilege. + # Users can only update API keys that they created. + # To update another user's API key, use the +run_as+ feature to submit a request on behalf of another user. + # IMPORTANT: It's not possible to use an API key as the authentication credential for this API. + # To update an API key, the owner user's credentials are required. + # It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. + # This API supports updates to an API key's access scope, metadata, and expiration. + # The owner user's information, such as the +username+ and +realm+, is also updated automatically on every call. + # NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. # - # @option arguments [String] :id The ID of the cross-cluster API key to update + # @option arguments [String] :id The ID of the cross-cluster API key to update. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The request to update attributes of a cross-cluster API key. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-update-cross-cluster-api-key.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-cross-cluster-api-key # def update_cross_cluster_api_key(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.update_cross_cluster_api_key' } @@ -49,7 +59,7 @@ def update_cross_cluster_api_key(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_PUT - path = "_security/cross_cluster/api_key/#{Utils.__listify(_id)}" + path = "_security/cross_cluster/api_key/#{Utils.listify(_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb index bd86ffcbca..eacb0544e2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb @@ -15,21 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Security module Actions - # Update settings for the security system index + # Update security index settings. + # Update the user-configurable settings for the security internal index (+.security+ and associated indices). Only a subset of settings are allowed to be modified. This includes +index.auto_expand_replicas+ and +index.number_of_replicas+. + # NOTE: If +index.auto_expand_replicas+ is set, +index.number_of_replicas+ will be ignored during updates. + # If a specific index is not in use on the system and settings are provided for it, the request will be rejected. + # This API does not yet support configuring the settings for indices before they are in use. # - # @option arguments [Time] :master_timeout Timeout for connection to master - # @option arguments [Time] :timeout Timeout for acknowledgements from all nodes + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. + # @option arguments [Time] :timeout The period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body An object with the new settings for each index, if any (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-update-settings.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-settings # def update_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.update_settings' } @@ -39,7 +45,7 @@ def update_settings(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_PUT path = '_security/settings' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb index a8e24acf6f..f7bba80eb9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80 +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb # @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch @@ -50,9 +50,8 @@ module Actions def update_user_profile_data(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.update_user_profile_data' } - defined_params = [:uid].inject({}) do |set_variables, variable| + defined_params = [:uid].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) - set_variables end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -67,7 +66,7 @@ def update_user_profile_data(arguments = {}) _uid = arguments.delete(:uid) method = Elasticsearch::API::HTTP_PUT - path = "_security/profile/#{Utils.__listify(_uid)}/_data" + path = "_security/profile/#{Utils.listify(_uid)}/_data" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb b/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb index 19ee6beeed..b4f584db5e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb @@ -15,25 +15,40 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Simulate module Actions - # Simulates running ingest with example documents. + # Simulate data ingestion. + # Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + # This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + # The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + # If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + # No data is indexed into Elasticsearch. + # Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + # The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + # This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + # The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + # By default, the pipeline definitions that are currently in the system are used. + # However, you can supply substitute pipeline definitions in the body of the request. + # These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :index Default index for docs which don't provide one - # @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with if no pipeline is given for a particular document + # @option arguments [String] :index The index to simulate ingesting into. + # This value can be overridden by specifying an index on each document. + # If you specify this parameter in the request path, it is used for any documents that do not explicitly specify an index argument. + # @option arguments [String] :pipeline The pipeline to use as the default pipeline. + # This value can be used to override the default pipeline of the index. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The simulate definition (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/simulate-ingest-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-simulate-ingest # def ingest(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'simulate.ingest' } @@ -48,13 +63,13 @@ def ingest(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST path = if _index - "_ingest/#{Utils.__listify(_index)}/_simulate" + "_ingest/#{Utils.listify(_index)}/_simulate" else '_ingest/_simulate' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb index dfc7b63c8c..d919a7b262 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb @@ -15,21 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Snapshot module Actions - # Removes stale data from repository. + # Clean up the snapshot repository. + # Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. # - # @option arguments [String] :repository A repository name - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :repository The name of the snapshot repository to clean up. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+ Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. + # If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/clean-up-snapshot-repo-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-cleanup-repository # def cleanup_repository(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.cleanup_repository' } @@ -49,7 +54,7 @@ def cleanup_repository(arguments = {}) _repository = arguments.delete(:repository) method = Elasticsearch::API::HTTP_POST - path = "_snapshot/#{Utils.__listify(_repository)}/_cleanup" + path = "_snapshot/#{Utils.listify(_repository)}/_cleanup" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb index 4771ebf213..023cdb5de1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb @@ -15,28 +15,33 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Snapshot module Actions - # Clones indices from one snapshot into another snapshot in the same repository. + # Clone a snapshot. + # Clone part of all of a snapshot into another snapshot in the same repository. # - # @option arguments [String] :repository A repository name - # @option arguments [String] :snapshot The name of the snapshot to clone from - # @option arguments [String] :target_snapshot The name of the cloned snapshot to create - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node + # @option arguments [String] :repository The name of the snapshot repository that both source and target snapshot belong to. (*Required*) + # @option arguments [String] :snapshot The source snapshot name. (*Required*) + # @option arguments [String] :target_snapshot The target snapshot name. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # @option arguments [Time] :timeout The period of time to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The snapshot clone definition (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-clone # def clone(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.clone' } - defined_params = %i[repository snapshot target_snapshot].each_with_object({}) do |variable, set_variables| + defined_params = [:repository, :snapshot, :target_snapshot].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -58,7 +63,7 @@ def clone(arguments = {}) _target_snapshot = arguments.delete(:target_snapshot) method = Elasticsearch::API::HTTP_PUT - path = "_snapshot/#{Utils.__listify(_repository)}/#{Utils.__listify(_snapshot)}/_clone/#{Utils.__listify(_target_snapshot)}" + path = "_snapshot/#{Utils.listify(_repository)}/#{Utils.listify(_snapshot)}/_clone/#{Utils.listify(_target_snapshot)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb index 7b6e01d725..345f88b8ae 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb @@ -15,28 +15,33 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Snapshot module Actions - # Creates a snapshot in a repository. + # Create a snapshot. + # Take a snapshot of a cluster or of data streams and indices. # - # @option arguments [String] :repository A repository name - # @option arguments [String] :snapshot A snapshot name - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Boolean] :wait_for_completion Should this request wait until the operation has completed before returning + # @option arguments [String] :repository The name of the repository for the snapshot. (*Required*) + # @option arguments [String] :snapshot The name of the snapshot. + # It supportes date math. + # It must be unique in the repository. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :wait_for_completion If +true+, the request returns a response when the snapshot is complete. + # If +false+, the request returns a response when the snapshot initializes. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The snapshot definition + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-create # def create(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.create' } - defined_params = %i[repository snapshot].each_with_object({}) do |variable, set_variables| + defined_params = [:repository, :snapshot].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -54,7 +59,7 @@ def create(arguments = {}) _snapshot = arguments.delete(:snapshot) method = Elasticsearch::API::HTTP_PUT - path = "_snapshot/#{Utils.__listify(_repository)}/#{Utils.__listify(_snapshot)}" + path = "_snapshot/#{Utils.listify(_repository)}/#{Utils.listify(_snapshot)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb index aa94f85ffe..c8200cee42 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb @@ -15,23 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Snapshot module Actions - # Creates a repository. + # Create or update a snapshot repository. + # IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. + # To register a snapshot repository, the cluster's global metadata must be writeable. + # Ensure there are no cluster blocks (for example, +cluster.blocks.read_only+ and +clsuter.blocks.read_only_allow_delete+ settings) that prevent write access. + # Several options for this API can be specified using a query parameter or a request body parameter. + # If both parameters are specified, only the query parameter is used. # - # @option arguments [String] :repository A repository name - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Boolean] :verify Whether to verify the repository after creation + # @option arguments [String] :repository The name of the snapshot repository to register or update. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. + # If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # @option arguments [Boolean] :verify If +true+, the request verifies the repository is functional on all master and data nodes in the cluster. + # If +false+, this verification is skipped. + # You can also perform this verification with the verify snapshot repository API. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The repository definition (*Required*) + # @option arguments [Hash] :body repository # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-create-repository # def create_repository(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.create_repository' } @@ -52,7 +63,7 @@ def create_repository(arguments = {}) _repository = arguments.delete(:repository) method = Elasticsearch::API::HTTP_PUT - path = "_snapshot/#{Utils.__listify(_repository)}" + path = "_snapshot/#{Utils.listify(_repository)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb index 3489aad395..cd78b10103 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb @@ -15,27 +15,29 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Snapshot module Actions - # Deletes one or more snapshots. + # Delete snapshots. # - # @option arguments [String] :repository A repository name - # @option arguments [List] :snapshot A comma-separated list of snapshot names - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Boolean] :wait_for_completion Should this request wait until the operation has completed before returning + # @option arguments [String] :repository The name of the repository to delete a snapshot from. (*Required*) + # @option arguments [String] :snapshot A comma-separated list of snapshot names to delete. + # It also accepts wildcards (+*+). (*Required*) + # @option arguments [Time] :master_timeout The period to wait for the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-delete # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.delete' } - defined_params = %i[repository snapshot].each_with_object({}) do |variable, set_variables| + defined_params = [:repository, :snapshot].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -53,11 +55,11 @@ def delete(arguments = {}) _snapshot = arguments.delete(:snapshot) method = Elasticsearch::API::HTTP_DELETE - path = "_snapshot/#{Utils.__listify(_repository)}/#{Utils.__listify(_snapshot)}" + path = "_snapshot/#{Utils.listify(_repository)}/#{Utils.listify(_snapshot)}" params = Utils.process_params(arguments) if Array(arguments[:ignore]).include?(404) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb index c6168a3ff7..7b7b64aef6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb @@ -15,21 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Snapshot module Actions - # Deletes a repository. + # Delete snapshot repositories. + # When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. + # The snapshots themselves are left untouched and in place. # - # @option arguments [List] :repository Name of the snapshot repository to unregister. Wildcard (`*`) patterns are supported. - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String, Array] :repository The ame of the snapshot repositories to unregister. + # Wildcard (+*+) patterns are supported. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. + # If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-delete-repository # def delete_repository(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.delete_repository' } @@ -49,11 +56,11 @@ def delete_repository(arguments = {}) _repository = arguments.delete(:repository) method = Elasticsearch::API::HTTP_DELETE - path = "_snapshot/#{Utils.__listify(_repository)}" + path = "_snapshot/#{Utils.listify(_repository)}" params = Utils.process_params(arguments) if Array(arguments[:ignore]).include?(404) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb index fcb5af696b..82dd4cc216 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb @@ -15,38 +15,56 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Snapshot module Actions - # Returns information about a snapshot. + # Get snapshot information. + # NOTE: The +after+ parameter and +next+ field enable you to iterate through snapshots with some consistency guarantees regarding concurrent creation or deletion of snapshots. + # It is guaranteed that any snapshot that exists at the beginning of the iteration and is not concurrently deleted will be seen during the iteration. + # Snapshots concurrently created may be seen during an iteration. # - # @option arguments [String] :repository A repository name - # @option arguments [List] :snapshot A comma-separated list of snapshot names - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Boolean] :ignore_unavailable Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrown - # @option arguments [Boolean] :index_names Whether to include the name of each index in the snapshot. Defaults to true. - # @option arguments [Boolean] :index_details Whether to include details of each index in the snapshot, if those details are available. Defaults to false. - # @option arguments [Boolean] :include_repository Whether to include the repository name in the snapshot info. Defaults to true. - # @option arguments [String] :sort Allows setting a sort order for the result. Defaults to start_time (options: start_time, duration, name, repository, index_count, shard_count, failed_shard_count) - # @option arguments [Integer] :size Maximum number of snapshots to return. Defaults to 0 which means return all that match without limit. - # @option arguments [String] :order Sort order (options: asc, desc) - # @option arguments [String] :from_sort_value Value of the current sort column at which to start retrieval. - # @option arguments [String] :after Offset identifier to start pagination from as returned by the 'next' field in the response body. - # @option arguments [Integer] :offset Numeric offset to start pagination based on the snapshots matching the request. Defaults to 0 - # @option arguments [String] :slm_policy_filter Filter snapshots by a comma-separated list of SLM policy names that snapshots belong to. Accepts wildcards. Use the special pattern '_none' to match snapshots without an SLM policy - # @option arguments [Boolean] :verbose Whether to show verbose snapshot info or only show the basic info found in the repository index blob + # @option arguments [String] :repository A comma-separated list of snapshot repository names used to limit the request. + # Wildcard (+*+) expressions are supported. (*Required*) + # @option arguments [String, Array] :snapshot A comma-separated list of snapshot names to retrieve + # Wildcards (+*+) are supported. + # - To get information about all snapshots in a registered repository, use a wildcard (+*+) or +_all+. + # - To get information about any snapshots that are currently running, use +_current+. (*Required*) + # @option arguments [String] :after An offset identifier to start pagination from as returned by the next field in the response body. + # @option arguments [String] :from_sort_value The value of the current sort column at which to start retrieval. + # It can be a string +snapshot-+ or a repository name when sorting by snapshot or repository name. + # It can be a millisecond time value or a number when sorting by +index-+ or shard count. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error for any snapshots that are unavailable. + # @option arguments [Boolean] :index_details If +true+, the response includes additional information about each index in the snapshot comprising the number of shards in the index, the total size of the index in bytes, and the maximum number of segments per shard in the index. + # The default is +false+, meaning that this information is omitted. + # @option arguments [Boolean] :index_names If +true+, the response includes the name of each index in each snapshot. Server default: true. + # @option arguments [Boolean] :include_repository If +true+, the response includes the repository name in each snapshot. Server default: true. + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [String] :order The sort order. + # Valid values are +asc+ for ascending and +desc+ for descending order. + # The default behavior is ascending order. Server default: asc. + # @option arguments [Integer] :offset Numeric offset to start pagination from based on the snapshots matching this request. Using a non-zero value for this parameter is mutually exclusive with using the after parameter. Defaults to 0. Server default: 0. + # @option arguments [Integer] :size The maximum number of snapshots to return. + # The default is 0, which means to return all that match the request without limit. Server default: 0. + # @option arguments [String] :slm_policy_filter Filter snapshots by a comma-separated list of snapshot lifecycle management (SLM) policy names that snapshots belong to.You can use wildcards (+*+) and combinations of wildcards followed by exclude patterns starting with +-+. + # For example, the pattern +*,-policy-a-\*+ will return all snapshots except for those that were created by an SLM policy with a name starting with +policy-a-+. + # Note that the wildcard pattern +*+ matches all snapshots created by an SLM policy but not those snapshots that were not created by an SLM policy. + # To include snapshots that were not created by an SLM policy, you can use the special pattern +_none+ that will match all snapshots without an SLM policy. + # @option arguments [String] :sort The sort order for the result. + # The default behavior is sorting by snapshot start time stamp. Server default: start_time. + # @option arguments [Boolean] :verbose If +true+, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.NOTE: The parameters +size+, +order+, +after+, +from_sort_value+, +offset+, +slm_policy_filter+, and +sort+ are not supported when you set +verbose=false+ and the sort order for requests with +verbose=false+ is undefined. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-get # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.get' } - defined_params = %i[repository snapshot].each_with_object({}) do |variable, set_variables| + defined_params = [:repository, :snapshot].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -64,11 +82,11 @@ def get(arguments = {}) _snapshot = arguments.delete(:snapshot) method = Elasticsearch::API::HTTP_GET - path = "_snapshot/#{Utils.__listify(_repository)}/#{Utils.__listify(_snapshot)}" + path = "_snapshot/#{Utils.listify(_repository)}/#{Utils.listify(_snapshot)}" params = Utils.process_params(arguments) if Array(arguments[:ignore]).include?(404) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb index 83f3983f5d..c8587766db 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb @@ -15,21 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Snapshot module Actions - # Returns information about a repository. + # Get snapshot repository information. # - # @option arguments [List] :repository A comma-separated list of repository names - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false) + # @option arguments [String, Array] :repository A comma-separated list of snapshot repository names used to limit the request. + # Wildcard (+*+) expressions are supported including combining wildcards with exclude patterns starting with +-+.To get information about all snapshot repositories registered in the cluster, omit this parameter or use +*+ or +_all+. + # @option arguments [Boolean] :local If +true+, the request gets information from the local node only. + # If +false+, the request gets information from the master node. + # @option arguments [Time] :master_timeout The period to wait for the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: to 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-get-repository # def get_repository(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.get_repository' } @@ -48,14 +52,14 @@ def get_repository(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _repository - "_snapshot/#{Utils.__listify(_repository)}" + "_snapshot/#{Utils.listify(_repository)}" else '_snapshot' end params = Utils.process_params(arguments) if Array(arguments[:ignore]).include?(404) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb index 575313a411..c205cb23c0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb @@ -15,30 +15,111 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Snapshot module Actions - # Analyzes a repository for correctness and performance + # Analyze a snapshot repository. + # Analyze the performance characteristics and any incorrect behaviour found in a repository. + # The response exposes implementation details of the analysis which may change from version to version. + # The response body format is therefore not considered stable and may be different in newer versions. + # There are a large number of third-party storage systems available, not all of which are suitable for use as a snapshot repository by Elasticsearch. + # Some storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do. This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system. + # The default values for the parameters are deliberately low to reduce the impact of running an analysis inadvertently and to provide a sensible starting point for your investigations. + # Run your first analysis with the default parameter values to check for simple problems. + # If successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a +blob_count+ of at least +2000+, a +max_blob_size+ of at least +2gb+, a +max_total_data_size+ of at least +1tb+, and a +register_operation_count+ of at least +100+. + # Always specify a generous timeout, possibly +1h+ or longer, to allow time for each analysis to run to completion. + # Perform the analyses using a multi-node cluster of a similar size to your production cluster so that it can detect any problems that only arise when the repository is accessed by many nodes at once. + # If the analysis fails, Elasticsearch detected that your repository behaved unexpectedly. + # This usually means you are using a third-party storage system with an incorrect or incompatible implementation of the API it claims to support. + # If so, this storage system is not suitable for use as a snapshot repository. + # You will need to work with the supplier of your storage system to address the incompatibilities that Elasticsearch detects. + # If the analysis is successful, the API returns details of the testing process, optionally including how long each operation took. + # You can use this information to determine the performance of your storage system. + # If any operation fails or returns an incorrect result, the API returns an error. + # If the API returns an error, it may not have removed all the data it wrote to the repository. + # The error will indicate the location of any leftover data and this path is also recorded in the Elasticsearch logs. + # You should verify that this location has been cleaned up correctly. + # If there is still leftover data at the specified location, you should manually remove it. + # If the connection from your client to Elasticsearch is closed while the client is waiting for the result of the analysis, the test is cancelled. + # Some clients are configured to close their connection if no response is received within a certain timeout. + # An analysis takes a long time to complete so you might need to relax any such client-side timeouts. + # On cancellation the analysis attempts to clean up the data it was writing, but it may not be able to remove it all. + # The path to the leftover data is recorded in the Elasticsearch logs. + # You should verify that this location has been cleaned up correctly. + # If there is still leftover data at the specified location, you should manually remove it. + # If the analysis is successful then it detected no incorrect behaviour, but this does not mean that correct behaviour is guaranteed. + # The analysis attempts to detect common bugs but it does not offer 100% coverage. + # Additionally, it does not test the following: + # * Your repository must perform durable writes. Once a blob has been written it must remain in place until it is deleted, even after a power loss or similar disaster. + # * Your repository must not suffer from silent data corruption. Once a blob has been written, its contents must remain unchanged until it is deliberately modified or deleted. + # * Your repository must behave correctly even if connectivity from the cluster is disrupted. Reads and writes may fail in this case, but they must not return incorrect results. + # IMPORTANT: An analysis writes a substantial amount of data to your repository and then reads it back again. + # This consumes bandwidth on the network between the cluster and the repository, and storage space and I/O bandwidth on the repository itself. + # You must ensure this load does not affect other users of these systems. + # Analyses respect the repository settings +max_snapshot_bytes_per_sec+ and +max_restore_bytes_per_sec+ if available and the cluster setting +indices.recovery.max_bytes_per_sec+ which you can use to limit the bandwidth they consume. + # NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. + # NOTE: Different versions of Elasticsearch may perform different checks for repository compatibility, with newer versions typically being stricter than older ones. + # A storage system that passes repository analysis with one version of Elasticsearch may fail with a different version. + # This indicates it behaves incorrectly in ways that the former version did not detect. + # You must work with the supplier of your storage system to address the incompatibilities detected by the repository analysis API in any version of Elasticsearch. + # NOTE: This API may not work correctly in a mixed-version cluster. + # *Implementation details* + # NOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions. The request parameters and response format depend on details of the implementation so may also be different in newer versions. + # The analysis comprises a number of blob-level tasks, as set by the +blob_count+ parameter and a number of compare-and-exchange operations on linearizable registers, as set by the +register_operation_count+ parameter. + # These tasks are distributed over the data and master-eligible nodes in the cluster for execution. + # For most blob-level tasks, the executing node first writes a blob to the repository and then instructs some of the other nodes in the cluster to attempt to read the data it just wrote. + # The size of the blob is chosen randomly, according to the +max_blob_size+ and +max_total_data_size+ parameters. + # If any of these reads fails then the repository does not implement the necessary read-after-write semantics that Elasticsearch requires. + # For some blob-level tasks, the executing node will instruct some of its peers to attempt to read the data before the writing process completes. + # These reads are permitted to fail, but must not return partial data. + # If any read returns partial data then the repository does not implement the necessary atomicity semantics that Elasticsearch requires. + # For some blob-level tasks, the executing node will overwrite the blob while its peers are reading it. + # In this case the data read may come from either the original or the overwritten blob, but the read operation must not return partial data or a mix of data from the two blobs. + # If any of these reads returns partial data or a mix of the two blobs then the repository does not implement the necessary atomicity semantics that Elasticsearch requires for overwrites. + # The executing node will use a variety of different methods to write the blob. + # For instance, where applicable, it will use both single-part and multi-part uploads. + # Similarly, the reading nodes will use a variety of different methods to read the data back again. + # For instance they may read the entire blob from start to end or may read only a subset of the data. + # For some blob-level tasks, the executing node will cancel the write before it is complete. + # In this case, it still instructs some of the other nodes in the cluster to attempt to read the blob but all of these reads must fail to find the blob. + # Linearizable registers are special blobs that Elasticsearch manipulates using an atomic compare-and-exchange operation. + # This operation ensures correct and strongly-consistent behavior even when the blob is accessed by multiple nodes at the same time. + # The detailed implementation of the compare-and-exchange operation on linearizable registers varies by repository type. + # Repository analysis verifies that that uncontended compare-and-exchange operations on a linearizable register blob always succeed. + # Repository analysis also verifies that contended operations either succeed or report the contention but do not return incorrect results. + # If an operation fails due to contention, Elasticsearch retries the operation until it succeeds. + # Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. + # Some operations also verify the behavior on small blobs with sizes other than 8 bytes. # - # @option arguments [String] :repository A repository name - # @option arguments [Number] :blob_count Number of blobs to create during the test. Defaults to 100. - # @option arguments [Number] :concurrency Number of operations to run concurrently during the test. Defaults to 10. - # @option arguments [Number] :read_node_count Number of nodes on which to read a blob after writing. Defaults to 10. - # @option arguments [Number] :early_read_node_count Number of nodes on which to perform an early read on a blob, i.e. before writing has completed. Early reads are rare actions so the 'rare_action_probability' parameter is also relevant. Defaults to 2. - # @option arguments [Number] :seed Seed for the random number generator used to create the test workload. Defaults to a random value. - # @option arguments [Number] :rare_action_probability Probability of taking a rare action such as an early read or an overwrite. Defaults to 0.02. - # @option arguments [String] :max_blob_size Maximum size of a blob to create during the test, e.g '1gb' or '100mb'. Defaults to '10mb'. - # @option arguments [String] :max_total_data_size Maximum total size of all blobs to create during the test, e.g '1tb' or '100gb'. Defaults to '1gb'. - # @option arguments [Time] :timeout Explicit operation timeout. Defaults to '30s'. - # @option arguments [Boolean] :detailed Whether to return detailed results or a summary. Defaults to 'false' so that only the summary is returned. - # @option arguments [Boolean] :rarely_abort_writes Whether to rarely abort writes before they complete. Defaults to 'true'. + # @option arguments [String] :repository The name of the repository. (*Required*) + # @option arguments [Integer] :blob_count The total number of blobs to write to the repository during the test. + # For realistic experiments, you should set it to at least +2000+. Server default: 100. + # @option arguments [Integer] :concurrency The number of operations to run concurrently during the test. Server default: 10. + # @option arguments [Boolean] :detailed Indicates whether to return detailed results, including timing information for every operation performed during the analysis. + # If false, it returns only a summary of the analysis. + # @option arguments [Integer] :early_read_node_count The number of nodes on which to perform an early read operation while writing each blob. + # Early read operations are only rarely performed. Server default: 2. + # @option arguments [Integer, String] :max_blob_size The maximum size of a blob to be written during the test. + # For realistic experiments, you should set it to at least +2gb+. Server default: 10mb. + # @option arguments [Integer, String] :max_total_data_size An upper limit on the total size of all the blobs written during the test. + # For realistic experiments, you should set it to at least +1tb+. Server default: 1gb. + # @option arguments [Float] :rare_action_probability The probability of performing a rare action such as an early read, an overwrite, or an aborted write on each blob. Server default: 0.02. + # @option arguments [Boolean] :rarely_abort_writes Indicates whether to rarely cancel writes before they complete. Server default: true. + # @option arguments [Integer] :read_node_count The number of nodes on which to read a blob after writing. Server default: 10. + # @option arguments [Integer] :register_operation_count The minimum number of linearizable register operations to perform in total. + # For realistic experiments, you should set it to at least +100+. Server default: 10. + # @option arguments [Integer] :seed The seed for the pseudo-random number generator used to generate the list of operations performed during the test. + # To repeat the same set of operations in multiple experiments, use the same seed in each experiment. + # Note that the operations are performed concurrently so might not always happen in the same order on each run. + # @option arguments [Time] :timeout The period of time to wait for the test to complete. + # If no response is received before the timeout expires, the test is cancelled and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-repository-analyze # def repository_analyze(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.repository_analyze' } @@ -58,7 +139,7 @@ def repository_analyze(arguments = {}) _repository = arguments.delete(:repository) method = Elasticsearch::API::HTTP_POST - path = "_snapshot/#{Utils.__listify(_repository)}/_analyze" + path = "_snapshot/#{Utils.listify(_repository)}/_analyze" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb index 02e05a2114..aef01607c9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb @@ -15,28 +15,43 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Snapshot module Actions - # Restores a snapshot. + # Restore a snapshot. + # Restore a snapshot of a cluster or data streams and indices. + # You can restore a snapshot only to a running cluster with an elected master node. + # The snapshot repository must be registered and available to the cluster. + # The snapshot and cluster versions must be compatible. + # To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + # Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + # + + # GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + # + + # If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + # If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. # - # @option arguments [String] :repository A repository name - # @option arguments [String] :snapshot A snapshot name - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Boolean] :wait_for_completion Should this request wait until the operation has completed before returning + # @option arguments [String] :repository The name of the repository to restore a snapshot from. (*Required*) + # @option arguments [String] :snapshot The name of the snapshot to restore. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # @option arguments [Boolean] :wait_for_completion If +true+, the request returns a response when the restore operation completes. + # The operation is complete when it finishes all attempts to recover primary shards for restored indices. + # This applies even if one or more of the recovery attempts fail.If +false+, the request returns a response when the restore operation initializes. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Details of what to restore + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-restore # def restore(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.restore' } - defined_params = %i[repository snapshot].each_with_object({}) do |variable, set_variables| + defined_params = [:repository, :snapshot].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -54,7 +69,7 @@ def restore(arguments = {}) _snapshot = arguments.delete(:snapshot) method = Elasticsearch::API::HTTP_POST - path = "_snapshot/#{Utils.__listify(_repository)}/#{Utils.__listify(_snapshot)}/_restore" + path = "_snapshot/#{Utils.listify(_repository)}/#{Utils.listify(_snapshot)}/_restore" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb index d6fa97d5ea..01b7fd7fb8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb @@ -15,27 +15,44 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Snapshot module Actions - # Returns information about the status of a snapshot. + # Get the snapshot status. + # Get a detailed description of the current state for each shard participating in the snapshot. + # Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + # If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + # If you omit the ++ request path parameter, the request retrieves information only for currently running snapshots. + # This usage is preferred. + # If needed, you can specify ++ and ++ to retrieve information for specific snapshots, even if they're not currently running. + # WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + # The API requires a read from the repository for each shard in each snapshot. + # For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + # Depending on the latency of your storage, such requests can take an extremely long time to return results. + # These requests can also tax machine resources and, when using cloud storage, incur high processing costs. # - # @option arguments [String] :repository A repository name - # @option arguments [List] :snapshot A comma-separated list of snapshot names - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Boolean] :ignore_unavailable Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrown + # @option arguments [String] :repository The snapshot repository name used to limit the request. + # It supports wildcards (+*+) if ++ isn't specified. + # @option arguments [String, Array] :snapshot A comma-separated list of snapshots to retrieve status for. + # The default is currently running snapshots. + # Wildcards (+*+) are not supported. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error for any snapshots that are unavailable. + # If +true+, the request ignores snapshots that are unavailable, such as those that are corrupted or temporarily cannot be returned. + # @option arguments [Time] :master_timeout The period to wait for the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-status # def status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.status' } - defined_params = %i[repository snapshot].each_with_object({}) do |variable, set_variables| + defined_params = [:repository, :snapshot].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -51,16 +68,16 @@ def status(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _repository && _snapshot - "_snapshot/#{Utils.__listify(_repository)}/#{Utils.__listify(_snapshot)}/_status" + "_snapshot/#{Utils.listify(_repository)}/#{Utils.listify(_snapshot)}/_status" elsif _repository - "_snapshot/#{Utils.__listify(_repository)}/_status" + "_snapshot/#{Utils.listify(_repository)}/_status" else '_snapshot/_status' end params = Utils.process_params(arguments) if Array(arguments[:ignore]).include?(404) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb index 335d962d3c..235e8bbfa0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb @@ -15,21 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Snapshot module Actions - # Verifies a repository. + # Verify a snapshot repository. + # Check for common misconfigurations in a snapshot repository. # - # @option arguments [String] :repository A repository name - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :repository The name of the snapshot repository to verify. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. + # If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-verify-repository # def verify_repository(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.verify_repository' } @@ -49,7 +54,7 @@ def verify_repository(arguments = {}) _repository = arguments.delete(:repository) method = Elasticsearch::API::HTTP_POST - path = "_snapshot/#{Utils.__listify(_repository)}/_verify" + path = "_snapshot/#{Utils.listify(_repository)}/_verify" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb index 96088812ca..044623097a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb @@ -15,21 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SnapshotLifecycleManagement module Actions - # Deletes an existing snapshot lifecycle policy. + # Delete a policy. + # Delete a snapshot lifecycle policy definition. + # This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. # - # @option arguments [String] :policy_id The id of the snapshot lifecycle policy to remove - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :policy_id The id of the snapshot lifecycle policy to remove (*Required*) + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete-policy.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-delete-lifecycle # def delete_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.delete_lifecycle' } @@ -49,7 +53,7 @@ def delete_lifecycle(arguments = {}) _policy_id = arguments.delete(:policy_id) method = Elasticsearch::API::HTTP_DELETE - path = "_slm/policy/#{Utils.__listify(_policy_id)}" + path = "_slm/policy/#{Utils.listify(_policy_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb index de3210fc9a..26cec16df2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb @@ -15,21 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SnapshotLifecycleManagement module Actions - # Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. + # Run a policy. + # Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. + # The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. # - # @option arguments [String] :policy_id The id of the snapshot lifecycle policy to be executed - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :policy_id The id of the snapshot lifecycle policy to be executed (*Required*) + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-execute-lifecycle # def execute_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.execute_lifecycle' } @@ -49,7 +53,7 @@ def execute_lifecycle(arguments = {}) _policy_id = arguments.delete(:policy_id) method = Elasticsearch::API::HTTP_PUT - path = "_slm/policy/#{Utils.__listify(_policy_id)}/_execute" + path = "_slm/policy/#{Utils.listify(_policy_id)}/_execute" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb index 6a16a045ef..eb4048914e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb @@ -15,20 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SnapshotLifecycleManagement module Actions - # Deletes any snapshots that are expired according to the policy's retention rules. + # Run a retention policy. + # Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. + # The retention policy is normally applied according to its schedule. # - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-retention.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-execute-retention # def execute_retention(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.execute_retention' } @@ -36,7 +40,7 @@ def execute_retention(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_POST path = '_slm/_execute_retention' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb index a697d0624f..de8e29c714 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb @@ -15,21 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SnapshotLifecycleManagement module Actions - # Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + # Get policy information. + # Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. # - # @option arguments [List] :policy_id Comma-separated list of snapshot lifecycle policies to retrieve - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String, Array] :policy_id Comma-separated list of snapshot lifecycle policies to retrieve + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-policy.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-get-lifecycle # def get_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.get_lifecycle' } @@ -48,7 +51,7 @@ def get_lifecycle(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _policy_id - "_slm/policy/#{Utils.__listify(_policy_id)}" + "_slm/policy/#{Utils.listify(_policy_id)}" else '_slm/policy' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb index 2a80670fa1..72c5c31bcd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb @@ -15,20 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SnapshotLifecycleManagement module Actions - # Returns global and policy-level statistics about actions taken by snapshot lifecycle management. + # Get snapshot lifecycle management statistics. + # Get global and policy-level statistics about actions taken by snapshot lifecycle management. # - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-stats.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-get-stats # def get_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.get_stats' } @@ -36,7 +37,7 @@ def get_stats(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_slm/stats' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb index 5e2172e4c2..c3d6c20989 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb @@ -15,20 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SnapshotLifecycleManagement module Actions - # Retrieves the status of snapshot lifecycle management (SLM). + # Get the snapshot lifecycle management status. # - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-get-status # def get_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.get_status' } @@ -36,7 +40,7 @@ def get_status(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_slm/status' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb index 23e3d41bda..143f53d107 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb @@ -15,22 +15,29 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SnapshotLifecycleManagement module Actions - # Creates or updates a snapshot lifecycle policy. + # Create or update a policy. + # Create or update a snapshot lifecycle policy. + # If the policy already exists, this request increments the policy version. + # Only the latest version of a policy is stored. # - # @option arguments [String] :policy_id The id of the snapshot lifecycle policy - # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :policy_id The identifier for the snapshot lifecycle policy you want to create or update. (*Required*) + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The snapshot lifecycle policy definition to register + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put-policy.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-put-lifecycle # def put_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.put_lifecycle' } @@ -50,7 +57,7 @@ def put_lifecycle(arguments = {}) _policy_id = arguments.delete(:policy_id) method = Elasticsearch::API::HTTP_PUT - path = "_slm/policy/#{Utils.__listify(_policy_id)}" + path = "_slm/policy/#{Utils.listify(_policy_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb index 7e5a1d73bf..8614392ced 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb @@ -15,20 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SnapshotLifecycleManagement module Actions - # Turns on snapshot lifecycle management (SLM). + # Start snapshot lifecycle management. + # Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. + # Manually starting SLM is necessary only if it has been stopped using the stop SLM API. # - # @option arguments [Time] :master_timeout Timeout for processing on master node - # @option arguments [Time] :timeout Timeout for acknowledgement of update from all nodes in cluster + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-start # def start(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.start' } @@ -36,7 +42,7 @@ def start(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_POST path = '_slm/start' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb index d5dbab1d1e..d2d416538c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb @@ -15,20 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SnapshotLifecycleManagement module Actions - # Turns off snapshot lifecycle management (SLM). + # Stop snapshot lifecycle management. + # Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + # This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. + # Stopping SLM does not stop any snapshots that are in progress. + # You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. + # The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. + # Use the get snapshot lifecycle management status API to see if SLM is running. # - # @option arguments [Time] :master_timeout Timeout for processing on master node - # @option arguments [Time] :timeout Timeout for acknowledgement of update from all nodes in cluster + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # @option arguments [Time] :timeout The period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-stop # def stop(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.stop' } @@ -36,7 +46,7 @@ def stop(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_POST path = '_slm/stop' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb index c9ff2560fe..4876afbe72 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb @@ -15,19 +15,19 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SQL module Actions - # Clears the SQL cursor + # Clear an SQL search cursor. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Specify the cursor value in the `cursor` element to clean the cursor. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-sql-cursor-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-clear-cursor # def clear_cursor(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'sql.clear_cursor' } @@ -37,7 +37,7 @@ def clear_cursor(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_sql/close' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb index 06b0b77f9d..6b612dd237 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb @@ -15,19 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SQL module Actions - # Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + # Delete an async SQL search. + # Delete an async SQL search or a stored synchronous SQL search. + # If the search is still running, the API cancels it. + # If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: + # * Users with the +cancel_task+ cluster privilege. + # * The user who first submitted the search. # - # @option arguments [String] :id The async search ID + # @option arguments [String] :id The identifier for the search. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-async-sql-search-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-delete-async # def delete_async(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'sql.delete_async' } @@ -47,7 +52,7 @@ def delete_async(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_DELETE - path = "_sql/async/delete/#{Utils.__listify(_id)}" + path = "_sql/async/delete/#{Utils.listify(_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb index c1eb5685ea..b1852c22ae 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb @@ -15,23 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SQL module Actions - # Returns the current status and available results for an async SQL search or stored synchronous SQL search + # Get async SQL search results. + # Get the current status and available results for an async SQL search or stored synchronous SQL search. + # If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. # - # @option arguments [String] :id The async search ID - # @option arguments [String] :delimiter Separator for CSV results - # @option arguments [String] :format Short version of the Accept header, e.g. json, yaml - # @option arguments [Time] :keep_alive Retention period for the search and its results - # @option arguments [Time] :wait_for_completion_timeout Duration to wait for complete results + # @option arguments [String] :id The identifier for the search. (*Required*) + # @option arguments [String] :delimiter The separator for CSV results. + # The API supports this parameter only for CSV responses. Server default: ,. + # @option arguments [String] :format The format for the response. + # You must specify a format using this parameter or the +Accept+ HTTP header. + # If you specify both, the API uses this parameter. + # @option arguments [Time] :keep_alive The retention period for the search and its results. + # It defaults to the +keep_alive+ period for the original SQL search. + # @option arguments [Time] :wait_for_completion_timeout The period to wait for complete results. + # It defaults to no timeout, meaning the request waits for complete search results. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-async-sql-search-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-get-async # def get_async(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'sql.get_async' } @@ -51,7 +58,7 @@ def get_async(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_GET - path = "_sql/async/#{Utils.__listify(_id)}" + path = "_sql/async/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb index a217d9fdae..60593c1420 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb @@ -15,19 +15,20 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SQL module Actions - # Returns the current status of an async SQL search or a stored synchronous SQL search + # Get the async SQL search status. + # Get the current status of an async SQL search or a stored synchronous SQL search. # - # @option arguments [String] :id The async search ID + # @option arguments [String] :id The identifier for the search. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-async-sql-search-status-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-get-async-status # def get_async_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'sql.get_async_status' } @@ -47,7 +48,7 @@ def get_async_status(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_GET - path = "_sql/async/status/#{Utils.__listify(_id)}" + path = "_sql/async/status/#{Utils.listify(_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb index 7a187a5107..357fb9938e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb @@ -15,20 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SQL module Actions - # Executes a SQL request + # Get SQL search results. + # Run an SQL request. # - # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml + # @option arguments [String] :format The format for the response. + # You can also specify a format using the +Accept+ HTTP header. + # If you specify both this parameter and the +Accept+ HTTP header, this parameter takes precedence. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Use the `query` element to start a query. Use the `cursor` element to continue a query. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-search-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-query # def query(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'sql.query' } @@ -38,7 +41,7 @@ def query(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_sql' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb index 1f872caf67..04ce5d206b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb @@ -15,19 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SQL module Actions - # Translates SQL into Elasticsearch queries + # Translate SQL into Elasticsearch queries. + # Translate an SQL search into a search API request containing Query DSL. + # It accepts the same request body parameters as the SQL search API, excluding +cursor+. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Specify the query in the `query` element. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-translate-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-translate # def translate(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'sql.translate' } @@ -37,7 +39,7 @@ def translate(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_sql/translate' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb index 004f33c185..72fece354c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb @@ -15,18 +15,28 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module SSL module Actions - # Retrieves information about the X.509 certificates used to encrypt communications in the cluster. + # Get SSL certificates. + # Get information about the X.509 certificates that are used to encrypt communications in the cluster. + # The API returns a list that includes certificates from all TLS contexts including: + # - Settings for transport and HTTP interfaces + # - TLS settings that are used within authentication realms + # - TLS settings for remote monitoring exporters + # The list includes certificates that are used for configuring trust, such as those configured in the +xpack.security.transport.ssl.truststore+ and +xpack.security.transport.ssl.certificate_authorities+ settings. + # It also includes certificates that are used for configuring server identity, such as +xpack.security.http.ssl.keystore+ and +xpack.security.http.ssl.certificate settings+. + # The list does not include certificates that are sourced from the default SSL context of the Java Runtime Environment (JRE), even if those certificates are in use within Elasticsearch. + # NOTE: When a PKCS#11 token is configured as the truststore of the JRE, the API returns all the certificates that are included in the PKCS#11 token irrespective of whether these are used in the Elasticsearch TLS configuration. + # If Elasticsearch is configured to use a keystore or truststore, the API output includes all certificates in that store, even though some of the certificates might not be in active use within the cluster. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-ssl.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ssl-certificates # def certificates(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ssl.certificates' } @@ -34,7 +44,7 @@ def certificates(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_ssl/certificates' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb index 9d91211e7a..27c1ef19c8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb @@ -15,19 +15,31 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Synonyms module Actions - # Deletes a synonym set + # Delete a synonym set. + # You can only delete a synonyms set that is not in use by any index analyzer. + # Synonyms sets can be used in synonym graph token filters and synonym token filters. + # These synonym filters can be used as part of search analyzers. + # Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). + # Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. + # If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. + # To prevent that, synonyms sets that are used in analyzers can't be deleted. + # A delete request in this case will return a 400 response code. + # To remove a synonyms set, you must first remove all indices that contain analyzers using it. + # You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. + # Once finished, you can delete the index. + # When the synonyms set is not used in analyzers, you will be able to delete it. # - # @option arguments [String] :id The id of the synonyms set to be deleted + # @option arguments [String] :id The synonyms set identifier to delete. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-synonyms-set.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-delete-synonym # def delete_synonym(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'synonyms.delete_synonym' } @@ -47,7 +59,7 @@ def delete_synonym(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_DELETE - path = "_synonyms/#{Utils.__listify(_id)}" + path = "_synonyms/#{Utils.listify(_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb index 26183609b4..2ca91ce84e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb @@ -15,25 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Synonyms module Actions - # Deletes a synonym rule in a synonym set + # Delete a synonym rule. + # Delete a synonym rule from a synonym set. # - # @option arguments [String] :set_id The id of the synonym set to be updated - # @option arguments [String] :rule_id The id of the synonym rule to be deleted + # @option arguments [String] :set_id The ID of the synonym set to update. (*Required*) + # @option arguments [String] :rule_id The ID of the synonym rule to delete. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-synonym-rule.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-delete-synonym-rule # def delete_synonym_rule(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'synonyms.delete_synonym_rule' } - defined_params = %i[set_id rule_id].each_with_object({}) do |variable, set_variables| + defined_params = [:set_id, :rule_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -51,7 +52,7 @@ def delete_synonym_rule(arguments = {}) _rule_id = arguments.delete(:rule_id) method = Elasticsearch::API::HTTP_DELETE - path = "_synonyms/#{Utils.__listify(_set_id)}/#{Utils.__listify(_rule_id)}" + path = "_synonyms/#{Utils.listify(_set_id)}/#{Utils.listify(_rule_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb index c09fddeac4..08a639aa7b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb @@ -15,21 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Synonyms module Actions - # Retrieves a synonym set + # Get a synonym set. # - # @option arguments [String] :id The name of the synonyms set to be retrieved - # @option arguments [Integer] :from Starting offset - # @option arguments [Integer] :size specifies a max number of results to get + # @option arguments [String] :id The synonyms set identifier to retrieve. (*Required*) + # @option arguments [Integer] :from The starting offset for query rules to retrieve. Server default: 0. + # @option arguments [Integer] :size The max number of query rules to retrieve. Server default: 10. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-synonyms-set.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-get-synonym # def get_synonym(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'synonyms.get_synonym' } @@ -49,7 +49,7 @@ def get_synonym(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_GET - path = "_synonyms/#{Utils.__listify(_id)}" + path = "_synonyms/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb index 59769ec746..8673fae61a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb @@ -15,25 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Synonyms module Actions - # Retrieves a synonym rule from a synonym set + # Get a synonym rule. + # Get a synonym rule from a synonym set. # - # @option arguments [String] :set_id The id of the synonym set to retrieve the synonym rule from - # @option arguments [String] :rule_id The id of the synonym rule to retrieve + # @option arguments [String] :set_id The ID of the synonym set to retrieve the synonym rule from. (*Required*) + # @option arguments [String] :rule_id The ID of the synonym rule to retrieve. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-synonym-rule.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-get-synonym-rule # def get_synonym_rule(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'synonyms.get_synonym_rule' } - defined_params = %i[set_id rule_id].each_with_object({}) do |variable, set_variables| + defined_params = [:set_id, :rule_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -51,7 +52,7 @@ def get_synonym_rule(arguments = {}) _rule_id = arguments.delete(:rule_id) method = Elasticsearch::API::HTTP_GET - path = "_synonyms/#{Utils.__listify(_set_id)}/#{Utils.__listify(_rule_id)}" + path = "_synonyms/#{Utils.listify(_set_id)}/#{Utils.listify(_rule_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb index 3580303fb4..054050ef83 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb @@ -15,20 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Synonyms module Actions - # Retrieves a summary of all defined synonym sets + # Get all synonym sets. + # Get a summary of all defined synonym sets. # - # @option arguments [Integer] :from Starting offset - # @option arguments [Integer] :size specifies a max number of results to get + # @option arguments [Integer] :from The starting offset for synonyms sets to retrieve. Server default: 0. + # @option arguments [Integer] :size The maximum number of synonyms sets to retrieve. Server default: 10. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/list-synonyms-sets.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-get-synonym # def get_synonyms_sets(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'synonyms.get_synonyms_sets' } @@ -36,7 +37,7 @@ def get_synonyms_sets(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_synonyms' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb index 99a76d6515..02784a3b9d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb @@ -15,20 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Synonyms module Actions - # Creates or updates a synonyms set + # Create or update a synonym set. + # Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + # If you need to manage more synonym rules, you can create multiple synonym sets. + # When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. + # This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. # - # @option arguments [String] :id The id of the synonyms set to be created or updated + # @option arguments [String] :id The ID of the synonyms set to be created or updated. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Synonyms set rules (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-synonyms-set.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-put-synonym # def put_synonym(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'synonyms.put_synonym' } @@ -49,7 +53,7 @@ def put_synonym(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_PUT - path = "_synonyms/#{Utils.__listify(_id)}" + path = "_synonyms/#{Utils.listify(_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb index cc7804380e..df00e195ea 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb @@ -15,26 +15,29 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Synonyms module Actions - # Creates or updates a synonym rule in a synonym set + # Create or update a synonym rule. + # Create or update a synonym rule in a synonym set. + # If any of the synonym rules included is invalid, the API returns an error. + # When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. # - # @option arguments [String] :set_id The id of the synonym set to be updated with the synonym rule - # @option arguments [String] :rule_id The id of the synonym rule to be updated or created + # @option arguments [String] :set_id The ID of the synonym set. (*Required*) + # @option arguments [String] :rule_id The ID of the synonym rule to be updated or created. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Synonym rule (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-synonym-rule.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-put-synonym-rule # def put_synonym_rule(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'synonyms.put_synonym_rule' } - defined_params = %i[set_id rule_id].each_with_object({}) do |variable, set_variables| + defined_params = [:set_id, :rule_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -53,7 +56,7 @@ def put_synonym_rule(arguments = {}) _rule_id = arguments.delete(:rule_id) method = Elasticsearch::API::HTTP_PUT - path = "_synonyms/#{Utils.__listify(_set_id)}/#{Utils.__listify(_rule_id)}" + path = "_synonyms/#{Utils.listify(_set_id)}/#{Utils.listify(_rule_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb index 9ce81d2afc..624895606a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb @@ -15,27 +15,35 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Tasks module Actions - # Cancels a task, if it can be cancelled through an API. + # Cancel a task. + # WARNING: The task management API is new and should still be considered a beta feature. + # The API may change in ways that are not backwards compatible. + # A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. + # It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. + # The get task information API will continue to list these cancelled tasks until they complete. + # The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible. + # To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the +?detailed+ parameter to identify the other tasks the system is running. + # You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :task_id Cancel the task with specified task id (node_id:task_number) - # @option arguments [List] :nodes A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - # @option arguments [List] :actions A comma-separated list of actions that should be cancelled. Leave empty to cancel all. - # @option arguments [String] :parent_task_id Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all. - # @option arguments [Boolean] :wait_for_completion Should the request block until the cancellation of the task and its descendant tasks is completed. Defaults to false + # @option arguments [String, Integer] :task_id The task identifier. + # @option arguments [String] :actions A comma-separated list or wildcard expression of actions that is used to limit the request. + # @option arguments [Array] :nodes A comma-separated list of node IDs or names that is used to limit the request. + # @option arguments [String] :parent_task_id A parent task ID that is used to limit the tasks. + # @option arguments [Boolean] :wait_for_completion If true, the request blocks until all found tasks are complete. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-tasks # def cancel(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'tasks.cancel' } @@ -54,7 +62,7 @@ def cancel(arguments = {}) method = Elasticsearch::API::HTTP_POST path = if _task_id - "_tasks/#{Utils.__listify(_task_id)}/_cancel" + "_tasks/#{Utils.listify(_task_id)}/_cancel" else '_tasks/_cancel' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb index 49f700537a..c317b22196 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb @@ -15,25 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Tasks module Actions - # Returns information about a task. + # Get task information. + # Get information about a task currently running in the cluster. + # WARNING: The task management API is new and should still be considered a beta feature. + # The API may change in ways that are not backwards compatible. + # If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :task_id Return the task with specified id (node_id:task_number) - # @option arguments [Boolean] :wait_for_completion Wait for the matching tasks to complete (default: false) - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :task_id The task identifier. (*Required*) + # @option arguments [Time] :timeout The period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks until the task has completed. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-tasks # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'tasks.get' } @@ -43,6 +48,8 @@ def get(arguments = {}) end request_opts[:defined_params] = defined_params unless defined_params.empty? + raise ArgumentError, "Required argument 'task_id' missing" unless arguments[:task_id] + arguments = arguments.clone headers = arguments.delete(:headers) || {} @@ -51,7 +58,7 @@ def get(arguments = {}) _task_id = arguments.delete(:task_id) method = Elasticsearch::API::HTTP_GET - path = "_tasks/#{Utils.__listify(_task_id)}" + path = "_tasks/#{Utils.listify(_task_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb index 52c522cbea..e0ec98d23c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb @@ -15,29 +15,87 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Tasks module Actions - # Returns a list of tasks. + # Get all tasks. + # Get information about the tasks currently running on one or more nodes in the cluster. + # WARNING: The task management API is new and should still be considered a beta feature. + # The API may change in ways that are not backwards compatible. + # **Identifying running tasks** + # The +X-Opaque-Id header+, when provided on the HTTP request header, is going to be returned as a header in the response as well as in the headers field for in the task information. + # This enables you to track certain calls or associate certain tasks with the client that started them. + # For example: + # + + # curl -i -H "X-Opaque-Id: 123456" "http://localhost:9200/_tasks?group_by=parents" + # + + # The API returns the following result: + # + + # HTTP/1.1 200 OK + # X-Opaque-Id: 123456 + # content-type: application/json; charset=UTF-8 + # content-length: 831 + # { + # "tasks" : { + # "u5lcZHqcQhu-rUoFaqDphA:45" : { + # "node" : "u5lcZHqcQhu-rUoFaqDphA", + # "id" : 45, + # "type" : "transport", + # "action" : "cluster:monitor/tasks/lists", + # "start_time_in_millis" : 1513823752749, + # "running_time_in_nanos" : 293139, + # "cancellable" : false, + # "headers" : { + # "X-Opaque-Id" : "123456" + # }, + # "children" : [ + # { + # "node" : "u5lcZHqcQhu-rUoFaqDphA", + # "id" : 46, + # "type" : "direct", + # "action" : "cluster:monitor/tasks/lists[n]", + # "start_time_in_millis" : 1513823752750, + # "running_time_in_nanos" : 92133, + # "cancellable" : false, + # "parent_task_id" : "u5lcZHqcQhu-rUoFaqDphA:45", + # "headers" : { + # "X-Opaque-Id" : "123456" + # } + # } + # ] + # } + # } + # } + # + + # In this example, +X-Opaque-Id: 123456+ is the ID as a part of the response header. + # The +X-Opaque-Id+ in the task +headers+ is the ID for the task that was initiated by the REST request. + # The +X-Opaque-Id+ in the children +headers+ is the child task of the task that was initiated by the REST request. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [List] :nodes A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - # @option arguments [List] :actions A comma-separated list of actions that should be returned. Leave empty to return all. - # @option arguments [Boolean] :detailed Return detailed task information (default: false) - # @option arguments [String] :parent_task_id Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all. - # @option arguments [Boolean] :wait_for_completion Wait for the matching tasks to complete (default: false) - # @option arguments [String] :group_by Group tasks by nodes or parent/child relationships (options: nodes, parents, none) - # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [String] :actions A comma-separated list or wildcard expression of actions used to limit the request. + # For example, you can use +cluser:*+ to retrieve all cluster-related tasks. + # @option arguments [Boolean] :detailed If +true+, the response includes detailed information about the running tasks. + # This information is useful to distinguish tasks from each other but is more costly to run. + # @option arguments [String] :group_by A key that is used to group tasks in the response. + # The task lists can be grouped either by nodes or by parent tasks. + # @option arguments [String, Array] :nodes A comma-separated list of node IDs or names that is used to limit the returned information. + # @option arguments [String] :parent_task_id A parent task identifier that is used to limit returned information. + # To return all tasks, omit this parameter or use a value of +-1+. + # If the parent task is not found, the API does not return a 404 response code. + # @option arguments [Time] :timeout The period to wait for each node to respond. + # If a node does not respond before its timeout expires, the response does not include its information. + # However, timed out nodes are included in the +node_failures+ property. Server default: 30s. + # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks until the operation is complete. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-tasks # def list(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'tasks.list' } @@ -45,7 +103,7 @@ def list(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_tasks' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb b/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb index 93cbc80f7e..5c59004445 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb @@ -15,19 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + # Get terms in an index. + # Discover terms that match a partial string in an index. + # This API is designed for low-latency look-ups used in auto-complete scenarios. # - # @option arguments [List] :index A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + # @option arguments [String] :index A comma-separated list of data streams, indices, and index aliases to search. + # Wildcard (+*+) expressions are supported. + # To search all data streams or indices, omit this parameter or use +*+ or +_all+. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body field name, string which is the prefix expected in matching terms, timeout and size for max number of results + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-terms-enum # def terms_enum(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'terms_enum' } @@ -52,7 +56,7 @@ def terms_enum(arguments = {}) Elasticsearch::API::HTTP_GET end - path = "#{Utils.__listify(_index)}/_terms_enum" + path = "#{Utils.listify(_index)}/_terms_enum" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb b/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb index 8b834d9ab6..2f16c9a25a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb @@ -15,36 +15,63 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Returns information and statistics about terms in the fields of a particular document. + # Get term vector information. + # Get information and statistics about terms in the fields of a particular document. + # You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + # You can specify the fields you are interested in through the +fields+ parameter or by adding the fields to the request body. + # For example: + # + + # GET /my-index-000001/_termvectors/1?fields=message + # + + # Fields can be specified using wildcards, similar to the multi match query. + # Term vectors are real-time by default, not near real-time. + # This can be changed by setting +realtime+ parameter to +false+. + # You can request three types of values: _term information_, _term statistics_, and _field statistics_. + # By default, all term information and field statistics are returned for all fields but term statistics are excluded. + # **Term information** + # * term frequency in the field (always returned) + # * term positions (+positions: true+) + # * start and end offsets (+offsets: true+) + # * term payloads (+payloads: true+), as base64 encoded bytes + # If the requested information wasn't stored in the index, it will be computed on the fly if possible. + # Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. # - # @option arguments [String] :index The index in which the document resides. - # @option arguments [String] :id The id of the document, when not specified a doc param should be supplied. - # @option arguments [Boolean] :term_statistics Specifies if total term frequency and document frequency should be returned. - # @option arguments [Boolean] :field_statistics Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. - # @option arguments [List] :fields A comma-separated list of fields to return. - # @option arguments [Boolean] :offsets Specifies if term offsets should be returned. - # @option arguments [Boolean] :positions Specifies if term positions should be returned. - # @option arguments [Boolean] :payloads Specifies if term payloads should be returned. - # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random). - # @option arguments [String] :routing Specific routing value. - # @option arguments [Boolean] :realtime Specifies if request is real-time as opposed to near-real-time (default: true). - # @option arguments [Number] :version Explicit version number for concurrency control - # @option arguments [String] :version_type Specific version type (options: internal, external, external_gte) + # @option arguments [String] :index The name of the index that contains the document. (*Required*) + # @option arguments [String] :id A unique identifier for the document. + # @option arguments [String, Array] :fields A comma-separated list or wildcard expressions of fields to include in the statistics. + # It is used as the default list unless a specific field list is provided in the +completion_fields+ or +fielddata_fields+ parameters. + # @option arguments [Boolean] :field_statistics If +true+, the response includes: + # - The document count (how many documents contain this field). + # - The sum of document frequencies (the sum of document frequencies for all terms in this field). + # - The sum of total term frequencies (the sum of total term frequencies of each term in this field). Server default: true. + # @option arguments [Boolean] :offsets If +true+, the response includes term offsets. Server default: true. + # @option arguments [Boolean] :payloads If +true+, the response includes term payloads. Server default: true. + # @option arguments [Boolean] :positions If +true+, the response includes term positions. Server default: true. + # @option arguments [String] :preference The node or shard the operation should be performed on. + # It is random by default. + # @option arguments [Boolean] :realtime If true, the request is real-time as opposed to near-real-time. Server default: true. + # @option arguments [String] :routing A custom value that is used to route operations to a specific shard. + # @option arguments [Boolean] :term_statistics If +true+, the response includes: + # - The total term frequency (how often a term occurs in all documents). + # - The document frequency (the number of documents containing the current term). + # By default these values are not returned since term statistics can have a serious performance impact. + # @option arguments [Integer] :version If +true+, returns the document version as part of a hit. + # @option arguments [String] :version_type The version type. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Define parameters and or supply a document to get termvectors for. See documentation. + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-termvectors.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-termvectors # def termvectors(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'termvectors' } - defined_params = %i[index id].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -68,9 +95,9 @@ def termvectors(arguments = {}) arguments.delete(:endpoint) path = if _index && _id - "#{Utils.__listify(_index)}/_termvectors/#{Utils.__listify(_id)}" + "#{Utils.listify(_index)}/_termvectors/#{Utils.listify(_id)}" else - "#{Utils.__listify(_index)}/_termvectors" + "#{Utils.listify(_index)}/_termvectors" end params = Utils.process_params(arguments) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb index 8464acff62..675337ae93 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb @@ -15,32 +15,95 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module TextStructure module Actions - # Finds the structure of a text field in an index. + # Find the structure of a text field. + # Find the structure of a text field in an Elasticsearch index. + # This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. + # For example, if you have ingested data into a very simple index that has just +@timestamp+ and message fields, you can use this API to see what common structure exists in the message field. + # The response from the API contains: + # * Sample messages. + # * Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + # * Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + # * Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + # All this information can be calculated by the structure finder with no guidance. + # However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + # If the structure finder produces unexpected results, specify the +explain+ query parameter and an explanation will appear in the response. + # It helps determine why the returned structure was chosen. # - # @option arguments [String] :index The index containing the analyzed field (*Required*) - # @option arguments [String] :field The field that should be analyzed (*Required*) - # @option arguments [Integer] :documents_to_sample How many documents should be included in the analysis - # @option arguments [Time] :timeout Timeout after which the analysis will be aborted - # @option arguments [String] :format Optional parameter to specify the high level file format (options: ndjson, xml, delimited, semi_structured_text) - # @option arguments [List] :column_names Optional parameter containing a comma separated list of the column names for a delimited file - # @option arguments [String] :delimiter Optional parameter to specify the delimiter character for a delimited file - must be a single character - # @option arguments [String] :quote Optional parameter to specify the quote character for a delimited file - must be a single character - # @option arguments [Boolean] :should_trim_fields Optional parameter to specify whether the values between delimiters in a delimited file should have whitespace trimmed from them - # @option arguments [String] :grok_pattern Optional parameter to specify the Grok pattern that should be used to extract fields from messages in a semi-structured text file - # @option arguments [String] :ecs_compatibility Optional parameter to specify the compatibility mode with ECS Grok patterns - may be either 'v1' or 'disabled' - # @option arguments [String] :timestamp_field Optional parameter to specify the timestamp field in the file - # @option arguments [String] :timestamp_format Optional parameter to specify the timestamp format in the file - may be either a Joda or Java time format - # @option arguments [Boolean] :explain Whether to include a commentary on how the structure was derived + # @option arguments [String] :column_names If +format+ is set to +delimited+, you can specify the column names in a comma-separated list. + # If this parameter is not specified, the structure finder uses the column names from the header row of the text. + # If the text does not have a header row, columns are named "column1", "column2", "column3", for example. + # @option arguments [String] :delimiter If you have set +format+ to +delimited+, you can specify the character used to delimit the values in each row. + # Only a single character is supported; the delimiter cannot have multiple characters. + # By default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (+|+). + # In this default scenario, all rows must have the same number of fields for the delimited format to be detected. + # If you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row. + # @option arguments [Integer] :documents_to_sample The number of documents to include in the structural analysis. + # The minimum value is 2. Server default: 1000. + # @option arguments [String] :ecs_compatibility The mode of compatibility with ECS compliant Grok patterns. + # Use this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern. + # This setting primarily has an impact when a whole message Grok pattern such as +%{CATALINALOG}+ matches the input. + # If the structure finder identifies a common structure but has no idea of the meaning then generic field names such as +path+, +ipaddress+, +field1+, and +field2+ are used in the +grok_pattern+ output. + # The intention in that situation is that a user who knows the meanings will rename the fields before using them. Server default: disabled. + # @option arguments [Boolean] :explain If +true+, the response includes a field named +explanation+, which is an array of strings that indicate how the structure finder produced its result. + # @option arguments [String] :field The field that should be analyzed. (*Required*) + # @option arguments [String] :format The high level structure of the text. + # By default, the API chooses the format. + # In this default scenario, all rows must have the same number of fields for a delimited format to be detected. + # If the format is set to delimited and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row. + # @option arguments [String] :grok_pattern If the format is +semi_structured_text+, you can specify a Grok pattern that is used to extract fields from every message in the text. + # The name of the timestamp field in the Grok pattern must match what is specified in the +timestamp_field+ parameter. + # If that parameter is not specified, the name of the timestamp field in the Grok pattern must match "timestamp". + # If +grok_pattern+ is not specified, the structure finder creates a Grok pattern. + # @option arguments [String] :index The name of the index that contains the analyzed field. (*Required*) + # @option arguments [String] :quote If the format is +delimited+, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character. + # Only a single character is supported. + # If this parameter is not specified, the default value is a double quote (+"+). + # If your delimited text format does not use quoting, a workaround is to set this argument to a character that does not appear anywhere in the sample. + # @option arguments [Boolean] :should_trim_fields If the format is +delimited+, you can specify whether values between delimiters should have whitespace trimmed from them. + # If this parameter is not specified and the delimiter is pipe (+|+), the default value is true. + # Otherwise, the default value is +false+. + # @option arguments [Time] :timeout The maximum amount of time that the structure analysis can take. + # If the analysis is still running when the timeout expires, it will be stopped. Server default: 25s. + # @option arguments [String] :timestamp_field The name of the field that contains the primary timestamp of each record in the text. + # In particular, if the text was ingested into an index, this is the field that would be used to populate the +@timestamp+ field.If the format is +semi_structured_text+, this field must match the name of the appropriate extraction in the +grok_pattern+. + # Therefore, for semi-structured text, it is best not to specify this parameter unless +grok_pattern+ is also specified.For structured text, if you specify this parameter, the field must exist within the text.If this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field. + # For structured text, it is not compulsory to have a timestamp in the text. + # @option arguments [String] :timestamp_format The Java time format of the timestamp field in the text. + # Only a subset of Java time format letter groups are supported: + # - +a+ + # - +d+ + # - +dd+ + # - +EEE+ + # - +EEEE+ + # - +H+ + # - +HH+ + # - +h+ + # - +M+ + # - +MM+ + # - +MMM+ + # - +MMMM+ + # - +mm+ + # - +ss+ + # - +XX+ + # - +XXX+ + # - +yy+ + # - +yyyy+ + # - +zzz+ + # Additionally +S+ letter groups (fractional seconds) of length one to nine are supported providing they occur after +ss+ and are separated from the +ss+ by a period (+.+), comma (+,+), or colon (+:+). + # Spacing and punctuation is also permitted with the exception a question mark (+?+), newline, and carriage return, together with literal text enclosed in single quotes. + # For example, +MM/dd HH.mm.ss,SSSSSS 'in' yyyy+ is a valid override format.One valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full +grok_pattern+. + # Another is when the timestamp format is one that the structure finder does not consider by default.If this parameter is not specified, the structure finder chooses the best format from a built-in set.If the special value +null+ is specified, the structure finder will not look for a primary timestamp in the text. + # When the format is semi-structured text, this will result in the structure finder treating the text as single-line messages. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/find-field-structure.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-text_structure # def find_field_structure(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'text_structure.find_field_structure' } @@ -48,7 +111,7 @@ def find_field_structure(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_text_structure/find_field_structure' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb index fcd7456472..a5fbbfe17d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb @@ -15,30 +15,92 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module TextStructure module Actions - # Finds the structure of a list of messages. The messages must contain data that is suitable to be ingested into Elasticsearch. + # Find the structure of text messages. + # Find the structure of a list of text messages. + # The messages must contain data that is suitable to be ingested into Elasticsearch. + # This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. + # Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + # The response from the API contains: + # * Sample messages. + # * Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + # * Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + # Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + # All this information can be calculated by the structure finder with no guidance. + # However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + # If the structure finder produces unexpected results, specify the +explain+ query parameter and an explanation will appear in the response. + # It helps determine why the returned structure was chosen. # - # @option arguments [Time] :timeout Timeout after which the analysis will be aborted - # @option arguments [String] :format Optional parameter to specify the high level file format (options: ndjson, xml, delimited, semi_structured_text) - # @option arguments [List] :column_names Optional parameter containing a comma separated list of the column names for a delimited file - # @option arguments [String] :delimiter Optional parameter to specify the delimiter character for a delimited file - must be a single character - # @option arguments [String] :quote Optional parameter to specify the quote character for a delimited file - must be a single character - # @option arguments [Boolean] :should_trim_fields Optional parameter to specify whether the values between delimiters in a delimited file should have whitespace trimmed from them - # @option arguments [String] :grok_pattern Optional parameter to specify the Grok pattern that should be used to extract fields from messages in a semi-structured text file - # @option arguments [String] :ecs_compatibility Optional parameter to specify the compatibility mode with ECS Grok patterns - may be either 'v1' or 'disabled' - # @option arguments [String] :timestamp_field Optional parameter to specify the timestamp field in the file - # @option arguments [String] :timestamp_format Optional parameter to specify the timestamp format in the file - may be either a Joda or Java time format - # @option arguments [Boolean] :explain Whether to include a commentary on how the structure was derived + # @option arguments [String] :column_names If the format is +delimited+, you can specify the column names in a comma-separated list. + # If this parameter is not specified, the structure finder uses the column names from the header row of the text. + # If the text does not have a header role, columns are named "column1", "column2", "column3", for example. + # @option arguments [String] :delimiter If you the format is +delimited+, you can specify the character used to delimit the values in each row. + # Only a single character is supported; the delimiter cannot have multiple characters. + # By default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (+|+). + # In this default scenario, all rows must have the same number of fields for the delimited format to be detected. + # If you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row. + # @option arguments [String] :ecs_compatibility The mode of compatibility with ECS compliant Grok patterns. + # Use this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern. + # This setting primarily has an impact when a whole message Grok pattern such as +%{CATALINALOG}+ matches the input. + # If the structure finder identifies a common structure but has no idea of meaning then generic field names such as +path+, +ipaddress+, +field1+, and +field2+ are used in the +grok_pattern+ output, with the intention that a user who knows the meanings rename these fields before using it. Server default: disabled. + # @option arguments [Boolean] :explain If this parameter is set to true, the response includes a field named +explanation+, which is an array of strings that indicate how the structure finder produced its result. + # @option arguments [String] :format The high level structure of the text. + # By default, the API chooses the format. + # In this default scenario, all rows must have the same number of fields for a delimited format to be detected. + # If the format is +delimited+ and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row. + # @option arguments [String] :grok_pattern If the format is +semi_structured_text+, you can specify a Grok pattern that is used to extract fields from every message in the text. + # The name of the timestamp field in the Grok pattern must match what is specified in the +timestamp_field+ parameter. + # If that parameter is not specified, the name of the timestamp field in the Grok pattern must match "timestamp". + # If +grok_pattern+ is not specified, the structure finder creates a Grok pattern. + # @option arguments [String] :quote If the format is +delimited+, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character. + # Only a single character is supported. + # If this parameter is not specified, the default value is a double quote (+"+). + # If your delimited text format does not use quoting, a workaround is to set this argument to a character that does not appear anywhere in the sample. + # @option arguments [Boolean] :should_trim_fields If the format is +delimited+, you can specify whether values between delimiters should have whitespace trimmed from them. + # If this parameter is not specified and the delimiter is pipe (+|+), the default value is true. + # Otherwise, the default value is +false+. + # @option arguments [Time] :timeout The maximum amount of time that the structure analysis can take. + # If the analysis is still running when the timeout expires, it will be stopped. Server default: 25s. + # @option arguments [String] :timestamp_field The name of the field that contains the primary timestamp of each record in the text. + # In particular, if the text was ingested into an index, this is the field that would be used to populate the +@timestamp+ field.If the format is +semi_structured_text+, this field must match the name of the appropriate extraction in the +grok_pattern+. + # Therefore, for semi-structured text, it is best not to specify this parameter unless +grok_pattern+ is also specified.For structured text, if you specify this parameter, the field must exist within the text.If this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field. + # For structured text, it is not compulsory to have a timestamp in the text. + # @option arguments [String] :timestamp_format The Java time format of the timestamp field in the text. + # Only a subset of Java time format letter groups are supported: + # - +a+ + # - +d+ + # - +dd+ + # - +EEE+ + # - +EEEE+ + # - +H+ + # - +HH+ + # - +h+ + # - +M+ + # - +MM+ + # - +MMM+ + # - +MMMM+ + # - +mm+ + # - +ss+ + # - +XX+ + # - +XXX+ + # - +yy+ + # - +yyyy+ + # - +zzz+ + # Additionally +S+ letter groups (fractional seconds) of length one to nine are supported providing they occur after +ss+ and are separated from the +ss+ by a period (+.+), comma (+,+), or colon (+:+). + # Spacing and punctuation is also permitted with the exception a question mark (+?+), newline, and carriage return, together with literal text enclosed in single quotes. + # For example, +MM/dd HH.mm.ss,SSSSSS 'in' yyyy+ is a valid override format.One valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full +grok_pattern+. + # Another is when the timestamp format is one that the structure finder does not consider by default.If this parameter is not specified, the structure finder chooses the best format from a built-in set.If the special value +null+ is specified, the structure finder will not look for a primary timestamp in the text. + # When the format is semi-structured text, this will result in the structure finder treating the text as single-line messages. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body JSON object with one field [messages], containing an array of messages to be analyzed (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/find-message-structure.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-text-structure-find-message-structure # def find_message_structure(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'text_structure.find_message_structure' } @@ -48,7 +110,7 @@ def find_message_structure(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_text_structure/find_message_structure' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb index 099d91ebc5..bd97c1b98a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb @@ -15,34 +15,106 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module TextStructure module Actions - # Finds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch. + # Find the structure of a text file. + # The text file must contain data that is suitable to be ingested into Elasticsearch. + # This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. + # Unlike other Elasticsearch endpoints, the data that is posted to this endpoint does not need to be UTF-8 encoded and in JSON format. + # It must, however, be text; binary text formats are not currently supported. + # The size is limited to the Elasticsearch HTTP receive buffer size, which defaults to 100 Mb. + # The response from the API contains: + # * A couple of messages from the beginning of the text. + # * Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + # * Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + # * Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + # All this information can be calculated by the structure finder with no guidance. + # However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. # - # @option arguments [Integer] :lines_to_sample How many lines of the file should be included in the analysis - # @option arguments [Integer] :line_merge_size_limit Maximum number of characters permitted in a single message when lines are merged to create messages. - # @option arguments [Time] :timeout Timeout after which the analysis will be aborted - # @option arguments [String] :charset Optional parameter to specify the character set of the file - # @option arguments [String] :format Optional parameter to specify the high level file format (options: ndjson, xml, delimited, semi_structured_text) - # @option arguments [Boolean] :has_header_row Optional parameter to specify whether a delimited file includes the column names in its first row - # @option arguments [List] :column_names Optional parameter containing a comma separated list of the column names for a delimited file - # @option arguments [String] :delimiter Optional parameter to specify the delimiter character for a delimited file - must be a single character - # @option arguments [String] :quote Optional parameter to specify the quote character for a delimited file - must be a single character - # @option arguments [Boolean] :should_trim_fields Optional parameter to specify whether the values between delimiters in a delimited file should have whitespace trimmed from them - # @option arguments [String] :grok_pattern Optional parameter to specify the Grok pattern that should be used to extract fields from messages in a semi-structured text file - # @option arguments [String] :ecs_compatibility Optional parameter to specify the compatibility mode with ECS Grok patterns - may be either 'v1' or 'disabled' - # @option arguments [String] :timestamp_field Optional parameter to specify the timestamp field in the file - # @option arguments [String] :timestamp_format Optional parameter to specify the timestamp format in the file - may be either a Joda or Java time format - # @option arguments [Boolean] :explain Whether to include a commentary on how the structure was derived + # @option arguments [String] :charset The text's character set. + # It must be a character set that is supported by the JVM that Elasticsearch uses. + # For example, +UTF-8+, +UTF-16LE+, +windows-1252+, or +EUC-JP+. + # If this parameter is not specified, the structure finder chooses an appropriate character set. + # @option arguments [String] :column_names If you have set format to +delimited+, you can specify the column names in a comma-separated list. + # If this parameter is not specified, the structure finder uses the column names from the header row of the text. + # If the text does not have a header role, columns are named "column1", "column2", "column3", for example. + # @option arguments [String] :delimiter If you have set +format+ to +delimited+, you can specify the character used to delimit the values in each row. + # Only a single character is supported; the delimiter cannot have multiple characters. + # By default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (+|+). + # In this default scenario, all rows must have the same number of fields for the delimited format to be detected. + # If you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row. + # @option arguments [String] :ecs_compatibility The mode of compatibility with ECS compliant Grok patterns. + # Use this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern. + # Valid values are +disabled+ and +v1+. + # This setting primarily has an impact when a whole message Grok pattern such as +%{CATALINALOG}+ matches the input. + # If the structure finder identifies a common structure but has no idea of meaning then generic field names such as +path+, +ipaddress+, +field1+, and +field2+ are used in the +grok_pattern+ output, with the intention that a user who knows the meanings rename these fields before using it. Server default: disabled. + # @option arguments [Boolean] :explain If this parameter is set to +true+, the response includes a field named explanation, which is an array of strings that indicate how the structure finder produced its result. + # If the structure finder produces unexpected results for some text, use this query parameter to help you determine why the returned structure was chosen. + # @option arguments [String] :format The high level structure of the text. + # Valid values are +ndjson+, +xml+, +delimited+, and +semi_structured_text+. + # By default, the API chooses the format. + # In this default scenario, all rows must have the same number of fields for a delimited format to be detected. + # If the format is set to +delimited+ and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row. + # @option arguments [String] :grok_pattern If you have set +format+ to +semi_structured_text+, you can specify a Grok pattern that is used to extract fields from every message in the text. + # The name of the timestamp field in the Grok pattern must match what is specified in the +timestamp_field+ parameter. + # If that parameter is not specified, the name of the timestamp field in the Grok pattern must match "timestamp". + # If +grok_pattern+ is not specified, the structure finder creates a Grok pattern. + # @option arguments [Boolean] :has_header_row If you have set +format+ to +delimited+, you can use this parameter to indicate whether the column names are in the first row of the text. + # If this parameter is not specified, the structure finder guesses based on the similarity of the first row of the text to other rows. + # @option arguments [Integer] :line_merge_size_limit The maximum number of characters in a message when lines are merged to form messages while analyzing semi-structured text. + # If you have extremely long messages you may need to increase this, but be aware that this may lead to very long processing times if the way to group lines into messages is misdetected. Server default: 10000. + # @option arguments [Integer] :lines_to_sample The number of lines to include in the structural analysis, starting from the beginning of the text. + # The minimum is 2. + # If the value of this parameter is greater than the number of lines in the text, the analysis proceeds (as long as there are at least two lines in the text) for all of the lines.NOTE: The number of lines and the variation of the lines affects the speed of the analysis. + # For example, if you upload text where the first 1000 lines are all variations on the same message, the analysis will find more commonality than would be seen with a bigger sample. + # If possible, however, it is more efficient to upload sample text with more variety in the first 1000 lines than to request analysis of 100000 lines to achieve some variety. Server default: 1000. + # @option arguments [String] :quote If you have set +format+ to +delimited+, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character. + # Only a single character is supported. + # If this parameter is not specified, the default value is a double quote (+"+). + # If your delimited text format does not use quoting, a workaround is to set this argument to a character that does not appear anywhere in the sample. + # @option arguments [Boolean] :should_trim_fields If you have set +format+ to +delimited+, you can specify whether values between delimiters should have whitespace trimmed from them. + # If this parameter is not specified and the delimiter is pipe (+|+), the default value is +true+. + # Otherwise, the default value is +false+. + # @option arguments [Time] :timeout The maximum amount of time that the structure analysis can take. + # If the analysis is still running when the timeout expires then it will be stopped. Server default: 25s. + # @option arguments [String] :timestamp_field The name of the field that contains the primary timestamp of each record in the text. + # In particular, if the text were ingested into an index, this is the field that would be used to populate the +@timestamp+ field.If the +format+ is +semi_structured_text+, this field must match the name of the appropriate extraction in the +grok_pattern+. + # Therefore, for semi-structured text, it is best not to specify this parameter unless +grok_pattern+ is also specified.For structured text, if you specify this parameter, the field must exist within the text.If this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field. + # For structured text, it is not compulsory to have a timestamp in the text. + # @option arguments [String] :timestamp_format The Java time format of the timestamp field in the text.Only a subset of Java time format letter groups are supported: + # - +a+ + # - +d+ + # - +dd+ + # - +EEE+ + # - +EEEE+ + # - +H+ + # - +HH+ + # - +h+ + # - +M+ + # - +MM+ + # - +MMM+ + # - +MMMM+ + # - +mm+ + # - +ss+ + # - +XX+ + # - +XXX+ + # - +yy+ + # - +yyyy+ + # - +zzz+ + # Additionally +S+ letter groups (fractional seconds) of length one to nine are supported providing they occur after +ss+ and separated from the +ss+ by a +.+, +,+ or +:+. + # Spacing and punctuation is also permitted with the exception of +?+, newline and carriage return, together with literal text enclosed in single quotes. + # For example, +MM/dd HH.mm.ss,SSSSSS 'in' yyyy+ is a valid override format.One valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full +grok_pattern+. + # Another is when the timestamp format is one that the structure finder does not consider by default.If this parameter is not specified, the structure finder chooses the best format from a built-in set.If the special value +null+ is specified the structure finder will not look for a primary timestamp in the text. + # When the format is semi-structured text this will result in the structure finder treating the text as single-line messages. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The contents of the file to be analyzed (*Required*) + # @option arguments [Hash] :body text_files # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-text-structure-find-structure # def find_structure(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'text_structure.find_structure' } @@ -52,14 +124,14 @@ def find_structure(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_text_structure/find_structure' params = Utils.process_params(arguments) payload = if body.is_a? Array - Elasticsearch::API::Utils.__bulkify(body) + Elasticsearch::API::Utils.bulkify(body) else body end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb index 49fad35ecd..1c1d1a684a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb @@ -15,20 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module TextStructure module Actions - # Tests a Grok pattern on some text. + # Test a Grok pattern. + # Test a Grok pattern on one or more lines of text. + # The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. # - # @option arguments [String] :ecs_compatibility Optional parameter to specify the compatibility mode with ECS Grok patterns - may be either 'v1' or 'disabled' + # @option arguments [String] :ecs_compatibility The mode of compatibility with ECS compliant Grok patterns. + # Use this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern. + # Valid values are +disabled+ and +v1+. Server default: disabled. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The Grok pattern and text. (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/test-grok-pattern.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-text-structure-test-grok-pattern # def test_grok_pattern(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'text_structure.test_grok_pattern' } @@ -38,7 +42,7 @@ def test_grok_pattern(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = '_text_structure/test_grok_pattern' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb index 9bf20808c6..9f865acc74 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb @@ -15,22 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Transform module Actions - # Deletes an existing transform. + # Delete a transform. # - # @option arguments [String] :transform_id The id of the transform to delete - # @option arguments [Boolean] :force When `true`, the transform is deleted regardless of its current state. The default value is `false`, meaning that the transform must be `stopped` before it can be deleted. - # @option arguments [Boolean] :delete_dest_index When `true`, the destination index is deleted together with the transform. The default value is `false`, meaning that the destination index will not be deleted. - # @option arguments [Time] :timeout Controls the time to wait for the transform deletion + # @option arguments [String] :transform_id Identifier for the transform. (*Required*) + # @option arguments [Boolean] :force If this value is false, the transform must be stopped before it can be deleted. If true, the transform is + # deleted regardless of its current state. + # @option arguments [Boolean] :delete_dest_index If this value is true, the destination index is deleted together with the transform. If false, the destination + # index will not be deleted + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-delete-transform # def delete_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.delete_transform' } @@ -50,7 +52,7 @@ def delete_transform(arguments = {}) _transform_id = arguments.delete(:transform_id) method = Elasticsearch::API::HTTP_DELETE - path = "_transform/#{Utils.__listify(_transform_id)}" + path = "_transform/#{Utils.listify(_transform_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb index 69d76d7474..b6d0d73441 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb @@ -15,8 +15,8 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API @@ -34,9 +34,14 @@ def get_node_stats(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = arguments.delete(:body) + + method = if body + Elasticsearch::API::HTTP_POST + else + Elasticsearch::API::HTTP_GET + end - method = Elasticsearch::API::HTTP_GET path = '_transform/_node_stats' params = {} diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb index 5065124f1e..0ce457434f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb @@ -15,23 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Transform module Actions - # Retrieves configuration information for transforms. + # Get transforms. + # Get configuration information for transforms. # - # @option arguments [String] :transform_id The id or comma delimited list of id expressions of the transforms to get, '_all' or '*' implies get all transforms - # @option arguments [Integer] :from skips a number of transform configs, defaults to 0 - # @option arguments [Integer] :size specifies a max number of transforms to get, defaults to 100 - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified) - # @option arguments [Boolean] :exclude_generated Omits fields that are illegal to set on transform PUT + # @option arguments [String, Array] :transform_id Identifier for the transform. It can be a transform identifier or a + # wildcard expression. You can get information for all transforms by using + # +_all+, by specifying +*+ as the ++, or by omitting the + # ++. + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: + # - Contains wildcard expressions and there are no transforms that match. + # - Contains the _all string or no identifiers and there are no matches. + # - Contains wildcard expressions and there are only partial matches. + # If this parameter is false, the request returns a 404 status code when + # there are no matches or only partial matches. Server default: true. + # @option arguments [Integer] :from Skips the specified number of transforms. Server default: 0. + # @option arguments [Integer] :size Specifies the maximum number of transforms to obtain. Server default: 100. + # @option arguments [Boolean] :exclude_generated Excludes fields that were automatically added when creating the + # transform. This allows the configuration to be in an acceptable format to + # be retrieved and then added to another cluster. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-get-transform # def get_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.get_transform' } @@ -50,7 +61,7 @@ def get_transform(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _transform_id - "_transform/#{Utils.__listify(_transform_id)}" + "_transform/#{Utils.listify(_transform_id)}" else '_transform' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb index abdf7014d8..d35430e22a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb @@ -15,23 +15,32 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Transform module Actions - # Retrieves usage information for transforms. + # Get transform stats. + # Get usage information for transforms. # - # @option arguments [String] :transform_id The id of the transform for which to get stats. '_all' or '*' implies all transforms - # @option arguments [Number] :from skips a number of transform stats, defaults to 0 - # @option arguments [Number] :size specifies a max number of transform stats to get, defaults to 100 + # @option arguments [String, Array] :transform_id Identifier for the transform. It can be a transform identifier or a + # wildcard expression. You can get information for all transforms by using + # +_all+, by specifying +*+ as the ++, or by omitting the + # ++. (*Required*) + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: + # - Contains wildcard expressions and there are no transforms that match. + # - Contains the _all string or no identifiers and there are no matches. + # - Contains wildcard expressions and there are only partial matches. + # If this parameter is false, the request returns a 404 status code when + # there are no matches or only partial matches. Server default: true. + # @option arguments [Integer] :from Skips the specified number of transforms. Server default: 0. + # @option arguments [Integer] :size Specifies the maximum number of transforms to obtain. Server default: 100. # @option arguments [Time] :timeout Controls the time to wait for the stats - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-get-transform-stats # def get_transform_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.get_transform_stats' } @@ -51,7 +60,7 @@ def get_transform_stats(arguments = {}) _transform_id = arguments.delete(:transform_id) method = Elasticsearch::API::HTTP_GET - path = "_transform/#{Utils.__listify(_transform_id)}/_stats" + path = "_transform/#{Utils.listify(_transform_id)}/_stats" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb index 8ab4f59a7c..3263a73605 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb @@ -15,21 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Transform module Actions - # Previews a transform. + # Preview a transform. + # Generates a preview of the results that you will get when you create a transform with the same configuration. + # It returns a maximum of 100 results. The calculations are based on all the current data in the source index. It also + # generates a list of mappings and settings for the destination index. These values are determined based on the field + # types of the source index and the transform aggregations. # - # @option arguments [String] :transform_id The id of the transform to preview. - # @option arguments [Time] :timeout Controls the time to wait for the preview + # @option arguments [String] :transform_id Identifier for the transform to preview. If you specify this path parameter, you cannot provide transform + # configuration details in the request body. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the + # timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The definition for the transform to preview + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-preview-transform # def preview_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.preview_transform' } @@ -52,11 +58,11 @@ def preview_transform(arguments = {}) Elasticsearch::API::HTTP_GET end - path = if _transform_id - "_transform/#{Utils.__listify(_transform_id)}/_preview" - else - '_transform/_preview' - end + path = if _transform_id + "_transform/#{Utils.listify(_transform_id)}/_preview" + else + '_transform/_preview' + end params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb index 222912fe22..bff954b14b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb @@ -15,22 +15,44 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Transform module Actions - # Instantiates a transform. + # Create a transform. + # Creates a transform. + # A transform copies data from source indices, transforms it, and persists it into an entity-centric destination index. You can also think of the destination index as a two-dimensional tabular data structure (known as + # a data frame). The ID for each document in the data frame is generated from a hash of the entity, so there is a + # unique row per entity. + # You must choose either the latest or pivot method for your transform; you cannot use both in a single transform. If + # you choose to use the pivot method for your transform, the entities are defined by the set of +group_by+ fields in + # the pivot object. If you choose to use the latest method, the entities are defined by the +unique_key+ field values + # in the latest object. + # You must have +create_index+, +index+, and +read+ privileges on the destination index and +read+ and + # +view_index_metadata+ privileges on the source indices. When Elasticsearch security features are enabled, the + # transform remembers which roles the user that created it had at the time of creation and uses those same roles. If + # those roles do not have the required privileges on the source and destination indices, the transform fails when it + # attempts unauthorized operations. + # NOTE: You must use Kibana or this API to create a transform. Do not add a transform directly into any + # +.transform-internal*+ indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do + # not give users any privileges on +.transform-internal*+ indices. If you used transforms prior to 7.5, also do not + # give users any privileges on +.data-frame-internal*+ indices. # - # @option arguments [String] :transform_id The id of the new transform. - # @option arguments [Boolean] :defer_validation If validations should be deferred until transform starts, defaults to false. - # @option arguments [Time] :timeout Controls the time to wait for the transform to start + # @option arguments [String] :transform_id Identifier for the transform. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), + # hyphens, and underscores. It has a 64 character limit and must start and end with alphanumeric characters. (*Required*) + # @option arguments [Boolean] :defer_validation When the transform is created, a series of validations occur to ensure its success. For example, there is a + # check for the existence of the source indices and a check that the destination index is not part of the source + # index pattern. You can use this parameter to skip the checks, for example when the source index does not exist + # until after the transform is created. The validations are always run when you start the transform, however, with + # the exception of privilege checks. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The transform definition (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-transform.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-put-transform # def put_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.put_transform' } @@ -51,7 +73,7 @@ def put_transform(arguments = {}) _transform_id = arguments.delete(:transform_id) method = Elasticsearch::API::HTTP_PUT - path = "_transform/#{Utils.__listify(_transform_id)}" + path = "_transform/#{Utils.listify(_transform_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb index dab3b5e94e..d2cd986327 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb @@ -15,21 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Transform module Actions - # Resets an existing transform. + # Reset a transform. + # Before you can reset it, you must stop it; alternatively, use the +force+ query parameter. + # If the destination index was created by the transform, it is deleted. # - # @option arguments [String] :transform_id The id of the transform to reset - # @option arguments [Boolean] :force When `true`, the transform is reset regardless of its current state. The default value is `false`, meaning that the transform must be `stopped` before it can be reset. - # @option arguments [Time] :timeout Controls the time to wait for the transform to reset + # @option arguments [String] :transform_id Identifier for the transform. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), + # hyphens, and underscores. It has a 64 character limit and must start and end with alphanumeric characters. (*Required*) + # @option arguments [Boolean] :force If this value is +true+, the transform is reset regardless of its current state. If it's +false+, the transform + # must be stopped before it can be reset. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/reset-transform.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-reset-transform # def reset_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.reset_transform' } @@ -49,7 +53,7 @@ def reset_transform(arguments = {}) _transform_id = arguments.delete(:transform_id) method = Elasticsearch::API::HTTP_POST - path = "_transform/#{Utils.__listify(_transform_id)}/_reset" + path = "_transform/#{Utils.listify(_transform_id)}/_reset" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb index 74716246b6..dada69ff94 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb @@ -15,20 +15,25 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Transform module Actions - # Schedules now a transform. + # Schedule a transform to start now. + # Instantly run a transform to process data. + # If you run this API, the transform will process the new data instantly, + # without waiting for the configured frequency interval. After the API is called, + # the transform will be processed again at +now + frequency+ unless the API + # is called again in the meantime. # - # @option arguments [String] :transform_id The id of the transform. (*Required*) - # @option arguments [Time] :timeout Controls the time to wait for the scheduling to take place + # @option arguments [String] :transform_id Identifier for the transform. (*Required*) + # @option arguments [Time] :timeout Controls the time to wait for the scheduling to take place Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/schedule-now-transform.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-schedule-now-transform # def schedule_now_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.schedule_now_transform' } @@ -48,7 +53,7 @@ def schedule_now_transform(arguments = {}) _transform_id = arguments.delete(:transform_id) method = Elasticsearch::API::HTTP_POST - path = "_transform/#{Utils.__listify(_transform_id)}/_schedule_now" + path = "_transform/#{Utils.listify(_transform_id)}/_schedule_now" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb index 4f18b6a0b7..5b942a02aa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb @@ -15,21 +15,34 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Transform module Actions - # Starts one or more transforms. + # Start a transform. + # When you start a transform, it creates the destination index if it does not already exist. The +number_of_shards+ is + # set to +1+ and the +auto_expand_replicas+ is set to +0-1+. If it is a pivot transform, it deduces the mapping + # definitions for the destination index from the source indices and the transform aggregations. If fields in the + # destination index are derived from scripts (as in the case of +scripted_metric+ or +bucket_script+ aggregations), + # the transform uses dynamic mappings unless an index template exists. If it is a latest transform, it does not deduce + # mapping definitions; it uses dynamic mappings. To use explicit mappings, create the destination index before you + # start the transform. Alternatively, you can create an index template, though it does not affect the deduced mappings + # in a pivot transform. + # When the transform starts, a series of validations occur to ensure its success. If you deferred validation when you + # created the transform, they occur when you start the transform—​with the exception of privilege checks. When + # Elasticsearch security features are enabled, the transform remembers which roles the user that created it had at the + # time of creation and uses those same roles. If those roles do not have the required privileges on the source and + # destination indices, the transform fails when it attempts unauthorized operations. # - # @option arguments [String] :transform_id The id of the transform to start - # @option arguments [String] :from Restricts the set of transformed entities to those changed after this time - # @option arguments [Time] :timeout Controls the time to wait for the transform to start + # @option arguments [String] :transform_id Identifier for the transform. (*Required*) + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [String] :from Restricts the set of transformed entities to those changed after this time. Relative times like now-30d are supported. Only applicable for continuous transforms. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/start-transform.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-start-transform # def start_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.start_transform' } @@ -49,7 +62,7 @@ def start_transform(arguments = {}) _transform_id = arguments.delete(:transform_id) method = Elasticsearch::API::HTTP_POST - path = "_transform/#{Utils.__listify(_transform_id)}/_start" + path = "_transform/#{Utils.listify(_transform_id)}/_start" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb index 00a4c41355..9bdb97e1b4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb @@ -15,24 +15,33 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Transform module Actions + # Stop transforms. # Stops one or more transforms. # - # @option arguments [String] :transform_id The id of the transform to stop - # @option arguments [Boolean] :force Whether to force stop a failed transform or not. Default to false - # @option arguments [Boolean] :wait_for_completion Whether to wait for the transform to fully stop before returning or not. Default to false - # @option arguments [Time] :timeout Controls the time to wait until the transform has stopped. Default to 30 seconds - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified) - # @option arguments [Boolean] :wait_for_checkpoint Whether to wait for the transform to reach a checkpoint before stopping. Default to false + # @option arguments [String] :transform_id Identifier for the transform. To stop multiple transforms, use a comma-separated list or a wildcard expression. + # To stop all transforms, use +_all+ or +*+ as the identifier. (*Required*) + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no transforms that match; + # contains the +_all+ string or no identifiers and there are no matches; contains wildcard expressions and there + # are only partial matches.If it is true, the API returns a successful acknowledgement message when there are no matches. When there are + # only partial matches, the API stops the appropriate transforms.If it is false, the request returns a 404 status code when there are no matches or only partial matches. Server default: true. + # @option arguments [Boolean] :force If it is true, the API forcefully stops the transforms. + # @option arguments [Time] :timeout Period to wait for a response when +wait_for_completion+ is +true+. If no response is received before the + # timeout expires, the request returns a timeout exception. However, the request continues processing and + # eventually moves the transform to a STOPPED state. Server default: 30s. + # @option arguments [Boolean] :wait_for_checkpoint If it is true, the transform does not completely stop until the current checkpoint is completed. If it is false, + # the transform stops as soon as possible. + # @option arguments [Boolean] :wait_for_completion If it is true, the API blocks until the indexer state completely stops. If it is false, the API returns + # immediately and the indexer is stopped asynchronously in the background. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-transform.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-stop-transform # def stop_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.stop_transform' } @@ -52,7 +61,7 @@ def stop_transform(arguments = {}) _transform_id = arguments.delete(:transform_id) method = Elasticsearch::API::HTTP_POST - path = "_transform/#{Utils.__listify(_transform_id)}/_stop" + path = "_transform/#{Utils.listify(_transform_id)}/_stop" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb index 44e04a7ee1..cfc43db1d4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb @@ -15,22 +15,31 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Transform module Actions + # Update a transform. # Updates certain properties of a transform. + # All updated properties except +description+ do not take effect until after the transform starts the next checkpoint, + # thus there is data consistency in each checkpoint. To use this API, you must have +read+ and +view_index_metadata+ + # privileges for the source indices. You must also have +index+ and +read+ privileges for the destination index. When + # Elasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the + # time of update and runs with those privileges. # - # @option arguments [String] :transform_id The id of the transform. (*Required*) - # @option arguments [Boolean] :defer_validation If validations should be deferred until transform starts, defaults to false. - # @option arguments [Time] :timeout Controls the time to wait for the update + # @option arguments [String] :transform_id Identifier for the transform. (*Required*) + # @option arguments [Boolean] :defer_validation When true, deferrable validations are not run. This behavior may be + # desired if the source index does not exist until after the transform is + # created. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the + # timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The update transform definition (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-transform.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-update-transform # def update_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.update_transform' } @@ -51,7 +60,7 @@ def update_transform(arguments = {}) _transform_id = arguments.delete(:transform_id) method = Elasticsearch::API::HTTP_POST - path = "_transform/#{Utils.__listify(_transform_id)}/_update" + path = "_transform/#{Utils.listify(_transform_id)}/_update" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb index b2d1a84cd6..a5c42c99e3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb @@ -15,20 +15,32 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Transform module Actions - # Upgrades all transforms. + # Upgrade all transforms. + # Transforms are compatible across minor versions and between supported major versions. + # However, over time, the format of transform configuration information may change. + # This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. + # It also cleans up the internal data structures that store the transform state and checkpoints. + # The upgrade does not affect the source and destination indices. + # The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. + # If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. + # Resolve the issue then re-run the process again. + # A summary is returned when the upgrade is finished. + # To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. + # You may want to perform a recent cluster backup prior to the upgrade. # - # @option arguments [Boolean] :dry_run Whether to only check for updates but don't execute - # @option arguments [Time] :timeout Controls the time to wait for the upgrade + # @option arguments [Boolean] :dry_run When true, the request checks for updates but does not run them. + # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and + # returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/upgrade-transforms.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-upgrade-transforms # def upgrade_transforms(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.upgrade_transforms' } @@ -36,7 +48,7 @@ def upgrade_transforms(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_POST path = '_transform/_upgrade' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update.rb index 1454a5e592..bed35aeff6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update.rb @@ -15,38 +15,58 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Updates a document with a script or partial document. + # Update a document. + # Update a document by running a script or passing a partial document. + # If the Elasticsearch security features are enabled, you must have the +index+ or +write+ index privilege for the target index or index alias. + # The script can update, delete, or skip modifying the document. + # The API also supports passing a partial document, which is merged into the existing document. + # To fully replace an existing document, use the index API. + # This operation: + # * Gets the document (collocated with the shard) from the index. + # * Runs the specified script. + # * Indexes the result. + # The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + # The +_source+ field must be enabled to use this API. + # In addition to +_source+, you can access the following variables through the +ctx+ map: +_index+, +_type+, +_id+, +_version+, +_routing+, and +_now+ (the current timestamp). # - # @option arguments [String] :id Document ID - # @option arguments [String] :index The name of the index - # @option arguments [String] :wait_for_active_shards Sets the number of shard copies that must be active before proceeding with the update operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) - # @option arguments [List] :_source True or false to return the _source field or not, or a list of fields to return - # @option arguments [List] :_source_excludes A list of fields to exclude from the returned _source field - # @option arguments [List] :_source_includes A list of fields to extract and return from the _source field - # @option arguments [String] :lang The script language (default: painless) - # @option arguments [String] :refresh If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. (options: true, false, wait_for) - # @option arguments [Number] :retry_on_conflict Specify how many times should the operation be retried when a conflict occurs (default: 0) - # @option arguments [String] :routing Specific routing value - # @option arguments [Time] :timeout Explicit operation timeout - # @option arguments [Number] :if_seq_no only perform the update operation if the last operation that has changed the document has the specified sequence number - # @option arguments [Number] :if_primary_term only perform the update operation if the last operation that has changed the document has the specified primary term - # @option arguments [Boolean] :require_alias When true, requires destination is an alias. Default is false - # @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Defaults to true. + # @option arguments [String] :id A unique identifier for the document to be updated. (*Required*) + # @option arguments [String] :index The name of the target index. + # By default, the index is created automatically if it doesn't exist. (*Required*) + # @option arguments [Integer] :if_primary_term Only perform the operation if the document has this primary term. + # @option arguments [Integer] :if_seq_no Only perform the operation if the document has this sequence number. + # @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Server default: true. + # @option arguments [String] :lang The script language. Server default: painless. + # @option arguments [String] :refresh If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search. + # If 'wait_for', it waits for a refresh to make this operation visible to search. + # If 'false', it does nothing with refreshes. Server default: false. + # @option arguments [Boolean] :require_alias If +true+, the destination must be an index alias. + # @option arguments [Integer] :retry_on_conflict The number of times the operation should be retried when a conflict occurs. Server default: 0. + # @option arguments [String] :routing A custom value used to route operations to a specific shard. + # @option arguments [Time] :timeout The period to wait for the following operations: dynamic mapping updates and waiting for active shards. + # Elasticsearch waits for at least the timeout period before failing. + # The actual wait time could be longer, particularly when multiple waits occur. Server default: 1m. + # @option arguments [Integer, String] :wait_for_active_shards The number of copies of each shard that must be active before proceeding with the operation. + # Set to 'all' or any positive integer up to the total number of shards in the index (+number_of_replicas++1). + # The default value of +1+ means it waits for each primary shard to be active. Server default: 1. + # @option arguments [Boolean, String, Array] :_source If +false+, source retrieval is turned off. + # You can also specify a comma-separated list of the fields you want to retrieve. Server default: true. + # @option arguments [String, Array] :_source_excludes The source fields you want to exclude. + # @option arguments [String, Array] :_source_includes The source fields you want to retrieve. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The request definition requires either `script` or partial `doc` (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-update # def update(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'update' } - defined_params = %i[index id].each_with_object({}) do |variable, set_variables| + defined_params = [:index, :id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -65,11 +85,11 @@ def update(arguments = {}) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_update/#{Utils.__listify(_id)}" + path = "#{Utils.listify(_index)}/_update/#{Utils.listify(_id)}" params = Utils.process_params(arguments) if Array(arguments[:ignore]).include?(404) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb index fb65ca3564..6801c60ebf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb @@ -15,51 +15,142 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Performs an update on every document in the index without changing the source, - # for example to pick up a mapping change. + # Update documents. + # Updates documents that match the specified query. + # If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes. + # If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + # * +read+ + # * +index+ or +write+ + # You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + # When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + # When the versions match, the document is updated and the version number is incremented. + # If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + # You can opt to count version conflicts instead of halting and returning by setting +conflicts+ to +proceed+. + # Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than +max_docs+ until it has successfully updated +max_docs+ documents or it has gone through every document in the source query. + # NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. + # While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + # A bulk update request is performed for each batch of matching documents. + # Any query or update failures cause the update by query request to fail and the failures are shown in the response. + # Any update requests that completed successfully still stick, they are not rolled back. + # **Throttling update requests** + # To control the rate at which update by query issues batches of update operations, you can set +requests_per_second+ to any positive decimal number. + # This pads each batch with a wait time to throttle the rate. + # Set +requests_per_second+ to +-1+ to turn off throttling. + # Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + # The padding time is the difference between the batch size divided by the +requests_per_second+ and the time spent writing. + # By default the batch size is 1000, so if +requests_per_second+ is set to +500+: + # + + # target_time = 1000 / 500 per second = 2 seconds + # wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + # + + # Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + # This is "bursty" instead of "smooth". + # **Slicing** + # Update by query supports sliced scroll to parallelize the update process. + # This can improve efficiency and provide a convenient way to break the request down into smaller parts. + # Setting +slices+ to +auto+ chooses a reasonable number for most data streams and indices. + # This setting will use one slice per shard, up to a certain limit. + # If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + # Adding +slices+ to +_update_by_query+ just automates the manual process of creating sub-requests, which means it has some quirks: + # * You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + # * Fetching the status of the task for the request with +slices+ only contains the status of completed slices. + # * These sub-requests are individually addressable for things like cancellation and rethrottling. + # * Rethrottling the request with +slices+ will rethrottle the unfinished sub-request proportionally. + # * Canceling the request with slices will cancel each sub-request. + # * Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + # * Parameters like +requests_per_second+ and +max_docs+ on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using +max_docs+ with +slices+ might not result in exactly +max_docs+ documents being updated. + # * Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + # If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + # * Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + # * Update performance scales linearly across available resources with the number of slices. + # Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. + # **Update the document source** + # Update by query supports scripts to update the document source. + # As with the update API, you can set +ctx.op+ to change the operation that is performed. + # Set +ctx.op = "noop"+ if your script decides that it doesn't have to make any changes. + # The update by query operation skips updating the document and increments the +noop+ counter. + # Set +ctx.op = "delete"+ if your script decides that the document should be deleted. + # The update by query operation deletes the document and increments the +deleted+ counter. + # Update by query supports only +index+, +noop+, and +delete+. + # Setting +ctx.op+ to anything else is an error. + # Setting any other field in +ctx+ is an error. + # This API enables you to only modify the source of matching documents; you cannot move them. # - # @option arguments [List] :index A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - # @option arguments [String] :analyzer The analyzer to use for the query string - # @option arguments [Boolean] :analyze_wildcard Specify whether wildcard and prefix queries should be analyzed (default: false) - # @option arguments [String] :default_operator The default operator for query string query (AND or OR) (options: AND, OR) - # @option arguments [String] :df The field to use as default where no field prefix is given in the query string - # @option arguments [Number] :from Starting offset (default: 0) - # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - # @option arguments [String] :conflicts What to do when the update by query hits version conflicts? (options: abort, proceed) - # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all) - # @option arguments [Boolean] :lenient Specify whether format-based query failures (such as providing text to a numeric field) should be ignored - # @option arguments [String] :pipeline Ingest pipeline to set on index requests made by this action. (default: none) - # @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random) - # @option arguments [String] :q Query in the Lucene query string syntax - # @option arguments [List] :routing A comma-separated list of specific routing values - # @option arguments [Time] :scroll Specify how long a consistent view of the index should be maintained for scrolled search - # @option arguments [String] :search_type Search operation type (options: query_then_fetch, dfs_query_then_fetch) - # @option arguments [Time] :search_timeout Explicit timeout for each search request. Defaults to no timeout. - # @option arguments [Number] :max_docs Maximum number of documents to process (default: all documents) - # @option arguments [List] :sort A comma-separated list of : pairs - # @option arguments [Number] :terminate_after The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early. - # @option arguments [List] :stats Specific 'tag' of the request for logging and statistical purposes - # @option arguments [Boolean] :version Specify whether to return document version as part of a hit + # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to search. + # It supports wildcards (+*+). + # To search all data streams or indices, omit this parameter or use +*+ or +_all+. (*Required*) + # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. + # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. + # @option arguments [String] :analyzer The analyzer to use for the query string. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [Boolean] :analyze_wildcard If +true+, wildcard and prefix queries are analyzed. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [String] :conflicts The preferred behavior when update by query hits version conflicts: +abort+ or +proceed+. Server default: abort. + # @option arguments [String] :default_operator The default operator for query string query: +AND+ or +OR+. + # This parameter can be used only when the +q+ query string parameter is specified. Server default: OR. + # @option arguments [String] :df The field to use as default where no field prefix is given in the query string. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # It supports comma-separated values, such as +open,hidden+. + # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. + # @option arguments [Integer] :from Skips the specified number of documents. Server default: 0. + # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :lenient If +true+, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [Integer] :max_docs The maximum number of documents to process. + # It defaults to all documents. + # When set to a value less then or equal to +scroll_size+ then a scroll will not be used to retrieve the results for the operation. + # @option arguments [String] :pipeline The ID of the pipeline to use to preprocess incoming documents. + # If the index has a default ingest pipeline specified, then setting the value to +_none+ disables the default ingest pipeline for this request. + # If a final pipeline is configured it will always run, regardless of the value of this parameter. + # @option arguments [String] :preference The node or shard the operation should be performed on. + # It is random by default. + # @option arguments [String] :q A query in the Lucene query string syntax. + # @option arguments [Boolean] :refresh If +true+, Elasticsearch refreshes affected shards to make the operation visible to search after the request completes. + # This is different than the update API's +refresh+ parameter, which causes just the shard that received the request to be refreshed. + # @option arguments [Boolean] :request_cache If +true+, the request cache is used for this request. + # It defaults to the index-level setting. + # @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second. Server default: -1. + # @option arguments [String] :routing A custom value used to route operations to a specific shard. + # @option arguments [Time] :scroll The period to retain the search context for scrolling. Server default: 5m. + # @option arguments [Integer] :scroll_size The size of the scroll request that powers the operation. Server default: 1000. + # @option arguments [Time] :search_timeout An explicit timeout for each search request. + # By default, there is no timeout. + # @option arguments [String] :search_type The type of the search operation. Available options include +query_then_fetch+ and +dfs_query_then_fetch+. + # @option arguments [Integer, String] :slices The number of slices this task should be divided into. Server default: 1. + # @option arguments [Array] :sort A comma-separated list of : pairs. + # @option arguments [Array] :stats The specific +tag+ of the request for logging and statistical purposes. + # @option arguments [Integer] :terminate_after The maximum number of documents to collect for each shard. + # If a query reaches this limit, Elasticsearch terminates the query early. + # Elasticsearch collects documents before sorting.IMPORTANT: Use with caution. + # Elasticsearch applies this parameter to each shard handling the request. + # When possible, let Elasticsearch perform early termination automatically. + # Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. + # @option arguments [Time] :timeout The period each update request waits for the following operations: dynamic mapping updates, waiting for active shards. + # By default, it is one minute. + # This guarantees Elasticsearch waits for at least the timeout before failing. + # The actual wait time could be longer, particularly when multiple waits occur. Server default: 1m. + # @option arguments [Boolean] :version If +true+, returns the document version as part of a hit. # @option arguments [Boolean] :version_type Should the document increment the version number (internal) on hit or not (reindex) - # @option arguments [Boolean] :request_cache Specify if request cache should be used for this request or not, defaults to index level setting - # @option arguments [Boolean] :refresh Should the affected indexes be refreshed? - # @option arguments [Time] :timeout Time each individual bulk request should wait for shards that are unavailable. - # @option arguments [String] :wait_for_active_shards Sets the number of shard copies that must be active before proceeding with the update by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) - # @option arguments [Number] :scroll_size Size on the scroll request powering the update by query - # @option arguments [Boolean] :wait_for_completion Should the request should block until the update by query operation is complete. - # @option arguments [Number] :requests_per_second The throttle to set on this request in sub-requests per second. -1 means no throttle. - # @option arguments [Number|string] :slices The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`. + # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. + # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). + # The +timeout+ parameter controls how long each write request waits for unavailable shards to become available. + # Both work exactly the way they work in the bulk API. Server default: 1. + # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks until the operation is complete. + # If +false+, Elasticsearch performs some preflight checks, launches the request, and returns a task ID that you can use to cancel or get the status of the task. + # Elasticsearch creates a record of this task as a document at +.tasks/task/${taskId}+. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The search definition using the Query DSL + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-update-by-query # def update_by_query(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'update_by_query' } @@ -74,12 +165,12 @@ def update_by_query(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_POST - path = "#{Utils.__listify(_index)}/_update_by_query" + path = "#{Utils.listify(_index)}/_update_by_query" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb index 801ed1bcd4..65470ed9f0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb @@ -15,19 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Actions - # Changes the number of requests per second for a particular Update By Query operation. + # Throttle an update by query operation. + # Change the number of requests per second for a particular update by query operation. + # Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. # - # @option arguments [String] :task_id The task id to rethrottle - # @option arguments [Number] :requests_per_second The throttle to set on this request in floating sub-requests per second. -1 means set no throttle. (*Required*) + # @option arguments [String] :task_id The ID for the task. (*Required*) + # @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second. + # To turn off throttling, set it to +-1+. Server default: -1. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-update-by-query-rethrottle # def update_by_query_rethrottle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'update_by_query_rethrottle' } @@ -47,7 +50,7 @@ def update_by_query_rethrottle(arguments = {}) _task_id = arguments.delete(:task_id) method = Elasticsearch::API::HTTP_POST - path = "_update_by_query/#{Utils.__listify(_task_id)}/_rethrottle" + path = "_update_by_query/#{Utils.listify(_task_id)}/_rethrottle" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb index 6539662686..8931dcb694 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb @@ -15,25 +15,32 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Watcher module Actions - # Acknowledges a watch, manually throttling the execution of the watch's actions. + # Acknowledge a watch. + # Acknowledging a watch enables you to manually throttle the execution of the watch's actions. + # The acknowledgement state of an action is stored in the +status.actions..ack.state+ structure. + # IMPORTANT: If the specified watch is currently being executed, this API will return an error + # The reason for this behavior is to prevent overwriting the watch status from a watch execution. + # Acknowledging an action throttles further executions of that action until its +ack.state+ is reset to +awaits_successful_execution+. + # This happens when the condition of the watch is not met (the condition evaluates to false). # - # @option arguments [String] :watch_id Watch ID - # @option arguments [List] :action_id A comma-separated list of the action ids to be acked + # @option arguments [String] :watch_id The watch identifier. (*Required*) + # @option arguments [String, Array] :action_id A comma-separated list of the action identifiers to acknowledge. + # If you omit this parameter, all of the actions of the watch are acknowledged. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-ack-watch # def ack_watch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.ack_watch' } - defined_params = %i[watch_id action_id].each_with_object({}) do |variable, set_variables| + defined_params = [:watch_id, :action_id].each_with_object({}) do |variable, set_variables| set_variables[variable] = arguments[variable] if arguments.key?(variable) end request_opts[:defined_params] = defined_params unless defined_params.empty? @@ -51,9 +58,9 @@ def ack_watch(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = if _watch_id && _action_id - "_watcher/watch/#{Utils.__listify(_watch_id)}/_ack/#{Utils.__listify(_action_id)}" + "_watcher/watch/#{Utils.listify(_watch_id)}/_ack/#{Utils.listify(_action_id)}" else - "_watcher/watch/#{Utils.__listify(_watch_id)}/_ack" + "_watcher/watch/#{Utils.listify(_watch_id)}/_ack" end params = {} diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb index 739a1d774d..1bd2dc0c05 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb @@ -15,19 +15,20 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Watcher module Actions - # Activates a currently inactive watch. + # Activate a watch. + # A watch can be either active or inactive. # - # @option arguments [String] :watch_id Watch ID + # @option arguments [String] :watch_id The watch identifier. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-activate-watch # def activate_watch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.activate_watch' } @@ -47,7 +48,7 @@ def activate_watch(arguments = {}) _watch_id = arguments.delete(:watch_id) method = Elasticsearch::API::HTTP_PUT - path = "_watcher/watch/#{Utils.__listify(_watch_id)}/_activate" + path = "_watcher/watch/#{Utils.listify(_watch_id)}/_activate" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb index 645558f549..522c0e7dcc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb @@ -15,19 +15,20 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Watcher module Actions - # Deactivates a currently active watch. + # Deactivate a watch. + # A watch can be either active or inactive. # - # @option arguments [String] :watch_id Watch ID + # @option arguments [String] :watch_id The watch identifier. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-deactivate-watch # def deactivate_watch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.deactivate_watch' } @@ -47,7 +48,7 @@ def deactivate_watch(arguments = {}) _watch_id = arguments.delete(:watch_id) method = Elasticsearch::API::HTTP_PUT - path = "_watcher/watch/#{Utils.__listify(_watch_id)}/_deactivate" + path = "_watcher/watch/#{Utils.listify(_watch_id)}/_deactivate" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb index 8a6ae856d7..a20ad8aa8e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb @@ -15,19 +15,24 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Watcher module Actions - # Removes a watch from Watcher. + # Delete a watch. + # When the watch is removed, the document representing the watch in the +.watches+ index is gone and it will never be run again. + # Deleting a watch does not delete any watch execution records related to this watch from the watch history. + # IMPORTANT: Deleting a watch must be done by using only this API. + # Do not delete the watch directly from the +.watches+ index using the Elasticsearch delete document API + # When Elasticsearch security features are enabled, make sure no write privileges are granted to anyone for the +.watches+ index. # - # @option arguments [String] :id Watch ID + # @option arguments [String] :id The watch identifier. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-delete-watch # def delete_watch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.delete_watch' } @@ -47,11 +52,11 @@ def delete_watch(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_DELETE - path = "_watcher/watch/#{Utils.__listify(_id)}" + path = "_watcher/watch/#{Utils.listify(_id)}" params = Utils.process_params(arguments) if Array(arguments[:ignore]).include?(404) - Utils.__rescue_from_not_found do + Utils.rescue_from_not_found do Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb index 72d49ad08b..a2d3923af9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb @@ -15,21 +15,30 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Watcher module Actions - # Forces the execution of a stored watch. + # Run a watch. + # This API can be used to force execution of the watch outside of its triggering logic or to simulate the watch execution for debugging purposes. + # For testing and debugging purposes, you also have fine-grained control on how the watch runs. + # You can run the watch without running all of its actions or alternatively by simulating them. + # You can also force execution by ignoring the watch condition and control whether a watch record would be written to the watch history after it runs. + # You can use the run watch API to run watches that are not yet registered by specifying the watch definition inline. + # This serves as great tool for testing and debugging your watches prior to adding them to Watcher. + # When Elasticsearch security features are enabled on your cluster, watches are run with the privileges of the user that stored the watches. + # If your user is allowed to read index +a+, but not index +b+, then the exact same set of rules will apply during execution of a watch. + # When using the run watch API, the authorization data of the user that called the API will be used as a base, instead of the information who stored the watch. # - # @option arguments [String] :id Watch ID - # @option arguments [Boolean] :debug indicates whether the watch should execute in debug mode + # @option arguments [String] :id The watch identifier. + # @option arguments [Boolean] :debug Defines whether the watch runs in debug mode. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body Execution control + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-execute-watch # def execute_watch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.execute_watch' } @@ -48,7 +57,7 @@ def execute_watch(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = if _id - "_watcher/watch/#{Utils.__listify(_id)}/_execute" + "_watcher/watch/#{Utils.listify(_id)}/_execute" else '_watcher/watch/_execute' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb index 00eb7f13f6..1c54ffb25d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb @@ -15,19 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Watcher module Actions - # Retrieve settings for the watcher system index + # Get Watcher index settings. + # Get settings for the Watcher internal index (+.watches+). + # Only a subset of settings are shown, for example +index.auto_expand_replicas+ and +index.number_of_replicas+. # - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-settings.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-get-settings # def get_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.get_settings' } @@ -35,7 +38,7 @@ def get_settings(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_watcher/settings' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb index bb2f184baa..713391ec2f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb @@ -15,19 +15,19 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Watcher module Actions - # Retrieves a watch by its ID. + # Get a watch. # - # @option arguments [String] :id Watch ID + # @option arguments [String] :id The watch identifier. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-get-watch # def get_watch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.get_watch' } @@ -47,7 +47,7 @@ def get_watch(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_GET - path = "_watcher/watch/#{Utils.__listify(_id)}" + path = "_watcher/watch/#{Utils.listify(_id)}" params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb index 111294f4e5..f184661f1f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb @@ -15,24 +15,33 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Watcher module Actions - # Creates a new watch, or updates an existing one. + # Create or update a watch. + # When a watch is registered, a new document that represents the watch is added to the +.watches+ index and its trigger is immediately registered with the relevant trigger engine. + # Typically for the +schedule+ trigger, the scheduler is the trigger engine. + # IMPORTANT: You must use Kibana or this API to create a watch. + # Do not add a watch directly to the +.watches+ index by using the Elasticsearch index API. + # If Elasticsearch security features are enabled, do not give users write privileges on the +.watches+ index. + # When you add a watch you can also define its initial active state by setting the *active* parameter. + # When Elasticsearch security features are enabled, your watch can index or search only on indices for which the user that stored the watch has privileges. + # If the user is able to read index +a+, but not index +b+, the same will apply when the watch runs. # - # @option arguments [String] :id Watch ID - # @option arguments [Boolean] :active Specify whether the watch is in/active by default - # @option arguments [Number] :version Explicit version number for concurrency control - # @option arguments [Number] :if_seq_no only update the watch if the last operation that has changed the watch has the specified sequence number - # @option arguments [Number] :if_primary_term only update the watch if the last operation that has changed the watch has the specified primary term + # @option arguments [String] :id The identifier for the watch. (*Required*) + # @option arguments [Boolean] :active The initial state of the watch. + # The default value is +true+, which means the watch is active by default. Server default: true. + # @option arguments [Integer] :if_primary_term only update the watch if the last operation that has changed the watch has the specified primary term + # @option arguments [Integer] :if_seq_no only update the watch if the last operation that has changed the watch has the specified sequence number + # @option arguments [Integer] :version Explicit version number for concurrency control # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The watch + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-put-watch # def put_watch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.put_watch' } @@ -52,7 +61,7 @@ def put_watch(arguments = {}) _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_PUT - path = "_watcher/watch/#{Utils.__listify(_id)}" + path = "_watcher/watch/#{Utils.listify(_id)}" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb index 83d9bc0570..e45c0e4db5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb @@ -15,19 +15,21 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Watcher module Actions - # Retrieves stored watches. + # Query watches. + # Get all registered watches in a paginated manner and optionally filter watches by a query. + # Note that only the +_id+ and +metadata.*+ fields are queryable or sortable. # # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body From, size, query, sort and search_after + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-query-watches.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-query-watches # def query_watches(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.query_watches' } @@ -35,7 +37,7 @@ def query_watches(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = if body Elasticsearch::API::HTTP_POST @@ -43,7 +45,7 @@ def query_watches(arguments = {}) Elasticsearch::API::HTTP_GET end - path = '_watcher/_query/watches' + path = '_watcher/_query/watches' params = {} Elasticsearch::API::Response.new( diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb index ef2b8ea8e3..5d672f9660 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb @@ -15,19 +15,20 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Watcher module Actions - # Starts Watcher if it is not already running. + # Start the watch service. + # Start the Watcher service if it is not already running. # - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-start # def start(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.start' } @@ -35,7 +36,7 @@ def start(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_POST path = '_watcher/_start' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb index 4ef01863df..cca7d47634 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb @@ -15,20 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Watcher module Actions - # Retrieves the current Watcher metrics. + # Get Watcher statistics. + # This API always returns basic metrics. + # You retrieve more metrics by using the metric parameter. # - # @option arguments [List] :metric Controls what additional stat metrics should be include in the response (options: _all, queued_watches, current_watches, pending_watches) - # @option arguments [Boolean] :emit_stacktraces Emits stack traces of currently running watches + # @option arguments [Watchermetric] :metric Defines which additional metrics are included in the response. + # @option arguments [Boolean] :emit_stacktraces Defines whether stack traces are generated for each watch that is running. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-stats # def stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.stats' } @@ -47,7 +49,7 @@ def stats(arguments = {}) method = Elasticsearch::API::HTTP_GET path = if _metric - "_watcher/stats/#{Utils.__listify(_metric)}" + "_watcher/stats/#{Utils.listify(_metric)}" else '_watcher/stats' end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb index 2f112aedd6..a6f59a5073 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb @@ -15,19 +15,22 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Watcher module Actions - # Stops Watcher if it is running. + # Stop the watch service. + # Stop the Watcher service if it is running. # - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [Time] :master_timeout The period to wait for the master node. + # If the master node is not available before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-stop # def stop(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.stop' } @@ -35,7 +38,7 @@ def stop(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_POST path = '_watcher/_stop' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb index b316761c9e..cd7626ad3c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb @@ -15,21 +15,26 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module Watcher module Actions - # Update settings for the watcher system index + # Update Watcher index settings. + # Update settings for the Watcher internal index (+.watches+). + # Only a subset of settings can be modified. + # This includes +index.auto_expand_replicas+ and +index.number_of_replicas+. # - # @option arguments [Time] :timeout Specify timeout for waiting for acknowledgement from all nodes - # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. + # @option arguments [Time] :timeout The period to wait for a response. + # If no response is received before the timeout expires, the request fails and returns an error. # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body An object with the new index settings (*Required*) + # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-update-settings.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-update-settings # def update_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.update_settings' } @@ -39,7 +44,7 @@ def update_settings(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) + body = arguments.delete(:body) method = Elasticsearch::API::HTTP_PUT path = '_watcher/settings' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb index 89cb118784..b5ed6cadd4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb @@ -15,21 +15,27 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module XPack module Actions - # Retrieves information about the installed X-Pack features. + # Get information. + # The information provided by the API includes: + # * Build information including the build number and timestamp. + # * License information about the currently installed license. + # * Feature information for the features that are currently enabled and available under the current license. # - # @option arguments [Boolean] :human Defines whether additional human-readable information is included in the response. In particular, it adds descriptions and a tag line. The default value is true. - # @option arguments [List] :categories Comma-separated list of info categories. Can be any of: build, license, features - # @option arguments [Boolean] :accept_enterprise If this param is used it must be set to true *Deprecated* + # @option arguments [Array] :categories A comma-separated list of the information categories to include in the response. + # For example, +build,license,features+. + # @option arguments [Boolean] :accept_enterprise If this param is used it must be set to true + # @option arguments [Boolean] :human Defines whether additional human-readable information is included in the response. + # In particular, it adds descriptions and a tag line. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-info # def info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'xpack.info' } @@ -37,7 +43,7 @@ def info(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_xpack' diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb index 2317ef931e..46b29bb0d8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb @@ -15,19 +15,23 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 -# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec +# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb +# @see https://github.com/elastic/elasticsearch-specification # module Elasticsearch module API module XPack module Actions - # Retrieves usage information about the installed X-Pack features. + # Get usage information. + # Get information about the features that are currently enabled and available under the current license. + # The API also provides some usage statistics. # - # @option arguments [Time] :master_timeout Specify timeout for watch write operation + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. + # If no response is received before the timeout expires, the request fails and returns an error. + # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-xpack # def usage(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'xpack.usage' } @@ -35,7 +39,7 @@ def usage(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil method = Elasticsearch::API::HTTP_GET path = '_xpack/usage' From fa46e4b6a09ad16590c5286920526c4ea638bdec Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 7 Apr 2025 10:18:47 +0100 Subject: [PATCH 23/75] [API] Adds ES_SPECIFICATION_COMMIT The code is automatically generated from elasticsearch-specification: https://github.com/elastic/elasticsearch-specification The value Elasticsearch::ES_SPECIFICATION_COMMIT will be updated with the commit hash of elasticsearch-specification in which the code is based. Instead of writing the commit hash in each generated file, it will be saved in this constant. --- elasticsearch-api/lib/elasticsearch/api/version.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index a8d55bf703..5588f64eda 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,5 +18,6 @@ module Elasticsearch module API VERSION = '9.0.0'.freeze + ES_SPECIFICATION_COMMIT = '8b93a5f0305b154e55150883cf2070bc218c52e7'.freeze end end From f40af02b15409045d54aae088af5d074091d76cd Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 7 Apr 2025 10:19:45 +0100 Subject: [PATCH 24/75] [API] Updates Build hash message in generated code --- .../elasticsearch/api/actions/async_search/delete.rb | 6 +++--- .../lib/elasticsearch/api/actions/async_search/get.rb | 6 +++--- .../elasticsearch/api/actions/async_search/status.rb | 6 +++--- .../elasticsearch/api/actions/async_search/submit.rb | 6 +++--- .../lib/elasticsearch/api/actions/bulk.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/aliases.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/allocation.rb | 6 +++--- .../api/actions/cat/component_templates.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/count.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/fielddata.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/health.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/help.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/indices.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/master.rb | 6 +++--- .../api/actions/cat/ml_data_frame_analytics.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/ml_datafeeds.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/ml_jobs.rb | 6 +++--- .../api/actions/cat/ml_trained_models.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/nodeattrs.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/nodes.rb | 6 +++--- .../elasticsearch/api/actions/cat/pending_tasks.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/plugins.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/recovery.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/repositories.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/segments.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/shards.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/snapshots.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/tasks.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/templates.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/thread_pool.rb | 6 +++--- .../lib/elasticsearch/api/actions/cat/transforms.rb | 6 +++--- .../lib/elasticsearch/api/actions/clear_scroll.rb | 6 +++--- .../elasticsearch/api/actions/close_point_in_time.rb | 6 +++--- .../api/actions/cluster/allocation_explain.rb | 6 +++--- .../api/actions/cluster/delete_component_template.rb | 6 +++--- .../cluster/delete_voting_config_exclusions.rb | 6 +++--- .../api/actions/cluster/exists_component_template.rb | 6 +++--- .../api/actions/cluster/get_component_template.rb | 6 +++--- .../elasticsearch/api/actions/cluster/get_settings.rb | 6 +++--- .../lib/elasticsearch/api/actions/cluster/health.rb | 6 +++--- .../lib/elasticsearch/api/actions/cluster/info.rb | 6 +++--- .../api/actions/cluster/pending_tasks.rb | 6 +++--- .../actions/cluster/post_voting_config_exclusions.rb | 6 +++--- .../api/actions/cluster/put_component_template.rb | 6 +++--- .../elasticsearch/api/actions/cluster/put_settings.rb | 6 +++--- .../elasticsearch/api/actions/cluster/remote_info.rb | 6 +++--- .../lib/elasticsearch/api/actions/cluster/reroute.rb | 6 +++--- .../lib/elasticsearch/api/actions/cluster/state.rb | 6 +++--- .../lib/elasticsearch/api/actions/cluster/stats.rb | 6 +++--- .../elasticsearch/api/actions/connector/check_in.rb | 6 +++--- .../lib/elasticsearch/api/actions/connector/delete.rb | 6 +++--- .../lib/elasticsearch/api/actions/connector/get.rb | 6 +++--- .../lib/elasticsearch/api/actions/connector/list.rb | 6 +++--- .../lib/elasticsearch/api/actions/connector/post.rb | 6 +++--- .../lib/elasticsearch/api/actions/connector/put.rb | 6 +++--- .../api/actions/connector/sync_job_cancel.rb | 6 +++--- .../api/actions/connector/sync_job_check_in.rb | 6 +++--- .../api/actions/connector/sync_job_claim.rb | 6 +++--- .../api/actions/connector/sync_job_delete.rb | 6 +++--- .../api/actions/connector/sync_job_error.rb | 6 +++--- .../api/actions/connector/sync_job_get.rb | 6 +++--- .../api/actions/connector/sync_job_list.rb | 6 +++--- .../api/actions/connector/sync_job_post.rb | 6 +++--- .../api/actions/connector/sync_job_update_stats.rb | 6 +++--- .../api/actions/connector/update_active_filtering.rb | 6 +++--- .../api/actions/connector/update_api_key_id.rb | 6 +++--- .../api/actions/connector/update_configuration.rb | 6 +++--- .../api/actions/connector/update_error.rb | 6 +++--- .../api/actions/connector/update_features.rb | 6 +++--- .../api/actions/connector/update_filtering.rb | 6 +++--- .../actions/connector/update_filtering_validation.rb | 6 +++--- .../api/actions/connector/update_index_name.rb | 6 +++--- .../api/actions/connector/update_name.rb | 6 +++--- .../api/actions/connector/update_native.rb | 6 +++--- .../api/actions/connector/update_pipeline.rb | 6 +++--- .../api/actions/connector/update_scheduling.rb | 6 +++--- .../api/actions/connector/update_service_type.rb | 6 +++--- .../api/actions/connector/update_status.rb | 6 +++--- .../lib/elasticsearch/api/actions/count.rb | 6 +++--- .../lib/elasticsearch/api/actions/create.rb | 6 +++--- .../delete_auto_follow_pattern.rb | 6 +++--- .../api/actions/cross_cluster_replication/follow.rb | 6 +++--- .../actions/cross_cluster_replication/follow_info.rb | 6 +++--- .../actions/cross_cluster_replication/follow_stats.rb | 6 +++--- .../cross_cluster_replication/forget_follower.rb | 6 +++--- .../get_auto_follow_pattern.rb | 6 +++--- .../pause_auto_follow_pattern.rb | 6 +++--- .../actions/cross_cluster_replication/pause_follow.rb | 6 +++--- .../put_auto_follow_pattern.rb | 6 +++--- .../resume_auto_follow_pattern.rb | 6 +++--- .../cross_cluster_replication/resume_follow.rb | 6 +++--- .../api/actions/cross_cluster_replication/stats.rb | 6 +++--- .../api/actions/cross_cluster_replication/unfollow.rb | 6 +++--- .../actions/dangling_indices/delete_dangling_index.rb | 6 +++--- .../actions/dangling_indices/import_dangling_index.rb | 6 +++--- .../actions/dangling_indices/list_dangling_indices.rb | 6 +++--- .../lib/elasticsearch/api/actions/delete.rb | 6 +++--- .../lib/elasticsearch/api/actions/delete_by_query.rb | 6 +++--- .../api/actions/delete_by_query_rethrottle.rb | 6 +++--- .../lib/elasticsearch/api/actions/delete_script.rb | 6 +++--- .../elasticsearch/api/actions/enrich/delete_policy.rb | 6 +++--- .../api/actions/enrich/execute_policy.rb | 6 +++--- .../elasticsearch/api/actions/enrich/get_policy.rb | 6 +++--- .../elasticsearch/api/actions/enrich/put_policy.rb | 6 +++--- .../lib/elasticsearch/api/actions/enrich/stats.rb | 6 +++--- .../lib/elasticsearch/api/actions/eql/delete.rb | 6 +++--- .../lib/elasticsearch/api/actions/eql/get.rb | 6 +++--- .../lib/elasticsearch/api/actions/eql/get_status.rb | 6 +++--- .../lib/elasticsearch/api/actions/eql/search.rb | 6 +++--- .../lib/elasticsearch/api/actions/esql/async_query.rb | 6 +++--- .../api/actions/esql/async_query_delete.rb | 6 +++--- .../elasticsearch/api/actions/esql/async_query_get.rb | 6 +++--- .../api/actions/esql/async_query_stop.rb | 6 +++--- .../lib/elasticsearch/api/actions/esql/query.rb | 6 +++--- .../lib/elasticsearch/api/actions/exists.rb | 6 +++--- .../lib/elasticsearch/api/actions/exists_source.rb | 6 +++--- .../lib/elasticsearch/api/actions/explain.rb | 6 +++--- .../api/actions/features/get_features.rb | 6 +++--- .../api/actions/features/reset_features.rb | 6 +++--- .../lib/elasticsearch/api/actions/field_caps.rb | 6 +++--- .../api/actions/fleet/global_checkpoints.rb | 6 +++--- .../lib/elasticsearch/api/actions/fleet/msearch.rb | 6 +++--- .../lib/elasticsearch/api/actions/fleet/search.rb | 6 +++--- .../lib/elasticsearch/api/actions/get.rb | 6 +++--- .../lib/elasticsearch/api/actions/get_script.rb | 6 +++--- .../elasticsearch/api/actions/get_script_context.rb | 6 +++--- .../elasticsearch/api/actions/get_script_languages.rb | 6 +++--- .../lib/elasticsearch/api/actions/get_source.rb | 6 +++--- .../lib/elasticsearch/api/actions/graph/explore.rb | 6 +++--- .../lib/elasticsearch/api/actions/health_report.rb | 6 +++--- .../lib/elasticsearch/api/actions/index.rb | 6 +++--- .../index_lifecycle_management/delete_lifecycle.rb | 6 +++--- .../index_lifecycle_management/explain_lifecycle.rb | 6 +++--- .../index_lifecycle_management/get_lifecycle.rb | 6 +++--- .../actions/index_lifecycle_management/get_status.rb | 6 +++--- .../migrate_to_data_tiers.rb | 6 +++--- .../index_lifecycle_management/move_to_step.rb | 6 +++--- .../index_lifecycle_management/put_lifecycle.rb | 6 +++--- .../index_lifecycle_management/remove_policy.rb | 6 +++--- .../api/actions/index_lifecycle_management/retry.rb | 6 +++--- .../api/actions/index_lifecycle_management/start.rb | 6 +++--- .../api/actions/index_lifecycle_management/stop.rb | 6 +++--- .../elasticsearch/api/actions/indices/add_block.rb | 6 +++--- .../lib/elasticsearch/api/actions/indices/analyze.rb | 6 +++--- .../api/actions/indices/cancel_migrate_reindex.rb | 6 +++--- .../elasticsearch/api/actions/indices/clear_cache.rb | 6 +++--- .../lib/elasticsearch/api/actions/indices/clone.rb | 6 +++--- .../lib/elasticsearch/api/actions/indices/close.rb | 6 +++--- .../lib/elasticsearch/api/actions/indices/create.rb | 6 +++--- .../api/actions/indices/create_data_stream.rb | 6 +++--- .../elasticsearch/api/actions/indices/create_from.rb | 6 +++--- .../api/actions/indices/data_streams_stats.rb | 6 +++--- .../lib/elasticsearch/api/actions/indices/delete.rb | 6 +++--- .../elasticsearch/api/actions/indices/delete_alias.rb | 6 +++--- .../api/actions/indices/delete_data_lifecycle.rb | 6 +++--- .../api/actions/indices/delete_data_stream.rb | 6 +++--- .../api/actions/indices/delete_index_template.rb | 6 +++--- .../api/actions/indices/delete_template.rb | 6 +++--- .../elasticsearch/api/actions/indices/disk_usage.rb | 6 +++--- .../elasticsearch/api/actions/indices/downsample.rb | 6 +++--- .../lib/elasticsearch/api/actions/indices/exists.rb | 6 +++--- .../elasticsearch/api/actions/indices/exists_alias.rb | 6 +++--- .../api/actions/indices/exists_index_template.rb | 6 +++--- .../api/actions/indices/exists_template.rb | 6 +++--- .../api/actions/indices/explain_data_lifecycle.rb | 6 +++--- .../api/actions/indices/field_usage_stats.rb | 6 +++--- .../lib/elasticsearch/api/actions/indices/flush.rb | 6 +++--- .../elasticsearch/api/actions/indices/forcemerge.rb | 6 +++--- .../lib/elasticsearch/api/actions/indices/get.rb | 6 +++--- .../elasticsearch/api/actions/indices/get_alias.rb | 6 +++--- .../api/actions/indices/get_data_lifecycle.rb | 6 +++--- .../api/actions/indices/get_data_lifecycle_stats.rb | 6 +++--- .../api/actions/indices/get_data_stream.rb | 6 +++--- .../api/actions/indices/get_field_mapping.rb | 6 +++--- .../api/actions/indices/get_index_template.rb | 6 +++--- .../elasticsearch/api/actions/indices/get_mapping.rb | 6 +++--- .../api/actions/indices/get_migrate_reindex_status.rb | 6 +++--- .../elasticsearch/api/actions/indices/get_settings.rb | 6 +++--- .../elasticsearch/api/actions/indices/get_template.rb | 6 +++--- .../api/actions/indices/migrate_reindex.rb | 6 +++--- .../api/actions/indices/migrate_to_data_stream.rb | 6 +++--- .../api/actions/indices/modify_data_stream.rb | 6 +++--- .../lib/elasticsearch/api/actions/indices/open.rb | 6 +++--- .../api/actions/indices/promote_data_stream.rb | 6 +++--- .../elasticsearch/api/actions/indices/put_alias.rb | 6 +++--- .../api/actions/indices/put_data_lifecycle.rb | 6 +++--- .../api/actions/indices/put_index_template.rb | 6 +++--- .../elasticsearch/api/actions/indices/put_mapping.rb | 6 +++--- .../elasticsearch/api/actions/indices/put_settings.rb | 6 +++--- .../elasticsearch/api/actions/indices/put_template.rb | 6 +++--- .../lib/elasticsearch/api/actions/indices/recovery.rb | 6 +++--- .../lib/elasticsearch/api/actions/indices/refresh.rb | 6 +++--- .../api/actions/indices/reload_search_analyzers.rb | 6 +++--- .../api/actions/indices/resolve_cluster.rb | 6 +++--- .../api/actions/indices/resolve_index.rb | 6 +++--- .../lib/elasticsearch/api/actions/indices/rollover.rb | 6 +++--- .../lib/elasticsearch/api/actions/indices/segments.rb | 6 +++--- .../elasticsearch/api/actions/indices/shard_stores.rb | 6 +++--- .../lib/elasticsearch/api/actions/indices/shrink.rb | 6 +++--- .../api/actions/indices/simulate_index_template.rb | 6 +++--- .../api/actions/indices/simulate_template.rb | 6 +++--- .../lib/elasticsearch/api/actions/indices/split.rb | 6 +++--- .../lib/elasticsearch/api/actions/indices/stats.rb | 6 +++--- .../api/actions/indices/update_aliases.rb | 6 +++--- .../api/actions/indices/validate_query.rb | 6 +++--- .../api/actions/inference/chat_completion_unified.rb | 6 +++--- .../elasticsearch/api/actions/inference/completion.rb | 6 +++--- .../lib/elasticsearch/api/actions/inference/delete.rb | 6 +++--- .../lib/elasticsearch/api/actions/inference/get.rb | 6 +++--- .../api/actions/inference/post_eis_chat_completion.rb | 6 +++--- .../lib/elasticsearch/api/actions/inference/put.rb | 6 +++--- .../api/actions/inference/put_alibabacloud.rb | 6 +++--- .../api/actions/inference/put_amazonbedrock.rb | 6 +++--- .../api/actions/inference/put_anthropic.rb | 6 +++--- .../api/actions/inference/put_azureaistudio.rb | 6 +++--- .../api/actions/inference/put_azureopenai.rb | 6 +++--- .../elasticsearch/api/actions/inference/put_cohere.rb | 6 +++--- .../elasticsearch/api/actions/inference/put_eis.rb | 6 +++--- .../api/actions/inference/put_elasticsearch.rb | 6 +++--- .../elasticsearch/api/actions/inference/put_elser.rb | 6 +++--- .../api/actions/inference/put_googleaistudio.rb | 6 +++--- .../api/actions/inference/put_googlevertexai.rb | 6 +++--- .../api/actions/inference/put_hugging_face.rb | 6 +++--- .../elasticsearch/api/actions/inference/put_jinaai.rb | 6 +++--- .../api/actions/inference/put_mistral.rb | 6 +++--- .../elasticsearch/api/actions/inference/put_openai.rb | 6 +++--- .../api/actions/inference/put_voyageai.rb | 6 +++--- .../api/actions/inference/put_watsonx.rb | 6 +++--- .../lib/elasticsearch/api/actions/inference/rerank.rb | 6 +++--- .../api/actions/inference/sparse_embedding.rb | 6 +++--- .../api/actions/inference/stream_completion.rb | 6 +++--- .../api/actions/inference/text_embedding.rb | 6 +++--- .../lib/elasticsearch/api/actions/inference/update.rb | 6 +++--- .../lib/elasticsearch/api/actions/info.rb | 6 +++--- .../api/actions/ingest/delete_geoip_database.rb | 6 +++--- .../api/actions/ingest/delete_ip_location_database.rb | 6 +++--- .../api/actions/ingest/delete_pipeline.rb | 6 +++--- .../elasticsearch/api/actions/ingest/geo_ip_stats.rb | 6 +++--- .../api/actions/ingest/get_geoip_database.rb | 6 +++--- .../api/actions/ingest/get_ip_location_database.rb | 6 +++--- .../elasticsearch/api/actions/ingest/get_pipeline.rb | 6 +++--- .../api/actions/ingest/processor_grok.rb | 6 +++--- .../api/actions/ingest/put_geoip_database.rb | 6 +++--- .../api/actions/ingest/put_ip_location_database.rb | 6 +++--- .../elasticsearch/api/actions/ingest/put_pipeline.rb | 6 +++--- .../lib/elasticsearch/api/actions/ingest/simulate.rb | 6 +++--- .../lib/elasticsearch/api/actions/knn_search.rb | 6 +++--- .../lib/elasticsearch/api/actions/license/delete.rb | 6 +++--- .../lib/elasticsearch/api/actions/license/get.rb | 6 +++--- .../api/actions/license/get_basic_status.rb | 6 +++--- .../api/actions/license/get_trial_status.rb | 6 +++--- .../lib/elasticsearch/api/actions/license/post.rb | 6 +++--- .../api/actions/license/post_start_basic.rb | 6 +++--- .../api/actions/license/post_start_trial.rb | 6 +++--- .../api/actions/logstash/delete_pipeline.rb | 6 +++--- .../api/actions/logstash/get_pipeline.rb | 6 +++--- .../api/actions/logstash/put_pipeline.rb | 6 +++--- .../clear_trained_model_deployment_cache.rb | 6 +++--- .../api/actions/machine_learning/close_job.rb | 6 +++--- .../api/actions/machine_learning/delete_calendar.rb | 6 +++--- .../actions/machine_learning/delete_calendar_event.rb | 6 +++--- .../actions/machine_learning/delete_calendar_job.rb | 6 +++--- .../machine_learning/delete_data_frame_analytics.rb | 6 +++--- .../api/actions/machine_learning/delete_datafeed.rb | 6 +++--- .../actions/machine_learning/delete_expired_data.rb | 6 +++--- .../api/actions/machine_learning/delete_filter.rb | 6 +++--- .../api/actions/machine_learning/delete_forecast.rb | 6 +++--- .../api/actions/machine_learning/delete_job.rb | 6 +++--- .../actions/machine_learning/delete_model_snapshot.rb | 6 +++--- .../actions/machine_learning/delete_trained_model.rb | 6 +++--- .../machine_learning/delete_trained_model_alias.rb | 6 +++--- .../actions/machine_learning/estimate_model_memory.rb | 6 +++--- .../actions/machine_learning/evaluate_data_frame.rb | 6 +++--- .../machine_learning/explain_data_frame_analytics.rb | 6 +++--- .../api/actions/machine_learning/flush_job.rb | 6 +++--- .../api/actions/machine_learning/forecast.rb | 6 +++--- .../api/actions/machine_learning/get_buckets.rb | 6 +++--- .../actions/machine_learning/get_calendar_events.rb | 6 +++--- .../api/actions/machine_learning/get_calendars.rb | 6 +++--- .../api/actions/machine_learning/get_categories.rb | 6 +++--- .../machine_learning/get_data_frame_analytics.rb | 6 +++--- .../get_data_frame_analytics_stats.rb | 6 +++--- .../actions/machine_learning/get_datafeed_stats.rb | 6 +++--- .../api/actions/machine_learning/get_datafeeds.rb | 6 +++--- .../api/actions/machine_learning/get_filters.rb | 6 +++--- .../api/actions/machine_learning/get_influencers.rb | 6 +++--- .../api/actions/machine_learning/get_job_stats.rb | 6 +++--- .../api/actions/machine_learning/get_jobs.rb | 6 +++--- .../api/actions/machine_learning/get_memory_stats.rb | 6 +++--- .../get_model_snapshot_upgrade_stats.rb | 6 +++--- .../actions/machine_learning/get_model_snapshots.rb | 6 +++--- .../actions/machine_learning/get_overall_buckets.rb | 6 +++--- .../api/actions/machine_learning/get_records.rb | 6 +++--- .../actions/machine_learning/get_trained_models.rb | 6 +++--- .../machine_learning/get_trained_models_stats.rb | 6 +++--- .../actions/machine_learning/infer_trained_model.rb | 6 +++--- .../api/actions/machine_learning/info.rb | 6 +++--- .../api/actions/machine_learning/open_job.rb | 6 +++--- .../actions/machine_learning/post_calendar_events.rb | 6 +++--- .../api/actions/machine_learning/post_data.rb | 6 +++--- .../machine_learning/preview_data_frame_analytics.rb | 6 +++--- .../api/actions/machine_learning/preview_datafeed.rb | 6 +++--- .../api/actions/machine_learning/put_calendar.rb | 6 +++--- .../api/actions/machine_learning/put_calendar_job.rb | 6 +++--- .../machine_learning/put_data_frame_analytics.rb | 6 +++--- .../api/actions/machine_learning/put_datafeed.rb | 6 +++--- .../api/actions/machine_learning/put_filter.rb | 6 +++--- .../api/actions/machine_learning/put_job.rb | 6 +++--- .../api/actions/machine_learning/put_trained_model.rb | 6 +++--- .../machine_learning/put_trained_model_alias.rb | 6 +++--- .../put_trained_model_definition_part.rb | 6 +++--- .../machine_learning/put_trained_model_vocabulary.rb | 6 +++--- .../api/actions/machine_learning/reset_job.rb | 6 +++--- .../actions/machine_learning/revert_model_snapshot.rb | 6 +++--- .../api/actions/machine_learning/set_upgrade_mode.rb | 6 +++--- .../machine_learning/start_data_frame_analytics.rb | 6 +++--- .../api/actions/machine_learning/start_datafeed.rb | 6 +++--- .../start_trained_model_deployment.rb | 6 +++--- .../machine_learning/stop_data_frame_analytics.rb | 6 +++--- .../api/actions/machine_learning/stop_datafeed.rb | 6 +++--- .../machine_learning/stop_trained_model_deployment.rb | 6 +++--- .../machine_learning/update_data_frame_analytics.rb | 6 +++--- .../api/actions/machine_learning/update_datafeed.rb | 6 +++--- .../api/actions/machine_learning/update_filter.rb | 6 +++--- .../api/actions/machine_learning/update_job.rb | 6 +++--- .../actions/machine_learning/update_model_snapshot.rb | 6 +++--- .../update_trained_model_deployment.rb | 6 +++--- .../actions/machine_learning/upgrade_job_snapshot.rb | 6 +++--- .../lib/elasticsearch/api/actions/mget.rb | 6 +++--- .../api/actions/migration/deprecations.rb | 6 +++--- .../actions/migration/get_feature_upgrade_status.rb | 6 +++--- .../api/actions/migration/post_feature_upgrade.rb | 6 +++--- .../lib/elasticsearch/api/actions/msearch.rb | 6 +++--- .../lib/elasticsearch/api/actions/msearch_template.rb | 6 +++--- .../lib/elasticsearch/api/actions/mtermvectors.rb | 6 +++--- .../nodes/clear_repositories_metering_archive.rb | 6 +++--- .../actions/nodes/get_repositories_metering_info.rb | 6 +++--- .../elasticsearch/api/actions/nodes/hot_threads.rb | 6 +++--- .../lib/elasticsearch/api/actions/nodes/info.rb | 6 +++--- .../api/actions/nodes/reload_secure_settings.rb | 6 +++--- .../lib/elasticsearch/api/actions/nodes/stats.rb | 6 +++--- .../lib/elasticsearch/api/actions/nodes/usage.rb | 6 +++--- .../elasticsearch/api/actions/open_point_in_time.rb | 6 +++--- .../lib/elasticsearch/api/actions/ping.rb | 6 +++--- .../lib/elasticsearch/api/actions/put_script.rb | 6 +++--- .../api/actions/query_rules/delete_rule.rb | 6 +++--- .../api/actions/query_rules/delete_ruleset.rb | 6 +++--- .../elasticsearch/api/actions/query_rules/get_rule.rb | 6 +++--- .../api/actions/query_rules/get_ruleset.rb | 6 +++--- .../api/actions/query_rules/list_rulesets.rb | 6 +++--- .../elasticsearch/api/actions/query_rules/put_rule.rb | 6 +++--- .../api/actions/query_rules/put_ruleset.rb | 6 +++--- .../lib/elasticsearch/api/actions/query_rules/test.rb | 6 +++--- .../lib/elasticsearch/api/actions/rank_eval.rb | 6 +++--- .../lib/elasticsearch/api/actions/reindex.rb | 6 +++--- .../elasticsearch/api/actions/reindex_rethrottle.rb | 6 +++--- .../api/actions/render_search_template.rb | 6 +++--- .../api/actions/scripts_painless_execute.rb | 6 +++--- .../lib/elasticsearch/api/actions/scroll.rb | 6 +++--- .../lib/elasticsearch/api/actions/search.rb | 6 +++--- .../api/actions/search_application/delete.rb | 6 +++--- .../search_application/delete_behavioral_analytics.rb | 6 +++--- .../api/actions/search_application/get.rb | 6 +++--- .../search_application/get_behavioral_analytics.rb | 6 +++--- .../api/actions/search_application/list.rb | 6 +++--- .../post_behavioral_analytics_event.rb | 6 +++--- .../api/actions/search_application/put.rb | 6 +++--- .../search_application/put_behavioral_analytics.rb | 6 +++--- .../api/actions/search_application/render_query.rb | 6 +++--- .../api/actions/search_application/search.rb | 6 +++--- .../lib/elasticsearch/api/actions/search_mvt.rb | 6 +++--- .../lib/elasticsearch/api/actions/search_shards.rb | 6 +++--- .../lib/elasticsearch/api/actions/search_template.rb | 6 +++--- .../api/actions/searchable_snapshots/cache_stats.rb | 6 +++--- .../api/actions/searchable_snapshots/clear_cache.rb | 6 +++--- .../api/actions/searchable_snapshots/mount.rb | 6 +++--- .../api/actions/searchable_snapshots/stats.rb | 6 +++--- .../api/actions/security/activate_user_profile.rb | 6 +++--- .../api/actions/security/authenticate.rb | 6 +++--- .../api/actions/security/bulk_delete_role.rb | 6 +++--- .../api/actions/security/bulk_put_role.rb | 6 +++--- .../api/actions/security/bulk_update_api_keys.rb | 6 +++--- .../api/actions/security/change_password.rb | 6 +++--- .../api/actions/security/clear_api_key_cache.rb | 6 +++--- .../api/actions/security/clear_cached_privileges.rb | 6 +++--- .../api/actions/security/clear_cached_realms.rb | 6 +++--- .../api/actions/security/clear_cached_roles.rb | 6 +++--- .../actions/security/clear_cached_service_tokens.rb | 6 +++--- .../api/actions/security/create_api_key.rb | 6 +++--- .../actions/security/create_cross_cluster_api_key.rb | 6 +++--- .../api/actions/security/create_service_token.rb | 6 +++--- .../api/actions/security/delegate_pki.rb | 6 +++--- .../api/actions/security/delete_privileges.rb | 6 +++--- .../elasticsearch/api/actions/security/delete_role.rb | 6 +++--- .../api/actions/security/delete_role_mapping.rb | 6 +++--- .../api/actions/security/delete_service_token.rb | 6 +++--- .../elasticsearch/api/actions/security/delete_user.rb | 6 +++--- .../api/actions/security/disable_user.rb | 6 +++--- .../api/actions/security/disable_user_profile.rb | 6 +++--- .../elasticsearch/api/actions/security/enable_user.rb | 6 +++--- .../api/actions/security/enable_user_profile.rb | 6 +++--- .../api/actions/security/enroll_kibana.rb | 6 +++--- .../elasticsearch/api/actions/security/enroll_node.rb | 6 +++--- .../elasticsearch/api/actions/security/get_api_key.rb | 6 +++--- .../api/actions/security/get_builtin_privileges.rb | 6 +++--- .../api/actions/security/get_privileges.rb | 6 +++--- .../elasticsearch/api/actions/security/get_role.rb | 6 +++--- .../api/actions/security/get_role_mapping.rb | 6 +++--- .../api/actions/security/get_service_accounts.rb | 6 +++--- .../api/actions/security/get_service_credentials.rb | 6 +++--- .../api/actions/security/get_settings.rb | 6 +++--- .../elasticsearch/api/actions/security/get_token.rb | 6 +++--- .../elasticsearch/api/actions/security/get_user.rb | 6 +++--- .../api/actions/security/get_user_privileges.rb | 6 +++--- .../api/actions/security/get_user_profile.rb | 6 +++--- .../api/actions/security/grant_api_key.rb | 6 +++--- .../api/actions/security/has_privileges.rb | 6 +++--- .../actions/security/has_privileges_user_profile.rb | 6 +++--- .../api/actions/security/invalidate_api_key.rb | 6 +++--- .../api/actions/security/invalidate_token.rb | 6 +++--- .../api/actions/security/oidc_authenticate.rb | 6 +++--- .../elasticsearch/api/actions/security/oidc_logout.rb | 6 +++--- .../actions/security/oidc_prepare_authentication.rb | 6 +++--- .../api/actions/security/put_privileges.rb | 6 +++--- .../elasticsearch/api/actions/security/put_role.rb | 6 +++--- .../api/actions/security/put_role_mapping.rb | 6 +++--- .../elasticsearch/api/actions/security/put_user.rb | 6 +++--- .../api/actions/security/query_api_keys.rb | 6 +++--- .../elasticsearch/api/actions/security/query_role.rb | 6 +++--- .../elasticsearch/api/actions/security/query_user.rb | 6 +++--- .../api/actions/security/saml_authenticate.rb | 6 +++--- .../api/actions/security/saml_complete_logout.rb | 6 +++--- .../api/actions/security/saml_invalidate.rb | 6 +++--- .../elasticsearch/api/actions/security/saml_logout.rb | 6 +++--- .../actions/security/saml_prepare_authentication.rb | 6 +++--- .../security/saml_service_provider_metadata.rb | 6 +++--- .../api/actions/security/suggest_user_profiles.rb | 6 +++--- .../api/actions/security/update_api_key.rb | 6 +++--- .../actions/security/update_cross_cluster_api_key.rb | 6 +++--- .../api/actions/security/update_settings.rb | 6 +++--- .../api/actions/security/update_user_profile_data.rb | 6 +++--- .../lib/elasticsearch/api/actions/simulate/ingest.rb | 6 +++--- .../api/actions/snapshot/cleanup_repository.rb | 6 +++--- .../lib/elasticsearch/api/actions/snapshot/clone.rb | 6 +++--- .../lib/elasticsearch/api/actions/snapshot/create.rb | 6 +++--- .../api/actions/snapshot/create_repository.rb | 6 +++--- .../lib/elasticsearch/api/actions/snapshot/delete.rb | 6 +++--- .../api/actions/snapshot/delete_repository.rb | 6 +++--- .../lib/elasticsearch/api/actions/snapshot/get.rb | 6 +++--- .../api/actions/snapshot/get_repository.rb | 6 +++--- .../api/actions/snapshot/repository_analyze.rb | 6 +++--- .../lib/elasticsearch/api/actions/snapshot/restore.rb | 6 +++--- .../lib/elasticsearch/api/actions/snapshot/status.rb | 6 +++--- .../api/actions/snapshot/verify_repository.rb | 6 +++--- .../snapshot_lifecycle_management/delete_lifecycle.rb | 6 +++--- .../execute_lifecycle.rb | 6 +++--- .../execute_retention.rb | 6 +++--- .../snapshot_lifecycle_management/get_lifecycle.rb | 6 +++--- .../snapshot_lifecycle_management/get_stats.rb | 6 +++--- .../snapshot_lifecycle_management/get_status.rb | 6 +++--- .../snapshot_lifecycle_management/put_lifecycle.rb | 6 +++--- .../actions/snapshot_lifecycle_management/start.rb | 6 +++--- .../api/actions/snapshot_lifecycle_management/stop.rb | 6 +++--- .../lib/elasticsearch/api/actions/sql/clear_cursor.rb | 6 +++--- .../lib/elasticsearch/api/actions/sql/delete_async.rb | 6 +++--- .../lib/elasticsearch/api/actions/sql/get_async.rb | 6 +++--- .../elasticsearch/api/actions/sql/get_async_status.rb | 6 +++--- .../lib/elasticsearch/api/actions/sql/query.rb | 6 +++--- .../lib/elasticsearch/api/actions/sql/translate.rb | 6 +++--- .../lib/elasticsearch/api/actions/ssl/certificates.rb | 6 +++--- .../api/actions/synonyms/delete_synonym.rb | 6 +++--- .../api/actions/synonyms/delete_synonym_rule.rb | 6 +++--- .../elasticsearch/api/actions/synonyms/get_synonym.rb | 6 +++--- .../api/actions/synonyms/get_synonym_rule.rb | 6 +++--- .../api/actions/synonyms/get_synonyms_sets.rb | 6 +++--- .../elasticsearch/api/actions/synonyms/put_synonym.rb | 6 +++--- .../api/actions/synonyms/put_synonym_rule.rb | 6 +++--- .../lib/elasticsearch/api/actions/tasks/cancel.rb | 6 +++--- .../lib/elasticsearch/api/actions/tasks/get.rb | 6 +++--- .../lib/elasticsearch/api/actions/tasks/list.rb | 6 +++--- .../lib/elasticsearch/api/actions/terms_enum.rb | 6 +++--- .../lib/elasticsearch/api/actions/termvectors.rb | 6 +++--- .../actions/text_structure/find_field_structure.rb | 6 +++--- .../actions/text_structure/find_message_structure.rb | 6 +++--- .../api/actions/text_structure/find_structure.rb | 6 +++--- .../api/actions/text_structure/test_grok_pattern.rb | 6 +++--- .../api/actions/transform/delete_transform.rb | 6 +++--- .../api/actions/transform/get_node_stats.rb | 6 +++--- .../api/actions/transform/get_transform.rb | 6 +++--- .../api/actions/transform/get_transform_stats.rb | 6 +++--- .../api/actions/transform/preview_transform.rb | 6 +++--- .../api/actions/transform/put_transform.rb | 6 +++--- .../api/actions/transform/reset_transform.rb | 6 +++--- .../api/actions/transform/schedule_now_transform.rb | 6 +++--- .../api/actions/transform/start_transform.rb | 6 +++--- .../api/actions/transform/stop_transform.rb | 6 +++--- .../api/actions/transform/update_transform.rb | 6 +++--- .../api/actions/transform/upgrade_transforms.rb | 6 +++--- .../lib/elasticsearch/api/actions/update.rb | 6 +++--- .../lib/elasticsearch/api/actions/update_by_query.rb | 6 +++--- .../api/actions/update_by_query_rethrottle.rb | 6 +++--- .../elasticsearch/api/actions/watcher/ack_watch.rb | 6 +++--- .../api/actions/watcher/activate_watch.rb | 6 +++--- .../api/actions/watcher/deactivate_watch.rb | 6 +++--- .../elasticsearch/api/actions/watcher/delete_watch.rb | 6 +++--- .../api/actions/watcher/execute_watch.rb | 6 +++--- .../elasticsearch/api/actions/watcher/get_settings.rb | 6 +++--- .../elasticsearch/api/actions/watcher/get_watch.rb | 6 +++--- .../elasticsearch/api/actions/watcher/put_watch.rb | 6 +++--- .../api/actions/watcher/query_watches.rb | 6 +++--- .../lib/elasticsearch/api/actions/watcher/start.rb | 6 +++--- .../lib/elasticsearch/api/actions/watcher/stats.rb | 6 +++--- .../lib/elasticsearch/api/actions/watcher/stop.rb | 6 +++--- .../api/actions/watcher/update_settings.rb | 11 +++++++---- .../lib/elasticsearch/api/actions/xpack/info.rb | 6 +++--- .../lib/elasticsearch/api/actions/xpack/usage.rb | 6 +++--- 516 files changed, 1552 insertions(+), 1549 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb index e122605550..940a47498d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module AsyncSearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb index 7d4d756190..93e982c95e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module AsyncSearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb index 189a996de5..67c4c0f650 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module AsyncSearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb index cca52aa334..546cf0714c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module AsyncSearch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb b/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb index 5a174b06c0..7f5fd0b714 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb index 02d7c60201..0211dbc973 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb index 736d2ae4de..b08f92074c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb index d3e11344d2..3d77c58d2c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb index 8ed35add0d..3bd4eb3fd2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb index 751b9df647..5a08c6d8ec 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb index 9e3c6af868..241b38e607 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/help.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/help.rb index a6c9232581..9e60e0a3ab 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/help.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/help.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb index e0a7f2a95f..993d292105 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb index 30a64b5099..68c3f8d712 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb index f3652b7bd6..f4744c521e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb index 501d97cc17..4e54293420 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb index 8f344ad41e..cf4bdfe666 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb index a1ee1416ad..4d4401af64 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb index b549d11029..b2035b5d0c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb index fd3d3959a0..e5bb34ad56 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb index c879e35443..345f0d1332 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb index 4b7c33c3dd..db1602a6e9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb index 8d545bd6ea..93dec9c32c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb index d297c41bf9..b565d40edd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb index 2060c9353c..cab1160b86 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb index ff21d03c61..04550ec87c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb index a63d2ca2a0..2d39833e93 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb index 8badc03c9d..050890bc76 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb index 1cc5def617..5bdc457bcd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb index 2eb57c365b..be0cd62fdc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb index 3e20135a93..9390a25881 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cat diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb b/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb index e7e2a266d6..520f28001a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb b/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb index 5980e57fc9..537ed0eff6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb index 4acc9c56f6..fb48a14d65 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb index 0d78a39a66..7f50cd4187 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb index 223a14989d..390eadc180 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb index ff7f4b030c..f895baacec 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb index 861642bf4b..3f57430a52 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb index f915f16b4b..6f636d813d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb index 9125956b3e..bf5a38b0ff 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb index 68f37a0550..0de66c3a67 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb index cf8c433cb1..f0430b73c3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb index 99ea870517..35bd36c80c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb index da4c3cf2b2..498d36572c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb index b098dc7ddc..655fa2cc63 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb index bc4d2f4b79..a04ecc1dcf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb index 3cb715911e..dd24a9608d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb index a1cfd4cda0..e242fde3e0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb index 543f711fed..fa07c366fa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb index 89b55370ba..6211600bbe 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb index 806b26697b..c060a3bcff 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb index 6a6a112c4c..8b195f2435 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb index 07267581dc..ffa9214b01 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb index 0f1cf894d6..b67330c469 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb index 326362b9db..18790b593b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb index 8b01dbefd9..78b8b46990 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb index 2603b02971..8d1fa84500 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb index f56682e899..bfd4ec791b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb index 662f678a6d..d71580b6a0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb index 23173cdddb..f1ac042d4c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb index 224d7e92a3..48168ac0aa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb index 3158cc80c6..0e054905bd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb index 787df18c2e..64440d13a0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb index c9dbc2d0fc..ede9d35e74 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb index 08994492d2..3f9e15887c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb index 7e2f799b35..4f02552408 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb index d14b7ca62c..c546b9918f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb index bb49400c9f..bbc3739934 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb index 2b8e4c860a..ae99d9707b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb index d3b87e0263..0a60fae3bf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb index f89e3e6964..f6567ae438 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb index f6edd546de..0b9d9df6b5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb index cc995298a1..6172403ae1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb index be8917b1df..133e919ce3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb index fcb6e1bb77..8b983849f0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb index 5e3ee57699..960f89eaea 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb index 99eb454372..e13e597747 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb index 5906bdbeb9..89098f8323 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Connector diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/count.rb b/elasticsearch-api/lib/elasticsearch/api/actions/count.rb index 3163e31a3f..5600a3b1d3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/count.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/count.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/create.rb index a19ed49eeb..d631a1bba9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/create.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb index f1288a6796..71289336eb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module CrossClusterReplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb index cab96e3a11..17321f77be 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module CrossClusterReplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb index 7d045aadde..97f99ecb4d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module CrossClusterReplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb index d485bdd2f4..3997b99c7b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module CrossClusterReplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb index fc8dda756d..0d5a49bfd7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module CrossClusterReplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb index 9124667659..389006f732 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module CrossClusterReplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb index 2209bd98cd..ae3e7e1607 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module CrossClusterReplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb index 3fc74b3152..0e48a15183 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module CrossClusterReplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb index ae42014951..92318b8ba2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module CrossClusterReplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb index 8c162a30c9..c2d10db56a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module CrossClusterReplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb index 205612c75f..5f98010414 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module CrossClusterReplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb index c36951761f..c43c2431b2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module CrossClusterReplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb index 1c4540a34b..08d8fc3e02 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module CrossClusterReplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb index 3068d0bcbb..e480bd03b1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module DanglingIndices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb index 8435baf231..ff9ab687c8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module DanglingIndices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb index a8d6eddd73..18cf82e5f4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module DanglingIndices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb index 44c70011c5..37367fe4c4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb index 34387b9853..c7489af433 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb index c103a15e47..b22377cca1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb index e171837f12..f224d397f3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb index 5190c33e4e..cad74d11e4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Enrich diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb index c69556c4e5..e37f8e2dc3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Enrich diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb index e8fbc267c2..5e81c61c3b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Enrich diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb index 92d7b09586..191d5d1990 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Enrich diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb index de1ffc5935..357638b8c1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Enrich diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb index 5c8ce55fb6..64d344296b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Eql diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb index 3518cb685b..e80ef5cf1a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Eql diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb index c4b30e42ec..284943b157 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Eql diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb index 4d16655670..17cb3967e7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Eql diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb index 1ca023a28e..f0e5810a0a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Esql diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb index d6fccb45a9..baaece9b87 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Esql diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb index 5b89957b8f..481f3d093f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Esql diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb index c27934a453..6dc5185d35 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Esql diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb index 2c4f412a30..bef8c04df1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Esql diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb b/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb index 986c38f48e..c1172382ee 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb b/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb index dff06fe2f6..f7932922e5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb b/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb index 6abb2b9fd8..735bc41728 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb b/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb index 90f9b57666..75eb2a5bb1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Features diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb b/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb index c5faf08dea..8679c4b159 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Features diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb b/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb index 3f4c9091d0..2f0de68202 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb index b281b20586..1163f0d4e5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Fleet diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb index f36eccd5db..890c203c03 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Fleet diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb index 9b78f0741e..11255e9293 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Fleet diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get.rb index f7f9e9a385..22e6b397eb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb index b5b371bd7e..d2109ac11e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb index 4e9e66603d..e3e0b582b2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb index 0441a829b6..e2462b2ff6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb index 1e61d45b31..086754c9df 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb b/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb index 390e733435..4edfda5d6f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Graph diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb b/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb index d2eb8f92da..a91afc21ea 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index.rb index 6086557488..3d19167f59 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb index 6c7c010c77..9bc116f8ca 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module IndexLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb index d436fdf55e..d593ac122b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module IndexLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb index 584e76882b..cff53ddc53 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module IndexLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb index f421b534e6..e9baf3a82c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module IndexLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb index 435477ca71..684a057125 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module IndexLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb index aeed8ff3ae..f9527f34dc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module IndexLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb index 46e118a519..1f1cf79e72 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module IndexLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb index 6640558c7a..f67eb6364d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module IndexLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb index 18efccac42..c347d1cd45 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module IndexLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb index a55703acb7..7d03cc34bd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module IndexLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb index 06257df517..405751a109 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module IndexLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb index e061ca96f8..ee9133da0c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb index 6e73448a91..c7f6ffe3f5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb index 59334335a7..f24b4fdac8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb index 2436c6a4b4..25666554fb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb index 2d054732d2..61f761be3c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb index 51ae991eee..0b406803bb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb index 722ff22bc4..6c893494be 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb index b5d9318ce5..7492c972f7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb index ce53a4760f..5648cd94fb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb index 3c186ca8f6..390865889c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb index 8cc4403bd6..f896e8e0d5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb index d9cf19a7eb..4e19211bfc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb index 695078561a..80154e61dd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb index 18c998f2bd..b99a604d4d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb index 34c23e4c29..a3e30d135d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb index 2668bb4aad..5619eb22c3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb index f375647bbb..27df7026e7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb index 7ae7f8a093..4a33d4f837 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb index 69e6b87f9d..e9396806df 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb index 8782a05d00..b80dffa533 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb index 02df204172..56034a89bb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb index c2cfd7ccba..2c755ef89e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb index 03ee8dcb5f..8016903a31 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb index 8deef87967..8c9285caa9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb index 72ca17a885..cd4e96d82e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb index 53c6693979..7a30c2d2e0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb index 5e5c0ac85e..074ea2a3d8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb index 772a45ffa8..7f54b919bb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb index 985715a856..d4e33ecb01 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb index e47c966180..a9bc9af528 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb index 3f4ca1936e..3e35d02f68 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb index 464b2c049f..680c18ac94 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb index ba90f8b2c5..4cfcd8f3f0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb index 745f4d12e2..067e4e7a5c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb index 6c1fdb69d0..1cb349680f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb index 3e8972b2e0..2d8dc4dc06 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb index 2faaaa25c9..2f8e1b7319 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb index dc252b0392..cc4a97d57f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb index 922b74e8e4..eac8dc5102 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb index c0ace0388f..cd21d2aff8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb index 27d49b34c6..477f5c1ff3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb index d1faeb0bc5..923a127df0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb index 17fc6a8ebb..6a97a06dea 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb index 64bec24498..ef432677f4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb index 91c254e835..07324e2b01 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb index 564603da25..339b61f807 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb index 754d6d29c8..9357527324 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb index f950445a81..c8069ff75b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb index f1750f205f..8734419c83 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb index 3cc85868fd..f08348c1cb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb index 4cb30ce249..8f57bf9584 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb index 04caea7e19..50dcf75310 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb index 9879bd589a..2e0331a3f3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb index 733b54c6c9..720fbd318a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb index 7436d62aef..33719cd46f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb index 38458ca3de..14d4ee9cb3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb index eab0ba6a42..2df762cdf1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb index c5a79a5f4d..ab59e70b81 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb index 7293b3d514..76b4953c60 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb index 792d9aa067..121ea50c0b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb index 03cf280568..056b022fda 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb index e4cc4c6c2a..a34de394a2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb index d61f4be83d..7e7fd81ac6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb index 908bdaeeed..03c56cd213 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb index 4bd419772c..a59e3a440e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb index efce50f2c0..fe9e9485b8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb index 99a658bb51..0e6651ab15 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/post_eis_chat_completion.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/post_eis_chat_completion.rb index de7b080f6d..0ec1f8e064 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/post_eis_chat_completion.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/post_eis_chat_completion.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb index e715af059b..979e40cd03 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb index 430bc1260c..6622c6a839 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb index 12073e1619..fe507d2147 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb index 8fdeb0ba19..57b4078bb9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb index d96004a571..e28ea8a7f7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb index 51e837ffad..d2043dcb1e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb index de0b79061f..b9fff487e6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_eis.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_eis.rb index 7e9d805adc..1be0cf8425 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_eis.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_eis.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb index dfb1e5a683..7a966ef3a2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb index 3a2e53c1e8..16e6e80bb3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb index 820ab9600c..31f9d0f3ad 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb index 6f4f5a9444..c3d8f45bf7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb index 390c376200..75d0f80753 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb index 76b5b121f9..a8f63c0e99 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb index 3967fb8b2c..dbdb9d1f06 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb index 4020e37e0e..1a5169d670 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb index c320b91c9a..1143543838 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb index 17e3e4c5ac..1e8c20ab24 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb index af0cad6901..eed8aa6e27 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb index 13a6f03930..4370846956 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb index a6e642419e..dd3d03d63d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb index ac07c2d718..70741d5fa0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb index b6eabdef87..76a0ffe88b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Inference diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/info.rb index 69b03de326..0b671f74d4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/info.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb index a3bb681019..13afc23af5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Ingest diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb index 713a9f7a33..572ce52327 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Ingest diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb index a47425ecc2..310cb3b0a9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Ingest diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb index d85a7782ed..02b90a2898 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Ingest diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb index 6a708041ac..6094f39a00 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Ingest diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb index dc3285331d..bbaaca5404 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Ingest diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb index 047e8b66a2..48a86d8001 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Ingest diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb index fc1cc3a532..a56aae8a0e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Ingest diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb index 4bb9ebad3f..dded11f00f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Ingest diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb index 5f54e80b6f..c8c25c27ea 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Ingest diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb index 2c4e6c0dce..57d23e6482 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Ingest diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb index 8bc914b57d..f07bdcc564 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Ingest diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/knn_search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/knn_search.rb index cd0fb72777..321432a99c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/knn_search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/knn_search.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb index dc4ae06641..b6ca8b5bb7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module License diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb index 151b60ccdd..4dcaaed830 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module License diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb index da9a11ad96..0ae09ccbfa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module License diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb index 3baa5c8ec4..b640725d0a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module License diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb index bf6d79a5b6..b91887af35 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module License diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb index 67384130e9..28662b0d8b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module License diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb index 1419772a92..70e9a89669 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module License diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb index 1a2f05d667..d75dc68cf9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Logstash diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb index ba6f3b4055..08f84d3339 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Logstash diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb index 3a4c03dfa0..89d3620e91 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Logstash diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb index 27ebc40c3c..d68157dcda 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb index 5347049a90..386281093a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb index c79b777f1e..405752a5af 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb index 69aea3475c..e520471ff3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb index 8b2c5fc76c..642a9c689d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb index ae3cb98309..337ec1b27e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb index 6c91b697ff..7526f8907e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb index 458ca5e84e..884fff38e7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb index 790cc36775..4b006ed27b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb index 921ade9345..2642bab316 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb index 66ee758ea1..980280bfb1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb index d09fd5223c..3657140310 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb index a485cb163b..186dbf152c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb index 9f81fa3611..a8a279f57a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb index 29f81f55cd..fe40188df3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb index cd9c569778..c5b24f2ca9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb index 6e86786fba..23866c36f0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb index 3aed9174aa..2d76063a4a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb index 6f97929752..b1cec0ba2c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb index 02d3078333..e321e7d871 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb index c8621c0a93..7251f54e40 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb index 0b7816cf53..26d6c6e6b6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb index d4d93309f5..0afa5dab5f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb index 43dbbf160e..2fcab59fbb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb index 01600ef990..e408939427 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb index df8fb56dcd..58cbb9278d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb index 4cfb97ea97..21849047cf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb index ae3c0863ae..3a4c1063d6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb index 117eaa686e..79245406fa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb index 1c7120011d..ae351aa2dd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb index 089bf49a00..b59b9ecd72 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb index 3e8becd1f2..13f5bb4b9a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb index b623fc5487..2515be5b54 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb index bc8f0b6c4b..41efb6ca22 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb index 0bf74048f1..5ad6d621f5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb index 51789958d5..b80c6bca74 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb index 8dbcd630ea..af7f75a551 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb index 8f1a99efd2..d95911aa51 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb index 55e701e778..c40a2b7555 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb index d75f0f774f..c74af85130 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb index 11b831e1fa..52a4c06281 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb index 9f11926487..50a5da4d67 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb index 59f6ee0a9e..e7a38c065d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb index 571c1ccd4d..c7f0924720 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb index 8bba717797..ab209af122 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb index a4adcc8374..92409bf37f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb index 756a3f7aaa..de1e603f3c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb index 22ace884b7..48798ae7fd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb index fc0db5bc2f..06c1376ebf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb index c2509ab2da..e2389b083b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb index 7c255c8eea..ad5960bfa4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb index 56bee1336e..2cefb4921b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb index e4f455a759..a51e5433e1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb index a46852a3eb..86b99c93c0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb index d352b2f7ab..857bb3c395 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb index b0a5196aed..4eed60c620 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb index 8d40a4b9ec..f89e841e8b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb index af73ac4ab1..6466ca4643 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb index 81de8f3576..cfc856a952 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb index da78388d47..315f2f7137 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb index 9c1f0d2553..6af12449bb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb index cc4f47ab30..8aa0ea5dc2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb index 7eb8c7b6dd..60907e993f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb index 7b6ee068c4..9316c25ad1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb index d5f1181150..1059a58d58 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb index c58e0f0ed0..85074eb75a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb index 58c248b37d..06ee47086e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb index 35d9dbb562..2d98a3019a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb index 073aca2f63..dfcaf0190b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb index 6bf9f043cd..5461ecc3ef 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb index e090cea1b7..2d1ca46d0c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module MachineLearning diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb b/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb index b6865c69ce..ddba03593c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb b/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb index 502fe77d83..dcf94e965d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Migration diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb index 4bd87a3f10..ea9e243fbf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Migration diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb b/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb index 37634b7a08..65a6253807 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Migration diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb index 90ffdb5f89..95bf7e4528 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb index 4836f0fd09..48674552ce 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb b/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb index 81e5c1fa3a..ecef716fb1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb index d758a701b9..bf24782511 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Nodes diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb index 9a8013c08e..04c26ee052 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Nodes diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb index 0ed3333369..3bdee5b48e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Nodes diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb index f2cc88d020..30581f8ae5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Nodes diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb index d6e8a070ae..7305524369 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Nodes diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb index f35f9e9b23..35b99da1b6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Nodes diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb index a861f6ffb8..e28f8c4b22 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Nodes diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb b/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb index 0d17fbf62c..f77430ed07 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb index 92943dd314..afa4759727 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb b/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb index 3655707178..8f992288d0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb index d17dc6717d..086e5e6849 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module QueryRules diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb index 3e0083b970..12ee1dbeb5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module QueryRules diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb index 039d7615d5..4dcdd82ae5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module QueryRules diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb index 857ba03ff6..32b7605928 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module QueryRules diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb index fff7ad6cc7..af790eabcd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module QueryRules diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb index d31e775f5d..6137eb3aa5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module QueryRules diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb index ced5bb0664..3c6c94365d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module QueryRules diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb index 7b88bf5b27..9f994a3ed4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module QueryRules diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb b/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb index 311085f848..d7f4a5f210 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb index b195bab1f3..c79b5b9950 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb index 794a10d1be..251b0ddcfd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb index 67a3a2d7c8..0d73feedac 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb b/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb index fa1d03e80c..3618704b6a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb b/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb index dd7e81d5b9..6aef1c7613 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search.rb index 8227621b61..44808d4708 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb index 3a8b63cd9d..0258e382df 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SearchApplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb index 3b40bccf48..f61dbcc479 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SearchApplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb index c0b215ba23..ec1512cee1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SearchApplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb index 62932d3109..4b3fbb6518 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SearchApplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb index 3aedde956d..d13f52fe89 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SearchApplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb index 8e49f93b1e..1bf1b2ffba 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SearchApplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb index 49e04af44b..aa31b7b375 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SearchApplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb index 2cdde42773..0b6789da76 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SearchApplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb index 5a550dda1e..a2183ec60f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SearchApplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb index 416e93e4ed..296541707e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SearchApplication diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb index 4137f3b046..8a5850b60d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb index 388c082532..650d78a078 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb index c78cda38e5..eedc6b23d8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb index 97cff541ff..aba29a4436 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SearchableSnapshots diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb index 3408221a64..9f6e8b6232 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SearchableSnapshots diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb index bf222dc59d..14cbc50f68 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SearchableSnapshots diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb index f52d0dde97..b14cc08e11 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SearchableSnapshots diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb index c8c0a5876a..1820a7862e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb index 73b87753ec..d343ed41ed 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb index b3abbd76b1..16181fe490 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb index 4c87abc8ca..464bdfe127 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb index 27a5896cf9..5fd4b57238 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb index ef42d0ead4..296ef4fd8a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb index 64cdeee572..e24496f632 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb index 2a63c66eb6..5007b253b7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb index f380fb91ce..b4df7c77b7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb index 6370615715..cc4443f1ad 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb index ed33f89772..9c75240a35 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb index 20c1bdda4c..3810fba2bc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb index d03a8904f3..939ec2f287 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb index faa0a94437..3315f2d18f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb index fe880ece38..e02386aaf6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb index 37e2428734..494c5608e8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb index 1ee7b80cd1..b1d73aa58c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb index 6eaef52dfe..b8a11535d0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb index 75c4de2320..67b74f02ad 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb index c96edad064..614c4c6501 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb index 57080531f2..1111e9af70 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb index 27d11b35c9..15990f220d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb index e835158b06..cf5fefa7da 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb index e26a4d1445..7ba93281ea 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb index e2beb90fb9..a85a0bb38c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb index 90eb424584..d29ac10913 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb index c368a7e605..259c0643a8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb index f277da7521..68fdc06bcb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb index 08da13c824..e592c8bf51 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb index 04448d3ef3..47daddc981 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb index 78bec489c4..ecc7d53032 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb index a249f00325..869557efd2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb index fffea747c3..b3e62afdb7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb index 5b6b196fc8..3f880b7671 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb index b3e665da9c..18ec4c54fd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb index 0b5c3d6d03..718ef8b6a2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb index 7553d9cef7..bf8a58eb27 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb index dcf23955a9..5ff39cbae5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb index f7ca22beab..929cb91918 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb index 6b2b721aac..2e5ed520f8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb index a5fb0630c9..4c9e5c5fec 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb index c12d9caa07..951f2ca7a0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb index a9e59c7a89..a10a433d20 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb index 72e917fa54..b117faf7e8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb index cefc68f0ed..e0faf9bbfb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb index 6a0ff3c8b1..8accec4a05 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb index 42a55d0a92..fc6c9765ab 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb index e3eb6a3884..70bddd7c69 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb index 4a04f7dd91..7e6c1f3bf3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb index f054bba0e5..a525745c97 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb index ad1d5c10da..19812f21cd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb index 4e1d6ce18a..357240df7e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb index f66e390b79..5f0e917d24 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb index 813dcac743..4bdbef1763 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb index cae40f90af..a048172eeb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb index e618a54d00..5a80c1adcd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb index 3c377d82b0..5318467a53 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb index 985313e652..5a634cbae0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb index 29c81f8430..cc1699b02a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb index 5c123213d4..87e497b3c2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb index 3eaee88596..b272f66cd5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb index 0e159a0884..ee6ff96b8c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb index eacb0544e2..5d26dbb8f3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb index f7bba80eb9..4344974745 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Security diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb b/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb index b4f584db5e..f90d9eea27 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Simulate diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb index d919a7b262..d1dcfb8519 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Snapshot diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb index 023cdb5de1..fc25b78d38 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Snapshot diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb index 345f88b8ae..2a33ff7284 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Snapshot diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb index c8200cee42..fa31b46cc2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Snapshot diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb index cd78b10103..1f47f0c2ae 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Snapshot diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb index 7b7b64aef6..86859d8018 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Snapshot diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb index 82dd4cc216..2764523ef5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Snapshot diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb index c8587766db..cd28d14211 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Snapshot diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb index c205cb23c0..2f2a4e15a5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Snapshot diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb index aef01607c9..f081373e41 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Snapshot diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb index 01b7fd7fb8..d270d55221 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Snapshot diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb index 235e8bbfa0..aea20ebcec 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Snapshot diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb index 044623097a..9bd26c2282 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SnapshotLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb index 26cec16df2..ebd69275a2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SnapshotLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb index eb4048914e..b5d1252d5e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SnapshotLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb index de8e29c714..4b8ef8b6e5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SnapshotLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb index 72c5c31bcd..d4e865ffff 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SnapshotLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb index c3d6c20989..335cf26ccf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SnapshotLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb index 143f53d107..e0158652bb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SnapshotLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb index 8614392ced..6eacac6a51 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SnapshotLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb index d2d416538c..ada3fd17e9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SnapshotLifecycleManagement diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb index 4876afbe72..70cf7c3956 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SQL diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb index 6b612dd237..d55dedd5a8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SQL diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb index b1852c22ae..be93a52c91 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SQL diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb index 60593c1420..15baca1c96 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SQL diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb index 357fb9938e..a7c0c200e5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SQL diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb index 04ce5d206b..14e8e89f4c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SQL diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb index 72fece354c..5d6f2882a2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module SSL diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb index 27c1ef19c8..131c8abbe4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Synonyms diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb index 2ca91ce84e..fa433aa937 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Synonyms diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb index 08a639aa7b..aebd55d8ac 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Synonyms diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb index 8673fae61a..fed3016155 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Synonyms diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb index 054050ef83..f3b1297bc0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Synonyms diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb index 02784a3b9d..138bb900c6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Synonyms diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb index df00e195ea..64243d40f0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Synonyms diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb index 624895606a..3f6f0ccf2d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Tasks diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb index c317b22196..3ca9ae65d5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Tasks diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb index e0ec98d23c..317642ee95 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Tasks diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb b/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb index 5c59004445..ce09a037b1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb b/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb index 2f16c9a25a..eacb145c24 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb index 675337ae93..2cef2c2986 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module TextStructure diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb index a5fbbfe17d..6fc99b4d65 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module TextStructure diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb index bd97c1b98a..1b4a535fd8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module TextStructure diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb index 1c1d1a684a..df8bdbde39 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module TextStructure diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb index 9f865acc74..89373e3acf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb index b6d0d73441..1f480a8eab 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb index 0ce457434f..91dcc59eb9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb index d35430e22a..3b95969bc6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb index 3263a73605..27a9978262 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb index bff954b14b..c8c4f3e32c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb index d2cd986327..5bb1dc9e28 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb index dada69ff94..60e9630bf9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb index 5b942a02aa..48fea92273 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb index 9bdb97e1b4..474a880bc5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb index cfc43db1d4..014ecda2aa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb index a5c42c99e3..0a3717e86b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update.rb index bed35aeff6..cd71f18ea4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb index 6801c60ebf..0abbf268ca 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb index 65470ed9f0..d01810fb44 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Actions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb index 8931dcb694..0597aa10d2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Watcher diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb index 1bd2dc0c05..4bd6603310 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Watcher diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb index 522c0e7dcc..c2c80414fb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Watcher diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb index a20ad8aa8e..e30f3324cd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Watcher diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb index a2d3923af9..d24e74b3a5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Watcher diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb index 1c54ffb25d..4ff78f573a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Watcher diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb index 713391ec2f..56a5c74dd1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Watcher diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb index f184661f1f..a33053d7d8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Watcher diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb index e45c0e4db5..144bbbb326 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Watcher diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb index 5d672f9660..127a4b17c7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Watcher diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb index cca7d47634..b9472aa98f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Watcher diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb index a6f59a5073..915ff2b7ac 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Watcher diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb index cd7626ad3c..bd205d873b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module Watcher @@ -25,7 +25,10 @@ module Actions # Update Watcher index settings. # Update settings for the Watcher internal index (+.watches+). # Only a subset of settings can be modified. - # This includes +index.auto_expand_replicas+ and +index.number_of_replicas+. + # This includes +index.auto_expand_replicas+, +index.number_of_replicas+, +index.routing.allocation.exclude.*+, + # +index.routing.allocation.include.*+ and +index.routing.allocation.require.*+. + # Modification of +index.routing.allocation.include._tier_preference+ is an exception and is not allowed as the + # Watcher shards must always be in the +data_content+ tier. # # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb index b5ed6cadd4..5cb6731ce8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module XPack diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb index 46b29bb0d8..d0224f2472 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb @@ -15,9 +15,9 @@ # specific language governing permissions and limitations # under the License. # -# Auto generated from commit 69cbe7cbe9f49a2886bb419ec847cffb58f8b4fb -# @see https://github.com/elastic/elasticsearch-specification -# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. module Elasticsearch module API module XPack From 0d520eb67ce0aa23f47d3689775e28ffee393b1e Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 8 Apr 2025 13:01:18 +0100 Subject: [PATCH 25/75] [API] Removes inference EIS endpoints --- .../inference/post_eis_chat_completion.rb | 63 ----------------- .../api/actions/inference/put_eis.rb | 67 ------------------- .../lib/elasticsearch/api/version.rb | 2 +- .../post_eis_chat_completion_spec.rb | 36 ---------- .../unit/actions/inference/put_eis_spec.rb | 36 ---------- 5 files changed, 1 insertion(+), 203 deletions(-) delete mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/post_eis_chat_completion.rb delete mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_eis.rb delete mode 100644 elasticsearch-api/spec/unit/actions/inference/post_eis_chat_completion_spec.rb delete mode 100644 elasticsearch-api/spec/unit/actions/inference/put_eis_spec.rb diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/post_eis_chat_completion.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/post_eis_chat_completion.rb deleted file mode 100644 index 0ec1f8e064..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/post_eis_chat_completion.rb +++ /dev/null @@ -1,63 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# This code was automatically generated from the Elasticsearch Specification -# See https://github.com/elastic/elasticsearch-specification -# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. -module Elasticsearch - module API - module Inference - module Actions - # Perform a chat completion task through the Elastic Inference Service (EIS). - # Perform a chat completion inference task with the +elastic+ service. - # - # @option arguments [String] :eis_inference_id The unique identifier of the inference endpoint. (*Required*) - # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body chat_completion_request - # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-post-eis-chat-completion - # - def post_eis_chat_completion(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || 'inference.post_eis_chat_completion' } - - defined_params = [:eis_inference_id].each_with_object({}) do |variable, set_variables| - set_variables[variable] = arguments[variable] if arguments.key?(variable) - end - request_opts[:defined_params] = defined_params unless defined_params.empty? - - raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] - raise ArgumentError, "Required argument 'eis_inference_id' missing" unless arguments[:eis_inference_id] - - arguments = arguments.clone - headers = arguments.delete(:headers) || {} - - body = arguments.delete(:body) - - _eis_inference_id = arguments.delete(:eis_inference_id) - - method = Elasticsearch::API::HTTP_POST - path = "_inference/chat_completion/#{Utils.listify(_eis_inference_id)}/_stream" - params = {} - - Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers, request_opts) - ) - end - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_eis.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_eis.rb deleted file mode 100644 index 1be0cf8425..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_eis.rb +++ /dev/null @@ -1,67 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# This code was automatically generated from the Elasticsearch Specification -# See https://github.com/elastic/elasticsearch-specification -# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. -module Elasticsearch - module API - module Inference - module Actions - # Create an Elastic Inference Service (EIS) inference endpoint. - # Create an inference endpoint to perform an inference task through the Elastic Inference Service (EIS). - # - # @option arguments [String] :task_type The type of the inference task that the model will perform. - # NOTE: The +chat_completion+ task type only supports streaming and only through the _stream API. (*Required*) - # @option arguments [String] :eis_inference_id The unique identifier of the inference endpoint. (*Required*) - # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body request body - # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-eis - # - def put_eis(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || 'inference.put_eis' } - - defined_params = [:task_type, :eis_inference_id].each_with_object({}) do |variable, set_variables| - set_variables[variable] = arguments[variable] if arguments.key?(variable) - end - request_opts[:defined_params] = defined_params unless defined_params.empty? - - raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] - raise ArgumentError, "Required argument 'eis_inference_id' missing" unless arguments[:eis_inference_id] - - arguments = arguments.clone - headers = arguments.delete(:headers) || {} - - body = arguments.delete(:body) - - _task_type = arguments.delete(:task_type) - - _eis_inference_id = arguments.delete(:eis_inference_id) - - method = Elasticsearch::API::HTTP_PUT - path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_eis_inference_id)}" - params = {} - - Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers, request_opts) - ) - end - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index 5588f64eda..3bbe24af01 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.0'.freeze - ES_SPECIFICATION_COMMIT = '8b93a5f0305b154e55150883cf2070bc218c52e7'.freeze + ES_SPECIFICATION_COMMIT = 'cb35d04087c8ac28368ad0c022d8b0cfe6737768'.freeze end end diff --git a/elasticsearch-api/spec/unit/actions/inference/post_eis_chat_completion_spec.rb b/elasticsearch-api/spec/unit/actions/inference/post_eis_chat_completion_spec.rb deleted file mode 100644 index b5e62acf81..0000000000 --- a/elasticsearch-api/spec/unit/actions/inference/post_eis_chat_completion_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -require 'spec_helper' - -describe 'client#inference.post_eis_chat_completion' do - let(:expected_args) do - [ - 'POST', - '_inference/chat_completion/foo/_stream', - {}, - {}, - {}, - { defined_params: { eis_inference_id: 'foo' }, - endpoint: 'inference.post_eis_chat_completion' } - ] - end - - it 'performs the request' do - expect(client_double.inference.post_eis_chat_completion(body: {}, eis_inference_id: 'foo')).to be_a Elasticsearch::API::Response - end -end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_eis_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_eis_spec.rb deleted file mode 100644 index fefea73059..0000000000 --- a/elasticsearch-api/spec/unit/actions/inference/put_eis_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -require 'spec_helper' - -describe 'client#inference.put_eis' do - let(:expected_args) do - [ - 'PUT', - '_inference/foo/bar', - {}, - nil, - {}, - { defined_params: { eis_inference_id: 'bar', task_type: 'foo' }, - endpoint: 'inference.put_eis' } - ] - end - - it 'performs the request' do - expect(client_double.inference.put_eis(task_type: 'foo', eis_inference_id: 'bar')).to be_a Elasticsearch::API::Response - end -end From 9ad895987d48f2e36948f211edf31c2d0405b078 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 8 Apr 2025 15:04:36 +0100 Subject: [PATCH 26/75] [API] Removes timeout from snapshot.clone endpoint --- .../lib/elasticsearch/api/actions/snapshot/clone.rb | 2 -- elasticsearch-api/lib/elasticsearch/api/version.rb | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb index fc25b78d38..6774ae513f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb @@ -31,8 +31,6 @@ module Actions # @option arguments [Time] :master_timeout The period to wait for the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. - # @option arguments [Time] :timeout The period of time to wait for a response. - # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index 3bbe24af01..4aba4e6dbe 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.0'.freeze - ES_SPECIFICATION_COMMIT = 'cb35d04087c8ac28368ad0c022d8b0cfe6737768'.freeze + ES_SPECIFICATION_COMMIT = '60a81659be928bfe6cec53708c7f7613555a5eaf'.freeze end end From 5bee845c5f4ef3ed02e593cb2c1b741a4f907560 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Fri, 11 Apr 2025 17:00:52 +0100 Subject: [PATCH 27/75] [API] Adds back inference.inference endpoint --- .../api/actions/inference/inference.rb | 72 +++++++++++++++++++ .../lib/elasticsearch/api/version.rb | 2 +- .../unit/actions/inference/inference_spec.rb | 36 ++++++++++ 3 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/inference_spec.rb diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb new file mode 100644 index 0000000000..5d0c86c617 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb @@ -0,0 +1,72 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. +module Elasticsearch + module API + module Inference + module Actions + # Perform inference on the service. + # This API enables you to use machine learning models to perform specific tasks on data that you provide as an input. + # It returns a response with the results of the tasks. + # The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API. + # + # @option arguments [String] :task_type The type of inference task that the model performs. + # @option arguments [String] :inference_id The unique identifier for the inference endpoint. (*Required*) + # @option arguments [Time] :timeout The amount of time to wait for the inference request to complete. Server default: 30s. + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference + # + def inference(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.inference' } + + defined_params = [:inference_id, :task_type].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'inference_id' missing" unless arguments[:inference_id] + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _inference_id = arguments.delete(:inference_id) + + method = Elasticsearch::API::HTTP_POST + path = if _task_type && _inference_id + "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_inference_id)}" + else + "_inference/#{Utils.listify(_inference_id)}" + end + params = Utils.process_params(arguments) + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index 4aba4e6dbe..ea92083ae0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.0'.freeze - ES_SPECIFICATION_COMMIT = '60a81659be928bfe6cec53708c7f7613555a5eaf'.freeze + ES_SPECIFICATION_COMMIT = 'f2651fcb540f55100a80629192c021fd2e7a019c'.freeze end end diff --git a/elasticsearch-api/spec/unit/actions/inference/inference_spec.rb b/elasticsearch-api/spec/unit/actions/inference/inference_spec.rb new file mode 100644 index 0000000000..dfa2a51890 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/inference_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.inference' do + let(:expected_args) do + [ + 'POST', + '_inference/bar', + {}, + nil, + {}, + { defined_params: { inference_id: 'bar' }, + endpoint: 'inference.inference' } + ] + end + + it 'performs the request' do + expect(client_double.inference.inference(inference_id: 'bar')).to be_a Elasticsearch::API::Response + end +end From 07de357e296a878564637151e5a63b31d51d1ded Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 14 Apr 2025 10:22:06 +0100 Subject: [PATCH 28/75] [API] Adds ignore 404 parameter to query_rules.delete_ruleset --- .../api/actions/query_rules/delete_ruleset.rb | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb index 12ee1dbeb5..d48daadd33 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :ruleset_id The unique identifier of the query ruleset to delete (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-delete-ruleset + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-delete-ruleset # def delete_ruleset(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'query_rules.delete_ruleset' } @@ -50,11 +50,19 @@ def delete_ruleset(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_query_rules/#{Utils.listify(_ruleset_id)}" - params = {} + params = Utils.process_params(arguments) - Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers, request_opts) - ) + if Array(arguments[:ignore]).include?(404) + Utils.rescue_from_not_found do + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + else + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end end end end From 10804c6a95e1c5a06b0ee240c36ab737aa954cd9 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 14 Apr 2025 10:23:43 +0100 Subject: [PATCH 29/75] [DOCS][API] Updates source code docs, documentation URLs, spec version --- .../lib/elasticsearch/api/actions/async_search/delete.rb | 2 +- .../lib/elasticsearch/api/actions/async_search/get.rb | 2 +- .../lib/elasticsearch/api/actions/async_search/status.rb | 2 +- .../lib/elasticsearch/api/actions/async_search/submit.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb | 2 +- .../lib/elasticsearch/api/actions/cat/aliases.rb | 2 +- .../lib/elasticsearch/api/actions/cat/allocation.rb | 2 +- .../elasticsearch/api/actions/cat/component_templates.rb | 2 +- .../lib/elasticsearch/api/actions/cat/count.rb | 2 +- .../lib/elasticsearch/api/actions/cat/fielddata.rb | 2 +- .../lib/elasticsearch/api/actions/cat/health.rb | 2 +- .../lib/elasticsearch/api/actions/cat/help.rb | 2 +- .../lib/elasticsearch/api/actions/cat/indices.rb | 2 +- .../lib/elasticsearch/api/actions/cat/master.rb | 2 +- .../api/actions/cat/ml_data_frame_analytics.rb | 2 +- .../lib/elasticsearch/api/actions/cat/ml_datafeeds.rb | 2 +- .../lib/elasticsearch/api/actions/cat/ml_jobs.rb | 2 +- .../elasticsearch/api/actions/cat/ml_trained_models.rb | 2 +- .../lib/elasticsearch/api/actions/cat/nodeattrs.rb | 2 +- .../lib/elasticsearch/api/actions/cat/nodes.rb | 2 +- .../lib/elasticsearch/api/actions/cat/pending_tasks.rb | 2 +- .../lib/elasticsearch/api/actions/cat/plugins.rb | 2 +- .../lib/elasticsearch/api/actions/cat/recovery.rb | 2 +- .../lib/elasticsearch/api/actions/cat/repositories.rb | 2 +- .../lib/elasticsearch/api/actions/cat/segments.rb | 2 +- .../lib/elasticsearch/api/actions/cat/shards.rb | 2 +- .../lib/elasticsearch/api/actions/cat/snapshots.rb | 2 +- .../lib/elasticsearch/api/actions/cat/tasks.rb | 2 +- .../lib/elasticsearch/api/actions/cat/templates.rb | 2 +- .../lib/elasticsearch/api/actions/cat/thread_pool.rb | 2 +- .../lib/elasticsearch/api/actions/cat/transforms.rb | 2 +- .../lib/elasticsearch/api/actions/clear_scroll.rb | 2 +- .../lib/elasticsearch/api/actions/close_point_in_time.rb | 2 +- .../api/actions/cluster/allocation_explain.rb | 2 +- .../api/actions/cluster/delete_component_template.rb | 2 +- .../actions/cluster/delete_voting_config_exclusions.rb | 2 +- .../api/actions/cluster/exists_component_template.rb | 2 +- .../api/actions/cluster/get_component_template.rb | 2 +- .../lib/elasticsearch/api/actions/cluster/get_settings.rb | 2 +- .../lib/elasticsearch/api/actions/cluster/health.rb | 2 +- .../lib/elasticsearch/api/actions/cluster/info.rb | 2 +- .../elasticsearch/api/actions/cluster/pending_tasks.rb | 2 +- .../api/actions/cluster/post_voting_config_exclusions.rb | 2 +- .../api/actions/cluster/put_component_template.rb | 2 +- .../lib/elasticsearch/api/actions/cluster/put_settings.rb | 2 +- .../lib/elasticsearch/api/actions/cluster/remote_info.rb | 2 +- .../lib/elasticsearch/api/actions/cluster/reroute.rb | 2 +- .../lib/elasticsearch/api/actions/cluster/state.rb | 2 +- .../lib/elasticsearch/api/actions/cluster/stats.rb | 2 +- .../lib/elasticsearch/api/actions/connector/check_in.rb | 2 +- .../lib/elasticsearch/api/actions/connector/delete.rb | 2 +- .../lib/elasticsearch/api/actions/connector/get.rb | 2 +- .../lib/elasticsearch/api/actions/connector/list.rb | 2 +- .../lib/elasticsearch/api/actions/connector/post.rb | 2 +- .../lib/elasticsearch/api/actions/connector/put.rb | 2 +- .../api/actions/connector/sync_job_cancel.rb | 2 +- .../api/actions/connector/sync_job_check_in.rb | 2 +- .../elasticsearch/api/actions/connector/sync_job_claim.rb | 2 +- .../api/actions/connector/sync_job_delete.rb | 2 +- .../elasticsearch/api/actions/connector/sync_job_error.rb | 2 +- .../elasticsearch/api/actions/connector/sync_job_get.rb | 2 +- .../elasticsearch/api/actions/connector/sync_job_list.rb | 2 +- .../elasticsearch/api/actions/connector/sync_job_post.rb | 2 +- .../api/actions/connector/sync_job_update_stats.rb | 2 +- .../api/actions/connector/update_active_filtering.rb | 2 +- .../api/actions/connector/update_api_key_id.rb | 2 +- .../api/actions/connector/update_configuration.rb | 2 +- .../elasticsearch/api/actions/connector/update_error.rb | 2 +- .../api/actions/connector/update_features.rb | 2 +- .../api/actions/connector/update_filtering.rb | 2 +- .../api/actions/connector/update_filtering_validation.rb | 2 +- .../api/actions/connector/update_index_name.rb | 2 +- .../elasticsearch/api/actions/connector/update_name.rb | 2 +- .../elasticsearch/api/actions/connector/update_native.rb | 2 +- .../api/actions/connector/update_pipeline.rb | 2 +- .../api/actions/connector/update_scheduling.rb | 2 +- .../api/actions/connector/update_service_type.rb | 2 +- .../elasticsearch/api/actions/connector/update_status.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/actions/count.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/actions/create.rb | 2 +- .../delete_auto_follow_pattern.rb | 2 +- .../api/actions/cross_cluster_replication/follow.rb | 2 +- .../api/actions/cross_cluster_replication/follow_info.rb | 2 +- .../api/actions/cross_cluster_replication/follow_stats.rb | 2 +- .../actions/cross_cluster_replication/forget_follower.rb | 2 +- .../cross_cluster_replication/get_auto_follow_pattern.rb | 2 +- .../pause_auto_follow_pattern.rb | 2 +- .../api/actions/cross_cluster_replication/pause_follow.rb | 2 +- .../cross_cluster_replication/put_auto_follow_pattern.rb | 2 +- .../resume_auto_follow_pattern.rb | 2 +- .../actions/cross_cluster_replication/resume_follow.rb | 2 +- .../api/actions/cross_cluster_replication/stats.rb | 2 +- .../api/actions/cross_cluster_replication/unfollow.rb | 2 +- .../api/actions/dangling_indices/delete_dangling_index.rb | 2 +- .../api/actions/dangling_indices/import_dangling_index.rb | 2 +- .../api/actions/dangling_indices/list_dangling_indices.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/actions/delete.rb | 2 +- .../lib/elasticsearch/api/actions/delete_by_query.rb | 2 +- .../api/actions/delete_by_query_rethrottle.rb | 2 +- .../lib/elasticsearch/api/actions/delete_script.rb | 2 +- .../lib/elasticsearch/api/actions/enrich/delete_policy.rb | 2 +- .../elasticsearch/api/actions/enrich/execute_policy.rb | 2 +- .../lib/elasticsearch/api/actions/enrich/get_policy.rb | 2 +- .../lib/elasticsearch/api/actions/enrich/put_policy.rb | 2 +- .../lib/elasticsearch/api/actions/enrich/stats.rb | 2 +- .../lib/elasticsearch/api/actions/eql/delete.rb | 2 +- .../lib/elasticsearch/api/actions/eql/get.rb | 2 +- .../lib/elasticsearch/api/actions/eql/get_status.rb | 2 +- .../lib/elasticsearch/api/actions/eql/search.rb | 2 +- .../lib/elasticsearch/api/actions/esql/async_query.rb | 2 +- .../elasticsearch/api/actions/esql/async_query_delete.rb | 2 +- .../lib/elasticsearch/api/actions/esql/async_query_get.rb | 2 +- .../elasticsearch/api/actions/esql/async_query_stop.rb | 2 +- .../lib/elasticsearch/api/actions/esql/query.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/actions/exists.rb | 2 +- .../lib/elasticsearch/api/actions/exists_source.rb | 2 +- .../lib/elasticsearch/api/actions/explain.rb | 2 +- .../elasticsearch/api/actions/features/get_features.rb | 2 +- .../elasticsearch/api/actions/features/reset_features.rb | 2 +- .../lib/elasticsearch/api/actions/field_caps.rb | 2 +- .../elasticsearch/api/actions/fleet/global_checkpoints.rb | 2 +- .../lib/elasticsearch/api/actions/fleet/msearch.rb | 8 ++++---- .../lib/elasticsearch/api/actions/fleet/search.rb | 8 ++++---- elasticsearch-api/lib/elasticsearch/api/actions/get.rb | 2 +- .../lib/elasticsearch/api/actions/get_script.rb | 2 +- .../lib/elasticsearch/api/actions/get_script_context.rb | 2 +- .../lib/elasticsearch/api/actions/get_script_languages.rb | 2 +- .../lib/elasticsearch/api/actions/get_source.rb | 2 +- .../lib/elasticsearch/api/actions/graph/explore.rb | 2 +- .../lib/elasticsearch/api/actions/health_report.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/actions/index.rb | 2 +- .../index_lifecycle_management/delete_lifecycle.rb | 2 +- .../index_lifecycle_management/explain_lifecycle.rb | 2 +- .../actions/index_lifecycle_management/get_lifecycle.rb | 2 +- .../api/actions/index_lifecycle_management/get_status.rb | 2 +- .../index_lifecycle_management/migrate_to_data_tiers.rb | 2 +- .../actions/index_lifecycle_management/move_to_step.rb | 2 +- .../actions/index_lifecycle_management/put_lifecycle.rb | 2 +- .../actions/index_lifecycle_management/remove_policy.rb | 2 +- .../api/actions/index_lifecycle_management/retry.rb | 2 +- .../api/actions/index_lifecycle_management/start.rb | 2 +- .../api/actions/index_lifecycle_management/stop.rb | 2 +- .../lib/elasticsearch/api/actions/indices/add_block.rb | 2 +- .../lib/elasticsearch/api/actions/indices/analyze.rb | 2 +- .../api/actions/indices/cancel_migrate_reindex.rb | 2 +- .../lib/elasticsearch/api/actions/indices/clear_cache.rb | 2 +- .../lib/elasticsearch/api/actions/indices/clone.rb | 2 +- .../lib/elasticsearch/api/actions/indices/close.rb | 2 +- .../lib/elasticsearch/api/actions/indices/create.rb | 2 +- .../api/actions/indices/create_data_stream.rb | 2 +- .../lib/elasticsearch/api/actions/indices/create_from.rb | 2 +- .../api/actions/indices/data_streams_stats.rb | 2 +- .../lib/elasticsearch/api/actions/indices/delete.rb | 2 +- .../lib/elasticsearch/api/actions/indices/delete_alias.rb | 2 +- .../api/actions/indices/delete_data_lifecycle.rb | 2 +- .../api/actions/indices/delete_data_stream.rb | 2 +- .../api/actions/indices/delete_index_template.rb | 2 +- .../elasticsearch/api/actions/indices/delete_template.rb | 2 +- .../lib/elasticsearch/api/actions/indices/disk_usage.rb | 2 +- .../lib/elasticsearch/api/actions/indices/downsample.rb | 2 +- .../lib/elasticsearch/api/actions/indices/exists.rb | 2 +- .../lib/elasticsearch/api/actions/indices/exists_alias.rb | 2 +- .../api/actions/indices/exists_index_template.rb | 2 +- .../elasticsearch/api/actions/indices/exists_template.rb | 2 +- .../api/actions/indices/explain_data_lifecycle.rb | 2 +- .../api/actions/indices/field_usage_stats.rb | 2 +- .../lib/elasticsearch/api/actions/indices/flush.rb | 2 +- .../lib/elasticsearch/api/actions/indices/forcemerge.rb | 2 +- .../lib/elasticsearch/api/actions/indices/get.rb | 2 +- .../lib/elasticsearch/api/actions/indices/get_alias.rb | 2 +- .../api/actions/indices/get_data_lifecycle.rb | 2 +- .../api/actions/indices/get_data_lifecycle_stats.rb | 2 +- .../elasticsearch/api/actions/indices/get_data_stream.rb | 2 +- .../api/actions/indices/get_field_mapping.rb | 2 +- .../api/actions/indices/get_index_template.rb | 2 +- .../lib/elasticsearch/api/actions/indices/get_mapping.rb | 2 +- .../api/actions/indices/get_migrate_reindex_status.rb | 2 +- .../lib/elasticsearch/api/actions/indices/get_settings.rb | 2 +- .../lib/elasticsearch/api/actions/indices/get_template.rb | 2 +- .../elasticsearch/api/actions/indices/migrate_reindex.rb | 2 +- .../api/actions/indices/migrate_to_data_stream.rb | 2 +- .../api/actions/indices/modify_data_stream.rb | 2 +- .../lib/elasticsearch/api/actions/indices/open.rb | 2 +- .../api/actions/indices/promote_data_stream.rb | 2 +- .../lib/elasticsearch/api/actions/indices/put_alias.rb | 2 +- .../api/actions/indices/put_data_lifecycle.rb | 2 +- .../api/actions/indices/put_index_template.rb | 2 +- .../lib/elasticsearch/api/actions/indices/put_mapping.rb | 2 +- .../lib/elasticsearch/api/actions/indices/put_settings.rb | 2 +- .../lib/elasticsearch/api/actions/indices/put_template.rb | 2 +- .../lib/elasticsearch/api/actions/indices/recovery.rb | 2 +- .../lib/elasticsearch/api/actions/indices/refresh.rb | 2 +- .../api/actions/indices/reload_search_analyzers.rb | 2 +- .../elasticsearch/api/actions/indices/resolve_cluster.rb | 2 +- .../elasticsearch/api/actions/indices/resolve_index.rb | 2 +- .../lib/elasticsearch/api/actions/indices/rollover.rb | 2 +- .../lib/elasticsearch/api/actions/indices/segments.rb | 2 +- .../lib/elasticsearch/api/actions/indices/shard_stores.rb | 2 +- .../lib/elasticsearch/api/actions/indices/shrink.rb | 2 +- .../api/actions/indices/simulate_index_template.rb | 2 +- .../api/actions/indices/simulate_template.rb | 2 +- .../lib/elasticsearch/api/actions/indices/split.rb | 2 +- .../lib/elasticsearch/api/actions/indices/stats.rb | 2 +- .../elasticsearch/api/actions/indices/update_aliases.rb | 2 +- .../elasticsearch/api/actions/indices/validate_query.rb | 2 +- .../api/actions/inference/chat_completion_unified.rb | 2 +- .../lib/elasticsearch/api/actions/inference/completion.rb | 2 +- .../lib/elasticsearch/api/actions/inference/delete.rb | 2 +- .../lib/elasticsearch/api/actions/inference/get.rb | 2 +- .../lib/elasticsearch/api/actions/inference/inference.rb | 3 ++- .../lib/elasticsearch/api/actions/inference/put.rb | 2 +- .../api/actions/inference/put_alibabacloud.rb | 2 +- .../api/actions/inference/put_amazonbedrock.rb | 2 +- .../elasticsearch/api/actions/inference/put_anthropic.rb | 2 +- .../api/actions/inference/put_azureaistudio.rb | 2 +- .../api/actions/inference/put_azureopenai.rb | 2 +- .../lib/elasticsearch/api/actions/inference/put_cohere.rb | 2 +- .../api/actions/inference/put_elasticsearch.rb | 2 +- .../lib/elasticsearch/api/actions/inference/put_elser.rb | 2 +- .../api/actions/inference/put_googleaistudio.rb | 2 +- .../api/actions/inference/put_googlevertexai.rb | 2 +- .../api/actions/inference/put_hugging_face.rb | 2 +- .../lib/elasticsearch/api/actions/inference/put_jinaai.rb | 2 +- .../elasticsearch/api/actions/inference/put_mistral.rb | 2 +- .../lib/elasticsearch/api/actions/inference/put_openai.rb | 2 +- .../elasticsearch/api/actions/inference/put_voyageai.rb | 2 +- .../elasticsearch/api/actions/inference/put_watsonx.rb | 2 +- .../lib/elasticsearch/api/actions/inference/rerank.rb | 2 +- .../api/actions/inference/sparse_embedding.rb | 2 +- .../api/actions/inference/stream_completion.rb | 2 +- .../elasticsearch/api/actions/inference/text_embedding.rb | 2 +- .../lib/elasticsearch/api/actions/inference/update.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/actions/info.rb | 2 +- .../api/actions/ingest/delete_geoip_database.rb | 2 +- .../api/actions/ingest/delete_ip_location_database.rb | 2 +- .../elasticsearch/api/actions/ingest/delete_pipeline.rb | 2 +- .../lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb | 2 +- .../api/actions/ingest/get_geoip_database.rb | 2 +- .../api/actions/ingest/get_ip_location_database.rb | 2 +- .../lib/elasticsearch/api/actions/ingest/get_pipeline.rb | 2 +- .../elasticsearch/api/actions/ingest/processor_grok.rb | 2 +- .../api/actions/ingest/put_geoip_database.rb | 2 +- .../api/actions/ingest/put_ip_location_database.rb | 2 +- .../lib/elasticsearch/api/actions/ingest/put_pipeline.rb | 2 +- .../lib/elasticsearch/api/actions/ingest/simulate.rb | 2 +- .../lib/elasticsearch/api/actions/knn_search.rb | 2 +- .../lib/elasticsearch/api/actions/license/delete.rb | 2 +- .../lib/elasticsearch/api/actions/license/get.rb | 2 +- .../elasticsearch/api/actions/license/get_basic_status.rb | 2 +- .../elasticsearch/api/actions/license/get_trial_status.rb | 2 +- .../lib/elasticsearch/api/actions/license/post.rb | 2 +- .../elasticsearch/api/actions/license/post_start_basic.rb | 2 +- .../elasticsearch/api/actions/license/post_start_trial.rb | 2 +- .../elasticsearch/api/actions/logstash/delete_pipeline.rb | 2 +- .../elasticsearch/api/actions/logstash/get_pipeline.rb | 2 +- .../elasticsearch/api/actions/logstash/put_pipeline.rb | 2 +- .../clear_trained_model_deployment_cache.rb | 2 +- .../api/actions/machine_learning/close_job.rb | 2 +- .../api/actions/machine_learning/delete_calendar.rb | 2 +- .../api/actions/machine_learning/delete_calendar_event.rb | 2 +- .../api/actions/machine_learning/delete_calendar_job.rb | 2 +- .../machine_learning/delete_data_frame_analytics.rb | 2 +- .../api/actions/machine_learning/delete_datafeed.rb | 2 +- .../api/actions/machine_learning/delete_expired_data.rb | 2 +- .../api/actions/machine_learning/delete_filter.rb | 2 +- .../api/actions/machine_learning/delete_forecast.rb | 2 +- .../api/actions/machine_learning/delete_job.rb | 2 +- .../api/actions/machine_learning/delete_model_snapshot.rb | 2 +- .../api/actions/machine_learning/delete_trained_model.rb | 2 +- .../machine_learning/delete_trained_model_alias.rb | 2 +- .../api/actions/machine_learning/estimate_model_memory.rb | 2 +- .../api/actions/machine_learning/evaluate_data_frame.rb | 2 +- .../machine_learning/explain_data_frame_analytics.rb | 2 +- .../api/actions/machine_learning/flush_job.rb | 2 +- .../api/actions/machine_learning/forecast.rb | 2 +- .../api/actions/machine_learning/get_buckets.rb | 2 +- .../api/actions/machine_learning/get_calendar_events.rb | 2 +- .../api/actions/machine_learning/get_calendars.rb | 2 +- .../api/actions/machine_learning/get_categories.rb | 2 +- .../actions/machine_learning/get_data_frame_analytics.rb | 2 +- .../machine_learning/get_data_frame_analytics_stats.rb | 2 +- .../api/actions/machine_learning/get_datafeed_stats.rb | 2 +- .../api/actions/machine_learning/get_datafeeds.rb | 2 +- .../api/actions/machine_learning/get_filters.rb | 2 +- .../api/actions/machine_learning/get_influencers.rb | 2 +- .../api/actions/machine_learning/get_job_stats.rb | 2 +- .../api/actions/machine_learning/get_jobs.rb | 2 +- .../api/actions/machine_learning/get_memory_stats.rb | 2 +- .../machine_learning/get_model_snapshot_upgrade_stats.rb | 2 +- .../api/actions/machine_learning/get_model_snapshots.rb | 2 +- .../api/actions/machine_learning/get_overall_buckets.rb | 2 +- .../api/actions/machine_learning/get_records.rb | 2 +- .../api/actions/machine_learning/get_trained_models.rb | 2 +- .../actions/machine_learning/get_trained_models_stats.rb | 2 +- .../api/actions/machine_learning/infer_trained_model.rb | 2 +- .../elasticsearch/api/actions/machine_learning/info.rb | 2 +- .../api/actions/machine_learning/open_job.rb | 2 +- .../api/actions/machine_learning/post_calendar_events.rb | 2 +- .../api/actions/machine_learning/post_data.rb | 2 +- .../machine_learning/preview_data_frame_analytics.rb | 2 +- .../api/actions/machine_learning/preview_datafeed.rb | 2 +- .../api/actions/machine_learning/put_calendar.rb | 2 +- .../api/actions/machine_learning/put_calendar_job.rb | 2 +- .../actions/machine_learning/put_data_frame_analytics.rb | 2 +- .../api/actions/machine_learning/put_datafeed.rb | 2 +- .../api/actions/machine_learning/put_filter.rb | 2 +- .../elasticsearch/api/actions/machine_learning/put_job.rb | 2 +- .../api/actions/machine_learning/put_trained_model.rb | 2 +- .../actions/machine_learning/put_trained_model_alias.rb | 2 +- .../machine_learning/put_trained_model_definition_part.rb | 2 +- .../machine_learning/put_trained_model_vocabulary.rb | 2 +- .../api/actions/machine_learning/reset_job.rb | 2 +- .../api/actions/machine_learning/revert_model_snapshot.rb | 2 +- .../api/actions/machine_learning/set_upgrade_mode.rb | 2 +- .../machine_learning/start_data_frame_analytics.rb | 2 +- .../api/actions/machine_learning/start_datafeed.rb | 2 +- .../machine_learning/start_trained_model_deployment.rb | 2 +- .../actions/machine_learning/stop_data_frame_analytics.rb | 2 +- .../api/actions/machine_learning/stop_datafeed.rb | 2 +- .../machine_learning/stop_trained_model_deployment.rb | 2 +- .../machine_learning/update_data_frame_analytics.rb | 2 +- .../api/actions/machine_learning/update_datafeed.rb | 2 +- .../api/actions/machine_learning/update_filter.rb | 2 +- .../api/actions/machine_learning/update_job.rb | 2 +- .../api/actions/machine_learning/update_model_snapshot.rb | 2 +- .../machine_learning/update_trained_model_deployment.rb | 2 +- .../api/actions/machine_learning/upgrade_job_snapshot.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/actions/mget.rb | 2 +- .../elasticsearch/api/actions/migration/deprecations.rb | 2 +- .../api/actions/migration/get_feature_upgrade_status.rb | 2 +- .../api/actions/migration/post_feature_upgrade.rb | 2 +- .../lib/elasticsearch/api/actions/msearch.rb | 2 +- .../lib/elasticsearch/api/actions/msearch_template.rb | 2 +- .../lib/elasticsearch/api/actions/mtermvectors.rb | 2 +- .../actions/nodes/clear_repositories_metering_archive.rb | 2 +- .../api/actions/nodes/get_repositories_metering_info.rb | 5 ++--- .../lib/elasticsearch/api/actions/nodes/hot_threads.rb | 2 +- .../lib/elasticsearch/api/actions/nodes/info.rb | 2 +- .../api/actions/nodes/reload_secure_settings.rb | 2 +- .../lib/elasticsearch/api/actions/nodes/stats.rb | 2 +- .../lib/elasticsearch/api/actions/nodes/usage.rb | 2 +- .../lib/elasticsearch/api/actions/open_point_in_time.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/actions/ping.rb | 2 +- .../lib/elasticsearch/api/actions/put_script.rb | 2 +- .../elasticsearch/api/actions/query_rules/delete_rule.rb | 2 +- .../lib/elasticsearch/api/actions/query_rules/get_rule.rb | 2 +- .../elasticsearch/api/actions/query_rules/get_ruleset.rb | 2 +- .../api/actions/query_rules/list_rulesets.rb | 2 +- .../lib/elasticsearch/api/actions/query_rules/put_rule.rb | 2 +- .../elasticsearch/api/actions/query_rules/put_ruleset.rb | 2 +- .../lib/elasticsearch/api/actions/query_rules/test.rb | 2 +- .../lib/elasticsearch/api/actions/rank_eval.rb | 2 +- .../lib/elasticsearch/api/actions/reindex.rb | 2 +- .../lib/elasticsearch/api/actions/reindex_rethrottle.rb | 2 +- .../elasticsearch/api/actions/render_search_template.rb | 2 +- .../elasticsearch/api/actions/scripts_painless_execute.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/actions/search.rb | 2 +- .../api/actions/search_application/delete.rb | 2 +- .../search_application/delete_behavioral_analytics.rb | 2 +- .../elasticsearch/api/actions/search_application/get.rb | 2 +- .../search_application/get_behavioral_analytics.rb | 2 +- .../elasticsearch/api/actions/search_application/list.rb | 2 +- .../search_application/post_behavioral_analytics_event.rb | 2 +- .../elasticsearch/api/actions/search_application/put.rb | 2 +- .../search_application/put_behavioral_analytics.rb | 2 +- .../api/actions/search_application/render_query.rb | 2 +- .../api/actions/search_application/search.rb | 2 +- .../lib/elasticsearch/api/actions/search_mvt.rb | 2 +- .../lib/elasticsearch/api/actions/search_shards.rb | 2 +- .../lib/elasticsearch/api/actions/search_template.rb | 2 +- .../api/actions/searchable_snapshots/cache_stats.rb | 2 +- .../api/actions/searchable_snapshots/clear_cache.rb | 2 +- .../api/actions/searchable_snapshots/mount.rb | 2 +- .../api/actions/searchable_snapshots/stats.rb | 2 +- .../api/actions/security/activate_user_profile.rb | 2 +- .../elasticsearch/api/actions/security/authenticate.rb | 2 +- .../api/actions/security/bulk_delete_role.rb | 2 +- .../elasticsearch/api/actions/security/bulk_put_role.rb | 2 +- .../api/actions/security/bulk_update_api_keys.rb | 2 +- .../elasticsearch/api/actions/security/change_password.rb | 2 +- .../api/actions/security/clear_api_key_cache.rb | 2 +- .../api/actions/security/clear_cached_privileges.rb | 2 +- .../api/actions/security/clear_cached_realms.rb | 2 +- .../api/actions/security/clear_cached_roles.rb | 2 +- .../api/actions/security/clear_cached_service_tokens.rb | 2 +- .../elasticsearch/api/actions/security/create_api_key.rb | 2 +- .../api/actions/security/create_cross_cluster_api_key.rb | 2 +- .../api/actions/security/create_service_token.rb | 2 +- .../elasticsearch/api/actions/security/delegate_pki.rb | 2 +- .../api/actions/security/delete_privileges.rb | 2 +- .../lib/elasticsearch/api/actions/security/delete_role.rb | 2 +- .../api/actions/security/delete_role_mapping.rb | 2 +- .../api/actions/security/delete_service_token.rb | 2 +- .../lib/elasticsearch/api/actions/security/delete_user.rb | 2 +- .../elasticsearch/api/actions/security/disable_user.rb | 2 +- .../api/actions/security/disable_user_profile.rb | 2 +- .../lib/elasticsearch/api/actions/security/enable_user.rb | 2 +- .../api/actions/security/enable_user_profile.rb | 2 +- .../elasticsearch/api/actions/security/enroll_kibana.rb | 2 +- .../lib/elasticsearch/api/actions/security/enroll_node.rb | 2 +- .../lib/elasticsearch/api/actions/security/get_api_key.rb | 2 +- .../api/actions/security/get_builtin_privileges.rb | 2 +- .../elasticsearch/api/actions/security/get_privileges.rb | 2 +- .../lib/elasticsearch/api/actions/security/get_role.rb | 2 +- .../api/actions/security/get_role_mapping.rb | 2 +- .../api/actions/security/get_service_accounts.rb | 2 +- .../api/actions/security/get_service_credentials.rb | 2 +- .../elasticsearch/api/actions/security/get_settings.rb | 2 +- .../lib/elasticsearch/api/actions/security/get_token.rb | 2 +- .../lib/elasticsearch/api/actions/security/get_user.rb | 2 +- .../api/actions/security/get_user_privileges.rb | 2 +- .../api/actions/security/get_user_profile.rb | 2 +- .../elasticsearch/api/actions/security/grant_api_key.rb | 2 +- .../elasticsearch/api/actions/security/has_privileges.rb | 2 +- .../api/actions/security/has_privileges_user_profile.rb | 2 +- .../api/actions/security/invalidate_api_key.rb | 2 +- .../api/actions/security/invalidate_token.rb | 2 +- .../api/actions/security/oidc_authenticate.rb | 2 +- .../lib/elasticsearch/api/actions/security/oidc_logout.rb | 2 +- .../api/actions/security/oidc_prepare_authentication.rb | 2 +- .../elasticsearch/api/actions/security/put_privileges.rb | 2 +- .../lib/elasticsearch/api/actions/security/put_role.rb | 2 +- .../api/actions/security/put_role_mapping.rb | 2 +- .../lib/elasticsearch/api/actions/security/put_user.rb | 2 +- .../elasticsearch/api/actions/security/query_api_keys.rb | 2 +- .../lib/elasticsearch/api/actions/security/query_role.rb | 2 +- .../lib/elasticsearch/api/actions/security/query_user.rb | 2 +- .../api/actions/security/saml_authenticate.rb | 2 +- .../api/actions/security/saml_complete_logout.rb | 2 +- .../elasticsearch/api/actions/security/saml_invalidate.rb | 2 +- .../lib/elasticsearch/api/actions/security/saml_logout.rb | 2 +- .../api/actions/security/saml_prepare_authentication.rb | 2 +- .../actions/security/saml_service_provider_metadata.rb | 2 +- .../api/actions/security/suggest_user_profiles.rb | 2 +- .../elasticsearch/api/actions/security/update_api_key.rb | 2 +- .../api/actions/security/update_cross_cluster_api_key.rb | 2 +- .../elasticsearch/api/actions/security/update_settings.rb | 2 +- .../api/actions/security/update_user_profile_data.rb | 2 +- .../lib/elasticsearch/api/actions/simulate/ingest.rb | 2 +- .../api/actions/snapshot/cleanup_repository.rb | 2 +- .../lib/elasticsearch/api/actions/snapshot/clone.rb | 2 +- .../lib/elasticsearch/api/actions/snapshot/create.rb | 2 +- .../api/actions/snapshot/create_repository.rb | 2 +- .../lib/elasticsearch/api/actions/snapshot/delete.rb | 2 +- .../api/actions/snapshot/delete_repository.rb | 2 +- .../lib/elasticsearch/api/actions/snapshot/get.rb | 2 +- .../elasticsearch/api/actions/snapshot/get_repository.rb | 2 +- .../api/actions/snapshot/repository_analyze.rb | 2 +- .../lib/elasticsearch/api/actions/snapshot/restore.rb | 2 +- .../lib/elasticsearch/api/actions/snapshot/status.rb | 2 +- .../api/actions/snapshot/verify_repository.rb | 2 +- .../snapshot_lifecycle_management/delete_lifecycle.rb | 2 +- .../snapshot_lifecycle_management/execute_lifecycle.rb | 2 +- .../snapshot_lifecycle_management/execute_retention.rb | 2 +- .../snapshot_lifecycle_management/get_lifecycle.rb | 2 +- .../actions/snapshot_lifecycle_management/get_stats.rb | 2 +- .../actions/snapshot_lifecycle_management/get_status.rb | 2 +- .../snapshot_lifecycle_management/put_lifecycle.rb | 2 +- .../api/actions/snapshot_lifecycle_management/start.rb | 2 +- .../api/actions/snapshot_lifecycle_management/stop.rb | 2 +- .../lib/elasticsearch/api/actions/sql/clear_cursor.rb | 2 +- .../lib/elasticsearch/api/actions/sql/delete_async.rb | 2 +- .../lib/elasticsearch/api/actions/sql/get_async.rb | 2 +- .../lib/elasticsearch/api/actions/sql/get_async_status.rb | 2 +- .../lib/elasticsearch/api/actions/sql/query.rb | 2 +- .../lib/elasticsearch/api/actions/sql/translate.rb | 2 +- .../lib/elasticsearch/api/actions/ssl/certificates.rb | 2 +- .../elasticsearch/api/actions/synonyms/delete_synonym.rb | 2 +- .../api/actions/synonyms/delete_synonym_rule.rb | 2 +- .../lib/elasticsearch/api/actions/synonyms/get_synonym.rb | 2 +- .../api/actions/synonyms/get_synonym_rule.rb | 2 +- .../api/actions/synonyms/get_synonyms_sets.rb | 2 +- .../lib/elasticsearch/api/actions/synonyms/put_synonym.rb | 2 +- .../api/actions/synonyms/put_synonym_rule.rb | 2 +- .../lib/elasticsearch/api/actions/tasks/cancel.rb | 2 +- .../lib/elasticsearch/api/actions/tasks/get.rb | 2 +- .../lib/elasticsearch/api/actions/tasks/list.rb | 2 +- .../lib/elasticsearch/api/actions/terms_enum.rb | 2 +- .../lib/elasticsearch/api/actions/termvectors.rb | 2 +- .../api/actions/text_structure/find_field_structure.rb | 2 +- .../api/actions/text_structure/find_message_structure.rb | 2 +- .../api/actions/text_structure/find_structure.rb | 2 +- .../api/actions/text_structure/test_grok_pattern.rb | 2 +- .../api/actions/transform/delete_transform.rb | 2 +- .../elasticsearch/api/actions/transform/get_transform.rb | 2 +- .../api/actions/transform/get_transform_stats.rb | 2 +- .../api/actions/transform/preview_transform.rb | 2 +- .../elasticsearch/api/actions/transform/put_transform.rb | 2 +- .../api/actions/transform/reset_transform.rb | 2 +- .../api/actions/transform/schedule_now_transform.rb | 2 +- .../api/actions/transform/start_transform.rb | 2 +- .../elasticsearch/api/actions/transform/stop_transform.rb | 2 +- .../api/actions/transform/update_transform.rb | 2 +- .../api/actions/transform/upgrade_transforms.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/actions/update.rb | 2 +- .../lib/elasticsearch/api/actions/update_by_query.rb | 2 +- .../api/actions/update_by_query_rethrottle.rb | 2 +- .../lib/elasticsearch/api/actions/watcher/ack_watch.rb | 2 +- .../elasticsearch/api/actions/watcher/activate_watch.rb | 2 +- .../elasticsearch/api/actions/watcher/deactivate_watch.rb | 2 +- .../lib/elasticsearch/api/actions/watcher/delete_watch.rb | 2 +- .../elasticsearch/api/actions/watcher/execute_watch.rb | 2 +- .../lib/elasticsearch/api/actions/watcher/get_settings.rb | 2 +- .../lib/elasticsearch/api/actions/watcher/get_watch.rb | 2 +- .../lib/elasticsearch/api/actions/watcher/put_watch.rb | 2 +- .../elasticsearch/api/actions/watcher/query_watches.rb | 2 +- .../lib/elasticsearch/api/actions/watcher/start.rb | 2 +- .../lib/elasticsearch/api/actions/watcher/stats.rb | 2 +- .../lib/elasticsearch/api/actions/watcher/stop.rb | 2 +- .../elasticsearch/api/actions/watcher/update_settings.rb | 2 +- .../lib/elasticsearch/api/actions/xpack/info.rb | 2 +- .../lib/elasticsearch/api/actions/xpack/usage.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/version.rb | 2 +- 514 files changed, 522 insertions(+), 522 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb index 940a47498d..890f18626c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :id A unique identifier for the async search. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'async_search.delete' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb index 93e982c95e..134defacba 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb @@ -38,7 +38,7 @@ module Actions # By default no timeout is set meaning that the currently available results will be returned without any additional wait. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'async_search.get' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb index 67c4c0f650..481aa3faa2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb @@ -33,7 +33,7 @@ module Actions # Ongoing async searches and any saved search results are deleted after this period. Server default: 5d. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit # def status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'async_search.status' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb index 546cf0714c..f3013187cf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb @@ -78,7 +78,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit # def submit(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'async_search.submit' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb b/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb index 7f5fd0b714..164ef9da0b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb @@ -130,7 +130,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [String|Array] :body operations. Array of Strings, Header/Data pairs, or the conveniency "combined" format can be passed, refer to Elasticsearch::API::Utils.bulkify documentation. # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-bulk + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-bulk # def bulk(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'bulk' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb index 0211dbc973..9c6fa82c93 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-aliases + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-aliases # def aliases(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.aliases' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb index b08f92074c..21e90a20fc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb @@ -44,7 +44,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-allocation + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-allocation # def allocation(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.allocation' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb index 3d77c58d2c..6f4756e837 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb @@ -47,7 +47,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-component-templates + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-component-templates # def component_templates(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.component_templates' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb index 3bd4eb3fd2..efc90ef7ef 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-count + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-count # def count(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.count' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb index 5a08c6d8ec..d3ef2cc005 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb @@ -41,7 +41,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-fielddata + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-fielddata # def fielddata(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.fielddata' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb index 241b38e607..fb21f83878 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb @@ -46,7 +46,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-health + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-health # def health(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.health' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/help.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/help.rb index 9e60e0a3ab..d5745922f7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/help.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/help.rb @@ -27,7 +27,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-cat + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-cat # def help(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.help' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb index 993d292105..7459f4b3b4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb @@ -55,7 +55,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-indices + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-indices # def indices(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.indices' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb index 68c3f8d712..56b505c3e1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-master + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-master # def master(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.master' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb index f4744c521e..74b83bda11 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-data-frame-analytics + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-data-frame-analytics # def ml_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.ml_data_frame_analytics' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb index 4e54293420..9ff975f10d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb @@ -49,7 +49,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-datafeeds + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-datafeeds # def ml_datafeeds(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.ml_datafeeds' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb index cf4bdfe666..a4972708b6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb @@ -50,7 +50,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-jobs + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-jobs # def ml_jobs(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.ml_jobs' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb index 4d4401af64..86ec4d06af 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-trained-models + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-trained-models # def ml_trained_models(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.ml_trained_models' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb index b2035b5d0c..cffc6745d8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-nodeattrs + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-nodeattrs # def nodeattrs(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.nodeattrs' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb index e5bb34ad56..05238c8542 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-nodes + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-nodes # def nodes(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.nodes' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb index 345f0d1332..ed3e7d9d04 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb @@ -43,7 +43,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-pending-tasks + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-pending-tasks # def pending_tasks(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.pending_tasks' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb index db1602a6e9..0ca83d53cb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb @@ -43,7 +43,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-plugins + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-plugins # def plugins(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.plugins' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb index 93dec9c32c..8a240b20dd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-recovery + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-recovery # def recovery(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.recovery' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb index b565d40edd..9e5f4e3605 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-repositories + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-repositories # def repositories(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.repositories' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb index cab1160b86..285844bd60 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb @@ -47,7 +47,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-segments + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-segments # def segments(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.segments' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb index 04550ec87c..e00cc43b3c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb @@ -44,7 +44,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-shards + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-shards # def shards(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.shards' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb index 2d39833e93..e78f775404 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-snapshots + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-snapshots # def snapshots(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.snapshots' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb index 050890bc76..e4a8e4103b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb @@ -49,7 +49,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-tasks + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-tasks # def tasks(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.tasks' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb index 5bdc457bcd..8773f2d3d5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-templates + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-templates # def templates(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.templates' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb index be0cd62fdc..4ac7834699 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb @@ -46,7 +46,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-thread-pool + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-thread-pool # def thread_pool(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.thread_pool' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb index 9390a25881..9a5d719483 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Boolean] :v When set to +true+ will enable verbose output. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-transforms + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-transforms # def transforms(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cat.transforms' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb b/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb index 520f28001a..f72e3e2133 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb @@ -35,7 +35,7 @@ module Actions # Deprecated since version 7.0.0 # # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-clear-scroll + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-clear-scroll # def clear_scroll(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'clear_scroll' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb b/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb index 537ed0eff6..707ad4da42 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-open-point-in-time + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-open-point-in-time # def close_point_in_time(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'close_point_in_time' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb index fb48a14d65..519664effb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-allocation-explain + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-allocation-explain # def allocation_explain(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.allocation_explain' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb index 7f50cd4187..c7956016a3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb @@ -32,7 +32,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-component-template # def delete_component_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.delete_component_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb index 390eadc180..d85a985963 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb @@ -34,7 +34,7 @@ module Actions # nodes are still in the cluster. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-post-voting-config-exclusions + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-post-voting-config-exclusions # def delete_voting_config_exclusions(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.delete_voting_config_exclusions' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb index f895baacec..038b760bce 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb @@ -34,7 +34,7 @@ module Actions # Defaults to false, which means information is retrieved from the master node. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-component-template # def exists_component_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.exists_component_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb index 3f57430a52..f5c096979a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb @@ -35,7 +35,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-component-template # def get_component_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.get_component_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb index 6f636d813d..abb89dd4a8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb @@ -33,7 +33,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-get-settings + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-get-settings # def get_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.get_settings' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb index bf5a38b0ff..889da9f1d4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [String] :wait_for_status One of green, yellow or red. Will wait (until the timeout provided) until the status of the cluster changes to the one provided or better, i.e. green > yellow > red. By default, will not wait for any status. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-health + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-health # def health(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.health' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb index 0de66c3a67..c712e51fc6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String, Array] :target Limits the information returned to the specific target. Supports a comma-separated list, such as http,ingest. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-info + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-info # def info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.info' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb index f0430b73c3..b325fff6e0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb @@ -34,7 +34,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-pending-tasks + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-pending-tasks # def pending_tasks(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.pending_tasks' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb index 35bd36c80c..79ebe297ee 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb @@ -49,7 +49,7 @@ module Actions # is satisfied, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-post-voting-config-exclusions + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-post-voting-config-exclusions # def post_voting_config_exclusions(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.post_voting_config_exclusions' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb index 498d36572c..94196bf814 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb @@ -48,7 +48,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-component-template # def put_component_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.put_component_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb index 655fa2cc63..7deffbf9cf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb @@ -43,7 +43,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-settings + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-settings # def put_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.put_settings' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb index a04ecc1dcf..aabc3f2c64 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb @@ -28,7 +28,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-remote-info + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-remote-info # def remote_info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.remote_info' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb index dd24a9608d..ab40a107d2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb @@ -43,7 +43,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-reroute + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-reroute # def reroute(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.reroute' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb index e242fde3e0..8c97badc52 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb @@ -49,7 +49,7 @@ module Actions # @option arguments [Time] :wait_for_timeout The maximum time to wait for wait_for_metadata_version before timing out # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-state + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-state # def state(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.state' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb index fa07c366fa..5d783d74b4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb @@ -32,7 +32,7 @@ module Actions # However, timed out nodes are included in the response’s +_nodes.failed+ property. Defaults to no timeout. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-stats # def stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'cluster.stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb index 6211600bbe..e4f2d843e6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be checked in (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-check-in + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-check-in # def check_in(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.check_in' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb index c060a3bcff..694798bbf9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [Boolean] :hard A flag indicating if the connector should be hard deleted. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-delete + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-delete # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.delete' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb index 8b195f2435..c6a85e85b3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Boolean] :include_deleted A flag to indicate if the desired connector should be fetched, even if it was soft-deleted. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-get + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-get # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.get' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb index ffa9214b01..be80f1e81f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [String] :query A wildcard query string that filters connectors with matching name, description or index name # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-list + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-list # def list(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.list' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb index b67330c469..c7f3ec29f9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-put + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-put # def post(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.post' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb index 18790b593b..e12cdbfb5a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-put + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-put # def put(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.put' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb index 78b8b46990..56fae0cf5b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-cancel + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-cancel # def sync_job_cancel(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_cancel' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb index 8d1fa84500..133b9def13 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job to be checked in. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-check-in + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-check-in # def sync_job_check_in(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_check_in' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb index bfd4ec791b..8b8cf87aaa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-claim + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-claim # def sync_job_claim(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_claim' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb index d71580b6a0..ff642a4565 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job to be deleted (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-delete + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-delete # def sync_job_delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_delete' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb index f1ac042d4c..1d83f18f0a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-error + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-error # def sync_job_error(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_error' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb index 48168ac0aa..b9fa5c482f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-get + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-get # def sync_job_get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_get' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb index 0e054905bd..e14a3b4d7d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Syncjobtype] :job_type A comma-separated list of job types to fetch the sync jobs for # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-list + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-list # def sync_job_list(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_list' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb index 64440d13a0..fb48dbad5a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-post + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-post # def sync_job_post(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_post' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb index ede9d35e74..4bcedcc4af 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-sync-job-update-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-update-stats # def sync_job_update_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.sync_job_update_stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb index 3f9e15887c..c0d58bacdf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-filtering + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-filtering # def update_active_filtering(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_active_filtering' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb index 4f02552408..d5ad146016 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-api-key-id + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-api-key-id # def update_api_key_id(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_api_key_id' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb index c546b9918f..6b51813111 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-configuration + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-configuration # def update_configuration(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_configuration' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb index bbc3739934..8d39651332 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-error + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-error # def update_error(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_error' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb index ae99d9707b..c9ba996782 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-features + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-features # def update_features(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_features' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb index 0a60fae3bf..3945234cf5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-filtering + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-filtering # def update_filtering(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_filtering' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb index f6567ae438..21feaf0556 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-filtering-validation-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-filtering-validation # def update_filtering_validation(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_filtering_validation' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb index 0b9d9df6b5..c8ec0ea543 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-index-name + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-index-name # def update_index_name(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_index_name' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb index 6172403ae1..dcf758b55b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-name + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-name # def update_name(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_name' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb index 133e919ce3..5960ca042e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-native-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-native # def update_native(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_native' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb index 8b983849f0..252d5ecc76 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-pipeline + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-pipeline # def update_pipeline(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_pipeline' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb index 960f89eaea..d60ff5ac87 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-scheduling + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-scheduling # def update_scheduling(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_scheduling' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb index e13e597747..3b513c0153 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-service-type + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-service-type # def update_service_type(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_service_type' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb index 89098f8323..20f946fe25 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-connector-update-status + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-status # def update_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'connector.update_status' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/count.rb b/elasticsearch-api/lib/elasticsearch/api/actions/count.rb index 5600a3b1d3..e9c7014b5a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/count.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/count.rb @@ -65,7 +65,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-count + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-count # def count(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'count' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/create.rb index d631a1bba9..388a3fa22e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/create.rb @@ -110,7 +110,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body document # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-create # def create(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'create' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb index 71289336eb..ff2103d8f2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb @@ -31,7 +31,7 @@ module Actions # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-delete-auto-follow-pattern + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-delete-auto-follow-pattern # def delete_auto_follow_pattern(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.delete_auto_follow_pattern' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb index 17321f77be..f1e7ef4a88 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-follow + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-follow # def follow(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.follow' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb index 97f99ecb4d..122a23bf9c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb @@ -32,7 +32,7 @@ module Actions # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-follow-info + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-follow-info # def follow_info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.follow_info' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb index 3997b99c7b..b94b4fa1c4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb @@ -31,7 +31,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-follow-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-follow-stats # def follow_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.follow_stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb index 0d5a49bfd7..25beb0e20f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-forget-follower + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-forget-follower # def forget_follower(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.forget_follower' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb index 389006f732..76dfeb5a9d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb @@ -32,7 +32,7 @@ module Actions # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-get-auto-follow-pattern-1 + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-get-auto-follow-pattern-1 # def get_auto_follow_pattern(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.get_auto_follow_pattern' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb index ae3e7e1607..e0e4653ec2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb @@ -36,7 +36,7 @@ module Actions # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-pause-auto-follow-pattern + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-pause-auto-follow-pattern # def pause_auto_follow_pattern(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.pause_auto_follow_pattern' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb index 0e48a15183..a24d52f1b4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb @@ -34,7 +34,7 @@ module Actions # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-pause-follow + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-pause-follow # def pause_follow(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.pause_follow' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb index 92318b8ba2..c35d751bc3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-put-auto-follow-pattern + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-put-auto-follow-pattern # def put_auto_follow_pattern(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.put_auto_follow_pattern' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb index c2d10db56a..a3986239db 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb @@ -33,7 +33,7 @@ module Actions # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-resume-auto-follow-pattern + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-resume-auto-follow-pattern # def resume_auto_follow_pattern(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.resume_auto_follow_pattern' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb index 5f98010414..7d4c008d0a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-resume-follow + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-resume-follow # def resume_follow(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.resume_follow' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb index c43c2431b2..589eaa8232 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Time] :timeout The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-stats # def stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb index 08d8fc3e02..aa2f3ab870 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb @@ -33,7 +33,7 @@ module Actions # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-unfollow + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-unfollow # def unfollow(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ccr.unfollow' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb index e480bd03b1..975645e8b9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Time] :timeout Explicit operation timeout # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-dangling-indices-delete-dangling-index + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-dangling-indices-delete-dangling-index # def delete_dangling_index(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'dangling_indices.delete_dangling_index' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb index ff9ab687c8..827d6fea86 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Time] :timeout Explicit operation timeout # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-dangling-indices-import-dangling-index + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-dangling-indices-import-dangling-index # def import_dangling_index(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'dangling_indices.import_dangling_index' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb index 18cf82e5f4..46b5fec36e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb @@ -29,7 +29,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-dangling-indices-list-dangling-indices + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-dangling-indices-list-dangling-indices # def list_dangling_indices(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'dangling_indices.list_dangling_indices' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb index 37367fe4c4..9bde053706 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb @@ -66,7 +66,7 @@ module Actions # The default value of +1+ means it waits for each primary shard to be active. Server default: 1. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'delete' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb index c7489af433..1c34981d22 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb @@ -138,7 +138,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete-by-query + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete-by-query # def delete_by_query(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'delete_by_query' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb index b22377cca1..0cbefdb2e3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb @@ -30,7 +30,7 @@ module Actions # To disable throttling, set it to +-1+. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete-by-query-rethrottle + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete-by-query-rethrottle # def delete_by_query_rethrottle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'delete_by_query_rethrottle' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb index f224d397f3..52ff04fd3c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb @@ -33,7 +33,7 @@ module Actions # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-delete-script + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete-script # def delete_script(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'delete_script' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb index cad74d11e4..3f83d27db9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-enrich-delete-policy + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-enrich-delete-policy # def delete_policy(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'enrich.delete_policy' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb index e37f8e2dc3..f4311861c9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks other enrich policy execution requests until complete. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-enrich-execute-policy + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-enrich-execute-policy # def execute_policy(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'enrich.execute_policy' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb index 5e81c61c3b..2582f6e0b7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-enrich-get-policy + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-enrich-get-policy # def get_policy(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'enrich.get_policy' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb index 191d5d1990..125b0c3692 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-enrich-put-policy + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-enrich-put-policy # def put_policy(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'enrich.put_policy' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb index 357638b8c1..6dd0be1ac7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-enrich-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-enrich-stats # def stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'enrich.stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb index 64d344296b..ecc8edea0d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb @@ -31,7 +31,7 @@ module Actions # A search ID is also provided if the request’s +keep_on_completion+ parameter is +true+. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-eql-delete + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-eql-delete # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'eql.delete' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb index e80ef5cf1a..e5b959a253 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb @@ -32,7 +32,7 @@ module Actions # Defaults to no timeout, meaning the request waits for complete search results. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-eql-get + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-eql-get # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'eql.get' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb index 284943b157..386757fb3f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :id Identifier for the search. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-eql-get-status + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-eql-get-status # def get_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'eql.get_status' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb index 17cb3967e7..f088e6f046 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb @@ -39,7 +39,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-eql-search + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-eql-search # def search(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'eql.search' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb index f0e5810a0a..1751d17813 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb @@ -44,7 +44,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-esql-async-query + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-esql-async-query # def async_query(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'esql.async_query' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb index baaece9b87..2d7090970c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb @@ -34,7 +34,7 @@ module Actions # A query ID is also provided when the request was submitted with the +keep_on_completion+ parameter set to +true+. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-esql-async-query-delete + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-esql-async-query-delete # def async_query_delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'esql.async_query_delete' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb index 481f3d093f..5f3eeb43df 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb @@ -39,7 +39,7 @@ module Actions # Otherwise, the response returns an +is_running+ value of +true+ and no results. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-esql-async-query-get + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-esql-async-query-get # def async_query_get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'esql.async_query_get' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb index 6dc5185d35..9043dd7cdc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb @@ -33,7 +33,7 @@ module Actions # If +true+, the response will include an extra section under the name +all_columns+ which has the name of all the columns. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-async-query-stop-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-esql-async-query-stop # def async_query_stop(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'esql.async_query_stop' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb index bef8c04df1..4bb60ad281 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-rest.html + # @see https://www.elastic.co/docs/explore-analyze/query-filter/languages/esql-rest # def query(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'esql.query' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb b/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb index c1172382ee..f407fbc1f6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb @@ -63,7 +63,7 @@ module Actions # @option arguments [String] :version_type The version type. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get # def exists(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'exists' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb b/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb index f7932922e5..bcb9a00c5c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb @@ -46,7 +46,7 @@ module Actions # @option arguments [String] :version_type The version type. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get # def exists_source(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'exists_source' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb b/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb index 735bc41728..65d600d0fb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb @@ -54,7 +54,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-explain + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-explain # def explain(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'explain' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb b/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb index 75eb2a5bb1..e371c94d69 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-features-get-features + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-features-get-features # def get_features(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'features.get_features' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb b/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb index 8679c4b159..9cd584bb1e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb @@ -41,7 +41,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-features-reset-features + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-features-reset-features # def reset_features(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'features.reset_features' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb b/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb index 2f0de68202..dc00fdaa1c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb @@ -43,7 +43,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-field-caps + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-field-caps # def field_caps(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'field_caps' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb index 1163f0d4e5..71aad98b82 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a global checkpoints to advance past +checkpoints+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-fleet + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-fleet # def global_checkpoints(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'fleet.global_checkpoints' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb index 890c203c03..402c61a035 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb @@ -46,13 +46,13 @@ module Actions # @option arguments [Array] :wait_for_checkpoints A comma separated list of checkpoints. When configured, the search API will only be executed on a shard # after the relevant checkpoint has become visible for search. Defaults to an empty list which will cause # Elasticsearch to immediately execute the search. Server default: []. - # @option arguments [Boolean] :allow_partial_search_results If true, returns partial results if there are shard request timeouts or {https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-replication.html#shard-failures shard failures}. If false, returns - # an error with no partial results. Defaults to the configured cluster setting +search.default_allow_partial_results+ - # which is true by default. + # @option arguments [Boolean] :allow_partial_search_results If true, returns partial results if there are shard request timeouts or shard failures. + # If false, returns an error with no partial results. + # Defaults to the configured cluster setting +search.default_allow_partial_results+, which is true by default. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body searches # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-fleet-msearch + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-fleet-msearch # def msearch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'fleet.msearch' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb index 11255e9293..077042e547 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb @@ -75,13 +75,13 @@ module Actions # @option arguments [Array] :wait_for_checkpoints A comma separated list of checkpoints. When configured, the search API will only be executed on a shard # after the relevant checkpoint has become visible for search. Defaults to an empty list which will cause # Elasticsearch to immediately execute the search. Server default: []. - # @option arguments [Boolean] :allow_partial_search_results If true, returns partial results if there are shard request timeouts or {https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-replication.html#shard-failures shard failures}. If false, returns - # an error with no partial results. Defaults to the configured cluster setting +search.default_allow_partial_results+ - # which is true by default. + # @option arguments [Boolean] :allow_partial_search_results If true, returns partial results if there are shard request timeouts or shard failures. + # If false, returns an error with no partial results. + # Defaults to the configured cluster setting +search.default_allow_partial_results+, which is true by default. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-fleet-search + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-fleet-search # def search(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'fleet.search' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get.rb index 22e6b397eb..9f8184fabe 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get.rb @@ -94,7 +94,7 @@ module Actions # @option arguments [String] :version_type The version type. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'get' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb index d2109ac11e..cb9c3b7999 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb @@ -30,7 +30,7 @@ module Actions # It can also be set to +-1+ to indicate that the request should never timeout. Server default: . # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get-script + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get-script # def get_script(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'get_script' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb index e3e0b582b2..c88356fe5e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb @@ -26,7 +26,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get-script-context + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get-script-context # def get_script_context(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'get_script_context' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb index e2462b2ff6..9984756ecf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb @@ -26,7 +26,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get-script-languages + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get-script-languages # def get_script_languages(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'get_script_languages' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb index 086754c9df..7a42cee621 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb @@ -49,7 +49,7 @@ module Actions # @option arguments [String] :version_type The version type. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-get + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get # def get_source(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'get_source' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb b/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb index 4edfda5d6f..b063923e09 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-graph + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-graph # def explore(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'graph.explore' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb b/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb index a91afc21ea..eb71dcd424 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb @@ -41,7 +41,7 @@ module Actions # @option arguments [Integer] :size Limit the number of affected resources the health report API returns. Server default: 1000. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-health-report + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-health-report # def health_report(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'health_report' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index.rb index 3d19167f59..7fae20a0ee 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index.rb @@ -141,7 +141,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body document # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-create # def index(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'index' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb index 9bc116f8ca..0453cd449b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-delete-lifecycle + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-delete-lifecycle # def delete_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.delete_lifecycle' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb index d593ac122b..25d494c248 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-explain-lifecycle + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-explain-lifecycle # def explain_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.explain_lifecycle' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb index cff53ddc53..af403495fa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-get-lifecycle + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-get-lifecycle # def get_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.get_lifecycle' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb index e9baf3a82c..ad8db18484 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb @@ -27,7 +27,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-get-status + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-get-status # def get_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.get_status' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb index 684a057125..dfb2a8e3a1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-migrate-to-data-tiers + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-migrate-to-data-tiers # def migrate_to_data_tiers(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.migrate_to_data_tiers' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb index f9527f34dc..4f4af4cc80 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-move-to-step + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-move-to-step # def move_to_step(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.move_to_step' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb index 1f1cf79e72..36469c9e04 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-put-lifecycle + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-put-lifecycle # def put_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.put_lifecycle' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb index f67eb6364d..cfaecdb7bc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :index The name of the index to remove policy on (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-remove-policy + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-remove-policy # def remove_policy(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.remove_policy' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb index c347d1cd45..7669e489d3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :index The name of the indices (comma-separated) whose failed lifecycle step is to be retry (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-retry + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-retry # def retry(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.retry' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb index 7d03cc34bd..0fba530fca 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-start + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-start # def start(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.start' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb index 405751a109..d68f931a9f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ilm-stop + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-stop # def stop(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ilm.stop' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb index ee9133da0c..e62251fcb7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb @@ -46,7 +46,7 @@ module Actions # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-add-block + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-add-block # def add_block(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.add_block' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb index c7f6ffe3f5..39b64996bd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-analyze + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-analyze # def analyze(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.analyze' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb index f24b4fdac8..9ad145d5ee 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String, Array] :index The index or data stream name (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/migrate-data-stream.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-migration # def cancel_migrate_reindex(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.cancel_migrate_reindex' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb index 25666554fb..4b9a063cc2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb @@ -46,7 +46,7 @@ module Actions # @option arguments [Boolean] :request If +true+, clears the request cache. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-clear-cache + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-clear-cache # def clear_cache(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.clear_cache' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb index 61f761be3c..81a433bc94 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb @@ -65,7 +65,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-clone + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-clone # def clone(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.clone' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb index 0b406803bb..efc688f4bd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb @@ -53,7 +53,7 @@ module Actions # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-close + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-close # def close(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.close' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb index 6c893494be..21b4f3a831 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb @@ -49,7 +49,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-create + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-create # def create(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.create' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb index 7492c972f7..e434aeb110 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-create-data-stream + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-create-data-stream # def create_data_stream(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.create_data_stream' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb index 5648cd94fb..7af237154a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body create_from # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/migrate-data-stream.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-migration # def create_from(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.create_from' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb index 390865889c..47b6864a9d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb @@ -32,7 +32,7 @@ module Actions # Supports comma-separated values, such as +open,hidden+. Server default: open. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-data-streams-stats-1 + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-data-streams-stats-1 # def data_streams_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.data_streams_stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb index f896e8e0d5..6f1e344362 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb @@ -46,7 +46,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.delete' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb index 4e19211bfc..b2c088ea24 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb @@ -35,7 +35,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-alias + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-alias # def delete_alias(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.delete_alias' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb index 80154e61dd..67d0351aff 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Time] :timeout Explicit timestamp for the document # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-data-lifecycle + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-data-lifecycle # def delete_data_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.delete_data_lifecycle' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb index b99a604d4d..c6b42a7308 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String, Array] :expand_wildcards Type of data stream that wildcard patterns can match. Supports comma-separated values,such as +open,hidden+. Server default: open. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-data-stream + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-data-stream # def delete_data_stream(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.delete_data_stream' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb index a3e30d135d..b293ccce09 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-index-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-index-template # def delete_index_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.delete_index_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb index 5619eb22c3..8a924387e2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb @@ -32,7 +32,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-template # def delete_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.delete_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb index 27df7026e7..e7af4a43b3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb @@ -49,7 +49,7 @@ module Actions # To use the API, this parameter must be set to +true+. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-disk-usage + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-disk-usage # def disk_usage(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.disk_usage' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb index 4a33d4f837..2be85ed545 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb @@ -39,7 +39,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body config # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-downsample + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-downsample # def downsample(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.downsample' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb index e9396806df..b8eb5e3dfe 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-exists + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-exists # def exists(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.exists' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb index b80dffa533..813e855c78 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb @@ -39,7 +39,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-exists-alias + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-exists-alias # def exists_alias(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.exists_alias' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb index 56034a89bb..232ab4ab5d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-exists-index-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-exists-index-template # def exists_index_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.exists_index_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb index 2c755ef89e..9de13e12e3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb @@ -36,7 +36,7 @@ module Actions # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-exists-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-exists-template # def exists_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.exists_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb index 8016903a31..4f71398806 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Time] :master_timeout Specify timeout for connection to master # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-explain-data-lifecycle + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-explain-data-lifecycle # def explain_data_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.explain_data_lifecycle' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb index 8c9285caa9..106bb6688e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb @@ -44,7 +44,7 @@ module Actions # @option arguments [String, Array] :fields Comma-separated list or wildcard expressions of fields to include in the statistics. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-field-usage-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-field-usage-stats # def field_usage_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.field_usage_stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb index cd4e96d82e..6d737706b4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb @@ -47,7 +47,7 @@ module Actions # If +false+, Elasticsearch returns an error if you request a flush when another flush operation is running. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-flush + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-flush # def flush(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.flush' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb index 7a30c2d2e0..1cb4788374 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb @@ -72,7 +72,7 @@ module Actions # @option arguments [Boolean] :wait_for_completion Should the request wait until the force merge is completed. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-forcemerge + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-forcemerge # def forcemerge(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.forcemerge' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb index 074ea2a3d8..fe77f5905b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [String, Array] :features Return only information on specified index features Server default: ['aliases', 'mappings', 'settings']. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb index 7f54b919bb..9f3f96cc73 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb @@ -42,7 +42,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-alias + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-alias # def get_alias(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_alias' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb index d4e33ecb01..ddda76fe14 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-lifecycle + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-data-lifecycle # def get_data_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_data_lifecycle' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb index a9bc9af528..feeea0d7d6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb @@ -27,7 +27,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-lifecycle-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-data-lifecycle-stats # def get_data_lifecycle_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_data_lifecycle_stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb index 3e35d02f68..3396f73cee 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Boolean] :verbose Whether the maximum timestamp for each data stream should be calculated and returned. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-stream + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-data-stream # def get_data_stream(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_data_stream' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb index 680c18ac94..1eee94d15b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb @@ -43,7 +43,7 @@ module Actions # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-mapping + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-mapping # def get_field_mapping(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_field_mapping' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb index 4cfcd8f3f0..d9fea20175 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-index-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-index-template # def get_index_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_index_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb index 067e4e7a5c..a759b64467 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb @@ -40,7 +40,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-mapping + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-mapping # def get_mapping(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_mapping' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb index 1cb349680f..57c734cb57 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String, Array] :index The index or data stream name. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/migrate-data-stream.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-migration # def get_migrate_reindex_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_migrate_reindex_status' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb index 2d8dc4dc06..10c10c9bb3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb @@ -48,7 +48,7 @@ module Actions # error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-settings + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-settings # def get_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_settings' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb index 2f8e1b7319..5019823553 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb @@ -35,7 +35,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-template # def get_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.get_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb index cc4a97d57f..4ecfca3ad6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body reindex # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/migrate-data-stream.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-migration # def migrate_reindex(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.migrate_reindex' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb index eac8dc5102..89e1a1c6ba 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb @@ -39,7 +39,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-migrate-to-data-stream + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-migrate-to-data-stream # def migrate_to_data_stream(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.migrate_to_data_stream' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb index cd21d2aff8..ad48775fd0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-modify-data-stream + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-modify-data-stream # def modify_data_stream(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.modify_data_stream' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb index 477f5c1ff3..3adcf16e83 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb @@ -60,7 +60,7 @@ module Actions # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-open + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-open # def open(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.open' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb index 923a127df0..009cf0fbb5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-promote-data-stream + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-promote-data-stream # def promote_data_stream(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.promote_data_stream' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb index 6a97a06dea..bd308f50dd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-alias + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-alias # def put_alias(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.put_alias' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb index ef432677f4..9728a23c6d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb @@ -39,7 +39,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-data-lifecycle + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-data-lifecycle # def put_data_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.put_data_lifecycle' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb index 07324e2b01..375406be6c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb @@ -52,7 +52,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-index-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-index-template # def put_index_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.put_index_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb index 339b61f807..6fc736d3d1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb @@ -59,7 +59,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-mapping + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-mapping # def put_mapping(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.put_mapping' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb index 9357527324..344ecb27ec 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb @@ -63,7 +63,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body settings # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-settings + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-settings # def put_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.put_settings' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb index c8069ff75b..908c82c06d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb @@ -49,7 +49,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-put-template # def put_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.put_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb index 8734419c83..9be3af9666 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb @@ -47,7 +47,7 @@ module Actions # @option arguments [Boolean] :detailed If +true+, the response includes detailed information about shard recoveries. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-recovery + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-recovery # def recovery(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.recovery' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb index f08348c1cb..2a24048428 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-refresh + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-refresh # def refresh(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.refresh' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb index 8f57bf9584..2c1d677308 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb @@ -41,7 +41,7 @@ module Actions # @option arguments [String] :resource Changed resource to reload analyzers from if applicable # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-reload-search-analyzers + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-reload-search-analyzers # def reload_search_analyzers(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.reload_search_analyzers' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb index 50dcf75310..9c14231812 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb @@ -80,7 +80,7 @@ module Actions # not responding (typically 30 seconds). # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-resolve-cluster + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-resolve-cluster # def resolve_cluster(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.resolve_cluster' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb index 2e0331a3f3..a86c0633ab 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb @@ -38,7 +38,7 @@ module Actions # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-resolve-index + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-resolve-index # def resolve_index(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.resolve_index' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb index 720fbd318a..41d780a3d4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb @@ -65,7 +65,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-rollover + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-rollover # def rollover(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.rollover' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb index 33719cd46f..11a121fd18 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-segments + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-segments # def segments(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.segments' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb index 14d4ee9cb3..f1601f5346 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Shardstorestatus] :status List of shard health statuses used to limit the request. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-shard-stores + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-shard-stores # def shard_stores(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.shard_stores' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb index 2df762cdf1..11e366418e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb @@ -57,7 +57,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-shrink + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-shrink # def shrink(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.shrink' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb index ab59e70b81..63741dbef2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-simulate-index-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-simulate-index-template # def simulate_index_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.simulate_index_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb index 76b4953c60..d4450e7e10 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-simulate-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-simulate-template # def simulate_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.simulate_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb index 121ea50c0b..a312f3bce6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb @@ -58,7 +58,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-split + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-split # def split(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.split' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb index 056b022fda..1019c92d65 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb @@ -46,7 +46,7 @@ module Actions # @option arguments [String] :level Indicates whether statistics are aggregated at the cluster, index, or shard level. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-stats # def stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb index a34de394a2..a59ebf498d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-update-aliases + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-update-aliases # def update_aliases(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.update_aliases' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb index 7e7fd81ac6..c4bf6edce4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb @@ -49,7 +49,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-validate-query + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-validate-query # def validate_query(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.validate_query' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb index 03c56cd213..b54954cf9a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body chat_completion_request # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-unified-inference + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-unified-inference # def chat_completion_unified(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.chat_completion_unified' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb index a59e3a440e..5074461f56 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-inference # def completion(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.completion' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb index fe9e9485b8..3e475591d1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Boolean] :force When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-delete + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-delete # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.delete' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb index 0e6651ab15..0771682330 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :inference_id The inference Id # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-get + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-get # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.get' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb index 5d0c86c617..521f4bc278 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb @@ -26,6 +26,7 @@ module Actions # This API enables you to use machine learning models to perform specific tasks on data that you provide as an input. # It returns a response with the results of the tasks. # The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API. + # For details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation. # # @option arguments [String] :task_type The type of inference task that the model performs. # @option arguments [String] :inference_id The unique identifier for the inference endpoint. (*Required*) @@ -33,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-inference # def inference(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.inference' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb index 979e40cd03..e62e966dc2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body inference_config # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put # def put(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb index 6622c6a839..dc05cb8ad0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-alibabacloud + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-alibabacloud # def put_alibabacloud(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put_alibabacloud' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb index fe507d2147..b2362cfdc1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-amazonbedrock + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-amazonbedrock # def put_amazonbedrock(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put_amazonbedrock' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb index 57b4078bb9..39072b436d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-anthropic + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-anthropic # def put_anthropic(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put_anthropic' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb index e28ea8a7f7..82af72edfc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-azureaistudio + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-azureaistudio # def put_azureaistudio(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put_azureaistudio' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb index d2043dcb1e..408a0e21cf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb @@ -40,7 +40,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-azureopenai + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-azureopenai # def put_azureopenai(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put_azureopenai' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb index b9fff487e6..bda580f0c0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-cohere + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-cohere # def put_cohere(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put_cohere' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb index 7a966ef3a2..610f49ccc2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-elasticsearch + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-elasticsearch # def put_elasticsearch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put_elasticsearch' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb index 16e6e80bb3..0dbb83c399 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-elser + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-elser # def put_elser(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put_elser' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb index 31f9d0f3ad..60ef4de789 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-googleaistudio + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-googleaistudio # def put_googleaistudio(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put_googleaistudio' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb index c3d8f45bf7..4ee6cb0198 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-googlevertexai + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-googlevertexai # def put_googlevertexai(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put_googlevertexai' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb index 75d0f80753..30a33849c0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb @@ -46,7 +46,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-hugging-face + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-hugging-face # def put_hugging_face(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put_hugging_face' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb index a8f63c0e99..2427385f3e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-jinaai + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-jinaai # def put_jinaai(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put_jinaai' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb index dbdb9d1f06..d2fb7bbf88 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-mistral + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-mistral # def put_mistral(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put_mistral' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb index 1a5169d670..3ed710be87 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-openai + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-openai # def put_openai(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put_openai' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb index 1143543838..64a6e606f9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-voyageai + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-voyageai # def put_voyageai(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put_voyageai' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb index 1e8c20ab24..f0bacba091 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-watsonx + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-put-watsonx # def put_watsonx(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.put_watsonx' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb index eed8aa6e27..9e3e6d4c1a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-inference # def rerank(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.rerank' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb index 4370846956..6c5703ed7b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-inference # def sparse_embedding(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.sparse_embedding' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb index dd3d03d63d..0d6c22c1bf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-stream-inference + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-stream-inference # def stream_completion(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.stream_completion' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb index 70741d5fa0..8ef7273dee 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-inference # def text_embedding(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.text_embedding' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb index 76a0ffe88b..8a6b39a25a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body inference_config # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-update + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-update # def update(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'inference.update' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/info.rb index 0b671f74d4..51ada46301 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/info.rb @@ -26,7 +26,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-info + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-info # def info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'info' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb index 13afc23af5..a0d373e674 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Time] :timeout The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-delete-geoip-database + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-delete-geoip-database # def delete_geoip_database(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.delete_geoip_database' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb index 572ce52327..e23f5fbbb3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb @@ -33,7 +33,7 @@ module Actions # A value of +-1+ indicates that the request should never time out. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-delete-ip-location-database + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-delete-ip-location-database # def delete_ip_location_database(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.delete_ip_location_database' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb index 310cb3b0a9..5c45b4e05c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb @@ -33,7 +33,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-delete-pipeline + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-delete-pipeline # def delete_pipeline(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.delete_pipeline' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb index 02b90a2898..0e0e3beab8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb @@ -27,7 +27,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/geoip-processor.html + # @see https://www.elastic.co/docs/reference/enrich-processor/geoip-processor # def geo_ip_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.geo_ip_stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb index 6094f39a00..a1b47be6fb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb @@ -30,7 +30,7 @@ module Actions # To get all database configurations, omit this parameter or use +*+. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-get-geoip-database + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-get-geoip-database # def get_geoip_database(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.get_geoip_database' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb index bbaaca5404..92573b2ded 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb @@ -32,7 +32,7 @@ module Actions # A value of +-1+ indicates that the request should never time out. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-get-ip-location-database + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-get-ip-location-database # def get_ip_location_database(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.get_ip_location_database' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb index 48a86d8001..3f0a79afe4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Boolean] :summary Return pipelines without their definitions (default: false) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-get-pipeline + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-get-pipeline # def get_pipeline(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.get_pipeline' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb index a56aae8a0e..91cffdbb3f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb @@ -29,7 +29,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/grok-processor.html + # @see https://www.elastic.co/docs/reference/enrich-processor/grok-processor # def processor_grok(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.processor_grok' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb index dded11f00f..18d2c8bd83 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-put-geoip-database + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-put-geoip-database # def put_geoip_database(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.put_geoip_database' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb index c8c25c27ea..d476a80359 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body configuration # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-put-ip-location-database + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-put-ip-location-database # def put_ip_location_database(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.put_ip_location_database' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb index 57d23e6482..2d22696020 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html + # @see https://www.elastic.co/docs/manage-data/ingest/transform-enrich/ingest-pipelines # def put_pipeline(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.put_pipeline' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb index f07bdcc564..cab60867b6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-simulate + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-simulate # def simulate(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ingest.simulate' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/knn_search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/knn_search.rb index 321432a99c..4da3c30b2c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/knn_search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/knn_search.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search-api.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-knn-search # def knn_search(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'knn_search' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb index b6ca8b5bb7..d4133b72e5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Time] :timeout The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-delete + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-delete # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.delete' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb index 4dcaaed830..5e3770c595 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Boolean] :local Specifies whether to retrieve local information. The default value is +false+, which means the information is retrieved from the master node. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-get + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-get # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.get' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb index 0ae09ccbfa..4300614100 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb @@ -26,7 +26,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-get-basic-status + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-get-basic-status # def get_basic_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.get_basic_status' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb index b640725d0a..31431d62c6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb @@ -26,7 +26,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-get-trial-status + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-get-trial-status # def get_trial_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.get_trial_status' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb index b91887af35..f866445781 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-post + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-post # def post(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.post' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb index 28662b0d8b..7ced16d004 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-post-start-basic + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-post-start-basic # def post_start_basic(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.post_start_basic' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb index 70e9a89669..4a2af3b46c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-post-start-trial + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-post-start-trial # def post_start_trial(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'license.post_start_trial' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb index d75dc68cf9..5d85131c02 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :id An identifier for the pipeline. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-delete-pipeline + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-logstash-delete-pipeline # def delete_pipeline(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'logstash.delete_pipeline' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb index 08f84d3339..ff148df695 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String, Array] :id A comma-separated list of pipeline identifiers. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-get-pipeline + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-logstash-get-pipeline # def get_pipeline(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'logstash.get_pipeline' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb index 89d3620e91..1181c44dec 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body pipeline # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-put-pipeline + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-logstash-put-pipeline # def put_pipeline(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'logstash.put_pipeline' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb index d68157dcda..9350a64463 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-clear-trained-model-deployment-cache + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-clear-trained-model-deployment-cache # def clear_trained_model_deployment_cache(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.clear_trained_model_deployment_cache' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb index 386281093a..f8b379397d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-close-job + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-close-job # def close_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.close_job' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb index 405752a5af..7028c4ad2a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-calendar + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-calendar # def delete_calendar(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_calendar' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb index e520471ff3..eb0176850f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb @@ -29,7 +29,7 @@ module Actions # You can obtain this identifier by using the get calendar events API. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-calendar-event + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-calendar-event # def delete_calendar_event(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_calendar_event' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb index 642a9c689d..15a3b67d58 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb @@ -29,7 +29,7 @@ module Actions # comma-separated list of jobs or groups. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-calendar-job + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-calendar-job # def delete_calendar_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_calendar_job' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb index 337ec1b27e..133e2f635b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Time] :timeout The time to wait for the job to be deleted. Server default: 1m. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-data-frame-analytics + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-data-frame-analytics # def delete_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_data_frame_analytics' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb index 7526f8907e..0ee20e7c38 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb @@ -32,7 +32,7 @@ module Actions # stopping and deleting the datafeed. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-datafeed + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-datafeed # def delete_datafeed(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_datafeed' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb index 884fff38e7..c1b2a71a2d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb @@ -40,7 +40,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-expired-data + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-expired-data # def delete_expired_data(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_expired_data' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb index 4b006ed27b..1ae7496ff8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :filter_id A string that uniquely identifies a filter. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-filter + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-filter # def delete_filter(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_filter' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb index 2642bab316..4683022ad7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb @@ -41,7 +41,7 @@ module Actions # error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-forecast + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-forecast # def delete_forecast(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_forecast' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb index 980280bfb1..fce3f7a120 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb @@ -40,7 +40,7 @@ module Actions # job deletion completes. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-job + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-job # def delete_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_job' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb index 3657140310..64a0fa3412 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :snapshot_id Identifier for the model snapshot. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-model-snapshot + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-model-snapshot # def delete_model_snapshot(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_model_snapshot' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb index 186dbf152c..9cfa29d4bb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-trained-model + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-trained-model # def delete_trained_model(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_trained_model' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb index a8a279f57a..decd14d7b7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :model_id The trained model ID to which the model alias refers. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-trained-model-alias + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-trained-model-alias # def delete_trained_model_alias(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_trained_model_alias' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb index fe40188df3..2dd6808ccc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-estimate-model-memory + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-estimate-model-memory # def estimate_model_memory(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.estimate_model_memory' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb index c5b24f2ca9..104ac5fed1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-evaluate-data-frame + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-evaluate-data-frame # def evaluate_data_frame(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.evaluate_data_frame' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb index 23866c36f0..36e28803a5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-explain-data-frame-analytics + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-explain-data-frame-analytics # def explain_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.explain_data_frame_analytics' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb index 2d76063a4a..4110a524b1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb @@ -46,7 +46,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-flush-job + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-flush-job # def flush_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.flush_job' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb index b1cec0ba2c..e46bca160d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb @@ -44,7 +44,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-forecast + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-forecast # def forecast(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.forecast' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb index e321e7d871..57b4e25494 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-buckets + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-buckets # def get_buckets(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_buckets' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb index 7251f54e40..c9d831ab47 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String, Time] :start Specifies to get events with timestamps after this time. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-calendar-events + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-calendar-events # def get_calendar_events(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_calendar_events' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb index 26d6c6e6b6..a198a7b393 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-calendars + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-calendars # def get_calendars(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_calendars' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb index 0afa5dab5f..2a4515354b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-categories + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-categories # def get_categories(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_categories' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb index 2fcab59fbb..d95c4343b8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb @@ -46,7 +46,7 @@ module Actions # be retrieved and then added to another cluster. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-data-frame-analytics + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-data-frame-analytics # def get_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_data_frame_analytics' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb index e408939427..39580edbce 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb @@ -41,7 +41,7 @@ module Actions # @option arguments [Boolean] :verbose Defines whether the stats response should be verbose. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-data-frame-analytics-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-data-frame-analytics-stats # def get_data_frame_analytics_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_data_frame_analytics_stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb index 58cbb9278d..825718e6d6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb @@ -43,7 +43,7 @@ module Actions # +404+ status code when there are no matches or only partial matches. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-datafeed-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-datafeed-stats # def get_datafeed_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_datafeed_stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb index 21849047cf..6693ab5f75 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb @@ -45,7 +45,7 @@ module Actions # be retrieved and then added to another cluster. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-datafeeds + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-datafeeds # def get_datafeeds(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_datafeeds' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb index 3a4c1063d6..6a75ecad3c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Integer] :size Specifies the maximum number of filters to obtain. Server default: 100. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-filters + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-filters # def get_filters(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_filters' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb index 79245406fa..5fa9355977 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-influencers + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-influencers # def get_influencers(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_influencers' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb index ae351aa2dd..519422cdb3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb @@ -38,7 +38,7 @@ module Actions # code when there are no matches or only partial matches. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-job-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-job-stats # def get_job_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_job_stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb index b59b9ecd72..85b9b30ff8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb @@ -44,7 +44,7 @@ module Actions # be retrieved and then added to another cluster. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-jobs + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-jobs # def get_jobs(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_jobs' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb index 13f5bb4b9a..b43d5433a3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb @@ -34,7 +34,7 @@ module Actions # fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-memory-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-memory-stats # def get_memory_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_memory_stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb index 2515be5b54..d18bcd4eaa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb @@ -37,7 +37,7 @@ module Actions # no matches or only partial matches. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-model-snapshot-upgrade-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-model-snapshot-upgrade-stats # def get_model_snapshot_upgrade_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_model_snapshot_upgrade_stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb index 41efb6ca22..070bcbca12 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-model-snapshots + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-model-snapshots # def get_model_snapshots(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_model_snapshots' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb index 5ad6d621f5..080321fc87 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb @@ -67,7 +67,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-overall-buckets + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-overall-buckets # def get_overall_buckets(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_overall_buckets' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb index b80c6bca74..2feee60298 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb @@ -48,7 +48,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-records + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-records # def get_records(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_records' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb index af7f75a551..daf53919fa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb @@ -47,7 +47,7 @@ module Actions # tags are returned. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-trained-models + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-trained-models # def get_trained_models(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_trained_models' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb index d95911aa51..658898acd2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [Integer] :size Specifies the maximum number of models to obtain. Server default: 100. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-trained-models-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-trained-models-stats # def get_trained_models_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.get_trained_models_stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb index c40a2b7555..2022419f27 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-infer-trained-model + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-infer-trained-model # def infer_trained_model(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.infer_trained_model' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb index c74af85130..aad9d7c138 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb @@ -33,7 +33,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-info + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-info # def info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.info' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb index 52a4c06281..3a7ded1ed6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-open-job + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-open-job # def open_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.open_job' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb index 50a5da4d67..bb44cfaaa6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-post-calendar-events + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-post-calendar-events # def post_calendar_events(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.post_calendar_events' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb index e7a38c065d..1721c938d3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body data # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-post-data + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-post-data # def post_data(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.post_data' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb index c7f0924720..aa22290240 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-preview-data-frame-analytics + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-preview-data-frame-analytics # def preview_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.preview_data_frame_analytics' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb index ab209af122..b940f32987 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb @@ -41,7 +41,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-preview-datafeed + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-preview-datafeed # def preview_datafeed(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.preview_datafeed' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb index 92409bf37f..f836eefb50 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-calendar + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-calendar # def put_calendar(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_calendar' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb index de1e603f3c..f9fa1ca272 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String, Array] :job_id An identifier for the anomaly detection jobs. It can be a job identifier, a group name, or a comma-separated list of jobs or groups. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-calendar-job + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-calendar-job # def put_calendar_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_calendar_job' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb index 48798ae7fd..63a61a93e7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-data-frame-analytics + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-data-frame-analytics # def put_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_data_frame_analytics' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb index 06c1376ebf..8de0c14e46 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb @@ -46,7 +46,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-datafeed + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-datafeed # def put_datafeed(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_datafeed' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb index e2389b083b..7818c12d96 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-filter + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-filter # def put_filter(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_filter' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb index ad5960bfa4..32f9bb398c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb @@ -41,7 +41,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-job + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-job # def put_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_job' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb index 2cefb4921b..ffc9efd594 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-trained-model + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-trained-model # def put_trained_model(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_trained_model' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb index a51e5433e1..54ad9045bf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb @@ -47,7 +47,7 @@ module Actions # already assigned and this parameter is false, the API returns an error. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-trained-model-alias + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-trained-model-alias # def put_trained_model_alias(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_trained_model_alias' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb index 86b99c93c0..c9a65ddb3f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-trained-model-definition-part + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-trained-model-definition-part # def put_trained_model_definition_part(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_trained_model_definition_part' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb index 857bb3c395..dcf9f74f22 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-put-trained-model-vocabulary + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-trained-model-vocabulary # def put_trained_model_vocabulary(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.put_trained_model_vocabulary' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb index 4eed60c620..ae26e4f96f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb @@ -36,7 +36,7 @@ module Actions # reset. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-reset-job + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-reset-job # def reset_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.reset_job' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb index f89e841e8b..e0f0df7146 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb @@ -44,7 +44,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-revert-model-snapshot + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-revert-model-snapshot # def revert_model_snapshot(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.revert_model_snapshot' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb index 6466ca4643..7d4d4979bc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Time] :timeout The time to wait for the request to be completed. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-set-upgrade-mode + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-set-upgrade-mode # def set_upgrade_mode(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.set_upgrade_mode' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb index cfc856a952..60842983ad 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb @@ -42,7 +42,7 @@ module Actions # starts. Server default: 20s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-start-data-frame-analytics + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-start-data-frame-analytics # def start_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.start_data_frame_analytics' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb index 315f2f7137..a9a6efc33e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb @@ -54,7 +54,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-start-datafeed + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-start-datafeed # def start_datafeed(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.start_datafeed' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb index 6af12449bb..64d8f9059a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb @@ -50,7 +50,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-start-trained-model-deployment + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-start-trained-model-deployment # def start_trained_model_deployment(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.start_trained_model_deployment' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb index 8aa0ea5dc2..676ba4658a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb @@ -43,7 +43,7 @@ module Actions # stops. Defaults to 20 seconds. Server default: 20s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-stop-data-frame-analytics + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-stop-data-frame-analytics # def stop_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.stop_data_frame_analytics' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb index 60907e993f..a2416e1bcb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb @@ -41,7 +41,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-stop-datafeed + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-stop-datafeed # def stop_datafeed(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.stop_datafeed' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb index 9316c25ad1..952476adaa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb @@ -33,7 +33,7 @@ module Actions # restart the model deployment. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-stop-trained-model-deployment + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-stop-trained-model-deployment # def stop_trained_model_deployment(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.stop_trained_model_deployment' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb index 1059a58d58..33c290608b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-data-frame-analytics + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-update-data-frame-analytics # def update_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.update_data_frame_analytics' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb index 85074eb75a..64783aa511 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-datafeed + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-update-datafeed # def update_datafeed(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.update_datafeed' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb index 06ee47086e..924830e47f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-filter + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-update-filter # def update_filter(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.update_filter' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb index 2d98a3019a..9077570d93 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-job + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-update-job # def update_job(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.update_job' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb index dfcaf0190b..5786a3fd4b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-model-snapshot + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-update-model-snapshot # def update_model_snapshot(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.update_model_snapshot' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb index 5461ecc3ef..3ee6f51f4b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-trained-model-deployment + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-update-trained-model-deployment # def update_trained_model_deployment(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.update_trained_model_deployment' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb index 2d1ca46d0c..d03a41760e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb @@ -40,7 +40,7 @@ module Actions # @option arguments [Time] :timeout Controls the time to wait for the request to complete. Server default: 30m. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-upgrade-job-snapshot + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-upgrade-job-snapshot # def upgrade_job_snapshot(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.upgrade_job_snapshot' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb b/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb index ddba03593c..2598e24a02 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb @@ -52,7 +52,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-mget + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-mget # def mget(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'mget' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb b/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb index dcf94e965d..f87356b286 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :index Comma-separate list of data streams or indices to check. Wildcard (*) expressions are supported. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-migration-deprecations + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-migration-deprecations # def deprecations(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'migration.deprecations' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb index ea9e243fbf..5ddb2fcd32 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb @@ -30,7 +30,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-migration-get-feature-upgrade-status + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-migration-get-feature-upgrade-status # def get_feature_upgrade_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'migration.get_feature_upgrade_status' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb b/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb index 65a6253807..fc8ed402c5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb @@ -30,7 +30,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-migration-get-feature-upgrade-status + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-migration-get-feature-upgrade-status # def post_feature_upgrade(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'migration.post_feature_upgrade' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb index 95bf7e4528..120a7fb03f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb @@ -58,7 +58,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body searches # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-msearch + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-msearch # def msearch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'msearch' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb index 48674552ce..b0c9e53385 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb @@ -46,7 +46,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body search_templates # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-msearch-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-msearch-template # def msearch_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'msearch_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb b/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb index ecef716fb1..8c6a6e435b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb @@ -49,7 +49,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-mtermvectors + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-mtermvectors # def mtermvectors(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'mtermvectors' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb index bf24782511..750122ae4e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Integer] :max_archive_version Specifies the maximum +archive_version+ to be cleared from the archive. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-clear-repositories-metering-archive + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-clear-repositories-metering-archive # def clear_repositories_metering_archive(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'nodes.clear_repositories_metering_archive' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb index 04c26ee052..029bd8b1d3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb @@ -31,11 +31,10 @@ module Actions # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String, Array] :node_id Comma-separated list of node IDs or names used to limit returned information. - # All the nodes selective options are explained {https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster.html#cluster-nodes here}. (*Required*) + # @option arguments [String, Array] :node_id Comma-separated list of node IDs or names used to limit returned information. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-get-repositories-metering-info + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-get-repositories-metering-info # def get_repositories_metering_info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'nodes.get_repositories_metering_info' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb index 3bdee5b48e..af74ef7206 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [String] :sort The sort order for 'cpu' type (default: total) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-hot-threads + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-hot-threads # def hot_threads(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'nodes.hot_threads' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb index 30581f8ae5..fea25d2a2f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-info + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-info # def info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'nodes.info' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb index 7305524369..e867f3c5fc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-reload-secure-settings + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-reload-secure-settings # def reload_secure_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'nodes.reload_secure_settings' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb index 35b99da1b6..4c55e3068f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb @@ -40,7 +40,7 @@ module Actions # @option arguments [Boolean] :include_unloaded_segments If +true+, the response includes information from segments that are not loaded into memory. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-stats # def stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'nodes.stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb index e28f8c4b22..989d96d9a1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb @@ -31,7 +31,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-nodes-usage + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-usage # def usage(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'nodes.usage' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb b/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb index f77430ed07..e3fcf37e81 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb @@ -64,7 +64,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-open-point-in-time + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-open-point-in-time # def open_point_in_time(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'open_point_in_time' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb index afa4759727..5457ee834d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb @@ -26,7 +26,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-cluster + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-cluster # def ping(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ping' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb b/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb index 8f992288d0..269f4dae7a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-put-script + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-put-script # def put_script(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'put_script' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb index 086e5e6849..be29a8405f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :rule_id The unique identifier of the query rule within the specified ruleset to delete (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-delete-rule + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-delete-rule # def delete_rule(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'query_rules.delete_rule' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb index 4dcdd82ae5..6674ea6c8e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :rule_id The unique identifier of the query rule within the specified ruleset to retrieve (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-get-rule + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-get-rule # def get_rule(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'query_rules.get_rule' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb index 32b7605928..2cbb229917 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :ruleset_id The unique identifier of the query ruleset (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-get-ruleset + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-get-ruleset # def get_ruleset(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'query_rules.get_ruleset' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb index af790eabcd..8ed278b0a5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Integer] :size The maximum number of results to retrieve. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-list-rulesets + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-list-rulesets # def list_rulesets(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'query_rules.list_rulesets' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb index 6137eb3aa5..9f48191d06 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-put-rule + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-put-rule # def put_rule(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'query_rules.put_rule' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb index 3c6c94365d..c5d5304920 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-put-ruleset + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-put-ruleset # def put_ruleset(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'query_rules.put_ruleset' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb index 9f994a3ed4..79a2bfad82 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-query-rules-test + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-test # def test(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'query_rules.test' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb b/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb index d7f4a5f210..a94d484832 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-rank-eval + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-rank-eval # def rank_eval(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'rank_eval' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb index c79b5b9950..8d4b2ab5a7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb @@ -175,7 +175,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-reindex + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-reindex # def reindex(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'reindex' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb index 251b0ddcfd..d24584210a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb @@ -36,7 +36,7 @@ module Actions # It can be either +-1+ to turn off throttling or any decimal number like +1.7+ or +12+ to throttle to that level. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-reindex + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-reindex # def reindex_rethrottle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'reindex_rethrottle' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb index 0d73feedac..190f3f6685 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-render-search-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-render-search-template # def render_search_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'render_search_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb b/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb index 3618704b6a..560e47f575 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-execute-api.html + # @see https://www.elastic.co/docs/reference/scripting-languages/painless/painless-api-examples # def scripts_painless_execute(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'scripts_painless_execute' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb b/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb index 6aef1c7613..c6e0c7524b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb @@ -43,7 +43,7 @@ module Actions # Deprecated since version 7.0.0 # # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-scroll + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-scroll # def scroll(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'scroll' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search.rb index 44808d4708..ce105f93de 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search.rb @@ -150,7 +150,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search # def search(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb index 0258e382df..badf81fb53 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :name The name of the search application to delete. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-delete + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-delete # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.delete' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb index f61dbcc479..5e836b5994 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :name The name of the analytics collection to be deleted (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-delete-behavioral-analytics + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-delete-behavioral-analytics # def delete_behavioral_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.delete_behavioral_analytics' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb index ec1512cee1..99cd0b43e0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :name The name of the search application (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-get + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-get # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.get' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb index 4b3fbb6518..83ca8e13a5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Array] :name A list of analytics collections to limit the returned information # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-get-behavioral-analytics + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-get-behavioral-analytics # def get_behavioral_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.get_behavioral_analytics' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb index d13f52fe89..39606f89c3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Integer] :size Specifies a max number of results to get. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-get-behavioral-analytics + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-get-behavioral-analytics # def list(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.list' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb index 1bf1b2ffba..765ad75480 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body payload # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-post-behavioral-analytics-event + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-post-behavioral-analytics-event # def post_behavioral_analytics_event(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.post_behavioral_analytics_event' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb index aa31b7b375..53a03928a0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body search_application # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-put + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-put # def put(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.put' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb index 0b6789da76..1d9a035112 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :name The name of the analytics collection to be created or updated. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-put-behavioral-analytics + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-put-behavioral-analytics # def put_behavioral_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.put_behavioral_analytics' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb index a2183ec60f..b045759f35 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-render-query + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-render-query # def render_query(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.render_query' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb index 296541707e..52ba099d2a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-application-search + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-search # def search(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_application.search' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb index 8a5850b60d..f2bc8f7373 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb @@ -173,7 +173,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-mvt + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-mvt # def search_mvt(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_mvt' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb index 650d78a078..f3a8eb39f4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb @@ -47,7 +47,7 @@ module Actions # @option arguments [String] :routing A custom value used to route operations to a specific shard. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-shards + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-shards # def search_shards(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_shards' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb index eedc6b23d8..cc599e85e6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb @@ -49,7 +49,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search-template + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-template # def search_template(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'search_template' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb index aba29a4436..b6c8cd8e11 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Time] :master_timeout [TODO] # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-searchable-snapshots-cache-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-searchable-snapshots-cache-stats # def cache_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'searchable_snapshots.cache_stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb index 9f6e8b6232..f96ac8810f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-searchable-snapshots-clear-cache + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-searchable-snapshots-clear-cache # def clear_cache(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'searchable_snapshots.clear_cache' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb index 14cbc50f68..f60838f40d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-searchable-snapshots-mount + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-searchable-snapshots-mount # def mount(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'searchable_snapshots.mount' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb index b14cc08e11..1b7c8c6730 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :level Return stats aggregated at cluster, index or shard level # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-searchable-snapshots-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-searchable-snapshots-stats # def stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'searchable_snapshots.stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb index 1820a7862e..ef73a3f119 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-activate-user-profile + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-activate-user-profile # def activate_user_profile(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.activate_user_profile' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb index d343ed41ed..c34455af24 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb @@ -30,7 +30,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-authenticate + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-authenticate # def authenticate(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.authenticate' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb index 16181fe490..a5f3fd771b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-bulk-delete-role + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-bulk-delete-role # def bulk_delete_role(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.bulk_delete_role' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb index 464bdfe127..433c8e40f9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-bulk-put-role + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-bulk-put-role # def bulk_put_role(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.bulk_put_role' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb index 5fd4b57238..e6ed1ed32a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-bulk-update-api-keys + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-bulk-update-api-keys # def bulk_update_api_keys(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.bulk_update_api_keys' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb index 296ef4fd8a..c8ccc63c61 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-change-password + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-change-password # def change_password(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.change_password' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb index e24496f632..531631e2e1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb @@ -31,7 +31,7 @@ module Actions # Does not support other wildcard patterns. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-api-key-cache + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-clear-api-key-cache # def clear_api_key_cache(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.clear_api_key_cache' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb index 5007b253b7..96514f8500 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb @@ -31,7 +31,7 @@ module Actions # It does not support other wildcard patterns. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-cached-privileges + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-clear-cached-privileges # def clear_cached_privileges(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.clear_cached_privileges' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb index b4df7c77b7..52d8f7faa2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb @@ -36,7 +36,7 @@ module Actions # If you do not specify this parameter, the API evicts all users from the user cache. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-cached-realms + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-clear-cached-realms # def clear_cached_realms(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.clear_cached_realms' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb index cc4443f1ad..680fd86e7f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb @@ -30,7 +30,7 @@ module Actions # It does not support other wildcard patterns. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-cached-roles + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-clear-cached-roles # def clear_cached_roles(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.clear_cached_roles' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb index 9c75240a35..1a404e26bb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb @@ -36,7 +36,7 @@ module Actions # It does not support other wildcard patterns. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-clear-cached-service-tokens + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-clear-cached-service-tokens # def clear_cached_service_tokens(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.clear_cached_service_tokens' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb index 3810fba2bc..a8c2305dde 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-create-api-key + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-create-api-key # def create_api_key(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.create_api_key' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb index 939ec2f287..8fd05dde1b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-create-cross-cluster-api-key + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-create-cross-cluster-api-key # def create_cross_cluster_api_key(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.create_cross_cluster_api_key' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb index 3315f2d18f..584dbc17d3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [String] :refresh If +true+ then refresh the affected shards to make this operation visible to search, if +wait_for+ (the default) then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-create-service-token + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-create-service-token # def create_service_token(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.create_service_token' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb index e02386aaf6..0c483f6146 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delegate-pki + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delegate-pki # def delegate_pki(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.delegate_pki' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb index 494c5608e8..4aa4a6ad03 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-privileges + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delete-privileges # def delete_privileges(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.delete_privileges' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb index b1d73aa58c..57a38c0207 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-role + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delete-role # def delete_role(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.delete_role' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb index b8a11535d0..7b4ba25d56 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-role-mapping + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delete-role-mapping # def delete_role_mapping(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.delete_role_mapping' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb index 67b74f02ad..8a724d18ba 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :refresh If +true+ then refresh the affected shards to make this operation visible to search, if +wait_for+ (the default) then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-service-token + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delete-service-token # def delete_service_token(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.delete_service_token' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb index 614c4c6501..956571cfb9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-delete-user + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delete-user # def delete_user(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.delete_user' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb index 1111e9af70..3a7946af59 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-disable-user + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-disable-user # def disable_user(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.disable_user' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb index 15990f220d..437e8392ad 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb @@ -36,7 +36,7 @@ module Actions # If 'false', it does nothing with refreshes. Server default: false. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-disable-user-profile + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-disable-user-profile # def disable_user_profile(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.disable_user_profile' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb index cf5fefa7da..a696e91575 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-enable-user + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-enable-user # def enable_user(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.enable_user' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb index 7ba93281ea..1b71e3d4f0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb @@ -37,7 +37,7 @@ module Actions # If 'false', nothing is done with refreshes. Server default: false. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-enable-user-profile + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-enable-user-profile # def enable_user_profile(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.enable_user_profile' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb index a85a0bb38c..b706c091a3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb @@ -29,7 +29,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-enroll-kibana + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-enroll-kibana # def enroll_kibana(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.enroll_kibana' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb index d29ac10913..ca502606c1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb @@ -29,7 +29,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-enroll-node + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-enroll-node # def enroll_node(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.enroll_node' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb index 259c0643a8..2163ecac5d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb @@ -46,7 +46,7 @@ module Actions # @option arguments [Boolean] :with_profile_uid Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-api-key + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-api-key # def get_api_key(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_api_key' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb index 68fdc06bcb..d3dbb18d8d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb @@ -27,7 +27,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-builtin-privileges + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-builtin-privileges # def get_builtin_privileges(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_builtin_privileges' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb index e592c8bf51..b2c0789482 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb @@ -34,7 +34,7 @@ module Actions # If you do not specify this parameter, the API returns information about all privileges for the requested application. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-privileges + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-privileges # def get_privileges(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_privileges' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb index 47daddc981..9598f177d2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb @@ -32,7 +32,7 @@ module Actions # If you do not specify this parameter, the API returns information about all roles. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-role + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-role # def get_role(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_role' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb index ecc7d53032..4976ea1e19 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String, Array] :name The distinct name that identifies the role mapping. The name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way. You can specify multiple mapping names as a comma-separated list. If you do not specify this parameter, the API returns information about all role mappings. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-role-mapping + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-role-mapping # def get_role_mapping(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_role_mapping' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb index 869557efd2..8dd67ac4c4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb @@ -33,7 +33,7 @@ module Actions # Omit this parameter to retrieve information about all service accounts that belong to the specified +namespace+. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-service-accounts + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-service-accounts # def get_service_accounts(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_service_accounts' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb index b3e62afdb7..adfba22613 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :service The service name. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-service-credentials + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-service-credentials # def get_service_credentials(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_service_credentials' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb index 3f880b7671..4ae3cebb53 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb @@ -33,7 +33,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-settings + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-settings # def get_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_settings' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb index 18ec4c54fd..dcf31b3f45 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-token + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-token # def get_token(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_token' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb index 718ef8b6a2..519cf98805 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Boolean] :with_profile_uid Determines whether to retrieve the user profile UID, if it exists, for the users. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-user + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-user # def get_user(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_user' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb index bf8a58eb27..db3415af1c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Name, Null] :username [TODO] # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-user-privileges + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-user-privileges # def get_user_privileges(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_user_privileges' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb index 5ff39cbae5..78ee9dfe95 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb @@ -35,7 +35,7 @@ module Actions # By default returns no +data+ content. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-user-profile + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-user-profile # def get_user_profile(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.get_user_profile' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb index 929cb91918..5a8e27b10f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-grant-api-key + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-grant-api-key # def grant_api_key(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.grant_api_key' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb index 2e5ed520f8..20fd245fa0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-has-privileges + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-has-privileges # def has_privileges(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.has_privileges' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb index 4c9e5c5fec..e93945f32f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-has-privileges-user-profile + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-has-privileges-user-profile # def has_privileges_user_profile(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.has_privileges_user_profile' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb index 951f2ca7a0..cf641b1e40 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-invalidate-api-key + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-invalidate-api-key # def invalidate_api_key(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.invalidate_api_key' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb index a10a433d20..d133fed460 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-invalidate-token + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-invalidate-token # def invalidate_token(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.invalidate_token' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb index b117faf7e8..fd5e0372cb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-oidc-authenticate + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-oidc-authenticate # def oidc_authenticate(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.oidc_authenticate' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb index e0faf9bbfb..6020564fd1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-oidc-logout + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-oidc-logout # def oidc_logout(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.oidc_logout' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb index 8accec4a05..48b27f73fe 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-oidc-prepare-authentication + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-oidc-prepare-authentication # def oidc_prepare_authentication(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.oidc_prepare_authentication' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb index fc6c9765ab..b3f16bb4ac 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb @@ -40,7 +40,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body privileges # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-privileges + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-put-privileges # def put_privileges(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.put_privileges' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb index 70bddd7c69..f6b023b7ca 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-role + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-put-role # def put_role(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.put_role' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb index 7e6c1f3bf3..b7be0f3982 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb @@ -47,7 +47,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-role-mapping + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-put-role-mapping # def put_role_mapping(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.put_role_mapping' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb index a525745c97..39729fde7a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-put-user + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-put-user # def put_user(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.put_user' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb index 19812f21cd..ce49bffe45 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-query-api-keys + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-query-api-keys # def query_api_keys(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.query_api_keys' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb index 357240df7e..2df09d9eac 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-query-role + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-query-role # def query_role(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.query_role' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb index 5f0e917d24..6f183a9940 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-query-user + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-query-user # def query_user(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.query_user' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb index 4bdbef1763..a004e88f79 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-authenticate + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-saml-authenticate # def saml_authenticate(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.saml_authenticate' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb index a048172eeb..4cdf71edfd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-complete-logout + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-saml-complete-logout # def saml_complete_logout(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.saml_complete_logout' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb index 5a80c1adcd..709301986d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-invalidate + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-saml-invalidate # def saml_invalidate(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.saml_invalidate' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb index 5318467a53..cc8c242843 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-logout + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-saml-logout # def saml_logout(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.saml_logout' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb index 5a634cbae0..574a3a1410 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-prepare-authentication + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-saml-prepare-authentication # def saml_prepare_authentication(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.saml_prepare_authentication' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb index cc1699b02a..8e242705c3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :realm_name The name of the SAML realm in Elasticsearch. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-saml-service-provider-metadata + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-saml-service-provider-metadata # def saml_service_provider_metadata(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.saml_service_provider_metadata' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb index 87e497b3c2..6e649a71d5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-suggest-user-profiles + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-suggest-user-profiles # def suggest_user_profiles(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.suggest_user_profiles' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb index b272f66cd5..f6cb32b70a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb @@ -41,7 +41,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-api-key + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-update-api-key # def update_api_key(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.update_api_key' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb index ee6ff96b8c..16c9c4b39a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-cross-cluster-api-key + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-update-cross-cluster-api-key # def update_cross_cluster_api_key(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.update_cross_cluster_api_key' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb index 5d26dbb8f3..61c1b1ed64 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-settings + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-update-settings # def update_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.update_settings' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb index 4344974745..d5619e7b05 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-update-user-profile-data + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-update-user-profile-data # def update_user_profile_data(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'security.update_user_profile_data' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb b/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb index f90d9eea27..a24664a008 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb @@ -48,7 +48,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-simulate-ingest + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-simulate-ingest # def ingest(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'simulate.ingest' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb index d1dcfb8519..03d6d11c01 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb @@ -34,7 +34,7 @@ module Actions # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-cleanup-repository + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-cleanup-repository # def cleanup_repository(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.cleanup_repository' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb index 6774ae513f..5c1b22f0e8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-clone + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-clone # def clone(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.clone' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb index 2a33ff7284..c8c34f7851 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-create + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-create # def create(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.create' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb index fa31b46cc2..fdb0e1a27a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body repository # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-create-repository + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-create-repository # def create_repository(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.create_repository' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb index 1f47f0c2ae..dac24a237f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb @@ -32,7 +32,7 @@ module Actions # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-delete + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-delete # def delete(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.delete' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb index 86859d8018..d45c4edf5a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb @@ -36,7 +36,7 @@ module Actions # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-delete-repository + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-delete-repository # def delete_repository(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.delete_repository' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb index 2764523ef5..4501930b69 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb @@ -59,7 +59,7 @@ module Actions # @option arguments [Boolean] :verbose If +true+, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.NOTE: The parameters +size+, +order+, +after+, +from_sort_value+, +offset+, +slm_policy_filter+, and +sort+ are not supported when you set +verbose=false+ and the sort order for requests with +verbose=false+ is undefined. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-get + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-get # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.get' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb index cd28d14211..66681ec87a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb @@ -33,7 +33,7 @@ module Actions # To indicate that the request should never timeout, set it to +-1+. Server default: to 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-get-repository + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-get-repository # def get_repository(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.get_repository' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb index 2f2a4e15a5..2eebb9a78b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb @@ -119,7 +119,7 @@ module Actions # If no response is received before the timeout expires, the test is cancelled and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-repository-analyze + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-repository-analyze # def repository_analyze(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.repository_analyze' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb index f081373e41..499fa4e030 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb @@ -46,7 +46,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-restore + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-restore # def restore(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.restore' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb index d270d55221..de016489a5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb @@ -47,7 +47,7 @@ module Actions # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-status + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-status # def status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.status' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb index aea20ebcec..e598fa0221 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb @@ -34,7 +34,7 @@ module Actions # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-snapshot-verify-repository + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-verify-repository # def verify_repository(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'snapshot.verify_repository' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb index 9bd26c2282..752925a43a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb @@ -33,7 +33,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-delete-lifecycle + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-delete-lifecycle # def delete_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.delete_lifecycle' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb index ebd69275a2..8adc4ac545 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb @@ -33,7 +33,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-execute-lifecycle + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-execute-lifecycle # def execute_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.execute_lifecycle' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb index b5d1252d5e..b07bca7c22 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb @@ -32,7 +32,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-execute-retention + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-execute-retention # def execute_retention(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.execute_retention' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb index 4b8ef8b6e5..e2b69b2565 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb @@ -32,7 +32,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-get-lifecycle + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-get-lifecycle # def get_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.get_lifecycle' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb index d4e865ffff..ea84205b32 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-get-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-get-stats # def get_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.get_stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb index 335cf26ccf..e5489c9d99 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb @@ -32,7 +32,7 @@ module Actions # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-get-status + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-get-status # def get_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.get_status' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb index e0158652bb..97496d3c7b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-put-lifecycle + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-put-lifecycle # def put_lifecycle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.put_lifecycle' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb index 6eacac6a51..693e1228ac 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb @@ -34,7 +34,7 @@ module Actions # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-start + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-start # def start(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.start' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb index ada3fd17e9..8c8404da94 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb @@ -38,7 +38,7 @@ module Actions # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-slm-stop + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-stop # def stop(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'slm.stop' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb index 70cf7c3956..591dd11414 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb @@ -27,7 +27,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-clear-cursor + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-sql-clear-cursor # def clear_cursor(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'sql.clear_cursor' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb index d55dedd5a8..c3d1c227c4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :id The identifier for the search. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-delete-async + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-sql-delete-async # def delete_async(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'sql.delete_async' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb index be93a52c91..7d01036b6e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb @@ -38,7 +38,7 @@ module Actions # It defaults to no timeout, meaning the request waits for complete search results. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-get-async + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-sql-get-async # def get_async(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'sql.get_async' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb index 15baca1c96..df222387c3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :id The identifier for the search. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-get-async-status + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-sql-get-async-status # def get_async_status(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'sql.get_async_status' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb index a7c0c200e5..2f0d225870 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-query + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-sql-query # def query(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'sql.query' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb index 14e8e89f4c..5111adca36 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-translate + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-sql-translate # def translate(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'sql.translate' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb index 5d6f2882a2..6ad12c2fbb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb @@ -36,7 +36,7 @@ module Actions # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ssl-certificates + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ssl-certificates # def certificates(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ssl.certificates' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb index 131c8abbe4..935f9d31ae 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb @@ -39,7 +39,7 @@ module Actions # @option arguments [String] :id The synonyms set identifier to delete. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-delete-synonym + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-delete-synonym # def delete_synonym(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'synonyms.delete_synonym' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb index fa433aa937..1313b51d31 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :rule_id The ID of the synonym rule to delete. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-delete-synonym-rule + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-delete-synonym-rule # def delete_synonym_rule(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'synonyms.delete_synonym_rule' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb index aebd55d8ac..c049d83238 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Integer] :size The max number of query rules to retrieve. Server default: 10. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-get-synonym + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-get-synonym # def get_synonym(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'synonyms.get_synonym' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb index fed3016155..fcafe680e7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :rule_id The ID of the synonym rule to retrieve. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-get-synonym-rule + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-get-synonym-rule # def get_synonym_rule(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'synonyms.get_synonym_rule' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb index f3b1297bc0..13c547833c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Integer] :size The maximum number of synonyms sets to retrieve. Server default: 10. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-get-synonym + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-get-synonym # def get_synonyms_sets(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'synonyms.get_synonyms_sets' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb index 138bb900c6..b951478145 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-put-synonym + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-put-synonym # def put_synonym(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'synonyms.put_synonym' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb index 64243d40f0..34df4121f5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-put-synonym-rule + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-put-synonym-rule # def put_synonym_rule(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'synonyms.put_synonym_rule' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb index 3f6f0ccf2d..b5ae0b891c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb @@ -43,7 +43,7 @@ module Actions # @option arguments [Boolean] :wait_for_completion If true, the request blocks until all found tasks are complete. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-tasks + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-tasks # def cancel(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'tasks.cancel' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb index 3ca9ae65d5..6942495b02 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks until the task has completed. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-tasks + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-tasks # def get(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'tasks.get' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb index 317642ee95..87da7ab0a9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb @@ -95,7 +95,7 @@ module Actions # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks until the operation is complete. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-tasks + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-tasks # def list(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'tasks.list' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb b/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb index ce09a037b1..e4385f7ce1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-terms-enum + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-terms-enum # def terms_enum(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'terms_enum' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb b/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb index eacb145c24..9ec71bc47e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb @@ -66,7 +66,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-termvectors + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-termvectors # def termvectors(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'termvectors' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb index 2cef2c2986..98e8d517f8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb @@ -103,7 +103,7 @@ module Actions # When the format is semi-structured text, this will result in the structure finder treating the text as single-line messages. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-text_structure + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-text_structure # def find_field_structure(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'text_structure.find_field_structure' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb index 6fc99b4d65..9c4b88d9f8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb @@ -100,7 +100,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-text-structure-find-message-structure + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-text-structure-find-message-structure # def find_message_structure(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'text_structure.find_message_structure' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb index 1b4a535fd8..e49a881fd0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb @@ -114,7 +114,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body text_files # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-text-structure-find-structure + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-text-structure-find-structure # def find_structure(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'text_structure.find_structure' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb index df8bdbde39..71c36310d3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-text-structure-test-grok-pattern + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-text-structure-test-grok-pattern # def test_grok_pattern(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'text_structure.test_grok_pattern' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb index 89373e3acf..3b84080930 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-delete-transform + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-delete-transform # def delete_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.delete_transform' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb index 91dcc59eb9..da21c6895c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb @@ -42,7 +42,7 @@ module Actions # be retrieved and then added to another cluster. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-get-transform + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-get-transform # def get_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.get_transform' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb index 3b95969bc6..e566c26127 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb @@ -40,7 +40,7 @@ module Actions # @option arguments [Time] :timeout Controls the time to wait for the stats # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-get-transform-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-get-transform-stats # def get_transform_stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.get_transform_stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb index 27a9978262..6a22e964b5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-preview-transform + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-preview-transform # def preview_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.preview_transform' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb index c8c4f3e32c..7c8caac245 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb @@ -52,7 +52,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-put-transform + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-put-transform # def put_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.put_transform' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb index 5bb1dc9e28..123515afee 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-reset-transform + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-reset-transform # def reset_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.reset_transform' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb index 60e9630bf9..ee740dda6f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Time] :timeout Controls the time to wait for the scheduling to take place Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-schedule-now-transform + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-schedule-now-transform # def schedule_now_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.schedule_now_transform' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb index 48fea92273..526d83f0ff 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [String] :from Restricts the set of transformed entities to those changed after this time. Relative times like now-30d are supported. Only applicable for continuous transforms. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-start-transform + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-start-transform # def start_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.start_transform' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb index 474a880bc5..c8338f6fff 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb @@ -41,7 +41,7 @@ module Actions # immediately and the indexer is stopped asynchronously in the background. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-stop-transform + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-stop-transform # def stop_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.stop_transform' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb index 014ecda2aa..75241f92d2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb @@ -39,7 +39,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-update-transform + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-update-transform # def update_transform(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.update_transform' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb index 0a3717e86b..e2b6a75c98 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb @@ -40,7 +40,7 @@ module Actions # returns an error. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-upgrade-transforms + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-upgrade-transforms # def upgrade_transforms(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.upgrade_transforms' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update.rb index cd71f18ea4..acdfbff666 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update.rb @@ -61,7 +61,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-update + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-update # def update(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'update' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb index 0abbf268ca..d57ef2bab3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb @@ -150,7 +150,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-update-by-query + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-update-by-query # def update_by_query(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'update_by_query' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb index d01810fb44..da59c25bb8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb @@ -30,7 +30,7 @@ module Actions # To turn off throttling, set it to +-1+. Server default: -1. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-update-by-query-rethrottle + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-update-by-query-rethrottle # def update_by_query_rethrottle(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'update_by_query_rethrottle' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb index 0597aa10d2..6b810799d4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb @@ -35,7 +35,7 @@ module Actions # If you omit this parameter, all of the actions of the watch are acknowledged. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-ack-watch + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-ack-watch # def ack_watch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.ack_watch' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb index 4bd6603310..44dd212aa4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :watch_id The watch identifier. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-activate-watch + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-activate-watch # def activate_watch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.activate_watch' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb index c2c80414fb..39dfcc10d2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :watch_id The watch identifier. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-deactivate-watch + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-deactivate-watch # def deactivate_watch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.deactivate_watch' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb index e30f3324cd..7dd45a6925 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :id The watch identifier. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-delete-watch + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-delete-watch # def delete_watch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.delete_watch' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb index d24e74b3a5..4dd4ebbe8e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-execute-watch + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-execute-watch # def execute_watch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.execute_watch' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb index 4ff78f573a..e27d95113b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb @@ -30,7 +30,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-get-settings + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-get-settings # def get_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.get_settings' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb index 56a5c74dd1..dc9313f093 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb @@ -27,7 +27,7 @@ module Actions # @option arguments [String] :id The watch identifier. (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-get-watch + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-get-watch # def get_watch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.get_watch' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb index a33053d7d8..99fdd90c1d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb @@ -41,7 +41,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-put-watch + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-put-watch # def put_watch(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.put_watch' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb index 144bbbb326..fed6ec16e8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-query-watches + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-query-watches # def query_watches(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.query_watches' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb index 127a4b17c7..c02f8559c8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-start + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-start # def start(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.start' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb index b9472aa98f..bbd772bc30 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Boolean] :emit_stacktraces Defines whether stack traces are generated for each watch that is running. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-stats + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-stats # def stats(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.stats' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb index 915ff2b7ac..c521d0f191 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb @@ -30,7 +30,7 @@ module Actions # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-stop + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-stop # def stop(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.stop' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb index bd205d873b..c97ef597bf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-update-settings + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-update-settings # def update_settings(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.update_settings' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb index 5cb6731ce8..c1e5be3bfd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb @@ -35,7 +35,7 @@ module Actions # In particular, it adds descriptions and a tag line. Server default: true. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-info + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-info # def info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'xpack.info' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb index d0224f2472..c504e1ee07 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb @@ -31,7 +31,7 @@ module Actions # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-xpack + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-xpack # def usage(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'xpack.usage' } diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index ea92083ae0..7856a13f24 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.0'.freeze - ES_SPECIFICATION_COMMIT = 'f2651fcb540f55100a80629192c021fd2e7a019c'.freeze + ES_SPECIFICATION_COMMIT = '4396e621134e40fe50a4b770c0487c1770763e43'.freeze end end From 5271100173b6457ef47f5e0a668c43bca54586e7 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 14 Apr 2025 19:41:48 +0100 Subject: [PATCH 30/75] [API] Removes knn_search This API was only ever experimental and was deprecated, it isn't supported in 9.0, and only works with `compatible-with=8` is set. --- .../elasticsearch/api/actions/knn_search.rb | 82 ------------------- .../lib/elasticsearch/api/version.rb | 2 +- .../spec/unit/actions/knn_search_spec.rb | 35 -------- .../spec/unit/perform_request_spec.rb | 2 +- 4 files changed, 2 insertions(+), 119 deletions(-) delete mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/knn_search.rb delete mode 100644 elasticsearch-api/spec/unit/actions/knn_search_spec.rb diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/knn_search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/knn_search.rb deleted file mode 100644 index 4da3c30b2c..0000000000 --- a/elasticsearch-api/lib/elasticsearch/api/actions/knn_search.rb +++ /dev/null @@ -1,82 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# This code was automatically generated from the Elasticsearch Specification -# See https://github.com/elastic/elasticsearch-specification -# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. -module Elasticsearch - module API - module Actions - # Run a knn search. - # NOTE: The kNN search API has been replaced by the +knn+ option in the search API. - # Perform a k-nearest neighbor (kNN) search on a dense_vector field and return the matching documents. - # Given a query vector, the API finds the k closest vectors and returns those documents as search hits. - # Elasticsearch uses the HNSW algorithm to support efficient kNN search. - # Like most kNN algorithms, HNSW is an approximate method that sacrifices result accuracy for improved search speed. - # This means the results returned are not always the true k closest neighbors. - # The kNN search API supports restricting the search using a filter. - # The search will return the top k documents that also match the filter query. - # A kNN search response has the exact same structure as a search API response. - # However, certain sections have a meaning specific to kNN search: - # * The document +_score+ is determined by the similarity between the query and document vector. - # * The +hits.total+ object contains the total number of nearest neighbor candidates considered, which is +num_candidates * num_shards+. The +hits.total.relation+ will always be +eq+, indicating an exact value. - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. - # - # @option arguments [String, Array] :index A comma-separated list of index names to search; - # use +_all+ or to perform the operation on all indices. (*Required*) - # @option arguments [String] :routing A comma-separated list of specific routing values. - # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body request body - # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-knn-search - # - def knn_search(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || 'knn_search' } - - defined_params = [:index].each_with_object({}) do |variable, set_variables| - set_variables[variable] = arguments[variable] if arguments.key?(variable) - end - request_opts[:defined_params] = defined_params unless defined_params.empty? - - raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] - - arguments = arguments.clone - headers = arguments.delete(:headers) || {} - - body = arguments.delete(:body) - - _index = arguments.delete(:index) - - method = if body - Elasticsearch::API::HTTP_POST - else - Elasticsearch::API::HTTP_GET - end - - path = "#{Utils.listify(_index)}/_knn_search" - params = Utils.process_params(arguments) - - Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers, request_opts) - ) - end - end - end -end diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index 7856a13f24..18bfc42146 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.0'.freeze - ES_SPECIFICATION_COMMIT = '4396e621134e40fe50a4b770c0487c1770763e43'.freeze + ES_SPECIFICATION_COMMIT = 'c02d8eb89a4efb3e719bd783715e2bf312479af8'.freeze end end diff --git a/elasticsearch-api/spec/unit/actions/knn_search_spec.rb b/elasticsearch-api/spec/unit/actions/knn_search_spec.rb deleted file mode 100644 index 2400b84238..0000000000 --- a/elasticsearch-api/spec/unit/actions/knn_search_spec.rb +++ /dev/null @@ -1,35 +0,0 @@ -# Licensed to Elasticsearch B.V. under one or more contributor -# license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright -# ownership. Elasticsearch B.V. licenses this file to you under -# the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -require 'spec_helper' - -describe 'client#knn_search' do - let(:expected_args) do - [ - 'GET', - 'foo/_knn_search', - { }, - nil, - {}, - { endpoint: 'knn_search', defined_params: { index: 'foo' } } - ] - end - - it 'performs the request' do - expect(client_double.knn_search(index: 'foo')).to be_a Elasticsearch::API::Response - end -end diff --git a/elasticsearch-api/spec/unit/perform_request_spec.rb b/elasticsearch-api/spec/unit/perform_request_spec.rb index cade50b6f1..8a9f98e0ae 100644 --- a/elasticsearch-api/spec/unit/perform_request_spec.rb +++ b/elasticsearch-api/spec/unit/perform_request_spec.rb @@ -27,7 +27,7 @@ spec.visibility != 'public' || # TODO: Once the test suite is migrated to elasticsearch-specification, these should be removed spec.module_namespace.flatten.first == 'rollup' || - ['scroll', 'clear_scroll', 'connector.last_sync'].include?(spec.endpoint_name) + ['scroll', 'clear_scroll', 'connector.last_sync', 'knn_search'].include?(spec.endpoint_name) # These are the path parts defined by the user in the method argument defined_path_parts = spec.path_params.inject({}) do |params, part| From aeb415d9e18f0b784d697d0e128270bfbd9d71fe Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 14 Apr 2025 12:36:55 +0100 Subject: [PATCH 31/75] [DOCS] Updates elastic-transport information --- docs/reference/transport.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/reference/transport.md b/docs/reference/transport.md index fa38c71f2d..24cecadde4 100644 --- a/docs/reference/transport.md +++ b/docs/reference/transport.md @@ -21,9 +21,11 @@ Currently these libraries are supported: * [Typhoeus](https://github.com/typhoeus/typhoeus) * [HTTPClient](https://rubygems.org/gems/httpclient) * [Net::HTTP::Persistent](https://rubygems.org/gems/net-http-persistent) +* [Excon](https://github.com/excon/faraday-excon) +* [Async::HTTP](https://github.com/socketry/async-http-faraday) ::::{note} -Use [Typhoeus](https://github.com/typhoeus/typhoeus) v1.4.0 or up since older versions are not compatible with Faraday 1.0. +If using [Typhoeus](https://github.com/typhoeus/typhoeus), v1.4.0 or up is needed, since older versions are not compatible with Faraday 1.0. :::: From b7bf77239ce1937ce28017d5ba1dea2c87232533 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 14 Apr 2025 15:52:06 +0100 Subject: [PATCH 32/75] [DOCS] Breaking changes update --- docs/release-notes/breaking-changes.md | 32 +++++++++++++++++++------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/docs/release-notes/breaking-changes.md b/docs/release-notes/breaking-changes.md index fba96055e4..29746c6949 100644 --- a/docs/release-notes/breaking-changes.md +++ b/docs/release-notes/breaking-changes.md @@ -17,12 +17,28 @@ To learn how to upgrade, check out . % **Action**
Steps for mitigating deprecation impact. % :::: -% ## 9.0.0 [elasticsearch-ruby-client-900-breaking-changes] -% **Release date:** March 25, 2025 +## 9.0.0 [elasticsearch-ruby-client-900-breaking-changes] -% ::::{dropdown} Title of breaking change -% Description of the breaking change. -% For more information, check [PR #](PR link). -% **Impact**
Impact of the breaking change. -% **Action**
Steps for mitigating deprecation impact. -% :::: \ No newline at end of file +### Scroll APIs need to send scroll_id in request body + +Sending the `scroll_id` as a parameter has been deprecated since version 7.0.0. It needs to be specified in the request body for `clear_scroll` and `scroll`. + +**Impact**
+ +Client code using `clear_scroll` or `scroll` APIs and the deprecated `scroll_id` as a parameter needs to be updated. + +**Action**
+ +If you are using the `clear_scroll` or `scroll` APIs, and sending the `scroll_id` as a parameter, you need to update your code to send the `scroll_id` as part of the request body: +```ruby +# Before: +client.clear_scroll(scroll_id: scroll_id) +# Now: +client.clear_scroll(body: { scroll_id: scroll_id }) + +# Before: +client.scroll(scroll_id: scroll_id) +# Now: +client.scroll(body: { scroll_id: scroll_id }) +``` +% :::: From 0aeeedc11ad258bf3b6bcc7103b9e9a027f51dbd Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 14 Apr 2025 12:32:49 +0100 Subject: [PATCH 33/75] [DOCS] Updates 9.0 release notes --- CHANGELOG-9.x.md | 29 ---------------------------- docs/release-notes/deprecations.md | 6 +++++- docs/release-notes/index.md | 31 +++++++++++++++++++++++++++++- docs/release-notes/known-issues.md | 6 +++++- 4 files changed, 40 insertions(+), 32 deletions(-) delete mode 100644 CHANGELOG-9.x.md diff --git a/CHANGELOG-9.x.md b/CHANGELOG-9.x.md deleted file mode 100644 index ac6004d0f8..0000000000 --- a/CHANGELOG-9.x.md +++ /dev/null @@ -1,29 +0,0 @@ -# CHANGELOG 9.x - -## Gem - -The size of both `elasticsearch` and `elasticsearch-api` gems will be smaller, since some unnecessary files that were being included in the gem have been removed. There's also been a lot of old code cleanup for `9.x`. - -The required Ruby version is set to `2.6` to keep compatiblity wit JRuby 9.3. However, we only test the code against currently supported Ruby versions. - -## Elasticsearch Serverless - -The CI build now runs tests to ensure compatibility with Elasticsearch Serverless. You can use this gem for your Serverless deployments. - -## Elasticsearch API - -* The source code is now based on `elasticsearch-specification`, so the API documentation is much more detailed and extensive. -* Scroll APIs: Since sending the `scroll_id` as a parameter was deprecated, now it needs to be sent in the body for `clear_scroll`, `scroll`. -* `indices.get_field_mapping` - `:fields` is a required parameter. -* The functions in `utils.rb` that had names starting with double underscore have been renamed to remove the underscores. - -### Development - -#### Testing - -The gem migrated away from the Elasticsearch REST API tests and test runner in CI. We now run the [Elasticsearch Client tests](https://github.com/elastic/elasticsearch-clients-tests/) with the [Elasticsearch Tests Runner](https://github.com/elastic/es-test-runner-ruby). This gives us more control on what we're testing and makes the Buildkite build way faster in Pull Requests and scheduled builds. - -#### Rake tasks - -* Some old rake tasks that were not being used have been removed. The rest were streamlined, the `es` namespace has been streamlined to make it easier to run Elasticsearch with Docker during development. The `docker` namespace was merged into `es`. -* Elasticsearch's REST API Spec tests can still be ran with `rake test:deprecated:rest_api` and setting the corresponding value for the environment variable `TEST_SUITE` ('platinum' or 'free'). diff --git a/docs/release-notes/deprecations.md b/docs/release-notes/deprecations.md index 4c27fcb8bd..04c3e83766 100644 --- a/docs/release-notes/deprecations.md +++ b/docs/release-notes/deprecations.md @@ -7,6 +7,10 @@ Review the deprecated functionality for your Elasticsearch Ruby Client version. To learn how to upgrade, check out . +## 9.0.0 [elasticsearch-ruby-client-900-deprecations] + +_No deprecations_ + % ## Next version [elasticsearch-ruby-client-versionnext-deprecations] % **Release date:** Month day, year @@ -25,4 +29,4 @@ To learn how to upgrade, check out . % For more information, check [PR #](PR link). % **Impact**
Impact of deprecation. % **Action**
Steps for mitigating deprecation impact. -% :::: \ No newline at end of file +% :::: diff --git a/docs/release-notes/index.md b/docs/release-notes/index.md index c2d13a705e..949f173eec 100644 --- a/docs/release-notes/index.md +++ b/docs/release-notes/index.md @@ -24,4 +24,33 @@ To check for security updates, go to [Security announcements for the Elastic sta ### Features and enhancements [elasticsearch-ruby-client-900-features-enhancements] -### Fixes [elasticsearch-ruby-client-900-fixes] \ No newline at end of file +Ruby 3.2 and up are tested and supported for 9.0. Older versions of Ruby have reached their end of life. We follow Ruby’s own maintenance policy and officially support all currently maintained versions per [Ruby Maintenance Branches](https://www.ruby-lang.org/en/downloads/branches/). The required Ruby version is set to `2.6` to keep compatiblity wit JRuby 9.3. However, we only test the code against currently supported Ruby versions. + +#### Gem + +The size of both `elasticsearch` and `elasticsearch-api` gems is smaller than in previous versions. Some unnecessary files that were being included in the gem have now been removed. There has also been a lot of old code cleanup for the `9.x` branch. + +#### Elasticsearch Serverless + +With the release of `9.0`, the [Elasticsearch Serverless](https://github.com/elastic/elasticsearch-serverless-ruby) client has been discontinued. You can use this client to build your Elasticsearch Serverless Ruby applications. The Elasticsearch Serverless API is fully supported. The CI build for Elasticsearch Ruby runs tests to ensure compatibility with Elasticsearch Serverless. + +#### Elasticsearch API + +* The source code is now generated from [`elasticsearch-specification`](https://github.com/elastic/elasticsearch-specification/), so the API documentation is much more detailed and extensive. The value `Elasticsearch::ES_SPECIFICATION_COMMIT` is updated with the commit hash of elasticsearch-specification in which the code is based every time it's generated. +* The API code has been updated for compatibility with Elasticsearch API v 9.0. +* `indices.get_field_mapping` - `:fields` is a required parameter. +* `knn_search` - This API has been removed. It was only ever experimental and was deprecated in v`8.4`. It isn't supported in 9.0, and only works when the header `compatible-with=8` is set. The search API should be used for all knn queries. +* The functions in `utils.rb` that had names starting with double underscore have been renamed to remove these (e.g. `__listify` to `listify`). +* **Namespaces clean up**: The API namespaces are now generated dynamically based on the elasticsearch-specification. As such, some deprecated namespace files have been removed from the codebase: + * The `rollup` namespace was removed. The rollup feature was never GA-ed, it has been deprecated since `8.11.0` in favor of downsampling. + * The `data_frame_deprecated`, `remote` namespace files have been removed, no APIs were available. + * The `shutdown` namespace was removed. It is designed for indirect use by ECE/ESS and ECK. Direct use is not supported. + +##### Testing + +The gem `elasticsearch-api` migrated away from the Elasticsearch REST API tests and test runner in CI. We now run the [Elasticsearch Client tests](https://github.com/elastic/elasticsearch-clients-tests/) with the [Elasticsearch Tests Runner](https://github.com/elastic/es-test-runner-ruby). This gives us more control on what we're testing and makes the Buildkite build way faster in Pull Requests and scheduled builds. + +### Fixes [elasticsearch-ruby-client-900-fixes] + +* Some old rake tasks that were not being used have been removed. The rest were streamlined, the `es` namespace has been streamlined to make it easier to run Elasticsearch with Docker during development. The `docker` task namespace was merged into `es`. +* Elasticsearch's REST API Spec tests can still be ran with `rake test:deprecated:rest_api` and setting the corresponding value for the environment variable `TEST_SUITE` ('platinum' or 'free'). diff --git a/docs/release-notes/known-issues.md b/docs/release-notes/known-issues.md index 91ff1765df..5784c8adc7 100644 --- a/docs/release-notes/known-issues.md +++ b/docs/release-notes/known-issues.md @@ -5,6 +5,10 @@ navigation_title: "Elasticsearch Ruby Client" # Elasticsearch Ruby Client known issues [elasticsearch-ruby-client-known-issues] +## 9.0.0 + +_No known issues_ + % Use the following template to add entries to this page. % :::{dropdown} Title of known issue @@ -17,4 +21,4 @@ navigation_title: "Elasticsearch Ruby Client" % **Resolved** % On [Month/Day/Year], this issue was resolved. -::: \ No newline at end of file +% ::: From 72713cf994c228b403524acc0c79e405fcbbcbdd Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 15 Apr 2025 08:39:59 +0100 Subject: [PATCH 34/75] [API] Updates source code docs --- .../elasticsearch/api/actions/indices/cancel_migrate_reindex.rb | 2 +- .../lib/elasticsearch/api/actions/indices/create_from.rb | 2 +- .../lib/elasticsearch/api/actions/indices/migrate_reindex.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/version.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb index 9ad145d5ee..34c327d8cc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String, Array] :index The index or data stream name (*Required*) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-migration + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-cancel-migrate-reindex # def cancel_migrate_reindex(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.cancel_migrate_reindex' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb index 7af237154a..b0ef74f4c8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body create_from # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-migration + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-create-from # def create_from(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.create_from' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb index 4ecfca3ad6..aad800d2dc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body reindex # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-migration + # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-migrate-reindex # def migrate_reindex(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.migrate_reindex' } diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index 18bfc42146..71e0a5c93b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.0'.freeze - ES_SPECIFICATION_COMMIT = 'c02d8eb89a4efb3e719bd783715e2bf312479af8'.freeze + ES_SPECIFICATION_COMMIT = '52c473efb1fb5320a5bac12572d0b285882862fb'.freeze end end From ee1f593ff305fde32cf789ca73a368e316bf19f8 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 15 Apr 2025 09:06:28 +0100 Subject: [PATCH 35/75] [Tests] YAML - Retry on 400 for Serverless trained model allocation --- elasticsearch-api/spec/yaml-test-runner/run.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch-api/spec/yaml-test-runner/run.rb b/elasticsearch-api/spec/yaml-test-runner/run.rb index 701d26b801..e55f448b6a 100644 --- a/elasticsearch-api/spec/yaml-test-runner/run.rb +++ b/elasticsearch-api/spec/yaml-test-runner/run.rb @@ -62,7 +62,7 @@ def serverless? if serverless? options.merge!( { - retry_on_status: [409], + retry_on_status: [409, 400], retry_on_failure: 10, delay_on_retry: 60_000, request_timeout: 120 From 8b3f4c9fd48070184301520f0fd9f64b80b1e83a Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 15 Apr 2025 13:31:58 +0100 Subject: [PATCH 36/75] [CI] Updates version in pipeline --- .buildkite/pipeline.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 2c30b79feb..80ab535e19 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -8,7 +8,6 @@ steps: - "3.4" - "3.3" - "3.2" - - "3.1" ruby_source: - "ruby" transport: @@ -17,7 +16,7 @@ steps: - with: # JRuby tests ruby: "9.4" ruby_source: "jruby" - transport: "8.3" + transport: "8.4" # Test for different versions of transport - with: ruby: "3.4" @@ -26,7 +25,7 @@ steps: - with: ruby: "3.4" ruby_source: "ruby" - transport: "8.2" + transport: "8.3" env: RUBY_VERSION: "{{ matrix.ruby }}" STACK_VERSION: 9.0.0-SNAPSHOT From c669df0ca2f96bb29e0829b7256c13530c1331aa Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 15 Apr 2025 14:18:27 +0100 Subject: [PATCH 37/75] [DOCS] Updates CHANGELOG --- CHANGELOG.md | 797 +++------------------------------------------------ 1 file changed, 38 insertions(+), 759 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac3416994b..47dae51523 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,778 +1,57 @@ -*See the full release notes on the official documentation website: https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/release_notes.html* +**See the full release notes on the official documentation website: https://www.elastic.co/docs/release-notes/elasticsearch/clients/ruby** -## 8.17.0 Release notes +# 9.0.0 -### Client -* Tested versions of Ruby for 8.17.0: Ruby (MRI) 3.1, 3.2 and 3.3. JRuby 9.3 and JRuby 9.4. +Ruby 3.2 and up are tested and supported for 9.0. Older versions of Ruby have reached their end of life. We follow Ruby’s own maintenance policy and officially support all currently maintained versions per [Ruby Maintenance Branches](https://www.ruby-lang.org/en/downloads/branches/). The required Ruby version is set to `2.6` to keep compatiblity wit JRuby 9.3. However, we only test the code against currently supported Ruby versions. -### API +## Gem -#### API changes -* `async_search.submit` - Removes `keep_alive` parameter. Adds: - * `ccs_minimize_roundtrips` (Boolean): When doing a cross-cluster search, setting it to true may improve overall search latency, particularly when searching clusters with a large number of shards. However, when set to true, the progress of searches on the remote clusters will not be received until the search finishes on all clusters. - * `rest_total_hits_as_int` (Boolean): Indicates whether hits.total should be rendered as an integer or an object in the rest search response. -* `open_point_in_time` - Adds `allow_partial_search_results` (Boolean) parameter: Specify whether to tolerate shards missing when creating the point-in-time, or otherwise throw an exception (default: false). +The size of both `elasticsearch` and `elasticsearch-api` gems is smaller than in previous versions. Some unnecessary files that were being included in the gem have now been removed. There has also been a lot of old code cleanup for the `9.x` branch. +## Elasticsearch Serverless -## 8.16.0 Release notes +With the release of `9.0`, the [Elasticsearch Serverless](https://github.com/elastic/elasticsearch-serverless-ruby) client has been discontinued. You can use this client to build your Elasticsearch Serverless Ruby applications. The Elasticsearch Serverless API is fully supported. The CI build for Elasticsearch Ruby runs tests to ensure compatibility with Elasticsearch Serverless. -### Client -* Tested versions of Ruby for 8.16.0: Ruby (MRI) 3.1, 3.2 and 3.3. JRuby 9.3 and JRuby 9.4. +## Elasticsearch API -### API +* The source code is now generated from [`elasticsearch-specification`](https://github.com/elastic/elasticsearch-specification/), so the API documentation is much more detailed and extensive. The value `Elasticsearch::ES_SPECIFICATION_COMMIT` is updated with the commit hash of elasticsearch-specification in which the code is based every time it's generated. +* The API code has been updated for compatibility with Elasticsearch API v 9.0. +* `indices.get_field_mapping` - `:fields` is a required parameter. +* `knn_search` - This API has been removed. It was only ever experimental and was deprecated in v`8.4`. It isn't supported in 9.0, and only works when the header `compatible-with=8` is set. The search API should be used for all knn queries. +* The functions in `utils.rb` that had names starting with double underscore have been renamed to remove these (e.g. `__listify` to `listify`). +* **Namespaces clean up**: The API namespaces are now generated dynamically based on the elasticsearch-specification. As such, some deprecated namespace files have been removed from the codebase: + * The `rollup` namespace was removed. The rollup feature was never GA-ed, it has been deprecated since `8.11.0` in favor of downsampling. + * The `data_frame_deprecated`, `remote` namespace files have been removed, no APIs were available. + * The `shutdown` namespace was removed. It is designed for indirect use by ECE/ESS and ECK. Direct use is not supported. -#### API changes +## Scroll APIs need to send scroll_id in request body -* `capabilities` - Adds `local_only` boolean parameter: True if only the node being called should be considered. -* `cluster.stats`- Removes `flat_settings` parameter, adds `include_remotes` boolean parameter: Include remote cluster data into the response (default: false) -* `indices.get_data_stream` - Adds `verbose` boolean parameter: Whether the maximum timestamp for each data stream should be calculated and returned (default: false). Adds `master_timeout` (see below). -* `query_rules.delete_ruleset` - Accepts `ignore: 404` common parameter. +Sending the `scroll_id` as a parameter has been deprecated since version 7.0.0. It needs to be specified in the request body for `clear_scroll` and `scroll`. -##### Timeout parameters: +**Impact**
-These parameters have been added to several APIs: +Client code using `clear_scroll` or `scroll` APIs and the deprecated `scroll_id` as a parameter needs to be updated. -* `master_timeout` timeout for processing on master node. -* `timeout` timeout for acknowledgement of update from all nodes in cluster parameters. +**Action**
-Added in: - -* `indices.create_data_stream` - both. -* `indices.delete_data_stream` - `master_timeout`. -* `indices.get_data_lifecycle` - `master_timeout`. -* `indices.get_data_stream` - `master_timeout`. -* `indices.migrate_to_data_stream` - both. -* `indices.promote_data_stream` - `master_timeout`. -* `search_shards` - `master_timeout`. - -#### APIs Promoted from Experimental to Stable: - -* `indices.delete_data_lifecycle` -* `indices.explain_data_lifecycle` -* `indices.get_data_lifecycle` -* `indices.put_data_lifecycle` -* `security.create_cross_cluster_api_key` -* `security.update_cross_cluster_api_key` - -#### New APIs - -* `ingest.delete_ip_location_database` - Deletes an ip location database configuration. -* `ingest.get_ip_location_database` - Returns the specified ip location database configuration. -* `ingest.put_ip_location_database` - Puts the configuration for a ip location database to be downloaded. - - -#### New Experimental APIs - -* `inference.stream_inference` - Perform streaming inference. -* `query_rules.test` - Tests a query ruleset to identify the rules that would match input criteria. - - -## 8.15.0 Release notes - -### Client -* Tested versions of Ruby for 8.15.0: Ruby (MRI) 3.0, 3.1, 3.2 and 3.3. JRuby 9.3 and JRuby 9.4. - -#### API changes - -* `snapshot.delete` - Adds `wait_for_completion` Boolean parameter, should this request wait until the operation has completed before returning. -* `cluster.allocation_explain` - `body` is no longer a required parameter. -* `connector.put` - (experimental API) `body` and `connector_id` no longer required parameters. -* `machine_learning.update_trained_model_deployment` has been promoted to stable from Beta. Adds Integer parameter `number_of_allocations`, updates the model deployment to this number of allocations. - -##### `master_timeout` and `timeout` parameters - -These parameters have been added to several APIs: - -* `master_timeout` timeout for processing on master node. -* `timeout` timeout for acknowledgement of update from all nodes in cluster parameters. - -The APIs: - -* `autoscaling.delete_autoscaling_policy` - both. -* `autoscaling.get_autoscaling_capacity`- `master_timeout`. -* `get_autoscaling_policy` - `master_timeout`. -* `put_autoscaling_policy` - both. -* `enrich.delete_policy` - `master_timeout`. -* `enrich.execute_policy` - `master_timeout`. -* `enrich.get_policy` - `master_timeout`. -* `enrich.put_policy` - `master_timeout`. -* `enrich.stats` - `master_timeout`. -* `features.reset_features` - `master_timeout`. -* `license.delete` - both. -* `license.post` - both. -* `license.post_start_basic` - both. -* `license.post_start_trial` - both. -* `security.get_settings` - `master_timeout`. -* `security.update_settings` - both. -* `shutdown.get_node` - `master_timeout`. -* `snapshot_lifecycle_management.start` - both. -* `snapshot_lifecycle_management.stop` - both. -* `watcher.get_settings` - `master_timeout`. -* `watcher.start` - `master_timeout`. -* `watcher.stop` - `master_timeout`. -* `watcher.update_settings` - both. - -##### Inference APIs have been renamed: - -* `inference.delete_model` => `inference.delete`. Also adds two new parameters: - * `dry_run` (Boolean), if true the endpoint will not be deleted and a list of ingest processors which reference this endpoint will be returned. - * `force` (Boolean), if true the endpoint will be forcefully stopped (regardless of whether or not it is referenced by any ingest processors or semantic text fields). -* `inference.get_model` => `inference.get` -* `inference.put_model` => `inference.put` - -##### Query Rules parameters consolidated - -Changes in `query_ruleset` and `query_rules` APIs, these have been combined into the `query_rules` namespace: - -* `query_rules.delete_ruleset` - Renamed from `query_ruleset.delete`, promoted from experimental to stable. -* `query_rules.delete_rule` - Deletes an individual query rule within a ruleset. -* `query_rules.get_rule` - Returns the details about an individual query rule within a ruleset. -* `query_rules.get_ruleset` - Renamed from `query_ruleset.get`, promoted from experimental to stable. -* `query_rules.list_rulesets` - Renamed from `query_ruleset.list`, promoted from experimental to stable. -* `query_rules.put_rule` - Creates or updates a query rule within a ruleset. -* `query_rules.put_ruleset` - Renamed from `query_ruleset.put_ruleset`, promoted from experimental to stable. - -#### New APIs: - -* `ingest.delete_geoip_database` - Deletes a geoip database configuration. -* `ingest.get_geoip_database` - Returns geoip database configuration. -* `ingest.put_geoip_database` - Puts the configuration for a geoip database to be downloaded. -* `security.bulk_delete_role` - Bulk delete roles in the native realm. -* `security.bulk_put_role` - Bulk adds and updates roles in the native realm. -* `security.query_role` - Retrieves information for Roles using a subset of query DSL. -* `transform.get_node_stats` - Retrieves transform usage information for transform nodes. - -#### New Experimental APIs: - -* `connector.sync_job_claim` - Claims a connector sync job. -* `connector.update_features` - Updates the connector features in the connector document. - -### Development - -- Added a build using [es-test-runner-ruby](https://github.com/elastic/es-test-runner-ruby) and [Elasticsearch Clients Tests](https://github.com/elastic/elasticsearch-clients-tests) which will replace the Elasticsearch YAML test runner. - -## 8.14.0 Release notes - -### Client -* Tested versions of Ruby for 8.14.0: Ruby (MRI) 3.0, 3.1, 3.2 and 3.3. JRuby 9.3 and JRuby 9.4. - -### API - -API changes: - -- All Connector APIs have been migrated to one common namespace `connector`: - - `connector_secret.delete` -> `connector.secret_delete` - - `connector_secret.get` -> `connector.secret_get` - - `connector_secret.post` -> `connector.secret_post` - - `connector_secret.put` -> `connector.secret_put` - - `connector_sync_job.cancel` -> `connector.sync_job_cancel` - - `connector_sync_job.check_in` -> `connector.sync_job_check_in` - - `connector_sync_job.delete` -> `connector.sync_job_delete` - - `connector_sync_job.error` -> `connector.sync_job_error` - - `connector_sync_job.get` -> `connector.sync_job_get` - - `connector_sync_job.post` -> `connector.sync_job_post` - - `connector_sync_job.update_stats` -> `connector.sync_job_update_stats` - -- `connector.delete` - Adds Boolean parameter `:delete_sync_jobs`: Determines whether associated sync jobs are also deleted. -- `cross_cluster_replication.delete_auto_follow_pattern`, `cross_cluster_replication.follow`, `cross_cluster_replication.follow_info`, `cross_cluster_replication.get_auto_follow_pattern`, `cross_cluster_replication.pause_auto_follow_pattern`, `cross_cluster_replication.pause_follow`, `cross_cluster_replication.put_auto_follow_pattern`, `cross_cluster_replication.resume_auto_follow_pattern`, `cross_cluster_replication.resume_follow`, `cross_cluster_replication.stats`, `cross_cluster_replication.unfollow` - Add Time parameter `:master_timeout`: Explicit operation timeout for connection to master node. -- `cross_cluster_replication.follow_stats`, `cross_cluster_replication.forget_follower`, `cross_cluster_replication.stats` - Add Time parameter `:timeout`: Explicit operation timeout. -- `indices/rollover` - Adds Boolean parameter `:target_failure` If set to true, the rollover action will be applied on the failure store of the data stream. -- `inference.get_model` - Parameter `inference_id` no longer required. -- `search_application.search` - Adds Boolean parameter `:typed_keys`: Specify whether aggregation and suggester names should be prefixed by their respective types in the response. -- `security.get_api_key`, `security.query_api_keys` - Add Boolean parameter `:with_profile_uid`: flag to also retrieve the API Key's owner profile uid, if it exists. - -New APIs: - -- `profiling.topn_functions` - Extracts a list of topN functions from Universal Profiling. -- `text_structure.find_field_structure` - Finds the structure of a text field in an index. -- `text_structure/find_message_structure`- Finds the structure of a list of messages. The messages must contain data that is suitable to be ingested into Elasticsearch. - -APIs Migrated from experimental to stable: - -- `esql.async_query` -- `esql.query` - -New Experimental APIs: - -- `connector.update_active_filtering` - Activates the draft filtering rules if they are in a validated state. -- `connector.update_filtering_validation` - Updates the validation info of the draft filtering rules. - -## 8.13.0 Release notes - -### Client -* Tested versions of Ruby for 8.13.0: Ruby (MRI) 3.0, 3.1, 3.2 and 3.3. JRuby 9.3 and JRuby 9.4. - -### Experimental ES|QL Helper - -This version provides a new experimental Helper for the ES|QL `query` API. Please check out [the documentation](https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/Helpers.html#esql-helper) and [open an issue](https://github.com/elastic/elasticsearch-ruby/issues/new/choose) if you encounter any problems or have any feedback. - -### API - -API Changes: - -* `async_search.status` - adds Time `:keep_alive` parameter: Specify the time interval in which the results (partial or final) for this search will be available. -* `bulk` - adds boolean `:require_data_stream` parameter: When true, requires the destination to be a data stream (existing or to-be-created). Default is false. -* `connector.list` - Adds the following parameters: - * `:index_name` (List): A comma-separated list of connector index names to fetch connector documents for. - * `:connector_name` (List): A comma-separated list of connector names to fetch connector documents for. - * `:service_type` (List): A comma-separated list of connector service types to fetch connector documents for. - * `:query` (String): A search string for querying connectors, filtering results by matching against connector names, descriptions, and index names. -* `esql.query` - adds boolean `:drop_null_columns` parameter: Should entirely null columns be removed from the results? Their name and type will be returning in a new `all_columns` section. -* `field_caps` - Adds `:include_empty_fields` boolean parameter: Include empty fields in result. -* `index` - adds boolean `:require_data_stream` parameter: When true, requires the destination to be a data stream (existing or to-be-created). Default is false. -* `indices.rollover` - adds boolean `:lazy` parameter: If set to true, the rollover action will only mark a data stream to signal that it needs to be rolled over at the next write. Only allowed on data streams. -* connector_sync_job.list - adds List `:job_type` parameter: A comma-separated list of job types. -* `inference.delete_model`, `inference.get_model`, `inference.inference`, `inference.put_model`: renames `:model_id` parameter to `:inference_id`. -* `termvector` will show a warning since it's been deprecated. Please use the plural version, `termvectors`. - -New APIs: - -* `indices.resolve_cluster` - Resolves the specified index expressions to return information about each cluster, including the local cluster, if included. -* `profiling.flamegraph` - Extracts a UI-optimized structure to render flamegraphs from Universal Profiling. -* `profiling.stacktraces` - Extracts raw stacktrace information from Universal Profiling. -* `security.query_user` - Retrieves information for Users using a subset of query DSL -* `text_structure.test_grok_pattern` - Tests a Grok pattern on some text. - -APIs Migrated from experimental to stable: - -* `synonyms.delete_synonym` -* `synonyms.delete_synonym_rule` -* `synonyms.get_synonym` -* `synonyms.get_synonym_rule` -* `synonyms.get_synonyms_sets` -* `synonyms.put_synonym` -* `synonyms.put_synonym_rule` - -New Experimental APIs: - -* `connector.update_api_key_id` - Updates the API key id and/or API key secret id fields in the connector document. -* `connector.update_index_name` - Updates the index name of the connector. -* `connector.update_native` - Updates the is_native flag of the connector. -* `connector.update_service_type` - Updates the service type of the connector. -* `connector.update_status` - Updates the status of the connector. -* `esql.async_query` - Executes an ESQL request asynchronously -* `esql.async_query_get` - Retrieves the results of a previously submitted async query request given its ID. - -New Experimental namespace `connector_secret`: - -* `connector_secret.delete` - Deletes a connector secret. -* `connector_secret.get` - Retrieves a secret stored by Connectors. -* `connector_secret.post` - Creates a secret for a Connector. -* `connector_secret.put` - Creates or updates a secret for a Connector. - -### Development - -* Migrated from `byebug` to `debug`. -* Added extra testing for OpenTelemetry. - -## 8.12.0 Release notes - -### Client - -* Tested versions of Ruby for 8.12.0: Ruby (MRI) 3.0, 3.1, 3.2 and 3.3. JRuby 9.3 and JRuby 9.4. - -### API - -API Changes: - -* `bulk` - Adds boolean `:list_executed_pipelines` parameter: Sets `list_executed_pipelines` for all incoming documents. Defaults to unset (false). -* `indices.put_settings` - Adds boolean `:reopen` parameter: Whether to close and reopen the index to apply non-dynamic settings. If set to `true` the indices to which the settings are being applied will be closed temporarily and then reopened in order to apply the changes. The default is `false`. -* `open_point_in_time` - Adds Hash `:body` parameter: an index_filter specified with the Query DSL. -* `security.get_api_key` - Adds boolean `:active_only` parameter: flag to limit response to only active (not invalidated or expired) API keys. - -#### New APIs - -New API for [Universal profiling](https://www.elastic.co/guide/en/observability/8.12/universal-profiling.html): - -* `profiling.status` - Returns basic information about the status of Universal Profiling. - - -New experimental API: - -* `simulate.ingest` - Simulates running ingest with example documents. See: https://www.elastic.co/guide/en/elasticsearch/reference/8.12/simulate-ingest-api.html - -##### Connectors API - -Version 8.12 introduces the experimental [Connectors API](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/connector-apis.html). Use the following APIs to manage connectors: - -* `connector.post` - Creates a connector. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/create-connector-api.html) -* `connector.put` - Creates or updates a connector. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/create-connector-api.html) -* `connector.delete` - Deletes a connector. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/delete-connector-api.html) -* `connector.get` - Returns the details about a connector. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/get-connector-api.html) -* `connector.list` - Lists all connectors. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/list-connector-api.html) -* `connector.check_in` - Updates the last_seen timestamp in the connector document. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/check-in-connector-api.html) -* `connector.update_configuration` - Updates the connector configuration. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/update-connector-configuration-api.html) -* `connector.update_error` - Updates the error field in the connector document. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/update-connector-error-api.html) -* `connector.update_filtering` - Updates the filtering field in the connector document. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/update-connector-filtering-api.html) -* `connector.last_sync` - Updates the stats of last sync in the connector document. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/update-connector-last-sync-api.html) -* `connector.update_name` - Updates the name and/or description fields in the connector document. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/update-connector-name-description-api.html) -* `connector.update_pipeline` - Updates the pipeline field in the connector document. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/update-connector-pipeline-api.html) -* `connector.update_scheduling` - Updates the scheduling field in the connector document. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/update-connector-scheduling-api.html) - -Use the following APIs to manage sync jobs: - -* `connector_sync_job.cancel` - Cancels a connector sync job. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/cancel-connector-sync-job-api.html) -* `connector_sync_job.check_in` - Checks in a connector sync job (refreshes 'last_seen'). See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/check-in-connector-sync-job-api.html) -* `connector_sync_job.delete` - Deletes a connector sync job. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/delete-connector-sync-job-api.html) -* `connector_sync_job.error` - Sets an error for a connector sync job. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/set-connector-sync-job-error-api.html) -* `connector_sync_job.get` - Returns the details about a connector sync job. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/get-connector-sync-job-api.html) -* `connector_sync_job.list` - Lists all connector sync jobs. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/list-connector-sync-jobs-api.html) -* `connector_sync_job.post` - Creates a connector sync job. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/create-connector-sync-job-api.html) -* `connector_sync_job.update_stats` - Updates the stats fields in the connector sync job document. See [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/set-connector-sync-job-stats-api.html) - - - -## 8.11.0 Release notes - -### Client - -* Tested versions of Ruby for 8.11.0: Ruby (MRI) 3.0, 3.1 and 3.2. JRuby 9.3 and JRuby 9.4. -* Adds native support for *Open Telemetry*. See Open Telemetry for documentation. -* Improved documentation, now you can find more examples in Ruby in the [REST API reference](https://www.elastic.co/guide/en/elasticsearch/reference/8.11/rest-apis.html). - -### API - -New Experimental APIs: -- `esql.query` - Executes an ESQL request. -- `inference.delete_model` - Delete model in the Inference API. -- `inference.get_model` - Get a model in the Inference API. -- `inference.inference` - Perform inference on a model. -- `inference.put_model` - Configure a model for use in the Inference API. - -## 8.10.0 Release notes - -### Client -* Tested versions of Ruby for 8.10.0: Ruby (MRI) 3.0, 3.1 and 3.2. JRuby 9.3 and JRuby 9.4. - -### API - -#### New Experimental APIs, for internal use: -- `fleet.delete_secret` -- `fleet.get_secret` -- `fleet.post_secret` - -#### New stable APIs: -- `security.get_settings` - Retrieve settings for the security system indices -- `security.update_settings` - Update settings for the security system indices - -#### New Experimental API: -- `query_ruleset.list` List query rulesets. - -#### API Changes: -- `indices.reload_search_analyzers` - Adds parameter `resource` changed resource to reload analyzers from if applicable - -Promoted from Experimental to Beta: -- `security.create_cross_cluster_api_key` -- `security.update_cross_cluster_api_key` - -#### Synonyms namespace update: - -All synonym related APIs have been moved to the `synonyms` namespace and some of the endpoints have been renamed, as well as their parameters: -- `synonyms.delete` => `synonyms.delete_synonym` - requires `id`, the id of the synonyms set to be deleted. -- `synonyms.get` => `synonyms.get_synonym` - requires `id`, the name of the synonyms set to be retrieved. -- `synonyms_set.get_synonyms_sets` => `synonyms.get_synonyms_sets` -- `synonyms.put` => `synonyms.put_synonym` - requires `id` of the synonyms set to be created or updated. -- `synonym_rule.put` => `synonyms.put_synonym_rule` - Parameters changed to `set_id` (the id of the synonym set to be updated with the synonym rule) and `rule_id` (the id of the synonym rule to be updated or created). -- New Experimental API `synonyms.delete_synonym_rule` - Deletes a synonym rule in a synonym set -- New Experimental API `synonyms.get_synonym_rule` - Retrieves a synonym rule from a synonym set - -## 8.9.0 Release notes - -### Client - -* Tested versions of Ruby for 8.9.0: Ruby (MRI) 3.0, 3.1 and 3.2. JRuby 9.3 and JRuby 9.4. -* Updated product validation. The code for the product validation was refactored in a few ways: - * Just check header, does not check the version of the server. - * Warns only once when there's a general server error. - * Removes the call to '/' (client.info) when doing the first request, checking on the first actual request from the client. -* Fixes User-Agent code. In the migration to 8.x, the user agent code was extracted into transport, since we're now using that library in other projects. So for the Elasticsearch Client, the user-agent would be reported as the one defined in elastic-transport. This release fixes the issue and brings back the user agent in the format that was being used in 7.x - -### Helpers - -This release introduces two new Helpers in the client: - -* BulkHelper - This helper provides a better developer experience when using the Bulk API. At its simplest, you can send it a collection of hashes in an array, and it will bulk ingest them into {es}. -* ScrollHelper - This helper provides an easy way to get results from a Scroll. - -See [Helpers](https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/Helpers.html) to read more about them. - -### API - -#### New APIs - -* `cluster.info` - Returns different information about the cluster. - -#### New Experimental APIs and namespaces: - -This functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. - -* New namespace: `query_ruleset` - * `query_ruleset.delete` - Deletes a query ruleset. - * `query_ruleset.get` - Returns the details about a query ruleset. - * `query_ruleset.put` - Creates or updates a query ruleset. -* New API: `search_application.render_query` Renders a query for given search application search parameters. -* New API: `security.create_cross_cluster_api_key` - Creates a cross-cluster API key for API key based remote cluster access. -* New API: `security.upate_cross_cluster_api_key` - Updates attributes of an existing cross-cluster API key. -* New namespace: `synonyms` - * `synonyms.delete`- Deletes a synonym set - * `synonyms.get` - Retrieves a synonym set - * `synonyms.put` - Creates or updates a synonyms set -* New namespace: `synonym_rule` - * `synonym_rule.put` - Creates or updates a synonym rule in a synonym set -* New namespace: `synonyms` - * `synonyms_set.get` - Retrieves a summary of all defined synonym sets - -## 8.8.0 Release notes - -- Tested versions of Ruby for 8.8.0: Ruby (MRI) 3.0, 3.1 and **3.2**. JRuby 9.3 and JRuby 9.4. - -### API - -- Updates development dependency `minitest-reporters` to `>= 1.6` to include showing failures at the end of the test run. - -#### New APIs - -- `watcher.get_settings` - Retrieve settings for the watcher system index. -- `watcher.update_settings` - Update settings for the watcher system index. - -#### New Experimental APIs - -- `indices.delete_data_lifecycle`- Deletes the data lifecycle of the selected data streams -- `indices.explain_data_lifecycle` - Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. -- `indices.get_data_lifecycle` - Returns the data lifecycle of the selected data streams. -- `indices.put_data_lifecycle` - Updates the data lifecycle of the selected data streams. -- `search_application.delete` - Deletes a search application. -- `search_application.delete_behavioral_analytics` - Delete a behavioral analytics collection. -- `search_application.get` - Returns the details about a search application. -- `search_application.get_behavioral_analytics` - Returns the existing behavioral analytics collections. -- `search_application.list` - Returns the existing search applications. -- `search_application.post_behavioral_analytics_event` - Creates a behavioral analytics event for existing collection. -- `search_application.put` - Creates or updates a search application. -- `search_application.put_behavioral_analytics` - Creates a behavioral analytics collection. -- `search_application.search` - Perform a search against a search application. - -#### API Changes - -- `clear_scroll` now works with the argument `ignore: 404`. [Issue on GitHub](https://github.com/elastic/elasticsearch-ruby/issues/2067). -- The code generator was updated to fix a bug for `ignore: 404`. APIs that were supposed to support this wouldn't parse the parameters correctly. The support it now: `security.get_role`, `watcher.delete_watch` -- `cluster.get_component_template`, `indices.get_data_stream`, `indices.get_index_template`, `indices.simulate_index_template`, `indices.simulate_template` - Add `include_defaults` (Boolean) parameter: Return all default configurations for the component template (default: false). -- `machine_learning.put_trained_model` - Adds `wait_for_completion` (Boolean) parameter: Whether to wait for all child operations(e.g. model download) to complete, before returning or not (default: false). -- `machine_learning.start_trained_model_deployment` - Adds `deployiment_id` (String) parameter: The Id of the new deployment. Defaults to the model_id if not set. -- `search` - Adds `include_named_queries_score` (Boolean) parameter: Indicates whether hit.matched_queries should be rendered as a map that includes the name of the matched query associated with its score (true) or as an array containing the name of the matched queries (false). -- `transform.delete_transform` - Adds `delete_dest_index` (Boolean) parameter: When `true`, the destination index is deleted together with the transform. The default value is `false`, meaning that the destination index will not be deleted. - -## 8.7.1 Release notes - -### API Bugfix - -- Updates `logstash.get_pipeline`, fixed in the specification `id` is not a required parameter, so removes raising `ArgumentError` when id is not present. - -## 8.7.0 Release notes - -- Tested versions of Ruby for 8.7.0: Ruby (MRI) 2.7, 3.0, 3.1 and **3.2**. JRuby 9.3 and JRuby 9.4. Ruby 2.7's end of life is coming in a few days, so this'll probably be the last release to test for Ruby 2.7. - -### New APIs - -- `health_report` - Returns the health of the cluster. -- `transform.schedule_now_transform` - Schedules now a transform. - -### API Changes - -- `transform.get_transform_stats` - Adds `timeout` (Time) parameter. Controls the time to wait for the stats. -- `transform.start_transform` - Adds `from` (String) parameter. Restricts the set of transformed entities to those changed after this time. -- `ml.delete_job`, `ml.reset_job` - Add `delete_user_annotations` (Boolean) parameter. Should annotations added by the user be deleted. -- `ml.clear_trained_model_deployment_cache`, `ml.infer_trained_model`, `ml.put_trained_model_definition_part`, `ml.put_trained_model_vocabulary`, `ml.start_trained_model_deployment`, `ml.stop_trained_model_deployment` - These APIs are no longer in Beta. - -## 8.6.0 Release notes - -- Tested versions of Ruby for 8.6.0: Ruby (MRI) 2.7, 3.0, 3.1 and **3.2**. JRuby 9.3 and **JRuby 9.4**. - -### New APIs - -- `update_trained_model_deployment` - Updates certain properties of trained model deployment (This functionality is in Beta and is subject to change). - -### API Changes - -- `cluster.reroute` - `:metric` parameter adds `none` as an option. -- `ml.start_trained_model_deployment` - New parameter `:priority` (String), the deployment priority - - -## 8.5.2 Release notes - -### API Bugfix - -Fixes `security.create_service_token` API, uses `POST` when token name isn't present. -Thanks [@carlosdelest](https://github.com/carlosdelest) for reporting in [#1961](https://github.com/elastic/elasticsearch-ruby/pull/1961). - -## 8.5.1 Release notes - -### Bugfix - -Fixes bug when instantiating client with `api_key`: When passing in `api_key` and `transport_options` that don't include headers to the client, the `api_key` code would overwrite the arguments passed in for `transport_options`. This was fixed in [this Pull Request](https://github.com/elastic/elasticsearch-ruby/pull/1941/files). -Thanks [svdasein](https://github.com/svdasein) for reporting in [#1940](https://github.com/elastic/elasticsearch-ruby/issues/1940). - -## 8.5.0 Release notes - -- Tested versions of Ruby for 8.5.0: Ruby (MRI) 2.7, 3.0 and 3.1, JRuby 9.3. - -### Client - -With the latest release of `elastic-transport` - `v8.1.0` - this gem now supports Faraday v2. Elasticsearch Ruby has an open dependency on `elastic-transport` (`'elastic-transport', '~> 8'`), so when you upgrade your gems, `8.1.0` will be installed. This supports both Faraday v1 and Faraday v2. The main change on dependencies when using Faraday v2 is all adapters, except for the default `net_http` one, have been moved out of Faraday into separate gems. This means if you're not using the default adapter and you migrate to Faraday v2, you'll need to add the adapter gems to your Gemfile. - -These are the gems required for the different adapters with Faraday 2, instead of the libraries on which they were based: -``` -# HTTPCLient -gem 'faraday-httpclient' - -# NetHTTPPersistent -gem 'faraday-net_http_persistent' - -# Patron -gem 'faraday-patron' - -# Typhoeus -gem 'faraday-typhoeus' +If you are using the `clear_scroll` or `scroll` APIs, and sending the `scroll_id` as a parameter, you need to update your code to send the `scroll_id` as part of the request body: +```ruby +# Before: +client.clear_scroll(scroll_id: scroll_id) +# Now: +client.clear_scroll(body: { scroll_id: scroll_id }) + +# Before: +client.scroll(scroll_id: scroll_id) +# Now: +client.scroll(body: { scroll_id: scroll_id }) ``` -Things should work fine if you migrate to Faraday 2 as long as you include the adapter (unless you're using the default one `net-http`), but worst case scenario, you can always lock the version of Faraday in your project to 1.x: -`gem 'faraday', '~> 1'` - -Be aware if migrating to Faraday v2 that it requires at least Ruby `2.6`, unlike Faraday v1 which requires `2.4`. - -*Troubleshooting* - -If you see a message like: -`:adapter is not registered on Faraday::Adapter (Faraday::Error)` -Then you probably need to include the adapter library in your gemfile and require it. - -Please [submit an issue](https://github.com/elastic/elasticsearch-ruby/issues) if you encounter any problems. - -### API - -#### New APIs - -- `machine_learning.clear_trained_model_deployment_cache` - Clear the cached results from a trained model deployment (Beta). -- `security.bulk_update_api_keys` - Updates the attributes of multiple existing API keys. - -#### API Changes - -- `rollup.rollup` renamed to `indices.downsample`. The method now receives the `index` to downsample (Required) and instead of `rollup_index`, use target_index as the index to store downsampled data. - -- `security.get_api_key` and `security.query_api_keys` add `:with_limited_by` flag to show the limited-by role descriptors of API Keys. -- `security.get_user` adds `:with_profile_uid` flag to retrieve profile uid (if exists) associated to the user. -- `security.get_user_profile` now retrieves user profiles for given unique ID(s). `:uid` is now a list of comma-separated list of unique identifier for user profiles. -- `text_structure.find_structure` adds `:ecs_compatibility`, optional parameter to specify the compatibility mode with ECS Grok patterns - may be either 'v1' or 'disabled'. - -Machine learning APIs promoted from *Experimental* to *Beta*: - -- `machine_learning.clear_trained_model_deployment_cache.rb` -- `machine_learning.infer_trained_model.rb` -- `machine_learning.put_trained_model_definition_part.rb` -- `machine_learning.put_trained_model_vocabulary.rb` -- `machine_learning.start_trained_model_deployment.rb` -- `machine_learning.stop_trained_model_deployment.rb` - -Security usef profile APIs promoted from *Experimental* to *Stable*: - -- `security/activate_user_profile` -- `security/disable_user_profile` -- `security/enable_user_profile` -- `security/get_user_profile` -- `security/has_privileges_user_profile` -- `security/suggest_user_profile` -- `security/update_user_profile_data` - - -## 8.4.0 Release Notes - -- Tested versions of Ruby for 8.4.0: Ruby (MRI) 2.7, 3.0 and 3.1, JRuby 9.3. - -### API +## Testing -#### New APIs +The gem `elasticsearch-api` migrated away from the Elasticsearch REST API tests and test runner in CI. We now run the [Elasticsearch Client tests](https://github.com/elastic/elasticsearch-clients-tests/) with the [Elasticsearch Tests Runner](https://github.com/elastic/es-test-runner-ruby). This gives us more control on what we're testing and makes the Buildkite build way faster in Pull Requests and scheduled builds. -* `security.update_api_key` - Updates attributes of an existing API key. [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.4/security-api-update-api-key.html). - -#### API Changes - -* `get` - Adds new parameter `force_synthetic_source` (Boolean) Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index. -* `machine_learning.start_trained_model_deployment` - Adds new parameter `cache_size` (String) A byte-size value for configuring the inference cache size. For example, 20mb. -* `mget` - Adds new parameter `force_synthetic_source` (Boolean) Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index. -* `search` - Adds new parameter `force_synthetic_source` (Boolean) Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index. -* `snapshot.get` - Adds new parameters: - * `sort` (String) Allows setting a sort order for the result. Defaults to start_time (options: start_time, duration, name, repository, index_count, shard_count, failed_shard_count). - * `size` (Integer) Maximum number of snapshots to return. Defaults to 0 which means return all that match without limit. - * `order` (String) Sort order (options: asc, desc). - * `from_sort_value` (String) Value of the current sort column at which to start retrieval. - * `after` (String) Offset identifier to start pagination from as returned by the 'next' field in the response body. - * `offset` (Integer) Numeric offset to start pagination based on the snapshots matching the request. Defaults to 0. - * `slm_policy_filter` (String) Filter snapshots by a comma-separated list of SLM policy names that snapshots belong to. Accepts wildcards. Use the special pattern '_none' to match snapshots without an SLM policy. - -## 8.3.0 Release Notes - -- Tested versions of Ruby for 8.3.0: Ruby (MRI) 2.7, 3.0 and 3.1, JRuby 9.3. - -### API - -- Added build hash to auto generated code. The code generator obtains the git hash from the Elasticsearch specification and adds it as a comment in the code. This allows us to track the version for each generated class. -- Updated for compatibility with Elasticsearch 8.3's API. - -#### API Changes - -* `cluster.delete_voting_config_exclusions`, `cluster.post_voting_config_exclusions` - Add new parameter `master_timeout` (Time) Timeout for submitting request to master. -* `machine_learning.infer_trained_model_deployment` is renamed to `machine_learning.infer_trained_model`. The url `/_ml/trained_models/{model_id}/deployment/_infer` is deprecated since 8.3, use `/_ml/trained_models/{model_id}/_infer` instead. -* `machine_learning.preview_datafeed` - Adds new parameters: - * `start` (String) The start time from where the datafeed preview should begin - * `end` (String) The end time when the datafeed preview should stop -* `machine_learning.start_trained_model_deployment` - Adds new parameters: - * `number_of_allocations` (Integer) The number of model allocations on each node where the model is deployed. - * `threads_per_allocation` (Integer) The number of threads used by each model allocation during inference. - * `queue_capacity` (Integer) Controls how many inference requests are allowed in the queue at a time. -* `search_mvt` - Adds new parameter: `with_labels` (Boolean) If true, the hits and aggs layers will contain additional point features with suggested label positions for the original features -* `snapshot.get` - Adds new parameter: `index_names` (Boolean) Whether to include the name of each index in the snapshot. Defaults to true. - -#### New Experimental APIs -* `security.has_privileges_user_profile` Determines whether the users associated with the specified profile IDs have all the requested privileges - -## 8.2.2 Release notes - -- Updates dependency on `elastic-transport` to `~> 8.0` - -## 8.2.1 Release notes - -No release, no changes on the client. - -## 8.2.0 - -- Tested versions of Ruby for 8.2.0: Ruby (MRI) 2.7, 3.0 and 3.1, JRuby 9.3. - -### API - -Updated for compatibility with Elasticsearch 8.2's API. - -#### New parameters: - -* `field_caps` - - `filters` An optional set of filters: can include +metadata,-metadata,-nested,-multifield,-parent - - `types` Only return results for fields that have one of the types in the list - -#### New APIs: - -- `cat.component_templates` - Returns information about existing component_templates templates. -- `ml.get_memory_stats` - Returns information on how ML is using memory. - -#### New Experimental APIs: - -- `security.activate_user_profile` - Creates or updates the user profile on behalf of another user. -- `security.disable_user_profile` - Disables a user profile so it's not visible in user profile searches. -- `security.enable_user_profile` - Enables a user profile so it's visible in user profile searches. -- `security.get_user_profile` - Retrieves a user profile for the given unique ID. -- `security.suggest_user_profiles` - Get suggestions for user profiles that match specified search criteria. -- `security.update_user_profile_data` - Update application specific data for the user profile of the given unique ID. - -## 8.1.2, 8.0.1 - -### API - -- Fixes an issue with the generated API code. When updating the code generator for 8.x, the order of `arguments.clone` in the generated code was changed. This would make it so that we would modify the parameters passed in before cloning them, which is undesired. Issue: [#1727](https://github.com/elastic/elasticsearch-ruby/issues/1727). - -## 8.1.1 - -No release, no changes on the client. - -## 8.1.0 - -- Tested versions of Ruby for 8.1.0: Ruby (MRI) 2.6, 2.7, 3.0 and 3.1, JRuby 9.3. - -### API - -Updated for compatibility with Elasticsearch 8.1's API. - -#### New parameters: -- `indices.forcemerge` - `wait_for_completion` Should the request wait until the force merge is completed. -- `indices.get` - `features` Return only information on specified index features (options: aliases, mappings, settings). -- `ingest.put_pipeline` `if_version` (Integer), required version for optimistic concurrency control for pipeline updates. -- `ml.delete_trained_model` - `timeout` controls the amount of time to wait for the model to be deleted. `force` (Boolean) true if the model should be forcefully deleted. -- `ml.stop_trained_model_deployment` - `allow_no_match` whether to ignore if a wildcard expression matches no deployments. (This includes `_all` string or when no deployments have been specified). `force` true if the deployment should be forcefully stopped. Adds `body` parameter, the stop deployment parameters. -- `nodes.hot_threads` - `sort` the sort order for 'cpu' type (default: total) (options: cpu, total) - -#### Updated parameters: -- `indices.get_index_template` - `name` is now a String, a pattern that returned template names must match. -- `knn_search` - `index` removes option to use empty string to perform the operation on all indices. -- `ml.close_job`, `ml.get_job_stats`, `ml.get_jobs`, `ml.get_overall_buckets` - Remove `allow_no_jobs` parameter. -- `ml.get_datafeed_stats`, `ml.get_datafeeds` - Remove `allow_no_datafeeds` parameter. -- `nodes.hot_threads` - `type` parameter adds `mem` option. -- `nodes.info` - `metric` updated to use `_all` to retrieve all metrics and `_none` to retrieve the node identity without any additional metrics. (options: settings, os, process, jvm, thread_pool, transport, http, plugins, ingest, indices, aggregations, _all, _none). `index_metric` option `shards` changes to `shard_stats`. -- `open_point_in_time` - `keep_alive` is now a required parameter. -- `search_mvt` - `grid_type` parameter adds `centroid` option in addition to `grid` and `point`. - -- New experimental APIs, designed for internal use by the fleet server project: `fleet.search`, `fleet.msearch`. - -#### New APIs -- OpenID Connect Authentication: `security.oidc_authenticate`, `security.oidc_logout`, `security.oidc_prepare_authentication`. -- `transform.reset_transform`. - - -## 8.0.0 - -First release for the `8.x` branch with a few major changes. - -- Tested versions of Ruby for 8.0.0: Ruby (MRI) 2.6, 2.7, 3.0 and 3.1, JRuby 9.3. - -### Client - -#### Elastic Transport - -The code for the dependency `elasticsearch-transport` has been promoted to [its own repository](https://github.com/elastic/elastic-transport-ruby/) and the project and gem have been renamed to [`elastic-transport`](https://rubygems.org/gems/elastic-transport). This gem now powers [`elasticsearch`](https://rubygems.org/gems/elasticsearch) and [`elastic-enterprise-search`](https://rubygems.org/gems/elastic-enterprise-search). The `elasticsearch-transport` gem won't be maintained after the last release in the `7.x` branch, in favour of `elastic-transport`. - -This will allow us to better address maintainance in both clients and the library itself. - -### API - -The `elasticsearch-api` library has been generated based on the Elasticsearch 8.0.0 REST specification. - -#### X-Pack Deprecation - -X-Pack has been deprecated. The `elasticsearch-xpack` gem will no longer be maintained after the last release in the `7.x` branch. The "X-Pack" integration library codebase was merged into `elasticsearch-api`. All the functionality is available from `elasticsearch-api`. The `xpack` namespace was removed for accessing any APIs other than `_xpack` (`client.xpack.info`) and `_xpack/usage` (`client.xpack.usage`). But APIs which were previously available through the `xpack` namespace e.g.: `client.xpack.machine_learning` are now only available directly: `client.machine_learning`. - -#### Parameter checking was removed - -The code in `elasticsearch-api` will no longer validate all the parameters sent. It will only validate the required parameters such as those needed to build the path for the request. But other API parameters are going to be validated by Elasticsearch. This provides better forwards and backwards compatibility in the client. - -#### Response object - -In previous versions of the client, calling an API endpoint would return the JSON body of the response. With `8.0`, we are returning a new Response object `Elasticsearch::API::Response`. It still behaves like a Hash to maintain backwards compatibility, but adds the `status` and `headers` methods from the `Elastic::Transport:Transport::Response` object: - -```ruby -elastic_ruby(main)> response = client.info -=> #"instance", - "cluster_name"=>"elasticsearch-8-0-0-SNAPSHOT-rest-test", - "cluster_uuid"=>"oIfRARuYRGuVYybjxQJ87w", - "version"=> - {"number"=>"8.0.0-SNAPSHOT", - "build_flavor"=>"default", - "build_type"=>"docker", - "build_hash"=>"7e23c54eb31cc101d1a4811b9ab9c4fd33ed6a8d", - "build_date"=>"2021-11-04T00:21:32.464485627Z", - "build_snapshot"=>true, - "lucene_version"=>"9.0.0", - "minimum_wire_compatibility_version"=>"7.16.0", - "minimum_index_compatibility_version"=>"7.0.0"}, - "tagline"=>"You Know, for Search"}, - @headers={"X-elastic-product"=>"Elasticsearch", "content-type"=>"application/json", "content-length"=>"567"}, - @status=200>> -elastic_ruby(main)> response.status -=> 200 -elastic_ruby(main)> response.headers -=> {"X-elastic-product"=>"Elasticsearch", "content-type"=>"application/json", "content-length"=>"567"} -elastic_ruby(main)> response['name'] -=> "instance" -elastic_ruby(main)> response['tagline'] -=> "You Know, for Search" -``` +## Fixes -Please [let us know if you find any issues](https://github.com/elastic/elasticsearch-ruby/issues). +* Some old rake tasks that were not being used have been removed. The rest were streamlined, the `es` namespace has been streamlined to make it easier to run Elasticsearch with Docker during development. The `docker` task namespace was merged into `es`. +* Elasticsearch's REST API Spec tests can still be ran with `rake test:deprecated:rest_api` and setting the corresponding value for the environment variable `TEST_SUITE` ('platinum' or 'free'). From d8681311b3c7c59de6dc16cb79c331ca067fb7d0 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 15 Apr 2025 14:30:47 +0100 Subject: [PATCH 38/75] [DOCS] Update README.md - compatibility --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e87f0340e..73638153ba 100644 --- a/README.md +++ b/README.md @@ -79,8 +79,8 @@ Elasticsearch language clients are only backwards compatible with default distri | Gem Version | | Elasticsearch Version | Supported | |-------------|---|------------------------|-----------| -| 7.x | → | 7.x | 7.17 | | 8.x | → | 8.x | 8.x | +| 9.x | → | 9.x | 9.x | | main | → | main | | ## Try Elasticsearch and Kibana locally From e357c08b7824d0ff783d80b8c183fd05fea577ea Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 16 Apr 2025 10:42:36 +0100 Subject: [PATCH 39/75] [DOCS] Updates build badges on README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 73638153ba..939ecf6e0a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Elasticsearch -[![7.17](https://github.com/elastic/elasticsearch-ruby/actions/workflows/7.17.yml/badge.svg?branch=7.17)](https://github.com/elastic/elasticsearch-ruby/actions/workflows/7.17.yml) [![8.16](https://github.com/elastic/elasticsearch-ruby/actions/workflows/8.16.yml/badge.svg?branch=8.16)](https://github.com/elastic/elasticsearch-ruby/actions/workflows/8.16.yml) [![8.17](https://github.com/elastic/elasticsearch-ruby/actions/workflows/8.17.yml/badge.svg?branch=8.17)](https://github.com/elastic/elasticsearch-ruby/actions/workflows/8.17.yml) [![main](https://github.com/elastic/elasticsearch-ruby/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/elastic/elasticsearch-ruby/actions/workflows/main.yml) [![Build status](https://badge.buildkite.com/e50e66eb71bf6566a6479c8a29b25458f6781ee8e52cee8d96.svg)](https://buildkite.com/elastic/elasticsearch-ruby) +[![8.17](https://github.com/elastic/elasticsearch-ruby/actions/workflows/8.17.yml/badge.svg?branch=8.17)](https://github.com/elastic/elasticsearch-ruby/actions/workflows/8.17.yml) [![8.18](https://github.com/elastic/elasticsearch-ruby/actions/workflows/8.18.yml/badge.svg?branch=8.18)](https://github.com/elastic/elasticsearch-ruby/actions/workflows/8.18.yml) [![9.0](https://github.com/elastic/elasticsearch-ruby/actions/workflows/9.0.yml/badge.svg?branch=9.0)](https://github.com/elastic/elasticsearch-ruby/actions/workflows/9.0.yml) [![main](https://github.com/elastic/elasticsearch-ruby/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/elastic/elasticsearch-ruby/actions/workflows/main.yml) [![Build status](https://badge.buildkite.com/e50e66eb71bf6566a6479c8a29b25458f6781ee8e52cee8d96.svg)](https://buildkite.com/elastic/elasticsearch-ruby) **[Download the latest version of Elasticsearch](https://www.elastic.co/downloads/elasticsearch)** or From 4d9293976aedd040969ebab5c8f0fd868f9c8be3 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 16 Apr 2025 15:50:44 +0100 Subject: [PATCH 40/75] [Tests] Removes skipped tests in YAML runner --- elasticsearch-api/spec/yaml-test-runner/run.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/elasticsearch-api/spec/yaml-test-runner/run.rb b/elasticsearch-api/spec/yaml-test-runner/run.rb index e55f448b6a..81f0b5743f 100644 --- a/elasticsearch-api/spec/yaml-test-runner/run.rb +++ b/elasticsearch-api/spec/yaml-test-runner/run.rb @@ -85,5 +85,4 @@ def serverless? Elasticsearch::Tests::Downloader::run(tests_path, branch) runner = Elasticsearch::Tests::TestRunner.new(CLIENT, tests_path, logger) -runner.add_tests_to_skip('knn_search.yml') # TODO: Extract into file runner.run(ENV['SINGLE_TEST'] || []) From 8e19a6b77ef4d9fac87d169b7ca74ea17348edd0 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 22 Apr 2025 10:40:45 +0100 Subject: [PATCH 41/75] Updates content type header for 9.x --- .../lib/elasticsearch/api/actions/bulk.rb | 4 +++- .../elasticsearch/api/actions/fleet/msearch.rb | 4 +++- .../lib/elasticsearch/api/actions/msearch.rb | 4 +++- .../elasticsearch/api/actions/msearch_template.rb | 4 +++- .../api/actions/text_structure/find_structure.rb | 4 +++- elasticsearch-api/spec/unit/actions/bulk_spec.rb | 9 +++++++-- .../spec/unit/actions/fleet/msearch_spec.rb | 8 +++++++- .../spec/unit/actions/msearch_spec.rb | 10 +++++----- .../spec/unit/actions/msearch_template_spec.rb | 11 +++++------ .../actions/text_structure/find_structure_spec.rb | 8 +++++++- elasticsearch/lib/elasticsearch.rb | 15 ++++++++++++++- 11 files changed, 60 insertions(+), 21 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb b/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb index 164ef9da0b..95cfab0144 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb @@ -163,7 +163,9 @@ def bulk(arguments = {}) body end - headers.merge!('Content-Type' => 'application/x-ndjson') + headers.merge!({ + 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' + }) Elasticsearch::API::Response.new( perform_request(method, path, params, payload, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb index 402c61a035..10f6a4daa4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb @@ -97,7 +97,9 @@ def msearch(arguments = {}) payload = body end - headers.merge!('Content-Type' => 'application/x-ndjson') + headers.merge!({ + 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' + }) Elasticsearch::API::Response.new( perform_request(method, path, params, payload, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb index 120a7fb03f..1939435445 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb @@ -103,7 +103,9 @@ def msearch(arguments = {}) payload = body end - headers.merge!('Content-Type' => 'application/x-ndjson') + headers.merge!({ + 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' + }) Elasticsearch::API::Response.new( perform_request(method, path, params, payload, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb index b0c9e53385..ad37661b9e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb @@ -81,7 +81,9 @@ def msearch_template(arguments = {}) payload = body end - headers.merge!('Content-Type' => 'application/x-ndjson') + headers.merge!({ + 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' + }) Elasticsearch::API::Response.new( perform_request(method, path, params, payload, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb index e49a881fd0..496d4a0b84 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb @@ -136,7 +136,9 @@ def find_structure(arguments = {}) body end - headers.merge!('Content-Type' => 'application/x-ndjson') + headers.merge!({ + 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' + }) Elasticsearch::API::Response.new( perform_request(method, path, params, payload, headers, request_opts) ) diff --git a/elasticsearch-api/spec/unit/actions/bulk_spec.rb b/elasticsearch-api/spec/unit/actions/bulk_spec.rb index 0d18d0ee9a..25906f11c7 100644 --- a/elasticsearch-api/spec/unit/actions/bulk_spec.rb +++ b/elasticsearch-api/spec/unit/actions/bulk_spec.rb @@ -25,11 +25,16 @@ params, body, headers, - {:endpoint=>"bulk"} + { endpoint: 'bulk' } ] end - let(:headers) { { 'Content-Type' => 'application/x-ndjson' } } + let(:headers) { + { + 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' + } + } + let(:params) { {} } let(:url) { '_bulk' } let(:body) { '' } diff --git a/elasticsearch-api/spec/unit/actions/fleet/msearch_spec.rb b/elasticsearch-api/spec/unit/actions/fleet/msearch_spec.rb index af44de93e8..40ef5f6584 100644 --- a/elasticsearch-api/spec/unit/actions/fleet/msearch_spec.rb +++ b/elasticsearch-api/spec/unit/actions/fleet/msearch_spec.rb @@ -24,11 +24,17 @@ '_fleet/_fleet_msearch', {}, {}, - { 'Content-Type' => 'application/x-ndjson' }, + headers, { endpoint: 'fleet.msearch' } ] end + let(:headers) { + { + 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' + } + } + it 'performs the request' do expect(client_double.fleet.msearch(body: {})).to be_a Elasticsearch::API::Response end diff --git a/elasticsearch-api/spec/unit/actions/msearch_spec.rb b/elasticsearch-api/spec/unit/actions/msearch_spec.rb index 3c56a6a46c..a7b576e02c 100644 --- a/elasticsearch-api/spec/unit/actions/msearch_spec.rb +++ b/elasticsearch-api/spec/unit/actions/msearch_spec.rb @@ -41,9 +41,11 @@ {} end - let(:headers) do - { 'Content-Type' => 'application/x-ndjson' } - end + let(:headers) { + { + 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' + } + } let(:client) do Class.new { include Elasticsearch::API }.new @@ -89,7 +91,6 @@ end context 'when an index is specified' do - let(:url) do 'foo/_msearch' end @@ -115,7 +116,6 @@ end context 'when multiple indices are specified' do - let(:url) do 'foo,bar/_msearch' end diff --git a/elasticsearch-api/spec/unit/actions/msearch_template_spec.rb b/elasticsearch-api/spec/unit/actions/msearch_template_spec.rb index 5ec1af4dbc..8b30d7d189 100644 --- a/elasticsearch-api/spec/unit/actions/msearch_template_spec.rb +++ b/elasticsearch-api/spec/unit/actions/msearch_template_spec.rb @@ -37,16 +37,17 @@ {} end - let(:headers) do - { 'Content-Type' => 'application/x-ndjson' } - end + let(:headers) { + { + 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' + } + } let(:url) do '_msearch/template' end context 'when a body is provided as a document' do - let(:body) do <<-PAYLOAD.gsub(/^\s+/, '') {"index":"foo"} @@ -67,7 +68,6 @@ end context 'when a body is provided as a string' do - let(:body) do %Q|{"foo":"bar"}\n{"moo":"lam"}| end @@ -78,7 +78,6 @@ end context 'when an index is provided' do - let(:url) do 'foo/_msearch/template' end diff --git a/elasticsearch-api/spec/unit/actions/text_structure/find_structure_spec.rb b/elasticsearch-api/spec/unit/actions/text_structure/find_structure_spec.rb index e6d18a9ad7..cd94e76348 100644 --- a/elasticsearch-api/spec/unit/actions/text_structure/find_structure_spec.rb +++ b/elasticsearch-api/spec/unit/actions/text_structure/find_structure_spec.rb @@ -24,11 +24,17 @@ '_text_structure/find_structure', {}, {}, - { 'Content-Type' => 'application/x-ndjson' }, + headers, { endpoint: 'text_structure.find_structure' } ] end + let(:headers) { + { + 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' + } + } + it 'performs the request' do expect(client_double.text_structure.find_structure(body: {})).to be_a Elasticsearch::API::Response end diff --git a/elasticsearch/lib/elasticsearch.rb b/elasticsearch/lib/elasticsearch.rb index 77b2ba0ffc..3e55285ad9 100644 --- a/elasticsearch/lib/elasticsearch.rb +++ b/elasticsearch/lib/elasticsearch.rb @@ -52,6 +52,7 @@ def initialize(arguments = {}, &block) api_key(arguments) if arguments[:api_key] setup_cloud(arguments) if arguments[:cloud_id] set_user_agent!(arguments) unless sent_user_agent?(arguments) + set_content_type!(arguments) @transport = Elastic::Transport::Client.new(arguments, &block) end @@ -175,9 +176,21 @@ def set_user_agent!(arguments) if RbConfig::CONFIG && RbConfig::CONFIG['host_os'] user_agent << "#{RbConfig::CONFIG['host_os'].split('_').first[/[a-z]+/i].downcase} #{RbConfig::CONFIG['target_cpu']}" end + set_header({ user_agent: user_agent.join('; ') }, arguments) + end + + def set_content_type!(arguments) + headers = { + 'content-type' => 'application/vnd.elasticsearch+json; compatible-with=9', + 'accept' => 'application/vnd.elasticsearch+json; compatible-with=9' + } + set_header(headers, arguments) + end + + def set_header(header, arguments) arguments[:transport_options] ||= {} arguments[:transport_options][:headers] ||= {} - arguments[:transport_options][:headers].merge!({ user_agent: user_agent.join('; ') }) + arguments[:transport_options][:headers].merge!(header) end end From cfa7f8f2a3afe8fc3f3b6c75fdbc634d04ad35b3 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 22 Apr 2025 16:31:16 +0100 Subject: [PATCH 42/75] [CI] Updates ES_YAML_TESTS_BRANCH to 9.0 --- .buildkite/pipeline.yml | 4 ++-- elasticsearch-api/spec/yaml-test-runner/run.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 80ab535e19..d74f7911f7 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -29,7 +29,7 @@ steps: env: RUBY_VERSION: "{{ matrix.ruby }}" STACK_VERSION: 9.0.0-SNAPSHOT - ES_YAML_TESTS_BRANCH: main + ES_YAML_TESTS_BRANCH: '9.0' TRANSPORT_VERSION: "{{ matrix.transport }}" RUBY_SOURCE: "{{ matrix.ruby_source }}" TEST_SUITE: "platinum" @@ -62,7 +62,7 @@ steps: RUBY_VERSION: "3.4" RUBY_SOURCE: "ruby" TEST_SUITE: serverless - ES_YAML_TESTS_BRANCH: main + ES_YAML_TESTS_BRANCH: '9.0' QUIET: false command: ./.buildkite/run-yaml-tests.sh artifact_paths: "elasticsearch-api/tmp/*" diff --git a/elasticsearch-api/spec/yaml-test-runner/run.rb b/elasticsearch-api/spec/yaml-test-runner/run.rb index 81f0b5743f..9849bf1da5 100644 --- a/elasticsearch-api/spec/yaml-test-runner/run.rb +++ b/elasticsearch-api/spec/yaml-test-runner/run.rb @@ -81,7 +81,7 @@ def serverless? # If we're running in a release branch, download the corresponding branch for tests current_branch = `git rev-parse --abbrev-ref HEAD`.strip -branch = current_branch.match(/[0-9]\.[0-9]+/)&.[](0) || ENV['ES_YAML_TESTS_BRANCH'] || nil +branch = ENV['ES_YAML_TESTS_BRANCH'] || current_branch.match(/[0-9]\.[0-9]+/)&.[](0) || nil Elasticsearch::Tests::Downloader::run(tests_path, branch) runner = Elasticsearch::Tests::TestRunner.new(CLIENT, tests_path, logger) From 41868bcfe1d65375df09f888933d731d68354a9b Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 23 Apr 2025 10:39:26 +0100 Subject: [PATCH 43/75] [CI] Buildkite: Groups Serverless steps in pipeline --- .buildkite/pipeline.yml | 147 +++++++++++++++++++++------------------- 1 file changed, 76 insertions(+), 71 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index d74f7911f7..73107a369c 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,88 +1,93 @@ steps: - - label: ":yaml: YAML test suite :ruby: {{ matrix.ruby_source}}:{{ matrix.ruby }} :phone: Transport {{ matrix.transport }}" + - label: >- + :yaml: YAML test suite :ruby: {{ matrix.ruby_source}}:{{ matrix.ruby }} + :phone: Transport {{ matrix.transport }} agents: - provider: "gcp" + provider: gcp matrix: setup: ruby: - - "3.4" - - "3.3" - - "3.2" + - '3.4' + - '3.3' + - '3.2' ruby_source: - - "ruby" + - ruby transport: - - "8.4" + - '8.4' adjustments: - with: # JRuby tests - ruby: "9.4" - ruby_source: "jruby" - transport: "8.4" - # Test for different versions of transport - - with: - ruby: "3.4" - ruby_source: "ruby" - transport: "main" - - with: - ruby: "3.4" - ruby_source: "ruby" - transport: "8.3" + ruby: '9.4' + ruby_source: jruby + transport: '8.4' + - with: # Test for main branch of transport + ruby: '3.4' + ruby_source: ruby + transport: main env: - RUBY_VERSION: "{{ matrix.ruby }}" + RUBY_VERSION: '{{ matrix.ruby }}' STACK_VERSION: 9.0.0-SNAPSHOT ES_YAML_TESTS_BRANCH: '9.0' - TRANSPORT_VERSION: "{{ matrix.transport }}" - RUBY_SOURCE: "{{ matrix.ruby_source }}" - TEST_SUITE: "platinum" + TRANSPORT_VERSION: '{{ matrix.transport }}' + RUBY_SOURCE: '{{ matrix.ruby_source }}' + TEST_SUITE: platinum DEBUG: true command: ./.buildkite/run-yaml-tests.sh - artifact_paths: "elasticsearch-api/tmp/*" - - label: "Create :elasticsearch: Serverless projects" - key: "create-serverless" - agents: - image: docker.elastic.co/appex-qa/qaf:latest - env: - EC_PROJECT_PREFIX: ruby - EC_REGISTER_BACKEND: buildkite - EC_REGION: aws-eu-west-1 - EC_ENV: qa - commands: - - mkdir ~/.elastic - - touch ~/.elastic/cloud.json - - echo "{\"api_key\":{\"qa\":\"$(vault read -field=qa secret/ci/elastic-elasticsearch-ruby/cloud-access)\"}}" > ~/.elastic/cloud.json - - ./.buildkite/create-serverless.sh - - label: "Run :elasticsearch: Serverless :rspec: Tests :ruby:" - key: run-serverless-tests - depends_on: - - step: create-serverless - # soft_fail: - # - exit_status: 1 - agents: - provider: "gcp" - env: - RUBY_VERSION: "3.4" - RUBY_SOURCE: "ruby" - TEST_SUITE: serverless - ES_YAML_TESTS_BRANCH: '9.0' - QUIET: false - command: ./.buildkite/run-yaml-tests.sh - artifact_paths: "elasticsearch-api/tmp/*" - - label: "Destroy :elasticsearch: Serverless projects" - depends_on: - - step: run-serverless-tests - allow_failure: true - agents: - image: docker.elastic.co/appex-qa/qaf:latest - env: - EC_REGISTER_BACKEND: buildkite - EC_ENV: qa - EC_REGION: aws-eu-west-1 - commands: - - mkdir ~/.elastic - - touch ~/.elastic/cloud.json - - export EC_PROJECT_NAME=`buildkite-agent meta-data get "EC_PROJECT_NAME"` - - echo "{\"api_key\":{\"qa\":\"$(vault read -field=qa secret/ci/elastic-elasticsearch-ruby/cloud-access)\"}}" > ~/.elastic/cloud.json - - qaf elastic-cloud projects delete + artifact_paths: elasticsearch-api/tmp/* + - group: 'Elasticsearch Serverless :elasticsearch:' + steps: + - label: 'Create :elasticsearch: Serverless projects' + key: create-serverless + agents: + image: 'docker.elastic.co/appex-qa/qaf:latest' + env: + EC_PROJECT_PREFIX: ruby + EC_REGISTER_BACKEND: buildkite + EC_REGION: aws-eu-west-1 + EC_ENV: qa + commands: + - mkdir ~/.elastic + - touch ~/.elastic/cloud.json + - >- + echo "{\"api_key\":{\"qa\":\"$(vault read -field=qa + secret/ci/elastic-elasticsearch-ruby/cloud-access)\"}}" > + ~/.elastic/cloud.json + - ./.buildkite/create-serverless.sh + - label: 'Run :elasticsearch: Serverless :rspec: Tests :ruby:' + key: run-serverless-tests + depends_on: + - step: create-serverless + agents: + provider: gcp + env: + RUBY_VERSION: '3.4' + RUBY_SOURCE: ruby + TEST_SUITE: serverless + ES_YAML_TESTS_BRANCH: '9.0' + QUIET: false + command: ./.buildkite/run-yaml-tests.sh + artifact_paths: elasticsearch-api/tmp/* + - label: 'Destroy :elasticsearch: Serverless projects' + depends_on: + - step: run-serverless-tests + allow_failure: true + agents: + image: 'docker.elastic.co/appex-qa/qaf:latest' + env: + EC_REGISTER_BACKEND: buildkite + EC_ENV: qa + EC_REGION: aws-eu-west-1 + commands: + - mkdir ~/.elastic + - touch ~/.elastic/cloud.json + - >- + export EC_PROJECT_NAME=`buildkite-agent meta-data get + "EC_PROJECT_NAME"` + - >- + echo "{\"api_key\":{\"qa\":\"$(vault read -field=qa + secret/ci/elastic-elasticsearch-ruby/cloud-access)\"}}" > + ~/.elastic/cloud.json + - qaf elastic-cloud projects delete - wait: ~ continue_on_failure: true - - label: "Log Results" + - label: Log Results command: ./.buildkite/log-results.sh From 749d1262122c2171fb3c2cc125d693af6aa9704a Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 23 Apr 2025 11:20:05 +0100 Subject: [PATCH 44/75] [CI] Buildkite: Retries on 503 in serverless tests --- elasticsearch-api/spec/yaml-test-runner/run.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch-api/spec/yaml-test-runner/run.rb b/elasticsearch-api/spec/yaml-test-runner/run.rb index 9849bf1da5..5426ea3acd 100644 --- a/elasticsearch-api/spec/yaml-test-runner/run.rb +++ b/elasticsearch-api/spec/yaml-test-runner/run.rb @@ -62,9 +62,9 @@ def serverless? if serverless? options.merge!( { - retry_on_status: [409, 400], + retry_on_status: [409, 400, 503], retry_on_failure: 10, - delay_on_retry: 60_000, + delay_on_retry: 5_000, request_timeout: 120 } ) From 212c7bf8866f5bdc9e241522ddc4b687c28f863b Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 23 Apr 2025 16:36:48 +0100 Subject: [PATCH 45/75] [DOCS] Updates CHANGELOG for 9.0.1 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 47dae51523..fe77d46529 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ **See the full release notes on the official documentation website: https://www.elastic.co/docs/release-notes/elasticsearch/clients/ruby** +# 9.0.1 + +- The request headers were updated for Elasticsearch v9: `compatible-with=9` [#2660](https://github.com/elastic/elasticsearch-ruby/pull/2660). + # 9.0.0 Ruby 3.2 and up are tested and supported for 9.0. Older versions of Ruby have reached their end of life. We follow Ruby’s own maintenance policy and officially support all currently maintained versions per [Ruby Maintenance Branches](https://www.ruby-lang.org/en/downloads/branches/). The required Ruby version is set to `2.6` to keep compatiblity wit JRuby 9.3. However, we only test the code against currently supported Ruby versions. From 4899c520cdbd3bc94c69ccbe519a94a3401dc222 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 23 Apr 2025 16:36:04 +0100 Subject: [PATCH 46/75] Bumps version to 9.0.1 --- elasticsearch-api/lib/elasticsearch/api/version.rb | 2 +- elasticsearch/elasticsearch.gemspec | 2 +- elasticsearch/lib/elasticsearch/version.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index 71e0a5c93b..cfe3ba7dc9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -17,7 +17,7 @@ module Elasticsearch module API - VERSION = '9.0.0'.freeze + VERSION = '9.0.1'.freeze ES_SPECIFICATION_COMMIT = '52c473efb1fb5320a5bac12572d0b285882862fb'.freeze end end diff --git a/elasticsearch/elasticsearch.gemspec b/elasticsearch/elasticsearch.gemspec index c9159c6be4..af51fbec94 100644 --- a/elasticsearch/elasticsearch.gemspec +++ b/elasticsearch/elasticsearch.gemspec @@ -46,7 +46,7 @@ Gem::Specification.new do |s| s.rdoc_options = ['--charset=UTF-8'] s.required_ruby_version = '>= 2.6' # For compatibility with JRuby 9.3 - s.add_dependency 'elasticsearch-api', '9.0.0' + s.add_dependency 'elasticsearch-api', '9.0.1' s.add_dependency 'elastic-transport', '~> 8.3' s.add_development_dependency 'base64' diff --git a/elasticsearch/lib/elasticsearch/version.rb b/elasticsearch/lib/elasticsearch/version.rb index 33758a0941..c745276d84 100644 --- a/elasticsearch/lib/elasticsearch/version.rb +++ b/elasticsearch/lib/elasticsearch/version.rb @@ -16,5 +16,5 @@ # under the License. module Elasticsearch - VERSION = '9.0.0'.freeze + VERSION = '9.0.1'.freeze end From 661bbf9f52cd9b4ceb8c179c1be707b4af00125f Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Thu, 24 Apr 2025 11:47:36 +0100 Subject: [PATCH 47/75] [Gem] Updates setting content-type, accept to not overwrite user set headers --- elasticsearch/lib/elasticsearch.rb | 14 +++-- elasticsearch/spec/unit/headers_spec.rb | 69 +++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 5 deletions(-) diff --git a/elasticsearch/lib/elasticsearch.rb b/elasticsearch/lib/elasticsearch.rb index 3e55285ad9..fc54bae1c8 100644 --- a/elasticsearch/lib/elasticsearch.rb +++ b/elasticsearch/lib/elasticsearch.rb @@ -180,11 +180,15 @@ def set_user_agent!(arguments) end def set_content_type!(arguments) - headers = { - 'content-type' => 'application/vnd.elasticsearch+json; compatible-with=9', - 'accept' => 'application/vnd.elasticsearch+json; compatible-with=9' - } - set_header(headers, arguments) + headers = {} + user_headers = arguments&.[](:transport_options)&.[](:headers) + unless user_headers&.keys&.detect { |h| h =~ /content-?_?type/ } + headers['content-type'] = 'application/vnd.elasticsearch+json; compatible-with=9' + end + unless user_headers&.keys&.detect { |h| h =~ /accept/ } + headers['accept'] = 'application/vnd.elasticsearch+json; compatible-with=9' + end + set_header(headers, arguments) unless headers.empty? end def set_header(header, arguments) diff --git a/elasticsearch/spec/unit/headers_spec.rb b/elasticsearch/spec/unit/headers_spec.rb index 48a072b2fc..3751c74488 100644 --- a/elasticsearch/spec/unit/headers_spec.rb +++ b/elasticsearch/spec/unit/headers_spec.rb @@ -52,4 +52,73 @@ client.search(headers: param_headers) end end + + context 'when accept header is changed' do + let!(:client) do + described_class.new( + host: 'http://localhost:9200/', + transport_options: { headers: instance_headers } + ).tap do |client| + client.instance_variable_set('@verified', true) + end + end + let(:instance_headers) do + { accept: 'application/json' } + end + + it 'performs the request with the header' do + connection_headers = client.transport.connections.connections.first.connection.headers + expect(connection_headers['Accept']).to eq 'application/json' + expect(connection_headers['Content-Type']).to eq 'application/vnd.elasticsearch+json; compatible-with=9' + + expect_any_instance_of(Faraday::Connection) + .to receive(:run_request) + .with(:get, 'http://localhost:9200/_search', nil, connection_headers) { OpenStruct.new(body: '') } + client.search + end + end + + context 'when content-type header is changed' do + let!(:client) do + described_class.new( + host: 'http://localhost:9200/', + transport_options: { headers: instance_headers } + ).tap do |client| + client.instance_variable_set('@verified', true) + end + end + let(:instance_headers) do + { content_type: 'application/json' } + end + + it 'performs the request with the header' do + connection_headers = client.transport.connections.connections.first.connection.headers + expect(connection_headers['Accept']).to eq 'application/vnd.elasticsearch+json; compatible-with=9' + expect(connection_headers['Content-Type']).to eq 'application/json' + + expect_any_instance_of(Faraday::Connection) + .to receive(:run_request) + .with(:get, 'http://localhost:9200/_search', nil, connection_headers) { OpenStruct.new(body: '') } + client.search + end + end + + context 'when no header is set, uses v9 content-type and accept' do + let!(:client) do + described_class.new(host: 'http://localhost:9200/').tap do |client| + client.instance_variable_set('@verified', true) + end + end + + it 'performs the request with the header' do + expected_headers = client.transport.connections.connections.first.connection.headers + expect(expected_headers['Accept']).to eq 'application/vnd.elasticsearch+json; compatible-with=9' + expect(expected_headers['Content-Type']).to eq 'application/vnd.elasticsearch+json; compatible-with=9' + + expect_any_instance_of(Faraday::Connection) + .to receive(:run_request) + .with(:get, 'http://localhost:9200/_search', nil, expected_headers) { OpenStruct.new(body: '') } + client.search + end + end end From 4528026969c830e94002d7a429c35926d1a5ac24 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Thu, 24 Apr 2025 12:12:32 +0100 Subject: [PATCH 48/75] Bumps version to 9.0.2 and updates CHANGELOG --- CHANGELOG.md | 4 ++++ elasticsearch-api/lib/elasticsearch/api/version.rb | 2 +- elasticsearch/elasticsearch.gemspec | 2 +- elasticsearch/lib/elasticsearch/version.rb | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe77d46529..5bf67d8bf2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ **See the full release notes on the official documentation website: https://www.elastic.co/docs/release-notes/elasticsearch/clients/ruby** +# 9.0.2 + +- Udpates setting 'Accept' and 'Content-Type' headers as to not duplicate or overwrite set headers [#2666](https://github.com/elastic/elasticsearch-ruby/pull/2666). + # 9.0.1 - The request headers were updated for Elasticsearch v9: `compatible-with=9` [#2660](https://github.com/elastic/elasticsearch-ruby/pull/2660). diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index cfe3ba7dc9..e80c399f42 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -17,7 +17,7 @@ module Elasticsearch module API - VERSION = '9.0.1'.freeze + VERSION = '9.0.2'.freeze ES_SPECIFICATION_COMMIT = '52c473efb1fb5320a5bac12572d0b285882862fb'.freeze end end diff --git a/elasticsearch/elasticsearch.gemspec b/elasticsearch/elasticsearch.gemspec index af51fbec94..d626c4b89f 100644 --- a/elasticsearch/elasticsearch.gemspec +++ b/elasticsearch/elasticsearch.gemspec @@ -46,7 +46,7 @@ Gem::Specification.new do |s| s.rdoc_options = ['--charset=UTF-8'] s.required_ruby_version = '>= 2.6' # For compatibility with JRuby 9.3 - s.add_dependency 'elasticsearch-api', '9.0.1' + s.add_dependency 'elasticsearch-api', '9.0.2' s.add_dependency 'elastic-transport', '~> 8.3' s.add_development_dependency 'base64' diff --git a/elasticsearch/lib/elasticsearch/version.rb b/elasticsearch/lib/elasticsearch/version.rb index c745276d84..71afc1f7f1 100644 --- a/elasticsearch/lib/elasticsearch/version.rb +++ b/elasticsearch/lib/elasticsearch/version.rb @@ -16,5 +16,5 @@ # under the License. module Elasticsearch - VERSION = '9.0.1'.freeze + VERSION = '9.0.2'.freeze end From e55a11a0189f29e6dbcc64e5dc2675b6abbbc0f2 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 28 Apr 2025 09:38:58 +0100 Subject: [PATCH 49/75] [API] Updates source code docs --- .../actions/machine_learning/get_data_frame_analytics_stats.rb | 2 +- .../api/actions/machine_learning/get_datafeed_stats.rb | 2 +- .../elasticsearch/api/actions/machine_learning/get_job_stats.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/version.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb index 39580edbce..71d580273f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb @@ -22,7 +22,7 @@ module Elasticsearch module API module MachineLearning module Actions - # Get data frame analytics jobs usage info. + # Get data frame analytics job stats. # # @option arguments [String] :id Identifier for the data frame analytics job. If you do not specify this # option, the API returns information for the first hundred data frame diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb index 825718e6d6..e6c789e6e7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb @@ -22,7 +22,7 @@ module Elasticsearch module API module MachineLearning module Actions - # Get datafeeds usage info. + # Get datafeed stats. # You can get statistics for multiple datafeeds in a single API request by # using a comma-separated list of datafeeds or a wildcard expression. You can # get statistics for all datafeeds by using +_all+, by specifying +*+ as the diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb index 519422cdb3..978ef67b1e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb @@ -22,7 +22,7 @@ module Elasticsearch module API module MachineLearning module Actions - # Get anomaly detection jobs usage info. + # Get anomaly detection job stats. # # @option arguments [String] :job_id Identifier for the anomaly detection job. It can be a job identifier, a # group name, a comma-separated list of jobs, or a wildcard expression. If diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index e80c399f42..27819891e7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.2'.freeze - ES_SPECIFICATION_COMMIT = '52c473efb1fb5320a5bac12572d0b285882862fb'.freeze + ES_SPECIFICATION_COMMIT = 'e376b3c12fd1ee1d93d428df5fc6f745ba5d6078'.freeze end end From 995297967b0ea7c8bcadaf78ec4eddebc7bd3e54 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 28 Apr 2025 16:00:08 +0100 Subject: [PATCH 50/75] [DOCS] Updates CONTRIBUTING --- CONTRIBUTING.md | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4c7bbf1cc6..aeaa7b0b62 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,12 +16,12 @@ This will run `bundle install` in all subprojects. You can run the client code right away in a Interactive Ruby Shell by running the following command from the project's root directory: ``` -$ ./elasticsearch/bin/elastic_ruby_console +$ rake console # calls ./elasticsearch/bin/elastic_ruby_console [1] elastic_ruby(main)> client = Elasticsearch::Client.new(host: 'http://elastic:changeme@localhost:9200/', log: true) [2] elastic_ruby(main)> client.info ``` -This will use either `irb` or `pry` and load the `elasticsearch` and `elasticsearch-api` gems into the shell. +This will use either `irb` or `pry` and load the `elasticsearch` and `elasticsearch-api` gems into the shell. # Tests @@ -31,8 +31,8 @@ To run the tests, you need to start a testing cluster on port 9200. We suggest u rake docker:start[VERSION] ``` -E.g.: `rake docker:start[8.0-SNAPSHOT]`. -To start the container with Platinum, pass it in as a parameter: `rake docker:start[7.x-SNAPSHOT,platinum]`. +E.g.: `rake docker:start[9.0.0-SNAPSHOT]`. +To start the container with Platinum, pass it in as a parameter: `rake docker:start[8.x-SNAPSHOT,platinum]`. There's another rake task that will read the STACK_VERSION value from `.buildkite/pipeline.yml` and run that version of Elasticsearch: `rake es:up`. @@ -42,6 +42,12 @@ max virtual memory areas vm.max_map_count [65530] likely too low, increase to at ``` Check [this link](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_set_vm_max_map_count_to_at_least_262144) for instructions on how to fix it. +You can also use [start-local](https://github.com/elastic/start-local), which can run Elasticsearch and Kibana locally for development/testing. You only need to run Elasticsearch (`-esonly`) for development purposes, and you can specify a version with the `-v` parameter: + +```bash +curl -fsSL https://elastic.co/start-local | sh -s -- -esonly -v 9.0.0 +``` + As mentioned, the tests will atempt to run against `http://localhost:9200` by default. We provide the Docker task for the test cluster and recommend using it. But you can provide a different test server of your own. If you're using a different host or port, set the `TEST_ES_SERVER` environment variable with the server information. E.g.: ``` @@ -51,12 +57,20 @@ $ TEST_ES_SERVER='http://localhost:9250/' be rake test:client To run all the tests in all the subprojects, use the Rake task: ``` -time rake test:client +rake test:client ``` -# Elasticsearch Rest API YAML Test Runner +# Elasticsearch Rest API Tests + +The integration tests on this project run the [Elasticsearch Client tests](https://github.com/elastic/elasticsearch-clients-tests/) with the [Elasticsearch Tests Runner](https://github.com/elastic/es-test-runner-ruby/) library. This runs in CI against an Elasticsearch cluster in Docker. The [Elasticsearch's REST API Spec tests](https://github.com/elastic/elasticsearch/tree/main/rest-api-spec/src/main/resources/rest-api-spec/test#test-suite) can still be ran following [these instructions](https://github.com/elastic/elasticsearch-ruby/tree/main/elasticsearch-api/api-spec-testing#readme). + +You can run the yaml API tests with: + +``` +rake test:yaml +``` -See the API Spec tests [README](https://github.com/elastic/elasticsearch-ruby/tree/main/elasticsearch-api/api-spec-testing#readme). +Check `rake -T` for more test tasks. # Contributing From 0b170aa7d96c2d42aded5985c4260ccacdf89725 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Fri, 2 May 2025 15:28:55 +0100 Subject: [PATCH 51/75] [API] Updates source code docs create, search --- .../lib/elasticsearch/api/actions/indices/create.rb | 10 +++++++++- .../lib/elasticsearch/api/actions/search.rb | 4 ++-- elasticsearch-api/lib/elasticsearch/api/version.rb | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb index 21b4f3a831..d8ca968107 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb @@ -39,7 +39,15 @@ module Actions # You can change the default of only waiting for the primary shards to start through the index setting +index.write.wait_for_active_shards+. # Note that changing this setting will also affect the +wait_for_active_shards+ value on all subsequent write operations. # - # @option arguments [String] :index Name of the index you wish to create. (*Required*) + # @option arguments [String] :index Name of the index you wish to create. + # Index names must meet the following criteria: + # - Lowercase only + # - Cannot include +\+, +/+, +*+, +?+, +"+, +<+, +>+, +|+, ++ (space character), +,+, or +#+ + # - Indices prior to 7.0 could contain a colon (+:+), but that has been deprecated and will not be supported in later versions + # - Cannot start with +-+, +_+, or +++ + # - Cannot be +.+ or +..+ + # - Cannot be longer than 255 bytes (note thtat it is bytes, so multi-byte characters will reach the limit faster) + # - Names starting with +.+ are deprecated, except for hidden indices and internal indices managed by plugins (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search.rb index ce105f93de..bc5754d830 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search.rb @@ -76,8 +76,8 @@ module Actions # - +_local+ to, if possible, run the search on shards on the local node, or if not, select shards using the default method. # - +_only_nodes:,+ to run the search on only the specified nodes IDs. If suitable shards exist on more than one selected node, use shards on those nodes using the default method. If none of the specified nodes are available, select shards from any available node using the default method. # - +_prefer_nodes:,+ to if possible, run the search on the specified nodes IDs. If not, select shards using the default method. - # +_shards:,+ to run the search only on the specified shards. You can combine this value with other +preference+ values. However, the +_shards+ value must come first. For example: +_shards:2,3|_local+. - # ++ (any string that does not start with +_+) to route searches with the same ++ to the same shards in the same order. + # - +_shards:,+ to run the search only on the specified shards. You can combine this value with other +preference+ values. However, the +_shards+ value must come first. For example: +_shards:2,3|_local+. + # - ++ (any string that does not start with +_+) to route searches with the same ++ to the same shards in the same order. # @option arguments [Integer] :pre_filter_shard_size A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. # This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method (if date filters are mandatory to match but the shard bounds and the query are disjoint). # When unspecified, the pre-filter phase is executed if any of these conditions is met: diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index 27819891e7..62d49369fb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.2'.freeze - ES_SPECIFICATION_COMMIT = 'e376b3c12fd1ee1d93d428df5fc6f745ba5d6078'.freeze + ES_SPECIFICATION_COMMIT = '922e9456120bb3e729432d252a36ddd2b705df96'.freeze end end From 2c9ee984e582c826b4e41de1e6c0e7c75a9d548c Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Thu, 15 May 2025 10:00:15 +0100 Subject: [PATCH 52/75] [CI] Use JRuby 10.0 --- .github/workflows/9.0.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/9.0.yml b/.github/workflows/9.0.yml index b041bda11f..5839cbf515 100644 --- a/.github/workflows/9.0.yml +++ b/.github/workflows/9.0.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ['3.1', '3.2', '3.3', '3.4', 'jruby-9.3', 'jruby-9.4'] + ruby: ['3.1', '3.2', '3.3', '3.4', 'jruby-9.3', 'jruby-9.4', 'jruby-10.0'] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From 8b31fa92ae42cadf3bb0d752b142c86f3f46cbc5 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Thu, 15 May 2025 10:04:11 +0100 Subject: [PATCH 53/75] [CI] Increase retry delay for Serverless tests --- elasticsearch-api/spec/yaml-test-runner/run.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch-api/spec/yaml-test-runner/run.rb b/elasticsearch-api/spec/yaml-test-runner/run.rb index 5426ea3acd..d7f32635ff 100644 --- a/elasticsearch-api/spec/yaml-test-runner/run.rb +++ b/elasticsearch-api/spec/yaml-test-runner/run.rb @@ -63,8 +63,8 @@ def serverless? options.merge!( { retry_on_status: [409, 400, 503], - retry_on_failure: 10, - delay_on_retry: 5_000, + retry_on_failure: 20, + delay_on_retry: 10_000, request_timeout: 120 } ) From 98db1ec0b9c23230b3db052717325bc305df7393 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 19 May 2025 09:56:51 +0100 Subject: [PATCH 54/75] [API] Adds aliases for ccr and slm --- elasticsearch-api/lib/elasticsearch/api.rb | 2 ++ elasticsearch-api/spec/unit/client_spec.rb | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/elasticsearch-api/lib/elasticsearch/api.rb b/elasticsearch-api/lib/elasticsearch/api.rb index f187a05021..eddd6bcd1a 100644 --- a/elasticsearch-api/lib/elasticsearch/api.rb +++ b/elasticsearch-api/lib/elasticsearch/api.rb @@ -110,6 +110,8 @@ def perform_request(method, path, params = {}, body = nil, headers = nil, reques alias ml machine_learning alias ilm index_lifecycle_management + alias ccr cross_cluster_replication + alias slm snapshot_lifecycle_management # The serializer class # diff --git a/elasticsearch-api/spec/unit/client_spec.rb b/elasticsearch-api/spec/unit/client_spec.rb index 9b4ade1af6..1021878543 100644 --- a/elasticsearch-api/spec/unit/client_spec.rb +++ b/elasticsearch-api/spec/unit/client_spec.rb @@ -39,4 +39,26 @@ expect(client.respond_to?(:bulk)).to be(true) end end + + describe 'aliases' do + it 'uses ml alias' do + expect(client.machine_learning).to be_a MachineLearningClient + expect(client.ml).to be_a MachineLearningClient + end + + it 'uses ilm alias' do + expect(client.index_lifecycle_management).to be_a IndexLifecycleManagementClient + expect(client.ilm).to be_a IndexLifecycleManagementClient + end + + it 'uses ccr alias' do + expect(client.cross_cluster_replication).to be_a CrossClusterReplicationClient + expect(client.ccr).to be_a CrossClusterReplicationClient + end + + it 'uses slm alias' do + expect(client.snapshot_lifecycle_management).to be_a SnapshotLifecycleManagementClient + expect(client.slm).to be_a SnapshotLifecycleManagementClient + end + end end From e08b4a6c0d6db2b46859be8c4ad4d8ac301a6293 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 19 May 2025 10:08:28 +0100 Subject: [PATCH 55/75] [CI] Updates STACK_VERSION --- .buildkite/pipeline.yml | 2 +- .github/workflows/9.0.yml | 4 ++-- .github/workflows/otel.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 73107a369c..c635c77b45 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -25,7 +25,7 @@ steps: transport: main env: RUBY_VERSION: '{{ matrix.ruby }}' - STACK_VERSION: 9.0.0-SNAPSHOT + STACK_VERSION: 9.0.2-SNAPSHOT ES_YAML_TESTS_BRANCH: '9.0' TRANSPORT_VERSION: '{{ matrix.transport }}' RUBY_SOURCE: '{{ matrix.ruby_source }}' diff --git a/.github/workflows/9.0.yml b/.github/workflows/9.0.yml index 5839cbf515..492c154439 100644 --- a/.github/workflows/9.0.yml +++ b/.github/workflows/9.0.yml @@ -26,7 +26,7 @@ jobs: sudo sysctl -w vm.max_map_count=262144 - uses: elastic/elastic-github-actions/elasticsearch@master with: - stack-version: 9.0.0-SNAPSHOT + stack-version: 9.0.2-SNAPSHOT - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} @@ -39,4 +39,4 @@ jobs: - name: elasticsearch run: cd elasticsearch && bundle exec rake test:all - name: elasticsearch-api - run: rake es:download_artifacts[9.0.0-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:all + run: rake es:download_artifacts[9.0.2-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:all diff --git a/.github/workflows/otel.yml b/.github/workflows/otel.yml index 1e8d6d6cb7..1d7e4f927f 100644 --- a/.github/workflows/otel.yml +++ b/.github/workflows/otel.yml @@ -28,7 +28,7 @@ jobs: sudo sysctl -w vm.max_map_count=262144 - uses: elastic/elastic-github-actions/elasticsearch@master with: - stack-version: 9.0.0-SNAPSHOT + stack-version: 9.0.2-SNAPSHOT - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} @@ -41,4 +41,4 @@ jobs: - name: elasticsearch run: cd elasticsearch && bundle exec rake test:all - name: elasticsearch-api - run: rake es:download_artifacts[9.0.0-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:all + run: rake es:download_artifacts[9.0.2-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:all From f1595a5707998fe594658d92f0fd17bd93ff6706 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Mon, 19 May 2025 11:05:03 +0100 Subject: [PATCH 56/75] Bumps version to 9.0.3 and updates CHANGELOG --- CHANGELOG.md | 6 ++++++ elasticsearch-api/lib/elasticsearch/api/version.rb | 2 +- elasticsearch/elasticsearch.gemspec | 2 +- elasticsearch/lib/elasticsearch/version.rb | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bf67d8bf2..739bacd157 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ **See the full release notes on the official documentation website: https://www.elastic.co/docs/release-notes/elasticsearch/clients/ruby** +# 9.0.3 + +- Adds `ccr` alias for `cross_cluster_replication` and `slm` alias for `snapshot_lifecycle_management`. +- Tested for JRuby 10.0.0. +- General updates in source code docs. + # 9.0.2 - Udpates setting 'Accept' and 'Content-Type' headers as to not duplicate or overwrite set headers [#2666](https://github.com/elastic/elasticsearch-ruby/pull/2666). diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index 62d49369fb..fc2f3c35bb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -17,7 +17,7 @@ module Elasticsearch module API - VERSION = '9.0.2'.freeze + VERSION = '9.0.3'.freeze ES_SPECIFICATION_COMMIT = '922e9456120bb3e729432d252a36ddd2b705df96'.freeze end end diff --git a/elasticsearch/elasticsearch.gemspec b/elasticsearch/elasticsearch.gemspec index d626c4b89f..bd4ad89b7f 100644 --- a/elasticsearch/elasticsearch.gemspec +++ b/elasticsearch/elasticsearch.gemspec @@ -46,7 +46,7 @@ Gem::Specification.new do |s| s.rdoc_options = ['--charset=UTF-8'] s.required_ruby_version = '>= 2.6' # For compatibility with JRuby 9.3 - s.add_dependency 'elasticsearch-api', '9.0.2' + s.add_dependency 'elasticsearch-api', '9.0.3' s.add_dependency 'elastic-transport', '~> 8.3' s.add_development_dependency 'base64' diff --git a/elasticsearch/lib/elasticsearch/version.rb b/elasticsearch/lib/elasticsearch/version.rb index 71afc1f7f1..dbd105bc62 100644 --- a/elasticsearch/lib/elasticsearch/version.rb +++ b/elasticsearch/lib/elasticsearch/version.rb @@ -16,5 +16,5 @@ # under the License. module Elasticsearch - VERSION = '9.0.2'.freeze + VERSION = '9.0.3'.freeze end From c59e12ee799e7d38ba9ac84fe9a5fbf93a74e5b3 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 11 Jun 2025 09:15:32 +0100 Subject: [PATCH 57/75] [Tests] Retry on 408 for Serverless since inference is timing out --- elasticsearch-api/spec/yaml-test-runner/run.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch-api/spec/yaml-test-runner/run.rb b/elasticsearch-api/spec/yaml-test-runner/run.rb index d7f32635ff..ad8b9a89db 100644 --- a/elasticsearch-api/spec/yaml-test-runner/run.rb +++ b/elasticsearch-api/spec/yaml-test-runner/run.rb @@ -62,7 +62,7 @@ def serverless? if serverless? options.merge!( { - retry_on_status: [409, 400, 503], + retry_on_status: [408, 409, 400, 503], retry_on_failure: 20, delay_on_retry: 10_000, request_timeout: 120 From 8cb2cc949273867433a86e8b2b4cdda661890fce Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Fri, 13 Jun 2025 15:34:47 +0100 Subject: [PATCH 58/75] [API] Updates source code docs, version Brings back common parameters documentation (`human`, `error_trace`, `pretty`, `filter_path`) --- .../api/actions/async_search/delete.rb | 15 +- .../api/actions/async_search/get.rb | 13 +- .../api/actions/async_search/status.rb | 13 +- .../api/actions/async_search/submit.rb | 19 ++- .../lib/elasticsearch/api/actions/bulk.rb | 147 ++++++++++-------- .../elasticsearch/api/actions/cat/aliases.rb | 27 +++- .../api/actions/cat/allocation.rb | 25 ++- .../api/actions/cat/component_templates.rb | 25 ++- .../elasticsearch/api/actions/cat/count.rb | 25 ++- .../api/actions/cat/fielddata.rb | 21 ++- .../elasticsearch/api/actions/cat/health.rb | 27 +++- .../elasticsearch/api/actions/cat/indices.rb | 23 ++- .../elasticsearch/api/actions/cat/master.rb | 25 ++- .../actions/cat/ml_data_frame_analytics.rb | 19 ++- .../api/actions/cat/ml_datafeeds.rb | 25 ++- .../elasticsearch/api/actions/cat/ml_jobs.rb | 27 +++- .../api/actions/cat/ml_trained_models.rb | 23 ++- .../api/actions/cat/nodeattrs.rb | 25 ++- .../elasticsearch/api/actions/cat/nodes.rb | 32 ++-- .../api/actions/cat/pending_tasks.rb | 25 ++- .../elasticsearch/api/actions/cat/plugins.rb | 25 ++- .../elasticsearch/api/actions/cat/recovery.rb | 27 +++- .../api/actions/cat/repositories.rb | 25 ++- .../elasticsearch/api/actions/cat/segments.rb | 29 ++-- .../elasticsearch/api/actions/cat/shards.rb | 25 ++- .../api/actions/cat/snapshots.rb | 25 ++- .../elasticsearch/api/actions/cat/tasks.rb | 25 ++- .../api/actions/cat/templates.rb | 25 ++- .../api/actions/cat/thread_pool.rb | 25 ++- .../api/actions/cat/transforms.rb | 23 ++- .../elasticsearch/api/actions/clear_scroll.rb | 13 +- .../api/actions/close_point_in_time.rb | 17 +- .../api/actions/cluster/allocation_explain.rb | 12 ++ .../cluster/delete_component_template.rb | 11 ++ .../delete_voting_config_exclusions.rb | 11 ++ .../cluster/exists_component_template.rb | 11 ++ .../actions/cluster/get_component_template.rb | 19 ++- .../api/actions/cluster/get_settings.rb | 15 +- .../api/actions/cluster/health.rb | 13 +- .../elasticsearch/api/actions/cluster/info.rb | 13 +- .../api/actions/cluster/pending_tasks.rb | 15 +- .../cluster/post_voting_config_exclusions.rb | 19 ++- .../actions/cluster/put_component_template.rb | 25 ++- .../api/actions/cluster/put_settings.rb | 21 ++- .../api/actions/cluster/remote_info.rb | 13 +- .../api/actions/cluster/reroute.rb | 19 ++- .../api/actions/cluster/state.rb | 17 +- .../api/actions/cluster/stats.rb | 13 +- .../api/actions/connector/check_in.rb | 15 +- .../api/actions/connector/delete.rb | 11 ++ .../api/actions/connector/get.rb | 11 ++ .../api/actions/connector/list.rb | 11 ++ .../api/actions/connector/post.rb | 13 +- .../api/actions/connector/put.rb | 13 +- .../api/actions/connector/sync_job_cancel.rb | 15 +- .../actions/connector/sync_job_check_in.rb | 15 +- .../api/actions/connector/sync_job_claim.rb | 17 +- .../api/actions/connector/sync_job_delete.rb | 13 +- .../api/actions/connector/sync_job_error.rb | 15 +- .../api/actions/connector/sync_job_get.rb | 13 +- .../api/actions/connector/sync_job_list.rb | 11 ++ .../api/actions/connector/sync_job_post.rb | 13 +- .../connector/sync_job_update_stats.rb | 17 +- .../connector/update_active_filtering.rb | 13 +- .../actions/connector/update_api_key_id.rb | 15 +- .../actions/connector/update_configuration.rb | 13 +- .../api/actions/connector/update_error.rb | 13 +- .../api/actions/connector/update_features.rb | 13 +- .../api/actions/connector/update_filtering.rb | 13 +- .../connector/update_filtering_validation.rb | 13 +- .../actions/connector/update_index_name.rb | 15 +- .../api/actions/connector/update_name.rb | 13 +- .../api/actions/connector/update_native.rb | 13 +- .../api/actions/connector/update_pipeline.rb | 13 +- .../actions/connector/update_scheduling.rb | 13 +- .../actions/connector/update_service_type.rb | 13 +- .../api/actions/connector/update_status.rb | 13 +- .../lib/elasticsearch/api/actions/count.rb | 45 ++++-- .../lib/elasticsearch/api/actions/create.rb | 87 ++++++----- .../delete_auto_follow_pattern.rb | 13 +- .../cross_cluster_replication/follow.rb | 11 ++ .../cross_cluster_replication/follow_info.rb | 13 +- .../cross_cluster_replication/follow_stats.rb | 11 ++ .../forget_follower.rb | 11 ++ .../get_auto_follow_pattern.rb | 13 +- .../pause_auto_follow_pattern.rb | 13 +- .../cross_cluster_replication/pause_follow.rb | 13 +- .../put_auto_follow_pattern.rb | 11 ++ .../resume_auto_follow_pattern.rb | 13 +- .../resume_follow.rb | 11 ++ .../cross_cluster_replication/stats.rb | 13 +- .../cross_cluster_replication/unfollow.rb | 13 +- .../dangling_indices/delete_dangling_index.rb | 13 +- .../dangling_indices/import_dangling_index.rb | 13 +- .../dangling_indices/list_dangling_indices.rb | 15 +- .../lib/elasticsearch/api/actions/delete.rb | 35 +++-- .../api/actions/delete_by_query.rb | 109 +++++++------ .../api/actions/delete_by_query_rethrottle.rb | 13 +- .../api/actions/delete_script.rb | 15 +- .../api/actions/enrich/delete_policy.rb | 11 ++ .../api/actions/enrich/execute_policy.rb | 13 +- .../api/actions/enrich/get_policy.rb | 11 ++ .../api/actions/enrich/put_policy.rb | 11 ++ .../elasticsearch/api/actions/enrich/stats.rb | 11 ++ .../elasticsearch/api/actions/eql/delete.rb | 15 +- .../lib/elasticsearch/api/actions/eql/get.rb | 11 ++ .../api/actions/eql/get_status.rb | 13 +- .../elasticsearch/api/actions/eql/search.rb | 11 ++ .../api/actions/esql/async_query.rb | 21 ++- .../api/actions/esql/async_query_delete.rb | 17 +- .../api/actions/esql/async_query_get.rb | 19 ++- .../api/actions/esql/async_query_stop.rb | 17 +- .../elasticsearch/api/actions/esql/query.rb | 15 +- .../lib/elasticsearch/api/actions/exists.rb | 47 ++++-- .../api/actions/exists_source.rb | 27 +++- .../lib/elasticsearch/api/actions/explain.rb | 37 +++-- .../api/actions/features/get_features.rb | 13 +- .../api/actions/features/reset_features.rb | 11 ++ .../elasticsearch/api/actions/field_caps.rb | 23 ++- .../api/actions/fleet/global_checkpoints.rb | 19 ++- .../api/actions/fleet/msearch.rb | 15 +- .../elasticsearch/api/actions/fleet/search.rb | 13 +- .../lib/elasticsearch/api/actions/get.rb | 73 +++++---- .../elasticsearch/api/actions/get_script.rb | 13 +- .../api/actions/get_script_context.rb | 13 +- .../api/actions/get_script_languages.rb | 13 +- .../elasticsearch/api/actions/get_source.rb | 32 ++-- .../api/actions/graph/explore.rb | 13 +- .../api/actions/health_report.rb | 11 ++ .../lib/elasticsearch/api/actions/index.rb | 95 ++++++----- .../delete_lifecycle.rb | 11 ++ .../explain_lifecycle.rb | 15 +- .../get_lifecycle.rb | 11 ++ .../index_lifecycle_management/get_status.rb | 13 +- .../migrate_to_data_tiers.rb | 15 +- .../move_to_step.rb | 15 +- .../put_lifecycle.rb | 11 ++ .../remove_policy.rb | 13 +- .../index_lifecycle_management/retry.rb | 13 +- .../index_lifecycle_management/start.rb | 11 ++ .../index_lifecycle_management/stop.rb | 11 ++ .../api/actions/indices/add_block.rb | 27 +++- .../api/actions/indices/analyze.rb | 17 +- .../actions/indices/cancel_migrate_reindex.rb | 13 +- .../api/actions/indices/clear_cache.rb | 37 +++-- .../api/actions/indices/clone.rb | 21 ++- .../api/actions/indices/close.rb | 27 +++- .../api/actions/indices/create.rb | 35 +++-- .../api/actions/indices/create_data_stream.rb | 17 +- .../api/actions/indices/create_from.rb | 13 +- .../api/actions/indices/data_streams_stats.rb | 17 +- .../api/actions/indices/delete.rb | 23 ++- .../api/actions/indices/delete_alias.rb | 15 +- .../actions/indices/delete_data_lifecycle.rb | 13 +- .../api/actions/indices/delete_data_stream.rb | 15 +- .../actions/indices/delete_index_template.rb | 11 ++ .../api/actions/indices/delete_template.rb | 14 +- .../api/actions/indices/disk_usage.rb | 29 ++-- .../api/actions/indices/downsample.rb | 17 +- .../api/actions/indices/exists.rb | 27 +++- .../api/actions/indices/exists_alias.rb | 25 ++- .../actions/indices/exists_index_template.rb | 11 ++ .../api/actions/indices/exists_template.rb | 15 +- .../actions/indices/explain_data_lifecycle.rb | 11 ++ .../api/actions/indices/field_usage_stats.rb | 19 ++- .../api/actions/indices/flush.rb | 29 ++-- .../api/actions/indices/forcemerge.rb | 32 ++-- .../elasticsearch/api/actions/indices/get.rb | 11 ++ .../api/actions/indices/get_alias.rb | 27 +++- .../api/actions/indices/get_data_lifecycle.rb | 21 ++- .../indices/get_data_lifecycle_stats.rb | 13 +- .../api/actions/indices/get_data_stream.rb | 15 +- .../api/actions/indices/get_field_mapping.rb | 29 ++-- .../api/actions/indices/get_index_template.rb | 11 ++ .../api/actions/indices/get_mapping.rb | 25 ++- .../indices/get_migrate_reindex_status.rb | 13 +- .../api/actions/indices/get_settings.rb | 35 +++-- .../api/actions/indices/get_template.rb | 21 ++- .../api/actions/indices/migrate_reindex.rb | 13 +- .../actions/indices/migrate_to_data_stream.rb | 13 +- .../api/actions/indices/modify_data_stream.rb | 13 +- .../elasticsearch/api/actions/indices/open.rb | 35 +++-- .../actions/indices/promote_data_stream.rb | 11 ++ .../api/actions/indices/put_alias.rb | 13 +- .../api/actions/indices/put_data_lifecycle.rb | 19 ++- .../api/actions/indices/put_index_template.rb | 21 ++- .../api/actions/indices/put_mapping.rb | 25 ++- .../api/actions/indices/put_settings.rb | 78 ++++++++-- .../api/actions/indices/put_template.rb | 15 +- .../api/actions/indices/recovery.rb | 19 ++- .../api/actions/indices/refresh.rb | 27 +++- .../indices/reload_search_analyzers.rb | 17 +- .../api/actions/indices/resolve_cluster.rb | 59 ++++--- .../api/actions/indices/resolve_index.rb | 23 ++- .../api/actions/indices/rollover.rb | 31 ++-- .../api/actions/indices/segments.rb | 23 ++- .../api/actions/indices/shard_stores.rb | 11 ++ .../api/actions/indices/shrink.rb | 15 +- .../indices/simulate_index_template.rb | 11 ++ .../api/actions/indices/simulate_template.rb | 11 ++ .../api/actions/indices/split.rb | 23 ++- .../api/actions/indices/stats.rb | 23 ++- .../api/actions/indices/update_aliases.rb | 11 ++ .../api/actions/indices/validate_query.rb | 39 +++-- .../inference/chat_completion_unified.rb | 17 ++ .../api/actions/inference/completion.rb | 11 ++ .../api/actions/inference/delete.rb | 11 ++ .../api/actions/inference/get.rb | 13 +- .../api/actions/inference/inference.rb | 11 ++ .../api/actions/inference/put.rb | 37 ++++- .../api/actions/inference/put_alibabacloud.rb | 20 ++- .../actions/inference/put_amazonbedrock.rb | 15 +- .../api/actions/inference/put_anthropic.rb | 22 ++- .../actions/inference/put_azureaistudio.rb | 20 ++- .../api/actions/inference/put_azureopenai.rb | 22 ++- .../api/actions/inference/put_cohere.rb | 20 ++- .../actions/inference/put_elasticsearch.rb | 17 +- .../api/actions/inference/put_elser.rb | 15 +- .../actions/inference/put_googleaistudio.rb | 20 ++- .../actions/inference/put_googlevertexai.rb | 20 ++- .../api/actions/inference/put_hugging_face.rb | 36 +++-- .../api/actions/inference/put_jinaai.rb | 24 +-- .../api/actions/inference/put_mistral.rb | 22 ++- .../api/actions/inference/put_openai.rb | 22 ++- .../api/actions/inference/put_voyageai.rb | 15 +- .../api/actions/inference/put_watsonx.rb | 24 +-- .../api/actions/inference/rerank.rb | 11 ++ .../api/actions/inference/sparse_embedding.rb | 11 ++ .../actions/inference/stream_completion.rb | 15 +- .../api/actions/inference/text_embedding.rb | 11 ++ .../api/actions/inference/update.rb | 15 +- .../lib/elasticsearch/api/actions/info.rb | 13 +- .../actions/ingest/delete_geoip_database.rb | 11 ++ .../ingest/delete_ip_location_database.rb | 15 +- .../api/actions/ingest/delete_pipeline.rb | 13 +- .../api/actions/ingest/geo_ip_stats.rb | 13 +- .../api/actions/ingest/get_geoip_database.rb | 17 +- .../ingest/get_ip_location_database.rb | 17 +- .../api/actions/ingest/get_pipeline.rb | 15 +- .../api/actions/ingest/processor_grok.rb | 13 +- .../api/actions/ingest/put_geoip_database.rb | 11 ++ .../ingest/put_ip_location_database.rb | 15 +- .../api/actions/ingest/put_pipeline.rb | 11 ++ .../api/actions/ingest/simulate.rb | 15 +- .../api/actions/license/delete.rb | 11 ++ .../elasticsearch/api/actions/license/get.rb | 15 +- .../api/actions/license/get_basic_status.rb | 13 +- .../api/actions/license/get_trial_status.rb | 13 +- .../elasticsearch/api/actions/license/post.rb | 11 ++ .../api/actions/license/post_start_basic.rb | 13 +- .../api/actions/license/post_start_trial.rb | 11 ++ .../api/actions/logstash/delete_pipeline.rb | 13 +- .../api/actions/logstash/get_pipeline.rb | 13 +- .../api/actions/logstash/put_pipeline.rb | 13 +- .../clear_trained_model_deployment_cache.rb | 13 +- .../api/actions/machine_learning/close_job.rb | 19 ++- .../machine_learning/delete_calendar.rb | 13 +- .../machine_learning/delete_calendar_event.rb | 13 +- .../machine_learning/delete_calendar_job.rb | 13 +- .../delete_data_frame_analytics.rb | 13 +- .../machine_learning/delete_datafeed.rb | 11 ++ .../machine_learning/delete_expired_data.rb | 15 +- .../actions/machine_learning/delete_filter.rb | 13 +- .../machine_learning/delete_forecast.rb | 17 +- .../actions/machine_learning/delete_job.rb | 11 ++ .../machine_learning/delete_model_snapshot.rb | 15 +- .../machine_learning/delete_trained_model.rb | 11 ++ .../delete_trained_model_alias.rb | 15 +- .../machine_learning/estimate_model_memory.rb | 13 +- .../machine_learning/evaluate_data_frame.rb | 13 +- .../explain_data_frame_analytics.rb | 13 +- .../api/actions/machine_learning/flush_job.rb | 15 +- .../api/actions/machine_learning/forecast.rb | 15 +- .../actions/machine_learning/get_buckets.rb | 19 ++- .../machine_learning/get_calendar_events.rb | 15 +- .../actions/machine_learning/get_calendars.rb | 13 +- .../machine_learning/get_categories.rb | 11 ++ .../get_data_frame_analytics.rb | 15 +- .../get_data_frame_analytics_stats.rb | 15 +- .../machine_learning/get_datafeed_stats.rb | 25 ++- .../actions/machine_learning/get_datafeeds.rb | 23 ++- .../actions/machine_learning/get_filters.rb | 11 ++ .../machine_learning/get_influencers.rb | 15 +- .../actions/machine_learning/get_job_stats.rb | 15 +- .../api/actions/machine_learning/get_jobs.rb | 17 +- .../machine_learning/get_memory_stats.rb | 15 +- .../get_model_snapshot_upgrade_stats.rb | 15 +- .../machine_learning/get_model_snapshots.rb | 15 +- .../machine_learning/get_overall_buckets.rb | 47 +++--- .../actions/machine_learning/get_records.rb | 13 +- .../machine_learning/get_trained_models.rb | 11 ++ .../get_trained_models_stats.rb | 11 ++ .../machine_learning/infer_trained_model.rb | 11 ++ .../api/actions/machine_learning/info.rb | 13 +- .../api/actions/machine_learning/open_job.rb | 11 ++ .../machine_learning/post_calendar_events.rb | 13 +- .../api/actions/machine_learning/post_data.rb | 11 ++ .../preview_data_frame_analytics.rb | 13 +- .../machine_learning/preview_datafeed.rb | 11 ++ .../actions/machine_learning/put_calendar.rb | 13 +- .../machine_learning/put_calendar_job.rb | 13 +- .../put_data_frame_analytics.rb | 15 +- .../actions/machine_learning/put_datafeed.rb | 29 +++- .../actions/machine_learning/put_filter.rb | 15 +- .../api/actions/machine_learning/put_job.rb | 33 ++-- .../machine_learning/put_trained_model.rb | 13 +- .../put_trained_model_alias.rb | 11 ++ .../put_trained_model_definition_part.rb | 15 +- .../put_trained_model_vocabulary.rb | 15 +- .../api/actions/machine_learning/reset_job.rb | 11 ++ .../machine_learning/revert_model_snapshot.rb | 13 +- .../machine_learning/set_upgrade_mode.rb | 13 +- .../start_data_frame_analytics.rb | 13 +- .../machine_learning/start_datafeed.rb | 25 ++- .../start_trained_model_deployment.rb | 15 +- .../stop_data_frame_analytics.rb | 11 ++ .../actions/machine_learning/stop_datafeed.rb | 21 ++- .../stop_trained_model_deployment.rb | 15 +- .../update_data_frame_analytics.rb | 13 +- .../machine_learning/update_datafeed.rb | 29 ++-- .../actions/machine_learning/update_filter.rb | 13 +- .../actions/machine_learning/update_job.rb | 13 +- .../machine_learning/update_model_snapshot.rb | 13 +- .../update_trained_model_deployment.rb | 11 ++ .../machine_learning/upgrade_job_snapshot.rb | 11 ++ .../lib/elasticsearch/api/actions/mget.rb | 37 +++-- .../api/actions/migration/deprecations.rb | 13 +- .../migration/get_feature_upgrade_status.rb | 13 +- .../actions/migration/post_feature_upgrade.rb | 13 +- .../lib/elasticsearch/api/actions/msearch.rb | 37 +++-- .../api/actions/msearch_template.rb | 30 ++-- .../elasticsearch/api/actions/mtermvectors.rb | 29 ++-- .../clear_repositories_metering_archive.rb | 15 +- .../nodes/get_repositories_metering_info.rb | 13 +- .../api/actions/nodes/hot_threads.rb | 11 ++ .../elasticsearch/api/actions/nodes/info.rb | 11 ++ .../actions/nodes/reload_secure_settings.rb | 11 ++ .../elasticsearch/api/actions/nodes/stats.rb | 13 +- .../elasticsearch/api/actions/nodes/usage.rb | 15 +- .../api/actions/open_point_in_time.rb | 33 ++-- .../lib/elasticsearch/api/actions/ping.rb | 13 +- .../elasticsearch/api/actions/put_script.rb | 15 +- .../api/actions/query_rules/delete_rule.rb | 13 +- .../api/actions/query_rules/delete_ruleset.rb | 11 ++ .../api/actions/query_rules/get_rule.rb | 13 +- .../api/actions/query_rules/get_ruleset.rb | 13 +- .../api/actions/query_rules/list_rulesets.rb | 11 ++ .../api/actions/query_rules/put_rule.rb | 13 +- .../api/actions/query_rules/put_ruleset.rb | 17 +- .../api/actions/query_rules/test.rb | 13 +- .../elasticsearch/api/actions/rank_eval.rb | 19 ++- .../lib/elasticsearch/api/actions/reindex.rb | 135 +++++++++------- .../api/actions/reindex_rethrottle.rb | 19 ++- .../api/actions/render_search_template.rb | 15 +- .../api/actions/scripts_painless_execute.rb | 13 +- .../lib/elasticsearch/api/actions/scroll.rb | 19 ++- .../lib/elasticsearch/api/actions/search.rb | 129 ++++++++------- .../api/actions/search_application/delete.rb | 13 +- .../delete_behavioral_analytics.rb | 13 +- .../api/actions/search_application/get.rb | 13 +- .../get_behavioral_analytics.rb | 13 +- .../api/actions/search_application/list.rb | 11 ++ .../post_behavioral_analytics_event.rb | 11 ++ .../api/actions/search_application/put.rb | 13 +- .../put_behavioral_analytics.rb | 13 +- .../search_application/render_query.rb | 17 +- .../api/actions/search_application/search.rb | 11 ++ .../elasticsearch/api/actions/search_mvt.rb | 65 ++++---- .../api/actions/search_shards.rb | 33 ++-- .../api/actions/search_template.rb | 37 +++-- .../searchable_snapshots/cache_stats.rb | 11 ++ .../searchable_snapshots/clear_cache.rb | 15 +- .../api/actions/searchable_snapshots/mount.rb | 13 +- .../api/actions/searchable_snapshots/stats.rb | 11 ++ .../actions/security/activate_user_profile.rb | 21 ++- .../api/actions/security/authenticate.rb | 13 +- .../api/actions/security/bulk_delete_role.rb | 13 +- .../api/actions/security/bulk_put_role.rb | 13 +- .../actions/security/bulk_update_api_keys.rb | 17 +- .../api/actions/security/change_password.rb | 13 +- .../actions/security/clear_api_key_cache.rb | 15 +- .../security/clear_cached_privileges.rb | 15 +- .../actions/security/clear_cached_realms.rb | 13 +- .../actions/security/clear_cached_roles.rb | 15 +- .../security/clear_cached_service_tokens.rb | 21 ++- .../api/actions/security/create_api_key.rb | 13 +- .../security/create_cross_cluster_api_key.rb | 19 ++- .../actions/security/create_service_token.rb | 17 +- .../api/actions/security/delegate_pki.rb | 17 +- .../api/actions/security/delete_privileges.rb | 15 +- .../api/actions/security/delete_role.rb | 13 +- .../actions/security/delete_role_mapping.rb | 13 +- .../actions/security/delete_service_token.rb | 13 +- .../api/actions/security/delete_user.rb | 13 +- .../api/actions/security/disable_user.rb | 13 +- .../actions/security/disable_user_profile.rb | 11 ++ .../api/actions/security/enable_user.rb | 13 +- .../actions/security/enable_user_profile.rb | 11 ++ .../api/actions/security/enroll_kibana.rb | 13 +- .../api/actions/security/enroll_node.rb | 13 +- .../api/actions/security/get_api_key.rb | 27 +++- .../security/get_builtin_privileges.rb | 13 +- .../api/actions/security/get_privileges.rb | 15 +- .../api/actions/security/get_role.rb | 11 ++ .../api/actions/security/get_role_mapping.rb | 13 +- .../actions/security/get_service_accounts.rb | 19 ++- .../security/get_service_credentials.rb | 17 +- .../api/actions/security/get_settings.rb | 17 +- .../api/actions/security/get_token.rb | 17 +- .../api/actions/security/get_user.rb | 11 ++ .../actions/security/get_user_privileges.rb | 11 ++ .../api/actions/security/get_user_profile.rb | 19 ++- .../api/actions/security/grant_api_key.rb | 13 +- .../api/actions/security/has_privileges.rb | 13 +- .../security/has_privileges_user_profile.rb | 13 +- .../actions/security/invalidate_api_key.rb | 29 ++-- .../api/actions/security/invalidate_token.rb | 19 ++- .../api/actions/security/oidc_authenticate.rb | 13 +- .../api/actions/security/oidc_logout.rb | 15 +- .../security/oidc_prepare_authentication.rb | 13 +- .../api/actions/security/put_privileges.rb | 23 ++- .../api/actions/security/put_role.rb | 13 +- .../api/actions/security/put_role_mapping.rb | 19 ++- .../api/actions/security/put_user.rb | 13 +- .../api/actions/security/query_api_keys.rb | 21 ++- .../api/actions/security/query_role.rb | 13 +- .../api/actions/security/query_user.rb | 11 ++ .../api/actions/security/saml_authenticate.rb | 15 +- .../actions/security/saml_complete_logout.rb | 13 +- .../api/actions/security/saml_invalidate.rb | 15 +- .../api/actions/security/saml_logout.rb | 13 +- .../security/saml_prepare_authentication.rb | 19 ++- .../saml_service_provider_metadata.rb | 13 +- .../actions/security/suggest_user_profiles.rb | 21 ++- .../api/actions/security/update_api_key.rb | 21 ++- .../security/update_cross_cluster_api_key.rb | 19 ++- .../api/actions/security/update_settings.rb | 15 +- .../security/update_user_profile_data.rb | 19 ++- .../api/actions/simulate/ingest.rb | 11 ++ .../actions/snapshot/cleanup_repository.rb | 15 +- .../api/actions/snapshot/clone.rb | 13 +- .../api/actions/snapshot/create.rb | 15 +- .../api/actions/snapshot/create_repository.rb | 21 ++- .../api/actions/snapshot/delete.rb | 15 +- .../api/actions/snapshot/delete_repository.rb | 17 +- .../elasticsearch/api/actions/snapshot/get.rb | 47 +++--- .../api/actions/snapshot/get_repository.rb | 19 ++- .../actions/snapshot/repository_analyze.rb | 29 ++-- .../api/actions/snapshot/restore.rb | 23 ++- .../api/actions/snapshot/status.rb | 25 ++- .../api/actions/snapshot/verify_repository.rb | 15 +- .../delete_lifecycle.rb | 11 ++ .../execute_lifecycle.rb | 11 ++ .../execute_retention.rb | 11 ++ .../get_lifecycle.rb | 11 ++ .../get_stats.rb | 11 ++ .../get_status.rb | 15 +- .../put_lifecycle.rb | 15 +- .../snapshot_lifecycle_management/start.rb | 15 +- .../snapshot_lifecycle_management/stop.rb | 15 +- .../api/actions/sql/clear_cursor.rb | 13 +- .../api/actions/sql/delete_async.rb | 15 +- .../api/actions/sql/get_async.rb | 15 +- .../api/actions/sql/get_async_status.rb | 13 +- .../elasticsearch/api/actions/sql/query.rb | 15 +- .../api/actions/sql/translate.rb | 15 +- .../api/actions/ssl/certificates.rb | 17 +- .../api/actions/synonyms/delete_synonym.rb | 13 +- .../actions/synonyms/delete_synonym_rule.rb | 13 +- .../api/actions/synonyms/get_synonym.rb | 11 ++ .../api/actions/synonyms/get_synonym_rule.rb | 13 +- .../api/actions/synonyms/get_synonyms_sets.rb | 11 ++ .../api/actions/synonyms/put_synonym.rb | 13 +- .../api/actions/synonyms/put_synonym_rule.rb | 13 +- .../elasticsearch/api/actions/tasks/cancel.rb | 13 +- .../elasticsearch/api/actions/tasks/get.rb | 13 +- .../elasticsearch/api/actions/tasks/list.rb | 41 +++-- .../elasticsearch/api/actions/terms_enum.rb | 17 +- .../elasticsearch/api/actions/termvectors.rb | 41 +++-- .../text_structure/find_field_structure.rb | 93 ++++++----- .../text_structure/find_message_structure.rb | 93 ++++++----- .../actions/text_structure/find_structure.rb | 88 +++++------ .../text_structure/test_grok_pattern.rb | 13 +- .../api/actions/transform/delete_transform.rb | 11 ++ .../api/actions/transform/get_node_stats.rb | 9 +- .../api/actions/transform/get_transform.rb | 15 +- .../actions/transform/get_transform_stats.rb | 15 +- .../actions/transform/preview_transform.rb | 11 ++ .../api/actions/transform/put_transform.rb | 25 ++- .../api/actions/transform/reset_transform.rb | 15 +- .../transform/schedule_now_transform.rb | 13 +- .../api/actions/transform/start_transform.rb | 17 +- .../api/actions/transform/stop_transform.rb | 17 +- .../api/actions/transform/update_transform.rb | 17 +- .../actions/transform/upgrade_transforms.rb | 11 ++ .../lib/elasticsearch/api/actions/update.rb | 25 ++- .../api/actions/update_by_query.rb | 117 +++++++------- .../api/actions/update_by_query_rethrottle.rb | 13 +- .../api/actions/watcher/ack_watch.rb | 17 +- .../api/actions/watcher/activate_watch.rb | 13 +- .../api/actions/watcher/deactivate_watch.rb | 13 +- .../api/actions/watcher/delete_watch.rb | 17 +- .../api/actions/watcher/execute_watch.rb | 13 +- .../api/actions/watcher/get_settings.rb | 15 +- .../api/actions/watcher/get_watch.rb | 13 +- .../api/actions/watcher/put_watch.rb | 23 ++- .../api/actions/watcher/query_watches.rb | 15 +- .../api/actions/watcher/start.rb | 11 ++ .../api/actions/watcher/stats.rb | 11 ++ .../elasticsearch/api/actions/watcher/stop.rb | 13 +- .../api/actions/watcher/update_settings.rb | 21 ++- .../elasticsearch/api/actions/xpack/info.rb | 13 +- .../elasticsearch/api/actions/xpack/usage.rb | 13 +- .../lib/elasticsearch/api/version.rb | 2 +- .../spec/unit/actions/connector/post_spec.rb | 2 +- .../connector/update_active_filtering_spec.rb | 2 +- .../get_status_spec.rb | 2 +- .../actions/ingest/get_geoip_database_spec.rb | 2 +- .../get_repositories_metering_info_spec.rb | 4 +- .../unit/actions/ssl/certificates_spec.rb | 2 +- 520 files changed, 7677 insertions(+), 1988 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb index 890f18626c..a95d83d529 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb @@ -25,9 +25,20 @@ module Actions # Delete an async search. # If the asynchronous search is still running, it is cancelled. # Otherwise, the saved search results are deleted. - # If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the +cancel_task+ cluster privilege. + # If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the `cancel_task` cluster privilege. # # @option arguments [String] :id A unique identifier for the async search. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit @@ -51,7 +62,7 @@ def delete(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_async_search/#{Utils.listify(_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb index 134defacba..94f26d2d00 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb @@ -28,7 +28,7 @@ module Actions # # @option arguments [String] :id A unique identifier for the async search. (*Required*) # @option arguments [Time] :keep_alive The length of time that the async search should be available in the cluster. - # When not specified, the +keep_alive+ set with the corresponding submit async request will be used. + # When not specified, the `keep_alive` set with the corresponding submit async request will be used. # Otherwise, it is possible to override the value and extend the validity of the request. # When this period expires, the search, if still running, is cancelled. # If the search is completed, its saved results are deleted. @@ -36,6 +36,17 @@ module Actions # @option arguments [Time] :wait_for_completion_timeout Specifies to wait for the search to be completed up until the provided timeout. # Final results will be returned if available before the timeout expires, otherwise the currently available results will be returned once the timeout expires. # By default no timeout is set meaning that the currently available results will be returned without any additional wait. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb index 481aa3faa2..17d86cf96e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb @@ -26,11 +26,22 @@ module Actions # Get the status of a previously submitted async search request given its identifier, without retrieving search results. # If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: # * The user or API key that submitted the original async search request. - # * Users that have the +monitor+ cluster privilege or greater privileges. + # * Users that have the `monitor` cluster privilege or greater privileges. # # @option arguments [String] :id A unique identifier for the async search. (*Required*) # @option arguments [Time] :keep_alive The length of time that the async search needs to be available. # Ongoing async searches and any saved search results are deleted after this period. Server default: 5d. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb index f3013187cf..8883b132dd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb @@ -26,15 +26,15 @@ module Actions # When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. # Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. # By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. - # The maximum allowed size for a stored async search response can be set by changing the +search.max_async_search_response_size+ cluster level setting. + # The maximum allowed size for a stored async search response can be set by changing the `search.max_async_search_response_size` cluster level setting. # - # @option arguments [String, Array] :index A comma-separated list of index names to search; use +_all+ or empty string to perform the operation on all indices + # @option arguments [String, Array] :index A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices # @option arguments [Time] :wait_for_completion_timeout Blocks and waits until the search is completed up to a certain timeout. # When the async search completes within the timeout, the response won’t include the ID as the results are not stored in the cluster. Server default: 1s. # @option arguments [Time] :keep_alive Specifies how long the async search needs to be available. # Ongoing async searches and any saved search results are deleted after this period. Server default: 5d. - # @option arguments [Boolean] :keep_on_completion If +true+, results are stored for later retrieval when the search completes within the +wait_for_completion_timeout+. - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes +_all+ string or when no indices have been specified) + # @option arguments [Boolean] :keep_on_completion If `true`, results are stored for later retrieval when the search completes within the `wait_for_completion_timeout`. + # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) # @option arguments [Boolean] :allow_partial_search_results Indicate if an error should be returned if there is a partial search failure or timeout # @option arguments [String] :analyzer The analyzer to use for the query string # @option arguments [Boolean] :analyze_wildcard Specify whether wildcard and prefix queries should be analyzed (default: false) @@ -75,6 +75,17 @@ module Actions # @option arguments [Integer] :size Number of hits to return (default: 10) # @option arguments [Integer] :from Starting offset (default: 0) # @option arguments [String] :sort A comma-separated list of : pairs + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb b/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb index 95cfab0144..f8d6653cad 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb @@ -22,40 +22,48 @@ module Elasticsearch module API module Actions # Bulk index or delete documents. - # Perform multiple +index+, +create+, +delete+, and +update+ actions in a single request. + # Perform multiple `index`, `create`, `delete`, and `update` actions in a single request. # This reduces overhead and can greatly increase indexing speed. # If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: - # * To use the +create+ action, you must have the +create_doc+, +create+, +index+, or +write+ index privilege. Data streams support only the +create+ action. - # * To use the +index+ action, you must have the +create+, +index+, or +write+ index privilege. - # * To use the +delete+ action, you must have the +delete+ or +write+ index privilege. - # * To use the +update+ action, you must have the +index+ or +write+ index privilege. - # * To automatically create a data stream or index with a bulk API request, you must have the +auto_configure+, +create_index+, or +manage+ index privilege. - # * To make the result of a bulk operation visible to search using the +refresh+ parameter, you must have the +maintenance+ or +manage+ index privilege. + # * To use the `create` action, you must have the `create_doc`, `create`, `index`, or `write` index privilege. Data streams support only the `create` action. + # * To use the `index` action, you must have the `create`, `index`, or `write` index privilege. + # * To use the `delete` action, you must have the `delete` or `write` index privilege. + # * To use the `update` action, you must have the `index` or `write` index privilege. + # * To automatically create a data stream or index with a bulk API request, you must have the `auto_configure`, `create_index`, or `manage` index privilege. + # * To make the result of a bulk operation visible to search using the `refresh` parameter, you must have the `maintenance` or `manage` index privilege. # Automatic data stream creation requires a matching index template with data stream enabled. # The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: - # + - # action_and_meta_data\n - # optional_source\n - # action_and_meta_data\n - # optional_source\n + # + # ``` + # action_and_meta_data + # + # optional_source + # + # action_and_meta_data + # + # optional_source + # # .... - # action_and_meta_data\n - # optional_source\n - # + - # The +index+ and +create+ actions expect a source on the next line and have the same semantics as the +op_type+ parameter in the standard index API. - # A +create+ action fails if a document with the same ID already exists in the target - # An +index+ action adds or replaces a document as necessary. - # NOTE: Data streams support only the +create+ action. + # action_and_meta_data + # + # optional_source + # + # ``` + # + # The `index` and `create` actions expect a source on the next line and have the same semantics as the `op_type` parameter in the standard index API. + # A `create` action fails if a document with the same ID already exists in the target + # An `index` action adds or replaces a document as necessary. + # NOTE: Data streams support only the `create` action. # To update or delete a document in a data stream, you must target the backing index containing the document. - # An +update+ action expects that the partial doc, upsert, and script and its options are specified on the next line. - # A +delete+ action does not expect a source on the next line and has the same semantics as the standard delete API. - # NOTE: The final line of data must end with a newline character (+\n+). - # Each newline character may be preceded by a carriage return (+\r+). - # When sending NDJSON data to the +_bulk+ endpoint, use a +Content-Type+ header of +application/json+ or +application/x-ndjson+. - # Because this format uses literal newline characters (+\n+) as delimiters, make sure that the JSON actions and sources are not pretty printed. - # If you provide a target in the request path, it is used for any actions that don't explicitly specify an +_index+ argument. + # An `update` action expects that the partial doc, upsert, and script and its options are specified on the next line. + # A `delete` action does not expect a source on the next line and has the same semantics as the standard delete API. + # NOTE: The final line of data must end with a newline character (`\n`). + # Each newline character may be preceded by a carriage return (`\r`). + # When sending NDJSON data to the `_bulk` endpoint, use a `Content-Type` header of `application/json` or `application/x-ndjson`. + # Because this format uses literal newline characters (`\n`) as delimiters, make sure that the JSON actions and sources are not pretty printed. + # If you provide a target in the request path, it is used for any actions that don't explicitly specify an `_index` argument. # A note on the format: the idea here is to make processing as fast as possible. - # As some of the actions are redirected to other shards on other nodes, only +action_meta_data+ is parsed on the receiving node side. + # As some of the actions are redirected to other shards on other nodes, only `action_meta_data` is parsed on the receiving node side. # Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. # There is no "correct" number of actions to perform in a single bulk request. # Experiment with different settings to find the optimal size for your particular workload. @@ -64,69 +72,84 @@ module Actions # For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. # **Client suppport for bulk requests** # Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: - # * Go: Check out +esutil.BulkIndexer+ - # * Perl: Check out +Search::Elasticsearch::Client::5_0::Bulk+ and +Search::Elasticsearch::Client::5_0::Scroll+ - # * Python: Check out +elasticsearch.helpers.*+ - # * JavaScript: Check out +client.helpers.*+ - # * .NET: Check out +BulkAllObservable+ + # * Go: Check out `esutil.BulkIndexer` + # * Perl: Check out `Search::Elasticsearch::Client::5_0::Bulk` and `Search::Elasticsearch::Client::5_0::Scroll` + # * Python: Check out `elasticsearch.helpers.*` + # * JavaScript: Check out `client.helpers.*` + # * .NET: Check out `BulkAllObservable` # * PHP: Check out bulk indexing. # **Submitting bulk requests with cURL** - # If you're providing text file input to +curl+, you must use the +--data-binary+ flag instead of plain +-d+. + # If you're providing text file input to `curl`, you must use the `--data-binary` flag instead of plain `-d`. # The latter doesn't preserve newlines. For example: - # + + # + # ``` # $ cat requests # { "index" : { "_index" : "test", "_id" : "1" } } # { "field1" : "value1" } # $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo # {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} - # + + # ``` + # # **Optimistic concurrency control** - # Each +index+ and +delete+ action within a bulk API call may include the +if_seq_no+ and +if_primary_term+ parameters in their respective action and meta data lines. - # The +if_seq_no+ and +if_primary_term+ parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + # Each `index` and `delete` action within a bulk API call may include the `if_seq_no` and `if_primary_term` parameters in their respective action and meta data lines. + # The `if_seq_no` and `if_primary_term` parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. # **Versioning** - # Each bulk item can include the version value using the +version+ field. - # It automatically follows the behavior of the index or delete operation based on the +_version+ mapping. - # It also support the +version_type+. + # Each bulk item can include the version value using the `version` field. + # It automatically follows the behavior of the index or delete operation based on the `_version` mapping. + # It also support the `version_type`. # **Routing** - # Each bulk item can include the routing value using the +routing+ field. - # It automatically follows the behavior of the index or delete operation based on the +_routing+ mapping. - # NOTE: Data streams do not support custom routing unless they were created with the +allow_custom_routing+ setting enabled in the template. + # Each bulk item can include the routing value using the `routing` field. + # It automatically follows the behavior of the index or delete operation based on the `_routing` mapping. + # NOTE: Data streams do not support custom routing unless they were created with the `allow_custom_routing` setting enabled in the template. # **Wait for active shards** - # When making bulk calls, you can set the +wait_for_active_shards+ parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + # When making bulk calls, you can set the `wait_for_active_shards` parameter to require a minimum number of shard copies to be active before starting to process the bulk request. # **Refresh** # Control when the changes made by this request are visible to search. # NOTE: Only the shards that receive the bulk request will be affected by refresh. - # Imagine a +_bulk?refresh=wait_for+ request with three documents in it that happen to be routed to different shards in an index with five shards. + # Imagine a `_bulk?refresh=wait_for` request with three documents in it that happen to be routed to different shards in an index with five shards. # The request will only wait for those three shards to refresh. - # The other two shards that make up the index do not participate in the +_bulk+ request at all. + # The other two shards that make up the index do not participate in the `_bulk` request at all. + # You might want to disable the refresh interval temporarily to improve indexing throughput for large bulk requests. + # Refer to the linked documentation for step-by-step instructions using the index settings API. # # @option arguments [String] :index The name of the data stream, index, or index alias to perform bulk actions on. # @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Server default: true. - # @option arguments [Boolean] :list_executed_pipelines If +true+, the response will include the ingest pipelines that were run for each index or create. + # @option arguments [Boolean] :list_executed_pipelines If `true`, the response will include the ingest pipelines that were run for each index or create. # @option arguments [String] :pipeline The pipeline identifier to use to preprocess incoming documents. - # If the index has a default ingest pipeline specified, setting the value to +_none+ turns off the default ingest pipeline for this request. + # If the index has a default ingest pipeline specified, setting the value to `_none` turns off the default ingest pipeline for this request. # If a final pipeline is configured, it will always run regardless of the value of this parameter. - # @option arguments [String] :refresh If +true+, Elasticsearch refreshes the affected shards to make this operation visible to search. - # If +wait_for+, wait for a refresh to make this operation visible to search. - # If +false+, do nothing with refreshes. - # Valid values: +true+, +false+, +wait_for+. Server default: false. + # @option arguments [String] :refresh If `true`, Elasticsearch refreshes the affected shards to make this operation visible to search. + # If `wait_for`, wait for a refresh to make this operation visible to search. + # If `false`, do nothing with refreshes. + # Valid values: `true`, `false`, `wait_for`. Server default: false. # @option arguments [String] :routing A custom value that is used to route operations to a specific shard. - # @option arguments [Boolean, String, Array] :_source Indicates whether to return the +_source+ field (+true+ or +false+) or contains a list of fields to return. + # @option arguments [Boolean, String, Array] :_source Indicates whether to return the `_source` field (`true` or `false`) or contains a list of fields to return. # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude from the response. - # You can also use this parameter to exclude fields from the subset specified in +_source_includes+ query parameter. - # If the +_source+ parameter is +false+, this parameter is ignored. + # You can also use this parameter to exclude fields from the subset specified in `_source_includes` query parameter. + # If the `_source` parameter is `false`, this parameter is ignored. # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. # If this parameter is specified, only these source fields are returned. - # You can exclude fields from this subset using the +_source_excludes+ query parameter. - # If the +_source+ parameter is +false+, this parameter is ignored. + # You can exclude fields from this subset using the `_source_excludes` query parameter. + # If the `_source` parameter is `false`, this parameter is ignored. # @option arguments [Time] :timeout The period each action waits for the following operations: automatic index creation, dynamic mapping updates, and waiting for active shards. - # The default is +1m+ (one minute), which guarantees Elasticsearch waits for at least the timeout before failing. + # The default is `1m` (one minute), which guarantees Elasticsearch waits for at least the timeout before failing. # The actual wait time could be longer, particularly when multiple waits occur. Server default: 1m. # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. - # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). - # The default is +1+, which waits for each primary shard to be active. Server default: 1. - # @option arguments [Boolean] :require_alias If +true+, the request's actions must target an index alias. - # @option arguments [Boolean] :require_data_stream If +true+, the request's actions must target a data stream (existing or to be created). + # Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). + # The default is `1`, which waits for each primary shard to be active. Server default: 1. + # @option arguments [Boolean] :require_alias If `true`, the request's actions must target an index alias. + # @option arguments [Boolean] :require_data_stream If `true`, the request's actions must target a data stream (existing or to be created). + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [String|Array] :body operations. Array of Strings, Header/Data pairs, or the conveniency "combined" format can be passed, refer to Elasticsearch::API::Utils.bulkify documentation. # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb index 9c6fa82c93..2688416877 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb @@ -27,22 +27,33 @@ module Actions # This API does not return data stream aliases. # IMPORTANT: CAT APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API. # - # @option arguments [String, Array] :name A comma-separated list of aliases to retrieve. Supports wildcards (+*+). To retrieve all aliases, omit this parameter or use +*+ or +_all+. + # @option arguments [String, Array] :name A comma-separated list of aliases to retrieve. Supports wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`. # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # It supports comma-separated values, such as +open,hidden+. + # It supports comma-separated values, such as `open,hidden`. # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # To indicated that the request should never timeout, you can set it to +-1+. Server default: 30s. + # To indicated that the request should never timeout, you can set it to `-1`. Server default: 30s. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-aliases diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb index 21e90a20fc..a4212487ad 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb @@ -30,18 +30,29 @@ module Actions # @option arguments [String] :bytes The unit used to display byte values. # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. - # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the - # local cluster state. If +false+ the list of selected nodes are computed + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. + # @option arguments [Boolean] :local If `true`, the request computes the list of selected nodes from the + # local cluster state. If `false` the list of selected nodes are computed # from the cluster state of the master node. In both cases the coordinating # node will send requests for further information to each selected node. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-allocation diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb index 6f4756e837..ec1fcc7505 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb @@ -33,18 +33,29 @@ module Actions # If it is omitted, all component templates are returned. # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. - # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the - # local cluster state. If +false+ the list of selected nodes are computed + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. + # @option arguments [Boolean] :local If `true`, the request computes the list of selected nodes from the + # local cluster state. If `false` the list of selected nodes are computed # from the cluster state of the master node. In both cases the coordinating # node will send requests for further information to each selected node. # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. Server default: 30s. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-component-templates diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb index efc90ef7ef..c0db1bf646 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb @@ -29,17 +29,28 @@ module Actions # They are not intended for use by applications. For application consumption, use the count API. # # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases used to limit the request. - # It supports wildcards (+*+). - # To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # It supports wildcards (`*`). + # To target all data streams and indices, omit this parameter or use `*` or `_all`. # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-count diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb index d3ef2cc005..ace8341bdc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb @@ -32,13 +32,24 @@ module Actions # @option arguments [String] :bytes The unit used to display byte values. # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-fielddata diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb index fb21f83878..1bf3d07383 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb @@ -27,23 +27,34 @@ module Actions # They are not intended for use by applications. For application consumption, use the cluster health API. # This API is often used to check malfunctioning clusters. # To help you track cluster health alongside log files and alerting systems, the API returns timestamps in two formats: - # +HH:MM:SS+, which is human-readable but includes no date information; - # +Unix epoch time+, which is machine-sortable and includes date information. + # `HH:MM:SS`, which is human-readable but includes no date information; + # `Unix epoch time`, which is machine-sortable and includes date information. # The latter format is useful for cluster recoveries that take multiple days. # You can use the cat health API to verify cluster health across multiple nodes. # You also can use the API to track the recovery of a large cluster over a longer period of time. # # @option arguments [String] :time The unit used to display time values. - # @option arguments [Boolean] :ts If true, returns +HH:MM:SS+ and Unix epoch timestamps. Server default: true. + # @option arguments [Boolean] :ts If true, returns `HH:MM:SS` and Unix epoch timestamps. Server default: true. # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-health diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb index 7459f4b3b4..fa2fee45ce 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb @@ -36,7 +36,7 @@ module Actions # They are not intended for use by applications. For application consumption, use an index endpoint. # # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. - # Supports wildcards (+*+). To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # Supports wildcards (`*`). To target all data streams and indices, omit this parameter or use `*` or `_all`. # @option arguments [String] :bytes The unit used to display byte values. # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. # @option arguments [String] :health The health status used to limit returned indices. By default, the response includes indices of any health status. @@ -46,13 +46,24 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-indices diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb index 56b505c3e1..1a7ae26b28 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb @@ -28,18 +28,29 @@ module Actions # # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. - # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the - # local cluster state. If +false+ the list of selected nodes are computed + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. + # @option arguments [Boolean] :local If `true`, the request computes the list of selected nodes from the + # local cluster state. If `false` the list of selected nodes are computed # from the cluster state of the master node. In both cases the coordinating # node will send requests for further information to each selected node. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-master diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb index 74b83bda11..e4cd579e3c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb @@ -29,17 +29,28 @@ module Actions # application consumption, use the get data frame analytics jobs statistics API. # # @option arguments [String] :id The ID of the data frame analytics to fetch - # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no configs. (This includes +_all+ string or when no configs have been specified) + # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no configs. (This includes `_all` string or when no configs have been specified) # @option arguments [String] :bytes The unit in which to display byte values # @option arguments [String, Array] :h Comma-separated list of column names to display. Server default: create_time,id,state,type. # @option arguments [String, Array] :s Comma-separated list of column names or column aliases used to sort the # response. # @option arguments [String] :time Unit used to display time values. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-data-frame-analytics diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb index 9ff975f10d..73ec82e315 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb @@ -25,7 +25,7 @@ module Actions # Get datafeeds. # Get configuration and usage information about datafeeds. # This API returns a maximum of 10,000 datafeeds. - # If the Elasticsearch security features are enabled, you must have +monitor_ml+, +monitor+, +manage_ml+, or +manage+ + # If the Elasticsearch security features are enabled, you must have `monitor_ml`, `monitor`, `manage_ml`, or `manage` # cluster privileges to use this API. # IMPORTANT: CAT APIs are only intended for human consumption using the Kibana # console or command line. They are not intended for use by applications. For @@ -34,19 +34,30 @@ module Actions # @option arguments [String] :datafeed_id A numerical character string that uniquely identifies the datafeed. # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: # - Contains wildcard expressions and there are no datafeeds that match. - # - Contains the +_all+ string or no identifiers and there are no matches. + # - Contains the `_all` string or no identifiers and there are no matches. # - Contains wildcard expressions and there are only partial matches. - # If +true+, the API returns an empty datafeeds array when there are no matches and the subset of results when - # there are partial matches. If +false+, the API returns a 404 status code when there are no matches or only + # If `true`, the API returns an empty datafeeds array when there are no matches and the subset of results when + # there are partial matches. If `false`, the API returns a 404 status code when there are no matches or only # partial matches. Server default: true. # @option arguments [String, Array] :h Comma-separated list of column names to display. Server default: ['bc', 'id', 'sc', 's']. # @option arguments [String, Array] :s Comma-separated list of column names or column aliases used to sort the response. # @option arguments [String] :time The unit used to display time values. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-datafeeds diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb index a4972708b6..5001b4efbe 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb @@ -25,8 +25,8 @@ module Actions # Get anomaly detection jobs. # Get configuration and usage information for anomaly detection jobs. # This API returns a maximum of 10,000 jobs. - # If the Elasticsearch security features are enabled, you must have +monitor_ml+, - # +monitor+, +manage_ml+, or +manage+ cluster privileges to use this API. + # If the Elasticsearch security features are enabled, you must have `monitor_ml`, + # `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. # IMPORTANT: CAT APIs are only intended for human consumption using the Kibana # console or command line. They are not intended for use by applications. For # application consumption, use the get anomaly detection job statistics API. @@ -34,20 +34,31 @@ module Actions # @option arguments [String] :job_id Identifier for the anomaly detection job. # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: # - Contains wildcard expressions and there are no jobs that match. - # - Contains the +_all+ string or no identifiers and there are no matches. + # - Contains the `_all` string or no identifiers and there are no matches. # - Contains wildcard expressions and there are only partial matches. - # If +true+, the API returns an empty jobs array when there are no matches and the subset of results when there - # are partial matches. If +false+, the API returns a 404 status code when there are no matches or only partial + # If `true`, the API returns an empty jobs array when there are no matches and the subset of results when there + # are partial matches. If `false`, the API returns a 404 status code when there are no matches or only partial # matches. Server default: true. # @option arguments [String] :bytes The unit used to display byte values. # @option arguments [String, Array] :h Comma-separated list of column names to display. Server default: buckets.count,data.processed_records,forecasts.total,id,model.bytes,model.memory_status,state. # @option arguments [String, Array] :s Comma-separated list of column names or column aliases used to sort the response. # @option arguments [String] :time The unit used to display time values. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-jobs diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb index 86ec4d06af..45d47add2e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb @@ -29,9 +29,9 @@ module Actions # application consumption, use the get trained models statistics API. # # @option arguments [String] :model_id A unique identifier for the trained model. - # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no models that match; contains the +_all+ string or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches. - # If +true+, the API returns an empty array when there are no matches and the subset of results when there are partial matches. - # If +false+, the API returns a 404 status code when there are no matches or only partial matches. Server default: true. + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no models that match; contains the `_all` string or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches. + # If `true`, the API returns an empty array when there are no matches and the subset of results when there are partial matches. + # If `false`, the API returns a 404 status code when there are no matches or only partial matches. Server default: true. # @option arguments [String] :bytes The unit used to display byte values. # @option arguments [String, Array] :h A comma-separated list of column names to display. # @option arguments [String, Array] :s A comma-separated list of column names or aliases used to sort the response. @@ -39,10 +39,21 @@ module Actions # @option arguments [Integer] :size The maximum number of transforms to display. # @option arguments [String] :time Unit used to display time values. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-trained-models diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb index cffc6745d8..d6588c6945 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb @@ -28,18 +28,29 @@ module Actions # # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. - # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the - # local cluster state. If +false+ the list of selected nodes are computed + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. + # @option arguments [Boolean] :local If `true`, the request computes the list of selected nodes from the + # local cluster state. If `false` the list of selected nodes are computed # from the cluster state of the master node. In both cases the coordinating # node will send requests for further information to each selected node. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-nodeattrs diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb index 05238c8542..79350b84ac 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb @@ -27,19 +27,31 @@ module Actions # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API. # # @option arguments [String] :bytes The unit used to display byte values. - # @option arguments [Boolean, String] :full_id If +true+, return the full node ID. If +false+, return the shortened node ID. Server default: false. + # @option arguments [Boolean, String] :full_id If `true`, return the full node ID. If `false`, return the shortened node ID. Server default: false. # @option arguments [Boolean] :include_unloaded_segments If true, the response includes information from segments that are not loaded into memory. - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. - # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. - # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. - # @option arguments [String] :time Unit used to display time values. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. + # It supports simple wildcards. Server default: ip,hp,rp,r,m,n,cpu,l. + # @option arguments [String, Array] :s A comma-separated list of column names or aliases that determines the sort order. + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. Server default: 30s. + # @option arguments [String] :time The unit used to display time values. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-nodes diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb index ed3e7d9d04..baaca81230 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb @@ -28,19 +28,30 @@ module Actions # # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. - # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the - # local cluster state. If +false+ the list of selected nodes are computed + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. + # @option arguments [Boolean] :local If `true`, the request computes the list of selected nodes from the + # local cluster state. If `false` the list of selected nodes are computed # from the cluster state of the master node. In both cases the coordinating # node will send requests for further information to each selected node. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [String] :time Unit used to display time values. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-pending-tasks diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb index 0ca83d53cb..4355a9bcd1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb @@ -28,19 +28,30 @@ module Actions # # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. # @option arguments [Boolean] :include_bootstrap Include bootstrap plugins in the response - # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the - # local cluster state. If +false+ the list of selected nodes are computed + # @option arguments [Boolean] :local If `true`, the request computes the list of selected nodes from the + # local cluster state. If `false` the list of selected nodes are computed # from the cluster state of the master node. In both cases the coordinating # node will send requests for further information to each selected node. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-plugins diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb index 8a240b20dd..76571a08f6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb @@ -29,20 +29,31 @@ module Actions # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index recovery API. # # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases used to limit the request. - # Supports wildcards (+*+). To target all data streams and indices, omit this parameter or use +*+ or +_all+. - # @option arguments [Boolean] :active_only If +true+, the response only includes ongoing shard recoveries. + # Supports wildcards (`*`). To target all data streams and indices, omit this parameter or use `*` or `_all`. + # @option arguments [Boolean] :active_only If `true`, the response only includes ongoing shard recoveries. # @option arguments [String] :bytes The unit used to display byte values. - # @option arguments [Boolean] :detailed If +true+, the response includes detailed information about shard recoveries. + # @option arguments [Boolean] :detailed If `true`, the response includes detailed information about shard recoveries. # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. # @option arguments [String] :time Unit used to display time values. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-recovery diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb index 9e5f4e3605..c36140e0aa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb @@ -28,18 +28,29 @@ module Actions # # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. - # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the - # local cluster state. If +false+ the list of selected nodes are computed + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. + # @option arguments [Boolean] :local If `true`, the request computes the list of selected nodes from the + # local cluster state. If `false` the list of selected nodes are computed # from the cluster state of the master node. In both cases the coordinating # node will send requests for further information to each selected node. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-repositories diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb index 285844bd60..53e761b860 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb @@ -28,23 +28,34 @@ module Actions # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index segments API. # # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases used to limit the request. - # Supports wildcards (+*+). - # To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # Supports wildcards (`*`). + # To target all data streams and indices, omit this parameter or use `*` or `_all`. # @option arguments [String] :bytes The unit used to display byte values. # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. - # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the - # local cluster state. If +false+ the list of selected nodes are computed + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. + # @option arguments [Boolean] :local If `true`, the request computes the list of selected nodes from the + # local cluster state. If `false` the list of selected nodes are computed # from the cluster state of the master node. In both cases the coordinating # node will send requests for further information to each selected node. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-segments diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb index e00cc43b3c..2977fb9a72 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb @@ -28,20 +28,31 @@ module Actions # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. # # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases used to limit the request. - # Supports wildcards (+*+). - # To target all data streams and indices, omit this parameter or use +*+ or +_all+. + # Supports wildcards (`*`). + # To target all data streams and indices, omit this parameter or use `*` or `_all`. # @option arguments [String] :bytes The unit used to display byte values. # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [String] :time Unit used to display time values. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-shards diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb index e78f775404..97f5d749cd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb @@ -29,20 +29,31 @@ module Actions # # @option arguments [String, Array] :repository A comma-separated list of snapshot repositories used to limit the request. # Accepts wildcard expressions. - # +_all+ returns all repositories. + # `_all` returns all repositories. # If any repository fails during the request, Elasticsearch returns an error. - # @option arguments [Boolean] :ignore_unavailable If +true+, the response does not include information from unavailable snapshots. + # @option arguments [Boolean] :ignore_unavailable If `true`, the response does not include information from unavailable snapshots. # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [String] :time Unit used to display time values. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-snapshots diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb index e4a8e4103b..06f8da1b3a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb @@ -31,22 +31,33 @@ module Actions # support SLA of official GA features. # # @option arguments [Array] :actions The task action names, which are used to limit the response. - # @option arguments [Boolean] :detailed If +true+, the response includes detailed information about shard recoveries. + # @option arguments [Boolean] :detailed If `true`, the response includes detailed information about shard recoveries. # @option arguments [Array] :nodes Unique node identifiers, which are used to limit the response. # @option arguments [String] :parent_task_id The parent task identifier, which is used to limit the response. # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. # @option arguments [String] :time Unit used to display time values. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. - # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks until the task has completed. + # @option arguments [Boolean] :wait_for_completion If `true`, the request blocks until the task has completed. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-tasks diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb index 8773f2d3d5..fe9ea95b40 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb @@ -31,18 +31,29 @@ module Actions # Accepts wildcard expressions. If omitted, all templates are returned. # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. - # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the - # local cluster state. If +false+ the list of selected nodes are computed + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. + # @option arguments [Boolean] :local If `true`, the request computes the list of selected nodes from the + # local cluster state. If `false` the list of selected nodes are computed # from the cluster state of the master node. In both cases the coordinating # node will send requests for further information to each selected node. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-templates diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb index 4ac7834699..60b6756f2e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb @@ -31,19 +31,30 @@ module Actions # Accepts wildcard expressions. # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. - # Sorting defaults to ascending and can be changed by setting +:asc+ - # or +:desc+ as a suffix to the column name. + # Sorting defaults to ascending and can be changed by setting `:asc` + # or `:desc` as a suffix to the column name. # @option arguments [String] :time The unit used to display time values. - # @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the - # local cluster state. If +false+ the list of selected nodes are computed + # @option arguments [Boolean] :local If `true`, the request computes the list of selected nodes from the + # local cluster state. If `false` the list of selected nodes are computed # from the cluster state of the master node. In both cases the coordinating # node will send requests for further information to each selected node. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-thread-pool diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb index 9a5d719483..1d037db06d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb @@ -30,19 +30,30 @@ module Actions # # @option arguments [String] :transform_id A transform identifier or a wildcard expression. # If you do not specify one of these options, the API returns information for all transforms. - # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no transforms that match; contains the +_all+ string or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches. - # If +true+, it returns an empty transforms array when there are no matches and the subset of results when there are partial matches. - # If +false+, the request returns a 404 status code when there are no matches or only partial matches. Server default: true. + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no transforms that match; contains the `_all` string or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches. + # If `true`, it returns an empty transforms array when there are no matches and the subset of results when there are partial matches. + # If `false`, the request returns a 404 status code when there are no matches or only partial matches. Server default: true. # @option arguments [Integer] :from Skips the specified number of transforms. Server default: 0. # @option arguments [String, Array] :h Comma-separated list of column names to display. Server default: changes_last_detection_time,checkpoint,checkpoint_progress,documents_processed,id,last_search_time,state. # @option arguments [String, Array] :s Comma-separated list of column names or column aliases used to sort the response. # @option arguments [String] :time The unit used to display time values. # @option arguments [Integer] :size The maximum number of transforms to obtain. Server default: 100. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to - # +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text. - # @option arguments [Boolean] :help When set to +true+ will output available columns. This option + # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. + # @option arguments [Boolean] :help When set to `true` will output available columns. This option # can't be combined with any other query string option. - # @option arguments [Boolean] :v When set to +true+ will enable verbose output. + # @option arguments [Boolean] :v When set to `true` will enable verbose output. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-transforms diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb b/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb index f72e3e2133..321e67fbae 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb @@ -25,8 +25,19 @@ module Actions # Clear the search context and results for a scrolling search. # # @option arguments [String, Array] :scroll_id A comma-separated list of scroll IDs to clear. - # To clear all scroll IDs, use +_all+. + # To clear all scroll IDs, use `_all`. # IMPORTANT: Scroll IDs can be long. It is recommended to specify scroll IDs in the request body parameter. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb b/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb index 707ad4da42..38b279ed74 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb @@ -23,10 +23,21 @@ module API module Actions # Close a point in time. # A point in time must be opened explicitly before being used in search requests. - # The +keep_alive+ parameter tells Elasticsearch how long it should persist. - # A point in time is automatically closed when the +keep_alive+ period has elapsed. + # The `keep_alive` parameter tells Elasticsearch how long it should persist. + # A point in time is automatically closed when the `keep_alive` period has elapsed. # However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -42,7 +53,7 @@ def close_point_in_time(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = '_pit' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb index 519664effb..8053b57717 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb @@ -27,10 +27,22 @@ module Actions # For unassigned shards, it provides an explanation for why the shard is unassigned. # For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. # This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. + # Refer to the linked documentation for examples of how to troubleshoot allocation issues using this API. # # @option arguments [Boolean] :include_disk_info If true, returns information about disk usage and shard sizes. # @option arguments [Boolean] :include_yes_decisions If true, returns YES decisions in explanation. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb index c7956016a3..a5d49b88be 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb @@ -30,6 +30,17 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-component-template diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb index d85a985963..ddef1044c4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb @@ -32,6 +32,17 @@ module Actions # the cluster before this API takes any action. If set to false then the # voting configuration exclusions list is cleared even if some excluded # nodes are still in the cluster. Server default: true. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-post-voting-config-exclusions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb index 038b760bce..cefa11fdbc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb @@ -32,6 +32,17 @@ module Actions # error. Server default: 30s. # @option arguments [Boolean] :local If true, the request retrieves information from the local node only. # Defaults to false, which means information is retrieved from the master node. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-component-template diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb index f5c096979a..83999486ae 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb @@ -26,13 +26,24 @@ module Actions # Get information about component templates. # # @option arguments [String] :name Comma-separated list of component template names used to limit the request. - # Wildcard (+*+) expressions are supported. - # @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format. + # Wildcard (`*`) expressions are supported. + # @option arguments [Boolean] :flat_settings If `true`, returns settings in flat format. # @option arguments [Boolean] :include_defaults Return all default configurations for the component template (default: false) - # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. - # If +false+, information is retrieved from the master node. + # @option arguments [Boolean] :local If `true`, the request retrieves information from the local node only. + # If `false`, information is retrieved from the master node. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-component-template diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb index abb89dd4a8..6f54abc874 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb @@ -25,12 +25,23 @@ module Actions # Get cluster-wide settings. # By default, it returns only settings that have been explicitly defined. # - # @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format. - # @option arguments [Boolean] :include_defaults If +true+, returns default cluster settings from the local node. + # @option arguments [Boolean] :flat_settings If `true`, returns settings in flat format. + # @option arguments [Boolean] :include_defaults If `true`, returns default cluster settings from the local node. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-get-settings diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb index 889da9f1d4..ce6c9ac588 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb @@ -31,7 +31,7 @@ module Actions # One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. # The cluster status is controlled by the worst index status. # - # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and index aliases used to limit the request. Wildcard expressions (+*+) are supported. To target all data streams and indices in a cluster, omit this parameter or use _all or +*+. + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and index aliases used to limit the request. Wildcard expressions (`*`) are supported. To target all data streams and indices in a cluster, omit this parameter or use _all or `*`. # @option arguments [String, Array] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. # @option arguments [String] :level Can be one of cluster, indices or shards. Controls the details level of the health information returned. Server default: cluster. # @option arguments [Boolean] :local If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. @@ -43,6 +43,17 @@ module Actions # @option arguments [Boolean] :wait_for_no_initializing_shards A boolean value which controls whether to wait (until the timeout provided) for the cluster to have no shard initializations. Defaults to false, which means it will not wait for initializing shards. # @option arguments [Boolean] :wait_for_no_relocating_shards A boolean value which controls whether to wait (until the timeout provided) for the cluster to have no shard relocations. Defaults to false, which means it will not wait for relocating shards. # @option arguments [String] :wait_for_status One of green, yellow or red. Will wait (until the timeout provided) until the status of the cluster changes to the one provided or better, i.e. green > yellow > red. By default, will not wait for any status. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-health diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb index c712e51fc6..2286b3134f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb @@ -26,6 +26,17 @@ module Actions # Returns basic information about the cluster. # # @option arguments [String, Array] :target Limits the information returned to the specific target. Supports a comma-separated list, such as http,ingest. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-info @@ -49,7 +60,7 @@ def info(arguments = {}) method = Elasticsearch::API::HTTP_GET path = "_info/#{Utils.listify(_target)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb index b325fff6e0..7e8519f3c7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb @@ -28,10 +28,21 @@ module Actions # These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. # However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. # - # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. - # If +false+, information is retrieved from the master node. + # @option arguments [Boolean] :local If `true`, the request retrieves information from the local node only. + # If `false`, information is retrieved from the master node. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-pending-tasks diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb index 79ebe297ee..98415cf426 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb @@ -29,11 +29,11 @@ module Actions # The API adds an entry for each specified node to the cluster’s voting configuration exclusions list. # It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes. # Clusters should have no voting configuration exclusions in normal operation. - # Once the excluded nodes have stopped, clear the voting configuration exclusions with +DELETE /_cluster/voting_config_exclusions+. + # Once the excluded nodes have stopped, clear the voting configuration exclusions with `DELETE /_cluster/voting_config_exclusions`. # This API waits for the nodes to be fully removed from the cluster before it returns. - # If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use +DELETE /_cluster/voting_config_exclusions?wait_for_removal=false+ to clear the voting configuration exclusions without waiting for the nodes to leave the cluster. - # A response to +POST /_cluster/voting_config_exclusions+ with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling +DELETE /_cluster/voting_config_exclusions+. - # If the call to +POST /_cluster/voting_config_exclusions+ fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration. + # If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use `DELETE /_cluster/voting_config_exclusions?wait_for_removal=false` to clear the voting configuration exclusions without waiting for the nodes to leave the cluster. + # A response to `POST /_cluster/voting_config_exclusions` with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling `DELETE /_cluster/voting_config_exclusions`. + # If the call to `POST /_cluster/voting_config_exclusions` fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration. # In that case, you may safely retry the call. # NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. # They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. @@ -47,6 +47,17 @@ module Actions # specified nodes to be excluded from the voting configuration before # returning. If the timeout expires before the appropriate condition # is satisfied, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-post-voting-config-exclusions diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb index 94196bf814..5586022fd1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb @@ -25,26 +25,37 @@ module Actions # Create or update a component template. # Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. # An index template can be composed of multiple component templates. - # To use a component template, specify it in an index template’s +composed_of+ list. + # To use a component template, specify it in an index template’s `composed_of` list. # Component templates are only applied to new data streams and indices as part of a matching index template. # Settings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template. # Component templates are only used during index creation. # For data streams, this includes data stream creation and the creation of a stream’s backing indices. # Changes to component templates do not affect existing indices, including a stream’s backing indices. - # You can use C-style +/* *\/+ block comments in component templates. + # You can use C-style `/* *\/` block comments in component templates. # You can include comments anywhere in the request body except before the opening curly bracket. # **Applying component templates** # You cannot directly apply a component template to a data stream or index. - # To be applied, a component template must be included in an index template's +composed_of+ list. + # To be applied, a component template must be included in an index template's `composed_of` list. # # @option arguments [String] :name Name of the component template to create. - # Elasticsearch includes the following built-in component templates: +logs-mappings+; +logs-settings+; +metrics-mappings+; +metrics-settings+;+synthetics-mapping+; +synthetics-settings+. + # Elasticsearch includes the following built-in component templates: `logs-mappings`; `logs-settings`; `metrics-mappings`; `metrics-settings`;`synthetics-mapping`; `synthetics-settings`. # Elastic Agent uses these templates to configure backing indices for its data streams. - # If you use Elastic Agent and want to overwrite one of these templates, set the +version+ for your replacement template higher than the current version. - # If you don’t use Elastic Agent and want to disable all built-in component and index templates, set +stack.templates.enabled+ to +false+ using the cluster update settings API. (*Required*) - # @option arguments [Boolean] :create If +true+, this request cannot replace or update existing component templates. + # If you use Elastic Agent and want to overwrite one of these templates, set the `version` for your replacement template higher than the current version. + # If you don’t use Elastic Agent and want to disable all built-in component and index templates, set `stack.templates.enabled` to `false` using the cluster update settings API. (*Required*) + # @option arguments [Boolean] :create If `true`, this request cannot replace or update existing component templates. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb index 7deffbf9cf..991eea45eb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb @@ -24,15 +24,15 @@ module Cluster module Actions # Update the cluster settings. # Configure and update dynamic settings on a running cluster. - # You can also configure dynamic settings locally on an unstarted or shut down node in +elasticsearch.yml+. + # You can also configure dynamic settings locally on an unstarted or shut down node in `elasticsearch.yml`. # Updates made with this API can be persistent, which apply across cluster restarts, or transient, which reset after a cluster restart. # You can also reset transient or persistent settings by assigning them a null value. - # If you configure the same setting using multiple methods, Elasticsearch applies the settings in following order of precedence: 1) Transient setting; 2) Persistent setting; 3) +elasticsearch.yml+ setting; 4) Default setting value. - # For example, you can apply a transient setting to override a persistent setting or +elasticsearch.yml+ setting. - # However, a change to an +elasticsearch.yml+ setting will not override a defined transient or persistent setting. + # If you configure the same setting using multiple methods, Elasticsearch applies the settings in following order of precedence: 1) Transient setting; 2) Persistent setting; 3) `elasticsearch.yml` setting; 4) Default setting value. + # For example, you can apply a transient setting to override a persistent setting or `elasticsearch.yml` setting. + # However, a change to an `elasticsearch.yml` setting will not override a defined transient or persistent setting. # TIP: In Elastic Cloud, use the user settings feature to configure all cluster settings. This method automatically rejects unsafe settings that could break your cluster. # If you run Elasticsearch on your own hardware, use this API to configure dynamic cluster settings. - # Only use +elasticsearch.yml+ for static cluster settings and node settings. + # Only use `elasticsearch.yml` for static cluster settings and node settings. # The API doesn’t require a restart and ensures a setting’s value is the same on all nodes. # WARNING: Transient cluster settings are no longer recommended. Use persistent cluster settings instead. # If a cluster becomes unstable, transient settings can clear unexpectedly, resulting in a potentially undesired cluster configuration. @@ -40,6 +40,17 @@ module Actions # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false) # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node Server default: 30s. # @option arguments [Time] :timeout Explicit operation timeout Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb index aabc3f2c64..04e49233d2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb @@ -26,6 +26,17 @@ module Actions # Get information about configured remote clusters. # The API returns connection and endpoint information keyed by the configured remote cluster alias. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-remote-info @@ -40,7 +51,7 @@ def remote_info(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_remote/info' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb index ab40a107d2..945f260151 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb @@ -25,13 +25,13 @@ module Actions # Reroute the cluster. # Manually change the allocation of individual shards in the cluster. # For example, a shard can be moved from one node to another explicitly, an allocation can be canceled, and an unassigned shard can be explicitly allocated to a specific node. - # It is important to note that after processing any reroute commands Elasticsearch will perform rebalancing as normal (respecting the values of settings such as +cluster.routing.rebalance.enable+) in order to remain in a balanced state. + # It is important to note that after processing any reroute commands Elasticsearch will perform rebalancing as normal (respecting the values of settings such as `cluster.routing.rebalance.enable`) in order to remain in a balanced state. # For example, if the requested allocation includes moving a shard from node1 to node2 then this may cause a shard to be moved from node2 back to node1 to even things out. - # The cluster can be set to disable allocations using the +cluster.routing.allocation.enable+ setting. + # The cluster can be set to disable allocations using the `cluster.routing.allocation.enable` setting. # If allocations are disabled then the only allocations that will be performed are explicit ones given using the reroute command, and consequent allocations due to rebalancing. - # The cluster will attempt to allocate a shard a maximum of +index.allocation.max_retries+ times in a row (defaults to +5+), before giving up and leaving the shard unallocated. + # The cluster will attempt to allocate a shard a maximum of `index.allocation.max_retries` times in a row (defaults to `5`), before giving up and leaving the shard unallocated. # This scenario can be caused by structural problems such as having an analyzer which refers to a stopwords file which doesn’t exist on all nodes. - # Once the problem has been corrected, allocation can be manually retried by calling the reroute API with the +?retry_failed+ URI query parameter, which will attempt a single retry round for these shards. + # Once the problem has been corrected, allocation can be manually retried by calling the reroute API with the `?retry_failed` URI query parameter, which will attempt a single retry round for these shards. # # @option arguments [Boolean] :dry_run If true, then the request simulates the operation. # It will calculate the result of applying the commands to the current cluster state and return the resulting cluster state after the commands (and rebalancing) have been applied; it will not actually perform the requested changes. @@ -40,6 +40,17 @@ module Actions # @option arguments [Boolean] :retry_failed If true, then retries allocation of shards that are blocked due to too many subsequent allocation failures. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb index 8c97badc52..7eb5433562 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb @@ -29,7 +29,7 @@ module Actions # This API lets you retrieve a representation of this internal state for debugging or diagnostic purposes. # You may need to consult the Elasticsearch source code to determine the precise meaning of the response. # By default the API will route requests to the elected master node since this node is the authoritative source of cluster states. - # You can also retrieve the cluster state held on the node handling the API request by adding the +?local=true+ query parameter. + # You can also retrieve the cluster state held on the node handling the API request by adding the `?local=true` query parameter. # Elasticsearch may need to expend significant effort to compute a response to this API in larger clusters, and the response may comprise a very large quantity of data. # If you use this API repeatedly, your cluster may become unstable. # WARNING: The response is a representation of an internal data structure. @@ -38,8 +38,8 @@ module Actions # Instead, obtain the information you require using other more stable cluster APIs. # # @option arguments [String, Array] :metric Limit the information returned to the specified metrics - # @option arguments [String, Array] :index A comma-separated list of index names; use +_all+ or empty string to perform the operation on all indices - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes +_all+ string or when no indices have been specified) Server default: true. + # @option arguments [String, Array] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) Server default: true. # @option arguments [String, Array] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. # @option arguments [Boolean] :flat_settings Return settings in flat format (default: false) # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -47,6 +47,17 @@ module Actions # @option arguments [Time] :master_timeout Specify timeout for connection to master Server default: 30s. # @option arguments [Integer] :wait_for_metadata_version Wait for the metadata version to be equal or greater than the specified metadata version # @option arguments [Time] :wait_for_timeout The maximum time to wait for wait_for_metadata_version before timing out + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-state diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb index 5d783d74b4..20ba3a5b51 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb @@ -29,7 +29,18 @@ module Actions # @option arguments [Boolean] :include_remotes Include remote cluster data into the response # @option arguments [Time] :timeout Period to wait for each node to respond. # If a node does not respond before its timeout expires, the response does not include its stats. - # However, timed out nodes are included in the response’s +_nodes.failed+ property. Defaults to no timeout. + # However, timed out nodes are included in the response’s `_nodes.failed` property. Defaults to no timeout. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb index e4f2d843e6..a2d89381f0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb @@ -23,13 +23,24 @@ module API module Connector module Actions # Check in a connector. - # Update the +last_seen+ field in the connector and set it to the current timestamp. + # Update the `last_seen` field in the connector and set it to the current timestamp. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # # @option arguments [String] :connector_id The unique identifier of the connector to be checked in (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-check-in @@ -53,7 +64,7 @@ def check_in(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/#{Utils.listify(_connector_id)}/_check_in" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb index 694798bbf9..77a1f409ec 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb @@ -35,6 +35,17 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be deleted (*Required*) # @option arguments [Boolean] :delete_sync_jobs A flag indicating if associated sync jobs should be also removed. Defaults to false. # @option arguments [Boolean] :hard A flag indicating if the connector should be hard deleted. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-delete diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb index c6a85e85b3..8eff95d6df 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb @@ -31,6 +31,17 @@ module Actions # # @option arguments [String] :connector_id The unique identifier of the connector (*Required*) # @option arguments [Boolean] :include_deleted A flag to indicate if the desired connector should be fetched, even if it was soft-deleted. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-get diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb index be80f1e81f..f02b825578 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb @@ -36,6 +36,17 @@ module Actions # @option arguments [String, Array] :service_type A comma-separated list of connector service types to fetch connector documents for # @option arguments [Boolean] :include_deleted A flag to indicate if the desired connector should be fetched, even if it was soft-deleted. # @option arguments [String] :query A wildcard query string that filters connectors with matching name, description or index name + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-list diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb index c7f3ec29f9..27d114d46a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb @@ -31,6 +31,17 @@ module Actions # as-is with no warranties. Beta features are not subject to the support # SLA of official GA features. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -46,7 +57,7 @@ def post(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_connector' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb index e12cdbfb5a..f06642897c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb @@ -29,6 +29,17 @@ module Actions # SLA of official GA features. # # @option arguments [String] :connector_id The unique identifier of the connector to be created or updated. ID is auto-generated if not provided. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -55,7 +66,7 @@ def put(arguments = {}) else '_connector' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb index 56fae0cf5b..0732c0554b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb @@ -23,7 +23,7 @@ module API module Connector module Actions # Cancel a connector sync job. - # Cancel a connector sync job, which sets the status to cancelling and updates +cancellation_requested_at+ to the current time. + # Cancel a connector sync job, which sets the status to cancelling and updates `cancellation_requested_at` to the current time. # The connector service is then responsible for setting the status of connector sync jobs to cancelled. # This functionality is in Beta and is subject to change. The design and # code is less mature than official GA features and is being provided @@ -31,6 +31,17 @@ module Actions # SLA of official GA features. # # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-cancel @@ -57,7 +68,7 @@ def sync_job_cancel(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}/_cancel" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb index 133b9def13..53a1fc0026 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb @@ -23,7 +23,7 @@ module API module Connector module Actions # Check in a connector sync job. - # Check in a connector sync job and set the +last_seen+ field to the current time before updating it in the internal index. + # Check in a connector sync job and set the `last_seen` field to the current time before updating it in the internal index. # To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. # This service runs automatically on Elastic Cloud for Elastic managed connectors. # This functionality is Experimental and may be changed or removed @@ -32,6 +32,17 @@ module Actions # support SLA of official GA features. # # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job to be checked in. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-check-in @@ -58,7 +69,7 @@ def sync_job_check_in(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}/_check_in" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb index 8b8cf87aaa..f65389c6b3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb @@ -23,8 +23,8 @@ module API module Connector module Actions # Claim a connector sync job. - # This action updates the job status to +in_progress+ and sets the +last_seen+ and +started_at+ timestamps to the current time. - # Additionally, it can set the +sync_cursor+ property for the sync job. + # This action updates the job status to `in_progress` and sets the `last_seen` and `started_at` timestamps to the current time. + # Additionally, it can set the `sync_cursor` property for the sync job. # This API is not intended for direct connector management by users. # It supports the implementation of services that utilize the connector protocol to communicate with Elasticsearch. # To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. @@ -35,6 +35,17 @@ module Actions # support SLA of official GA features. # # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -64,7 +75,7 @@ def sync_job_claim(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}/_claim" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb index ff642a4565..0157d26c7a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb @@ -31,6 +31,17 @@ module Actions # SLA of official GA features. # # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job to be deleted (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-delete @@ -57,7 +68,7 @@ def sync_job_delete(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb index 1d83f18f0a..6d7eec12d9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb @@ -23,7 +23,7 @@ module API module Connector module Actions # Set a connector sync job error. - # Set the +error+ field for a connector sync job and set its +status+ to +error+. + # Set the `error` field for a connector sync job and set its `status` to `error`. # To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. # This service runs automatically on Elastic Cloud for Elastic managed connectors. # This functionality is Experimental and may be changed or removed @@ -32,6 +32,17 @@ module Actions # support SLA of official GA features. # # @option arguments [String] :connector_sync_job_id The unique identifier for the connector sync job. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -61,7 +72,7 @@ def sync_job_error(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}/_error" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb index b9fa5c482f..daa0e15bf0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb @@ -29,6 +29,17 @@ module Actions # SLA of official GA features. # # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-get @@ -55,7 +66,7 @@ def sync_job_get(arguments = {}) method = Elasticsearch::API::HTTP_GET path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb index e14a3b4d7d..3e856017b8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb @@ -34,6 +34,17 @@ module Actions # @option arguments [String] :status A sync job status to fetch connector sync jobs for # @option arguments [String] :connector_id A connector id to fetch connector sync jobs for # @option arguments [Syncjobtype] :job_type A comma-separated list of job types to fetch the sync jobs for + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-sync-job-list diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb index fb48dbad5a..5bdf4fa1b9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb @@ -29,6 +29,17 @@ module Actions # as-is with no warranties. Beta features are not subject to the support # SLA of official GA features. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -46,7 +57,7 @@ def sync_job_post(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_connector/_sync_job' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb index 4bcedcc4af..0812965fd8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb @@ -23,8 +23,8 @@ module API module Connector module Actions # Set the connector sync job stats. - # Stats include: +deleted_document_count+, +indexed_document_count+, +indexed_document_volume+, and +total_document_count+. - # You can also update +last_seen+. + # Stats include: `deleted_document_count`, `indexed_document_count`, `indexed_document_volume`, and `total_document_count`. + # You can also update `last_seen`. # This API is mainly used by the connector service for updating sync job information. # To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. # This service runs automatically on Elastic Cloud for Elastic managed connectors. @@ -34,6 +34,17 @@ module Actions # support SLA of official GA features. # # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -63,7 +74,7 @@ def sync_job_update_stats(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}/_stats" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb index c0d58bacdf..5722cbab20 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb @@ -30,6 +30,17 @@ module Actions # support SLA of official GA features. # # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-connector-update-filtering @@ -53,7 +64,7 @@ def update_active_filtering(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/#{Utils.listify(_connector_id)}/_filtering/_activate" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb index d5ad146016..7ac651f3ba 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb @@ -23,7 +23,7 @@ module API module Connector module Actions # Update the connector API key ID. - # Update the +api_key_id+ and +api_key_secret_id+ fields of a connector. + # Update the `api_key_id` and `api_key_secret_id` fields of a connector. # You can specify the ID of the API key used for authorization and the ID of the connector secret where the API key is stored. # The connector secret ID is required only for Elastic managed (native) connectors. # Self-managed connectors (connector clients) do not use this field. @@ -33,6 +33,17 @@ module Actions # SLA of official GA features. # # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -58,7 +69,7 @@ def update_api_key_id(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/#{Utils.listify(_connector_id)}/_api_key_id" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb index 6b51813111..5bf832b231 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb @@ -30,6 +30,17 @@ module Actions # SLA of official GA features. # # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -55,7 +66,7 @@ def update_configuration(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/#{Utils.listify(_connector_id)}/_configuration" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb index 8d39651332..ff3e04ac9b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb @@ -32,6 +32,17 @@ module Actions # support SLA of official GA features. # # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -57,7 +68,7 @@ def update_error(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/#{Utils.listify(_connector_id)}/_error" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb index c9ba996782..7b6610f273 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb @@ -39,6 +39,17 @@ module Actions # support SLA of official GA features. # # @option arguments [String] :connector_id The unique identifier of the connector to be updated. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -64,7 +75,7 @@ def update_features(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/#{Utils.listify(_connector_id)}/_features" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb index 3945234cf5..04a792481d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb @@ -32,6 +32,17 @@ module Actions # SLA of official GA features. # # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -57,7 +68,7 @@ def update_filtering(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/#{Utils.listify(_connector_id)}/_filtering" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb index 21feaf0556..a291ef0827 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb @@ -30,6 +30,17 @@ module Actions # support SLA of official GA features. # # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -55,7 +66,7 @@ def update_filtering_validation(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/#{Utils.listify(_connector_id)}/_filtering/_validation" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb index c8ec0ea543..3f83881710 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb @@ -23,13 +23,24 @@ module API module Connector module Actions # Update the connector index name. - # Update the +index_name+ field of a connector, specifying the index where the data ingested by the connector is stored. + # Update the `index_name` field of a connector, specifying the index where the data ingested by the connector is stored. # This functionality is in Beta and is subject to change. The design and # code is less mature than official GA features and is being provided # as-is with no warranties. Beta features are not subject to the support # SLA of official GA features. # # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -55,7 +66,7 @@ def update_index_name(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/#{Utils.listify(_connector_id)}/_index_name" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb index dcf758b55b..58763761bf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb @@ -29,6 +29,17 @@ module Actions # SLA of official GA features. # # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -54,7 +65,7 @@ def update_name(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/#{Utils.listify(_connector_id)}/_name" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb index 5960ca042e..4c5b7044eb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb @@ -29,6 +29,17 @@ module Actions # SLA of official GA features. # # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -54,7 +65,7 @@ def update_native(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/#{Utils.listify(_connector_id)}/_native" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb index 252d5ecc76..a1550c2089 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb @@ -30,6 +30,17 @@ module Actions # SLA of official GA features. # # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -55,7 +66,7 @@ def update_pipeline(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/#{Utils.listify(_connector_id)}/_pipeline" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb index d60ff5ac87..ef80338ac2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb @@ -29,6 +29,17 @@ module Actions # SLA of official GA features. # # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -54,7 +65,7 @@ def update_scheduling(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/#{Utils.listify(_connector_id)}/_scheduling" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb index 3b513c0153..f25fae8ef4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb @@ -29,6 +29,17 @@ module Actions # SLA of official GA features. # # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -54,7 +65,7 @@ def update_service_type(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/#{Utils.listify(_connector_id)}/_service_type" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb index 20f946fe25..b9c1d85569 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb @@ -29,6 +29,17 @@ module Actions # support SLA of official GA features. # # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -54,7 +65,7 @@ def update_status(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_connector/#{Utils.listify(_connector_id)}/_status" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/count.rb b/elasticsearch-api/lib/elasticsearch/api/actions/count.rb index e9c7014b5a..194e8616b8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/count.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/count.rb @@ -24,34 +24,34 @@ module Actions # Count search results. # Get the number of documents matching a query. # The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. - # The query is optional. When no query is provided, the API uses +match_all+ to count all the documents. + # The query is optional. When no query is provided, the API uses `match_all` to count all the documents. # The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. # The operation is broadcast across all shards. # For each shard ID group, a replica is chosen and the search is run against it. # This means that replicas increase the scalability of the count. # # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to search. - # It supports wildcards (+*+). - # To search all data streams and indices, omit this parameter or use +*+ or +_all+. - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # It supports wildcards (`*`). + # To search all data streams and indices, omit this parameter or use `*` or `_all`. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. - # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. + # For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. Server default: true. # @option arguments [String] :analyzer The analyzer to use for the query string. - # This parameter can be used only when the +q+ query string parameter is specified. - # @option arguments [Boolean] :analyze_wildcard If +true+, wildcard and prefix queries are analyzed. - # This parameter can be used only when the +q+ query string parameter is specified. - # @option arguments [String] :default_operator The default operator for query string query: +AND+ or +OR+. - # This parameter can be used only when the +q+ query string parameter is specified. Server default: OR. + # This parameter can be used only when the `q` query string parameter is specified. + # @option arguments [Boolean] :analyze_wildcard If `true`, wildcard and prefix queries are analyzed. + # This parameter can be used only when the `q` query string parameter is specified. + # @option arguments [String] :default_operator The default operator for query string query: `AND` or `OR`. + # This parameter can be used only when the `q` query string parameter is specified. Server default: OR. # @option arguments [String] :df The field to use as a default when no field prefix is given in the query string. - # This parameter can be used only when the +q+ query string parameter is specified. + # This parameter can be used only when the `q` query string parameter is specified. # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # It supports comma-separated values, such as +open,hidden+. Server default: open. - # @option arguments [Boolean] :ignore_throttled If +true+, concrete, expanded, or aliased indices are ignored when frozen. Server default: true. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. - # @option arguments [Boolean] :lenient If +true+, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - # This parameter can be used only when the +q+ query string parameter is specified. - # @option arguments [Float] :min_score The minimum +_score+ value that documents must have to be included in the result. + # It supports comma-separated values, such as `open,hidden`. Server default: open. + # @option arguments [Boolean] :ignore_throttled If `true`, concrete, expanded, or aliased indices are ignored when frozen. Server default: true. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :lenient If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + # This parameter can be used only when the `q` query string parameter is specified. + # @option arguments [Float] :min_score The minimum `_score` value that documents must have to be included in the result. # @option arguments [String] :preference The node or shard the operation should be performed on. # By default, it is random. # @option arguments [String] :routing A custom value used to route operations to a specific shard. @@ -62,6 +62,17 @@ module Actions # When possible, let Elasticsearch perform early termination automatically. # Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. # @option arguments [String] :q The query in Lucene query string syntax. This parameter cannot be used with a request body. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/create.rb index 388a3fa22e..8ac7021de9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/create.rb @@ -22,78 +22,78 @@ module Elasticsearch module API module Actions # Create a new document in the index. - # You can index a new JSON document with the +//_doc/+ or +//_create/<_id>+ APIs - # Using +_create+ guarantees that the document is indexed only if it does not already exist. + # You can index a new JSON document with the `//_doc/` or `//_create/<_id>` APIs + # Using `_create` guarantees that the document is indexed only if it does not already exist. # It returns a 409 response when a document with a same ID already exists in the index. - # To update an existing document, you must use the +//_doc/+ API. + # To update an existing document, you must use the `//_doc/` API. # If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: - # * To add a document using the +PUT //_create/<_id>+ or +POST //_create/<_id>+ request formats, you must have the +create_doc+, +create+, +index+, or +write+ index privilege. - # * To automatically create a data stream or index with this API request, you must have the +auto_configure+, +create_index+, or +manage+ index privilege. + # * To add a document using the `PUT //_create/<_id>` or `POST //_create/<_id>` request formats, you must have the `create_doc`, `create`, `index`, or `write` index privilege. + # * To automatically create a data stream or index with this API request, you must have the `auto_configure`, `create_index`, or `manage` index privilege. # Automatic data stream creation requires a matching index template with data stream enabled. # **Automatically create data streams and indices** - # If the request's target doesn't exist and matches an index template with a +data_stream+ definition, the index operation automatically creates the data stream. + # If the request's target doesn't exist and matches an index template with a `data_stream` definition, the index operation automatically creates the data stream. # If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. # NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. # If no mapping exists, the index operation creates a dynamic mapping. # By default, new fields and objects are automatically added to the mapping if needed. - # Automatic index creation is controlled by the +action.auto_create_index+ setting. - # If it is +true+, any index can be created automatically. - # You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to +false+ to turn off automatic index creation entirely. - # Specify a comma-separated list of patterns you want to allow or prefix each pattern with +++ or +-+ to indicate whether it should be allowed or blocked. + # Automatic index creation is controlled by the `action.auto_create_index` setting. + # If it is `true`, any index can be created automatically. + # You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to `false` to turn off automatic index creation entirely. + # Specify a comma-separated list of patterns you want to allow or prefix each pattern with `+` or `-` to indicate whether it should be allowed or blocked. # When a list is specified, the default behaviour is to disallow. - # NOTE: The +action.auto_create_index+ setting affects the automatic creation of indices only. + # NOTE: The `action.auto_create_index` setting affects the automatic creation of indices only. # It does not affect the creation of data streams. # **Routing** # By default, shard placement — or routing — is controlled by using a hash of the document's ID value. - # For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the +routing+ parameter. - # When setting up explicit mapping, you can also use the +_routing+ field to direct the index operation to extract the routing value from the document itself. + # For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the `routing` parameter. + # When setting up explicit mapping, you can also use the `_routing` field to direct the index operation to extract the routing value from the document itself. # This does come at the (very minimal) cost of an additional document parsing pass. - # If the +_routing+ mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. - # NOTE: Data streams do not support custom routing unless they were created with the +allow_custom_routing+ setting enabled in the template. + # If the `_routing` mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + # NOTE: Data streams do not support custom routing unless they were created with the `allow_custom_routing` setting enabled in the template. # **Distributed** # The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. # After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. # **Active shards** # To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. # If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. - # By default, write operations only wait for the primary shards to be active before proceeding (that is to say +wait_for_active_shards+ is +1+). - # This default can be overridden in the index settings dynamically by setting +index.write.wait_for_active_shards+. - # To alter this behavior per operation, use the +wait_for_active_shards request+ parameter. - # Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is +number_of_replicas++1). + # By default, write operations only wait for the primary shards to be active before proceeding (that is to say `wait_for_active_shards` is `1`). + # This default can be overridden in the index settings dynamically by setting `index.write.wait_for_active_shards`. + # To alter this behavior per operation, use the `wait_for_active_shards request` parameter. + # Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is `number_of_replicas`+1). # Specifying a negative value or a number greater than the number of shard copies will throw an error. # For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). # If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. # This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. - # If +wait_for_active_shards+ is set on the request to +3+ (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + # If `wait_for_active_shards` is set on the request to `3` (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. # This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. - # However, if you set +wait_for_active_shards+ to +all+ (or to +4+, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + # However, if you set `wait_for_active_shards` to `all` (or to `4`, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. # The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. # It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. # After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. - # The +_shards+ section of the API response reveals the number of shard copies on which replication succeeded and failed. + # The `_shards` section of the API response reveals the number of shard copies on which replication succeeded and failed. # # @option arguments [String] :id A unique identifier for the document. - # To automatically generate a document ID, use the +POST //_doc/+ request format. (*Required*) + # To automatically generate a document ID, use the `POST //_doc/` request format. (*Required*) # @option arguments [String] :index The name of the data stream or index to target. - # If the target doesn't exist and matches the name or wildcard (+*+) pattern of an index template with a +data_stream+ definition, this request creates the data stream. + # If the target doesn't exist and matches the name or wildcard (`*`) pattern of an index template with a `data_stream` definition, this request creates the data stream. # If the target doesn't exist and doesn’t match a data stream template, this request creates the index. (*Required*) # @option arguments [Integer] :if_primary_term Only perform the operation if the document has this primary term. # @option arguments [Integer] :if_seq_no Only perform the operation if the document has this sequence number. # @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Server default: true. - # @option arguments [String] :op_type Set to +create+ to only index the document if it does not already exist (put if absent). - # If a document with the specified +_id+ already exists, the indexing operation will fail. - # The behavior is the same as using the +/_create+ endpoint. - # If a document ID is specified, this paramater defaults to +index+. - # Otherwise, it defaults to +create+. - # If the request targets a data stream, an +op_type+ of +create+ is required. + # @option arguments [String] :op_type Set to `create` to only index the document if it does not already exist (put if absent). + # If a document with the specified `_id` already exists, the indexing operation will fail. + # The behavior is the same as using the `/_create` endpoint. + # If a document ID is specified, this paramater defaults to `index`. + # Otherwise, it defaults to `create`. + # If the request targets a data stream, an `op_type` of `create` is required. # @option arguments [String] :pipeline The ID of the pipeline to use to preprocess incoming documents. - # If the index has a default ingest pipeline specified, setting the value to +_none+ turns off the default ingest pipeline for this request. + # If the index has a default ingest pipeline specified, setting the value to `_none` turns off the default ingest pipeline for this request. # If a final pipeline is configured, it will always run regardless of the value of this parameter. - # @option arguments [String] :refresh If +true+, Elasticsearch refreshes the affected shards to make this operation visible to search. - # If +wait_for+, it waits for a refresh to make this operation visible to search. - # If +false+, it does nothing with refreshes. Server default: false. - # @option arguments [Boolean] :require_alias If +true+, the destination must be an index alias. - # @option arguments [Boolean] :require_data_stream If +true+, the request's actions must target a data stream (existing or to be created). + # @option arguments [String] :refresh If `true`, Elasticsearch refreshes the affected shards to make this operation visible to search. + # If `wait_for`, it waits for a refresh to make this operation visible to search. + # If `false`, it does nothing with refreshes. Server default: false. + # @option arguments [Boolean] :require_alias If `true`, the destination must be an index alias. + # @option arguments [Boolean] :require_data_stream If `true`, the request's actions must target a data stream (existing or to be created). # @option arguments [String] :routing A custom value that is used to route operations to a specific shard. # @option arguments [Time] :timeout The period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. # Elasticsearch waits for at least the specified timeout period before failing. @@ -105,8 +105,19 @@ module Actions # It must be a non-negative long number. # @option arguments [String] :version_type The version type. # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. - # You can set it to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). - # The default value of +1+ means it waits for each primary shard to be active. Server default: 1. + # You can set it to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). + # The default value of `1` means it waits for each primary shard to be active. Server default: 1. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body document # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb index ff2103d8f2..6bf3db5517 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb @@ -28,7 +28,18 @@ module Actions # @option arguments [String] :name The auto-follow pattern collection to delete. (*Required*) # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-delete-auto-follow-pattern diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb index f1e7ef4a88..1adfbea0f1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb @@ -32,6 +32,17 @@ module Actions # active. # A shard must be restored from the leader index before being active. Restoring a follower shard requires transferring all the # remote Lucene segment files to the follower index. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb index 122a23bf9c..00beb118fd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb @@ -29,7 +29,18 @@ module Actions # @option arguments [String, Array] :index A comma-delimited list of follower index patterns. (*Required*) # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-follow-info diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb index b94b4fa1c4..18681bde53 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb @@ -29,6 +29,17 @@ module Actions # @option arguments [String, Array] :index A comma-delimited list of index patterns. (*Required*) # @option arguments [Time] :timeout The period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-follow-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb index 25beb0e20f..1258db9871 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb @@ -35,6 +35,17 @@ module Actions # # @option arguments [String] :index the name of the leader index for which specified follower retention leases should be removed (*Required*) # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb index 76dfeb5a9d..237a7d55fb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb @@ -29,7 +29,18 @@ module Actions # If you do not specify a name, the API returns information for all collections. # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-get-auto-follow-pattern-1 diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb index e0e4653ec2..6ae943a702 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb @@ -33,7 +33,18 @@ module Actions # @option arguments [String] :name The name of the auto-follow pattern to pause. (*Required*) # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-pause-auto-follow-pattern diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb index a24d52f1b4..3ae78b81ac 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb @@ -31,7 +31,18 @@ module Actions # @option arguments [String] :index The name of the follower index. (*Required*) # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-pause-follow diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb index c35d751bc3..6de9e24443 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb @@ -31,6 +31,17 @@ module Actions # # @option arguments [String] :name The name of the collection of auto-follow patterns. (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb index a3986239db..4cdf26351d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb @@ -30,7 +30,18 @@ module Actions # @option arguments [String] :name The name of the auto-follow pattern to resume. (*Required*) # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-resume-auto-follow-pattern diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb index 7d4c008d0a..3928ce3ebd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb @@ -30,6 +30,17 @@ module Actions # # @option arguments [String] :index The name of the follow index to resume following. (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb index 589eaa8232..ab1931b104 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb @@ -27,8 +27,19 @@ module Actions # # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb index aa2f3ab870..603191112b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb @@ -30,7 +30,18 @@ module Actions # @option arguments [String] :index The name of the follower index. (*Required*) # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ccr-unfollow diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb index 975645e8b9..1b3abd5639 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb @@ -24,12 +24,23 @@ module DanglingIndices module Actions # Delete a dangling index. # If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. - # For example, this can happen if you delete more than +cluster.indices.tombstones.size+ indices while an Elasticsearch node is offline. + # For example, this can happen if you delete more than `cluster.indices.tombstones.size` indices while an Elasticsearch node is offline. # # @option arguments [String] :index_uuid The UUID of the index to delete. Use the get dangling indices API to find the UUID. (*Required*) # @option arguments [Boolean] :accept_data_loss This parameter must be set to true to acknowledge that it will no longer be possible to recove data from the dangling index. (*Required*) # @option arguments [Time] :master_timeout Specify timeout for connection to master # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-dangling-indices-delete-dangling-index diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb index 827d6fea86..33fa80aead 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb @@ -24,13 +24,24 @@ module DanglingIndices module Actions # Import a dangling index. # If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. - # For example, this can happen if you delete more than +cluster.indices.tombstones.size+ indices while an Elasticsearch node is offline. + # For example, this can happen if you delete more than `cluster.indices.tombstones.size` indices while an Elasticsearch node is offline. # # @option arguments [String] :index_uuid The UUID of the index to import. Use the get dangling indices API to locate the UUID. (*Required*) # @option arguments [Boolean] :accept_data_loss This parameter must be set to true to import a dangling index. # Because Elasticsearch cannot know where the dangling index data came from or determine which shard copies are fresh and which are stale, it cannot guarantee that the imported data represents the latest state of the index when it was last in the cluster. (*Required*) # @option arguments [Time] :master_timeout Specify timeout for connection to master # @option arguments [Time] :timeout Explicit operation timeout + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-dangling-indices-import-dangling-index diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb index 46b5fec36e..4d2ef3bafc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb @@ -24,9 +24,20 @@ module DanglingIndices module Actions # Get the dangling indices. # If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. - # For example, this can happen if you delete more than +cluster.indices.tombstones.size+ indices while an Elasticsearch node is offline. + # For example, this can happen if you delete more than `cluster.indices.tombstones.size` indices while an Elasticsearch node is offline. # Use this API to list dangling indices, which you can then import or delete. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-dangling-indices-list-dangling-indices @@ -41,7 +52,7 @@ def list_dangling_indices(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_dangling' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb index 9bde053706..1fce676e57 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb @@ -26,21 +26,23 @@ module Actions # NOTE: You cannot send deletion requests directly to a data stream. # To delete a document in a data stream, you must target the backing index containing the document. # **Optimistic concurrency control** - # Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the +if_seq_no+ and +if_primary_term+ parameters. - # If a mismatch is detected, the operation will result in a +VersionConflictException+ and a status code of +409+. + # Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the `if_seq_no` and `if_primary_term` parameters. + # If a mismatch is detected, the operation will result in a `VersionConflictException` and a status code of `409`. # **Versioning** # Each document indexed is versioned. # When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. # Every write operation run on a document, deletes included, causes its version to be incremented. # The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. - # The length of time for which a deleted document's version remains available is determined by the +index.gc_deletes+ index setting. + # The length of time for which a deleted document's version remains available is determined by the `index.gc_deletes` index setting. # **Routing** # If routing is used during indexing, the routing value also needs to be specified to delete a document. - # If the +_routing+ mapping is set to +required+ and no routing value is specified, the delete API throws a +RoutingMissingException+ and rejects the request. + # If the `_routing` mapping is set to `required` and no routing value is specified, the delete API throws a `RoutingMissingException` and rejects the request. # For example: - # + + # + # ``` # DELETE /my-index-000001/_doc/1?routing=shard-1 - # + + # ``` + # # This request deletes the document with ID 1, but it is routed based on the user. # The document is not deleted if the correct routing is not specified. # **Distributed** @@ -51,9 +53,9 @@ module Actions # @option arguments [String] :index The name of the target index. (*Required*) # @option arguments [Integer] :if_primary_term Only perform the operation if the document has this primary term. # @option arguments [Integer] :if_seq_no Only perform the operation if the document has this sequence number. - # @option arguments [String] :refresh If +true+, Elasticsearch refreshes the affected shards to make this operation visible to search. - # If +wait_for+, it waits for a refresh to make this operation visible to search. - # If +false+, it does nothing with refreshes. Server default: false. + # @option arguments [String] :refresh If `true`, Elasticsearch refreshes the affected shards to make this operation visible to search. + # If `wait_for`, it waits for a refresh to make this operation visible to search. + # If `false`, it does nothing with refreshes. Server default: false. # @option arguments [String] :routing A custom value used to route operations to a specific shard. # @option arguments [Time] :timeout The period to wait for active shards.This parameter is useful for situations where the primary shard assigned to perform the delete operation might not be available when the delete operation runs. # Some reasons for this might be that the primary shard is currently recovering from a store or undergoing relocation. @@ -62,8 +64,19 @@ module Actions # It must match the current version of the document for the request to succeed. # @option arguments [String] :version_type The version type. # @option arguments [Integer, String] :wait_for_active_shards The minimum number of shard copies that must be active before proceeding with the operation. - # You can set it to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). - # The default value of +1+ means it waits for each primary shard to be active. Server default: 1. + # You can set it to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). + # The default value of `1` means it waits for each primary shard to be active. Server default: 1. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb index 1c34981d22..15477ee32b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb @@ -24,8 +24,8 @@ module Actions # Delete documents. # Deletes documents that match the specified query. # If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: - # * +read+ - # * +delete+ or +write+ + # * `read` + # * `delete` or `write` # You can specify the query criteria in the request URI or the request body using the same syntax as the search API. # When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. # If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. @@ -35,80 +35,84 @@ module Actions # If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. # If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. # Any delete requests that completed successfully still stick, they are not rolled back. - # You can opt to count version conflicts instead of halting and returning by setting +conflicts+ to +proceed+. - # Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than +max_docs+ until it has successfully deleted +max_docs documents+, or it has gone through every document in the source query. + # You can opt to count version conflicts instead of halting and returning by setting `conflicts` to `proceed`. + # Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than `max_docs` until it has successfully deleted `max_docs documents`, or it has gone through every document in the source query. # **Throttling delete requests** - # To control the rate at which delete by query issues batches of delete operations, you can set +requests_per_second+ to any positive decimal number. + # To control the rate at which delete by query issues batches of delete operations, you can set `requests_per_second` to any positive decimal number. # This pads each batch with a wait time to throttle the rate. - # Set +requests_per_second+ to +-1+ to disable throttling. + # Set `requests_per_second` to `-1` to disable throttling. # Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. - # The padding time is the difference between the batch size divided by the +requests_per_second+ and the time spent writing. - # By default the batch size is +1000+, so if +requests_per_second+ is set to +500+: - # + + # The padding time is the difference between the batch size divided by the `requests_per_second` and the time spent writing. + # By default the batch size is `1000`, so if `requests_per_second` is set to `500`: + # + # ``` # target_time = 1000 / 500 per second = 2 seconds # wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds - # + - # Since the batch is issued as a single +_bulk+ request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + # ``` + # + # Since the batch is issued as a single `_bulk` request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. # This is "bursty" instead of "smooth". # **Slicing** # Delete by query supports sliced scroll to parallelize the delete process. # This can improve efficiency and provide a convenient way to break the request down into smaller parts. - # Setting +slices+ to +auto+ lets Elasticsearch choose the number of slices to use. + # Setting `slices` to `auto` lets Elasticsearch choose the number of slices to use. # This setting will use one slice per shard, up to a certain limit. # If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. # Adding slices to the delete by query operation creates sub-requests which means it has some quirks: # * You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. # * Fetching the status of the task for the request with slices only contains the status of completed slices. # * These sub-requests are individually addressable for things like cancellation and rethrottling. - # * Rethrottling the request with +slices+ will rethrottle the unfinished sub-request proportionally. - # * Canceling the request with +slices+ will cancel each sub-request. - # * Due to the nature of +slices+ each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. - # * Parameters like +requests_per_second+ and +max_docs+ on a request with +slices+ are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using +max_docs+ with +slices+ might not result in exactly +max_docs+ documents being deleted. + # * Rethrottling the request with `slices` will rethrottle the unfinished sub-request proportionally. + # * Canceling the request with `slices` will cancel each sub-request. + # * Due to the nature of `slices` each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + # * Parameters like `requests_per_second` and `max_docs` on a request with `slices` are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using `max_docs` with `slices` might not result in exactly `max_docs` documents being deleted. # * Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. # If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: - # * Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many +slices+ hurts performance. Setting +slices+ higher than the number of shards generally does not improve efficiency and adds overhead. + # * Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many `slices` hurts performance. Setting `slices` higher than the number of shards generally does not improve efficiency and adds overhead. # * Delete performance scales linearly across available resources with the number of slices. # Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. # **Cancel a delete by query operation** # Any delete by query can be canceled using the task cancel API. For example: - # + + # + # ``` # POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel - # + + # ``` + # # The task ID can be found by using the get tasks API. # Cancellation should happen quickly but might take a few seconds. # The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. # # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to search. - # It supports wildcards (+*+). - # To search all data streams or indices, omit this parameter or use +*+ or +_all+. (*Required*) - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # It supports wildcards (`*`). + # To search all data streams or indices, omit this parameter or use `*` or `_all`. (*Required*) + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. - # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. + # For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. Server default: true. # @option arguments [String] :analyzer Analyzer to use for the query string. - # This parameter can be used only when the +q+ query string parameter is specified. - # @option arguments [Boolean] :analyze_wildcard If +true+, wildcard and prefix queries are analyzed. - # This parameter can be used only when the +q+ query string parameter is specified. - # @option arguments [String] :conflicts What to do if delete by query hits version conflicts: +abort+ or +proceed+. Server default: abort. - # @option arguments [String] :default_operator The default operator for query string query: +AND+ or +OR+. - # This parameter can be used only when the +q+ query string parameter is specified. Server default: OR. + # This parameter can be used only when the `q` query string parameter is specified. + # @option arguments [Boolean] :analyze_wildcard If `true`, wildcard and prefix queries are analyzed. + # This parameter can be used only when the `q` query string parameter is specified. + # @option arguments [String] :conflicts What to do if delete by query hits version conflicts: `abort` or `proceed`. Server default: abort. + # @option arguments [String] :default_operator The default operator for query string query: `AND` or `OR`. + # This parameter can be used only when the `q` query string parameter is specified. Server default: OR. # @option arguments [String] :df The field to use as default where no field prefix is given in the query string. - # This parameter can be used only when the +q+ query string parameter is specified. + # This parameter can be used only when the `q` query string parameter is specified. # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # It supports comma-separated values, such as +open,hidden+. Server default: open. + # It supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Integer] :from Skips the specified number of documents. Server default: 0. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. - # @option arguments [Boolean] :lenient If +true+, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :lenient If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + # This parameter can be used only when the `q` query string parameter is specified. # @option arguments [Integer] :max_docs The maximum number of documents to process. # Defaults to all documents. - # When set to a value less then or equal to +scroll_size+, a scroll will not be used to retrieve the results for the operation. + # When set to a value less then or equal to `scroll_size`, a scroll will not be used to retrieve the results for the operation. # @option arguments [String] :preference The node or shard the operation should be performed on. # It is random by default. - # @option arguments [Boolean] :refresh If +true+, Elasticsearch refreshes all shards involved in the delete by query after the request completes. - # This is different than the delete API's +refresh+ parameter, which causes just the shard that received the delete request to be refreshed. - # Unlike the delete API, it does not support +wait_for+. - # @option arguments [Boolean] :request_cache If +true+, the request cache is used for this request. + # @option arguments [Boolean] :refresh If `true`, Elasticsearch refreshes all shards involved in the delete by query after the request completes. + # This is different than the delete API's `refresh` parameter, which causes just the shard that received the delete request to be refreshed. + # Unlike the delete API, it does not support `wait_for`. + # @option arguments [Boolean] :request_cache If `true`, the request cache is used for this request. # Defaults to the index-level setting. # @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second. Server default: -1. # @option arguments [String] :routing A custom value used to route operations to a specific shard. @@ -118,10 +122,10 @@ module Actions # @option arguments [Time] :search_timeout The explicit timeout for each search request. # It defaults to no timeout. # @option arguments [String] :search_type The type of the search operation. - # Available options include +query_then_fetch+ and +dfs_query_then_fetch+. + # Available options include `query_then_fetch` and `dfs_query_then_fetch`. # @option arguments [Integer, String] :slices The number of slices this task should be divided into. Server default: 1. - # @option arguments [Array] :sort A comma-separated list of +:+ pairs. - # @option arguments [Array] :stats The specific +tag+ of the request for logging and statistical purposes. + # @option arguments [Array] :sort A comma-separated list of `:` pairs. + # @option arguments [Array] :stats The specific `tag` of the request for logging and statistical purposes. # @option arguments [Integer] :terminate_after The maximum number of documents to collect for each shard. # If a query reaches this limit, Elasticsearch terminates the query early. # Elasticsearch collects documents before sorting.Use with caution. @@ -129,12 +133,23 @@ module Actions # When possible, let Elasticsearch perform early termination automatically. # Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. # @option arguments [Time] :timeout The period each deletion request waits for active shards. Server default: 1m. - # @option arguments [Boolean] :version If +true+, returns the document version as part of a hit. + # @option arguments [Boolean] :version If `true`, returns the document version as part of a hit. # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. - # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). - # The +timeout+ value controls how long each write request waits for unavailable shards to become available. Server default: 1. - # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks until the operation is complete. - # If +false+, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. Elasticsearch creates a record of this task as a document at +.tasks/task/${taskId}+. When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. Server default: true. + # Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). + # The `timeout` value controls how long each write request waits for unavailable shards to become available. Server default: 1. + # @option arguments [Boolean] :wait_for_completion If `true`, the request blocks until the operation is complete. + # If `false`, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. Elasticsearch creates a record of this task as a document at `.tasks/task/${taskId}`. When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. Server default: true. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb index 0cbefdb2e3..34967e255c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb @@ -27,7 +27,18 @@ module Actions # # @option arguments [String, Integer] :task_id The ID for the task. (*Required*) # @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second. - # To disable throttling, set it to +-1+. + # To disable throttling, set it to `-1`. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete-by-query-rethrottle diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb index 52ff04fd3c..ada441ff9a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb @@ -27,10 +27,21 @@ module Actions # @option arguments [String] :id The identifier for the stored script or search template. (*Required*) # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. - # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. - # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-delete-script diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb index 3f83d27db9..a0171ac159 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb @@ -27,6 +27,17 @@ module Actions # # @option arguments [String] :name Enrich policy to delete. (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-enrich-delete-policy diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb index f4311861c9..31b259422d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb @@ -27,7 +27,18 @@ module Actions # # @option arguments [String] :name Enrich policy to execute. (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. - # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks other enrich policy execution requests until complete. Server default: true. + # @option arguments [Boolean] :wait_for_completion If `true`, the request blocks other enrich policy execution requests until complete. Server default: true. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-enrich-execute-policy diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb index 2582f6e0b7..0fb2935ad8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb @@ -28,6 +28,17 @@ module Actions # @option arguments [String, Array] :name Comma-separated list of enrich policy names used to limit the request. # To return information for all enrich policies, omit this parameter. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-enrich-get-policy diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb index 125b0c3692..7f5e8d1c47 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb @@ -27,6 +27,17 @@ module Actions # # @option arguments [String] :name Name of the enrich policy to create or update. (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb index 6dd0be1ac7..3ed5669a1d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb @@ -26,6 +26,17 @@ module Actions # Returns enrich coordinator statistics and information about enrich policies that are currently executing. # # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-enrich-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb index ecc8edea0d..8dff6b8869 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb @@ -28,7 +28,18 @@ module Actions # # @option arguments [String] :id Identifier for the search to delete. # A search ID is provided in the EQL search API's response for an async search. - # A search ID is also provided if the request’s +keep_on_completion+ parameter is +true+. (*Required*) + # A search ID is also provided if the request’s `keep_on_completion` parameter is `true`. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-eql-delete @@ -52,7 +63,7 @@ def delete(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_eql/search/#{Utils.listify(_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb index e5b959a253..3ebf099880 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb @@ -30,6 +30,17 @@ module Actions # Defaults to the keep_alive value set by the search’s EQL search API request. # @option arguments [Time] :wait_for_completion_timeout Timeout duration to wait for the request to finish. # Defaults to no timeout, meaning the request waits for complete search results. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-eql-get diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb index 386757fb3f..3697616a5d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb @@ -26,6 +26,17 @@ module Actions # Get the current status for an async EQL search or a stored synchronous EQL search without returning results. # # @option arguments [String] :id Identifier for the search. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-eql-get-status @@ -49,7 +60,7 @@ def get_status(arguments = {}) method = Elasticsearch::API::HTTP_GET path = "_eql/search/status/#{Utils.listify(_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb index f088e6f046..6d2b882161 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb @@ -36,6 +36,17 @@ module Actions # @option arguments [Time] :keep_alive Period for which the search and its results are stored on the cluster. Server default: 5d. # @option arguments [Boolean] :keep_on_completion If true, the search and its results are stored on the cluster. # @option arguments [Time] :wait_for_completion_timeout Timeout duration to wait for the request to finish. Defaults to no timeout, meaning the request waits for complete search results. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb index 1751d17813..3d397f4401 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb @@ -28,19 +28,30 @@ module Actions # # @option arguments [String] :delimiter The character to use between values within a CSV row. # It is valid only for the CSV format. - # @option arguments [Boolean] :drop_null_columns Indicates whether columns that are entirely +null+ will be removed from the +columns+ and +values+ portion of the results. - # If +true+, the response will include an extra section under the name +all_columns+ which has the name of all the columns. - # @option arguments [String] :format A short version of the Accept header, for example +json+ or +yaml+. + # @option arguments [Boolean] :drop_null_columns Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results. + # If `true`, the response will include an extra section under the name `all_columns` which has the name of all the columns. + # @option arguments [String] :format A short version of the Accept header, for example `json` or `yaml`. # @option arguments [Time] :keep_alive The period for which the query and its results are stored in the cluster. # The default period is five days. # When this period expires, the query and its results are deleted, even if the query is still ongoing. - # If the +keep_on_completion+ parameter is false, Elasticsearch only stores async queries that do not complete within the period set by the +wait_for_completion_timeout+ parameter, regardless of this value. Server default: 5d. + # If the `keep_on_completion` parameter is false, Elasticsearch only stores async queries that do not complete within the period set by the `wait_for_completion_timeout` parameter, regardless of this value. Server default: 5d. # @option arguments [Boolean] :keep_on_completion Indicates whether the query and its results are stored in the cluster. - # If false, the query and its results are stored in the cluster only if the request does not complete during the period set by the +wait_for_completion_timeout+ parameter. + # If false, the query and its results are stored in the cluster only if the request does not complete during the period set by the `wait_for_completion_timeout` parameter. # @option arguments [Time] :wait_for_completion_timeout The period to wait for the request to finish. # By default, the request waits for 1 second for the query results. # If the query completes during this period, results are returned # Otherwise, a query ID is returned that can later be used to retrieve the results. Server default: 1s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb index 2d7090970c..1f9226cd90 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb @@ -27,11 +27,22 @@ module Actions # Otherwise, the stored results are deleted. # If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: # * The authenticated user that submitted the original query request - # * Users with the +cancel_task+ cluster privilege + # * Users with the `cancel_task` cluster privilege # # @option arguments [String] :id The unique identifier of the query. # A query ID is provided in the ES|QL async query API response for a query that does not complete in the designated time. - # A query ID is also provided when the request was submitted with the +keep_on_completion+ parameter set to +true+. (*Required*) + # A query ID is also provided when the request was submitted with the `keep_on_completion` parameter set to `true`. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-esql-async-query-delete @@ -55,7 +66,7 @@ def async_query_delete(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_query/async/#{Utils.listify(_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb index 5f3eeb43df..31fdec3f37 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb @@ -28,15 +28,26 @@ module Actions # # @option arguments [String] :id The unique identifier of the query. # A query ID is provided in the ES|QL async query API response for a query that does not complete in the designated time. - # A query ID is also provided when the request was submitted with the +keep_on_completion+ parameter set to +true+. (*Required*) - # @option arguments [Boolean] :drop_null_columns Indicates whether columns that are entirely +null+ will be removed from the +columns+ and +values+ portion of the results. - # If +true+, the response will include an extra section under the name +all_columns+ which has the name of all the columns. + # A query ID is also provided when the request was submitted with the `keep_on_completion` parameter set to `true`. (*Required*) + # @option arguments [Boolean] :drop_null_columns Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results. + # If `true`, the response will include an extra section under the name `all_columns` which has the name of all the columns. # @option arguments [Time] :keep_alive The period for which the query and its results are stored in the cluster. # When this period expires, the query and its results are deleted, even if the query is still ongoing. # @option arguments [Time] :wait_for_completion_timeout The period to wait for the request to finish. # By default, the request waits for complete query results. # If the request completes during the period specified in this parameter, complete query results are returned. - # Otherwise, the response returns an +is_running+ value of +true+ and no results. + # Otherwise, the response returns an `is_running` value of `true` and no results. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-esql-async-query-get diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb index 9043dd7cdc..3114fbcb70 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb @@ -28,9 +28,20 @@ module Actions # # @option arguments [String] :id The unique identifier of the query. # A query ID is provided in the ES|QL async query API response for a query that does not complete in the designated time. - # A query ID is also provided when the request was submitted with the +keep_on_completion+ parameter set to +true+. (*Required*) - # @option arguments [Boolean] :drop_null_columns Indicates whether columns that are entirely +null+ will be removed from the +columns+ and +values+ portion of the results. - # If +true+, the response will include an extra section under the name +all_columns+ which has the name of all the columns. + # A query ID is also provided when the request was submitted with the `keep_on_completion` parameter set to `true`. (*Required*) + # @option arguments [Boolean] :drop_null_columns Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results. + # If `true`, the response will include an extra section under the name `all_columns` which has the name of all the columns. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-esql-async-query-stop diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb index 4bb60ad281..564f364f0a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb @@ -30,8 +30,19 @@ module Actions # # @option arguments [String] :format A short version of the Accept header, e.g. json, yaml. # @option arguments [String] :delimiter The character to use between values within a CSV row. Only valid for the CSV format. - # @option arguments [Boolean] :drop_null_columns Should columns that are entirely +null+ be removed from the +columns+ and +values+ portion of the results? - # Defaults to +false+. If +true+ then the response will include an extra section under the name +all_columns+ which has the name of all columns. + # @option arguments [Boolean] :drop_null_columns Should columns that are entirely `null` be removed from the `columns` and `values` portion of the results? + # Defaults to `false`. If `true` then the response will include an extra section under the name `all_columns` which has the name of all columns. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb b/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb index f407fbc1f6..2b3a984537 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb @@ -23,44 +23,57 @@ module API module Actions # Check a document. # Verify that a document exists. - # For example, check to see if a document with the +_id+ 0 exists: - # + + # For example, check to see if a document with the `_id` 0 exists: + # + # ``` # HEAD my-index-000001/_doc/0 - # + - # If the document exists, the API returns a status code of +200 - OK+. - # If the document doesn’t exist, the API returns +404 - Not Found+. + # ``` + # + # If the document exists, the API returns a status code of `200 - OK`. + # If the document doesn’t exist, the API returns `404 - Not Found`. # **Versioning support** - # You can use the +version+ parameter to check the document only if its current version is equal to the specified one. + # You can use the `version` parameter to check the document only if its current version is equal to the specified one. # Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. # The old version of the document doesn't disappear immediately, although you won't be able to access it. # Elasticsearch cleans up deleted documents in the background as you continue to index more data. # # @option arguments [String] :id A unique document identifier. (*Required*) # @option arguments [String] :index A comma-separated list of data streams, indices, and aliases. - # It supports wildcards (+*+). (*Required*) + # It supports wildcards (`*`). (*Required*) # @option arguments [String] :preference The node or shard the operation should be performed on. - # By default, the operation is randomized between the shard replicas.If it is set to +_local+, the operation will prefer to be run on a local allocated shard when possible. + # By default, the operation is randomized between the shard replicas.If it is set to `_local`, the operation will prefer to be run on a local allocated shard when possible. # If it is set to a custom value, the value is used to guarantee that the same shards will be used for the same custom value. # This can help with "jumping values" when hitting different shards in different refresh states. # A sample value can be something like the web session ID or the user name. - # @option arguments [Boolean] :realtime If +true+, the request is real-time as opposed to near-real-time. Server default: true. - # @option arguments [Boolean] :refresh If +true+, the request refreshes the relevant shards before retrieving the document. - # Setting it to +true+ should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). + # @option arguments [Boolean] :realtime If `true`, the request is real-time as opposed to near-real-time. Server default: true. + # @option arguments [Boolean] :refresh If `true`, the request refreshes the relevant shards before retrieving the document. + # Setting it to `true` should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). # @option arguments [String] :routing A custom value used to route operations to a specific shard. - # @option arguments [Boolean, String, Array] :_source Indicates whether to return the +_source+ field (+true+ or +false+) or lists the fields to return. + # @option arguments [Boolean, String, Array] :_source Indicates whether to return the `_source` field (`true` or `false`) or lists the fields to return. # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude from the response. - # You can also use this parameter to exclude fields from the subset specified in +_source_includes+ query parameter. - # If the +_source+ parameter is +false+, this parameter is ignored. + # You can also use this parameter to exclude fields from the subset specified in `_source_includes` query parameter. + # If the `_source` parameter is `false`, this parameter is ignored. # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. # If this parameter is specified, only these source fields are returned. - # You can exclude fields from this subset using the +_source_excludes+ query parameter. - # If the +_source+ parameter is +false+, this parameter is ignored. + # You can exclude fields from this subset using the `_source_excludes` query parameter. + # If the `_source` parameter is `false`, this parameter is ignored. # @option arguments [String, Array] :stored_fields A comma-separated list of stored fields to return as part of a hit. # If no fields are specified, no stored fields are included in the response. - # If this field is specified, the +_source+ parameter defaults to +false+. + # If this field is specified, the `_source` parameter defaults to `false`. # @option arguments [Integer] :version Explicit version number for concurrency control. # The specified version must match the current version of the document for the request to succeed. # @option arguments [String] :version_type The version type. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb b/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb index bcb9a00c5c..19be1d6c2c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb @@ -24,26 +24,39 @@ module Actions # Check for a document source. # Check whether a document source exists in an index. # For example: - # + + # + # ``` # HEAD my-index-000001/_source/1 - # + + # ``` + # # A document's source is not available if it is disabled in the mapping. # # @option arguments [String] :id A unique identifier for the document. (*Required*) # @option arguments [String] :index A comma-separated list of data streams, indices, and aliases. - # It supports wildcards (+*+). (*Required*) + # It supports wildcards (`*`). (*Required*) # @option arguments [String] :preference The node or shard the operation should be performed on. # By default, the operation is randomized between the shard replicas. - # @option arguments [Boolean] :realtime If +true+, the request is real-time as opposed to near-real-time. Server default: true. - # @option arguments [Boolean] :refresh If +true+, the request refreshes the relevant shards before retrieving the document. - # Setting it to +true+ should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). + # @option arguments [Boolean] :realtime If `true`, the request is real-time as opposed to near-real-time. Server default: true. + # @option arguments [Boolean] :refresh If `true`, the request refreshes the relevant shards before retrieving the document. + # Setting it to `true` should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). # @option arguments [String] :routing A custom value used to route operations to a specific shard. - # @option arguments [Boolean, String, Array] :_source Indicates whether to return the +_source+ field (+true+ or +false+) or lists the fields to return. + # @option arguments [Boolean, String, Array] :_source Indicates whether to return the `_source` field (`true` or `false`) or lists the fields to return. # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude in the response. # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. # @option arguments [Integer] :version The version number for concurrency control. # It must match the current version of the document for the request to succeed. # @option arguments [String] :version_type The version type. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb b/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb index 65d600d0fb..e3960496e1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb @@ -29,28 +29,39 @@ module Actions # @option arguments [String] :index Index names that are used to limit the request. # Only a single index name can be provided to this parameter. (*Required*) # @option arguments [String] :analyzer The analyzer to use for the query string. - # This parameter can be used only when the +q+ query string parameter is specified. - # @option arguments [Boolean] :analyze_wildcard If +true+, wildcard and prefix queries are analyzed. - # This parameter can be used only when the +q+ query string parameter is specified. - # @option arguments [String] :default_operator The default operator for query string query: +AND+ or +OR+. - # This parameter can be used only when the +q+ query string parameter is specified. Server default: OR. + # This parameter can be used only when the `q` query string parameter is specified. + # @option arguments [Boolean] :analyze_wildcard If `true`, wildcard and prefix queries are analyzed. + # This parameter can be used only when the `q` query string parameter is specified. + # @option arguments [String] :default_operator The default operator for query string query: `AND` or `OR`. + # This parameter can be used only when the `q` query string parameter is specified. Server default: OR. # @option arguments [String] :df The field to use as default where no field prefix is given in the query string. - # This parameter can be used only when the +q+ query string parameter is specified. - # @option arguments [Boolean] :lenient If +true+, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - # This parameter can be used only when the +q+ query string parameter is specified. + # This parameter can be used only when the `q` query string parameter is specified. + # @option arguments [Boolean] :lenient If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + # This parameter can be used only when the `q` query string parameter is specified. # @option arguments [String] :preference The node or shard the operation should be performed on. # It is random by default. # @option arguments [String] :routing A custom value used to route operations to a specific shard. - # @option arguments [Boolean, String, Array] :_source +True+ or +false+ to return the +_source+ field or not or a list of fields to return. + # @option arguments [Boolean, String, Array] :_source `True` or `false` to return the `_source` field or not or a list of fields to return. # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude from the response. - # You can also use this parameter to exclude fields from the subset specified in +_source_includes+ query parameter. - # If the +_source+ parameter is +false+, this parameter is ignored. + # You can also use this parameter to exclude fields from the subset specified in `_source_includes` query parameter. + # If the `_source` parameter is `false`, this parameter is ignored. # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. # If this parameter is specified, only these source fields are returned. - # You can exclude fields from this subset using the +_source_excludes+ query parameter. - # If the +_source+ parameter is +false+, this parameter is ignored. + # You can exclude fields from this subset using the `_source_excludes` query parameter. + # If the `_source` parameter is `false`, this parameter is ignored. # @option arguments [String, Array] :stored_fields A comma-separated list of stored fields to return in the response. # @option arguments [String] :q The query in the Lucene query string syntax. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb b/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb index e371c94d69..7e7667c72d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb @@ -23,7 +23,7 @@ module API module Features module Actions # Get the features. - # Get a list of features that can be included in snapshots using the +feature_states+ field when creating a snapshot. + # Get a list of features that can be included in snapshots using the `feature_states` field when creating a snapshot. # You can use this API to determine which feature states to include when taking a snapshot. # By default, all feature states are included in a snapshot if that snapshot includes the global state, or none if it does not. # A feature state includes one or more system indices necessary for a given feature to function. @@ -32,6 +32,17 @@ module Actions # In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. # # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-features-get-features diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb b/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb index 9cd584bb1e..28da2bfc85 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb @@ -39,6 +39,17 @@ module Actions # support SLA of official GA features. # # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-features-reset-features diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb b/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb index dc00fdaa1c..4d67a3fe37 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb @@ -25,21 +25,32 @@ module Actions # Get information about the capabilities of fields among multiple indices. # For data streams, the API returns field capabilities among the stream’s backing indices. # It returns runtime fields like any other field. - # For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the +keyword+ family. + # For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the `keyword` family. # # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indices, omit this parameter or use * or _all. # @option arguments [Boolean] :allow_no_indices If false, the request returns an error if any wildcard expression, index alias, - # or +_all+ value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request - # targeting +foo*,bar*+ returns an error if an index starts with foo but no index starts with bar. Server default: true. - # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such as +open,hidden+. Server default: open. - # @option arguments [String, Array] :fields A comma-separated list of fields to retrieve capabilities for. Wildcard (+*+) expressions are supported. - # @option arguments [Boolean] :ignore_unavailable If +true+, missing or closed indices are not included in the response. + # or `_all` value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request + # targeting `foo*,bar*` returns an error if an index starts with foo but no index starts with bar. Server default: true. + # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such as `open,hidden`. Server default: open. + # @option arguments [String, Array] :fields A comma-separated list of fields to retrieve capabilities for. Wildcard (`*`) expressions are supported. + # @option arguments [Boolean] :ignore_unavailable If `true`, missing or closed indices are not included in the response. # @option arguments [Boolean] :include_unmapped If true, unmapped fields are included in the response. # @option arguments [String] :filters A comma-separated list of filters to apply to the response. # @option arguments [Array] :types A comma-separated list of field types to include. # Any fields that do not match one of these types will be excluded from the results. # It defaults to empty, meaning that all field types are returned. # @option arguments [Boolean] :include_empty_fields If false, empty fields are not included in the response. Server default: true. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb index 71aad98b82..4cf0cecef0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb @@ -28,13 +28,24 @@ module Actions # # @option arguments [Indexname, Indexalias] :index A single index or index alias that resolves to a single index. (*Required*) # @option arguments [Boolean] :wait_for_advance A boolean value which controls whether to wait (until the timeout) for the global checkpoints - # to advance past the provided +checkpoints+. + # to advance past the provided `checkpoints`. # @option arguments [Boolean] :wait_for_index A boolean value which controls whether to wait (until the timeout) for the target index to exist - # and all primary shards be active. Can only be true when +wait_for_advance+ is true. - # @option arguments [Array] :checkpoints A comma separated list of previous global checkpoints. When used in combination with +wait_for_advance+, + # and all primary shards be active. Can only be true when `wait_for_advance` is true. + # @option arguments [Array] :checkpoints A comma separated list of previous global checkpoints. When used in combination with `wait_for_advance`, # the API will only return once the global checkpoints advances past the checkpoints. Providing an empty list # will cause Elasticsearch to immediately return the current global checkpoints. Server default: []. - # @option arguments [Time] :timeout Period to wait for a global checkpoints to advance past +checkpoints+. Server default: 30s. + # @option arguments [Time] :timeout Period to wait for a global checkpoints to advance past `checkpoints`. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-fleet diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb index 10f6a4daa4..2d1181a4fb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb @@ -25,7 +25,7 @@ module Actions # Run multiple Fleet searches. # Run several Fleet searches with a single API request. # The API follows the same structure as the multi search API. - # However, similar to the Fleet search API, it supports the +wait_for_checkpoints+ parameter. + # However, similar to the Fleet search API, it supports the `wait_for_checkpoints` parameter. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the @@ -48,7 +48,18 @@ module Actions # Elasticsearch to immediately execute the search. Server default: []. # @option arguments [Boolean] :allow_partial_search_results If true, returns partial results if there are shard request timeouts or shard failures. # If false, returns an error with no partial results. - # Defaults to the configured cluster setting +search.default_allow_partial_results+, which is true by default. + # Defaults to the configured cluster setting `search.default_allow_partial_results`, which is true by default. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body searches # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb index 077042e547..9fdabb1c89 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb @@ -77,7 +77,18 @@ module Actions # Elasticsearch to immediately execute the search. Server default: []. # @option arguments [Boolean] :allow_partial_search_results If true, returns partial results if there are shard request timeouts or shard failures. # If false, returns an error with no partial results. - # Defaults to the configured cluster setting +search.default_allow_partial_results+, which is true by default. + # Defaults to the configured cluster setting `search.default_allow_partial_results`, which is true by default. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get.rb index 9f8184fabe..96b9bd6073 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get.rb @@ -24,31 +24,39 @@ module Actions # Get a document by its ID. # Get a document and its source or stored fields from an index. # By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). - # In the case where stored fields are requested with the +stored_fields+ parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. - # To turn off realtime behavior, set the +realtime+ parameter to false. + # In the case where stored fields are requested with the `stored_fields` parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + # To turn off realtime behavior, set the `realtime` parameter to false. # **Source filtering** - # By default, the API returns the contents of the +_source+ field unless you have used the +stored_fields+ parameter or the +_source+ field is turned off. - # You can turn off +_source+ retrieval by using the +_source+ parameter: - # + + # By default, the API returns the contents of the `_source` field unless you have used the `stored_fields` parameter or the `_source` field is turned off. + # You can turn off `_source` retrieval by using the `_source` parameter: + # + # ``` # GET my-index-000001/_doc/0?_source=false - # + - # If you only need one or two fields from the +_source+, use the +_source_includes+ or +_source_excludes+ parameters to include or filter out particular fields. + # ``` + # + # If you only need one or two fields from the `_source`, use the `_source_includes` or `_source_excludes` parameters to include or filter out particular fields. # This can be helpful with large documents where partial retrieval can save on network overhead # Both parameters take a comma separated list of fields or wildcard expressions. # For example: - # + + # + # ``` # GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities - # + + # ``` + # # If you only want to specify includes, you can use a shorter notation: - # + + # + # ``` # GET my-index-000001/_doc/0?_source=*.id - # + + # ``` + # # **Routing** # If routing is used during indexing, the routing value also needs to be specified to retrieve a document. # For example: - # + + # + # ``` # GET my-index-000001/_doc/2?routing=user1 - # + + # ``` + # # This request gets the document with ID 2, but it is routed based on the user. # The document is not fetched if the correct routing is not specified. # **Distributed** @@ -57,41 +65,52 @@ module Actions # The replicas are the primary shard and its replicas within that shard ID group. # This means that the more replicas you have, the better your GET scaling will be. # **Versioning support** - # You can use the +version+ parameter to retrieve the document only if its current version is equal to the specified one. + # You can use the `version` parameter to retrieve the document only if its current version is equal to the specified one. # Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. # The old version of the document doesn't disappear immediately, although you won't be able to access it. # Elasticsearch cleans up deleted documents in the background as you continue to index more data. # # @option arguments [String] :id A unique document identifier. (*Required*) # @option arguments [String] :index The name of the index that contains the document. (*Required*) - # @option arguments [Boolean] :force_synthetic_source Indicates whether the request forces synthetic +_source+. - # Use this paramater to test if the mapping supports synthetic +_source+ and to get a sense of the worst case performance. + # @option arguments [Boolean] :force_synthetic_source Indicates whether the request forces synthetic `_source`. + # Use this paramater to test if the mapping supports synthetic `_source` and to get a sense of the worst case performance. # Fetches with this parameter enabled will be slower than enabling synthetic source natively in the index. # @option arguments [String] :preference The node or shard the operation should be performed on. - # By default, the operation is randomized between the shard replicas.If it is set to +_local+, the operation will prefer to be run on a local allocated shard when possible. + # By default, the operation is randomized between the shard replicas.If it is set to `_local`, the operation will prefer to be run on a local allocated shard when possible. # If it is set to a custom value, the value is used to guarantee that the same shards will be used for the same custom value. # This can help with "jumping values" when hitting different shards in different refresh states. # A sample value can be something like the web session ID or the user name. - # @option arguments [Boolean] :realtime If +true+, the request is real-time as opposed to near-real-time. Server default: true. - # @option arguments [Boolean] :refresh If +true+, the request refreshes the relevant shards before retrieving the document. - # Setting it to +true+ should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). + # @option arguments [Boolean] :realtime If `true`, the request is real-time as opposed to near-real-time. Server default: true. + # @option arguments [Boolean] :refresh If `true`, the request refreshes the relevant shards before retrieving the document. + # Setting it to `true` should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). # @option arguments [String] :routing A custom value used to route operations to a specific shard. - # @option arguments [Boolean, String, Array] :_source Indicates whether to return the +_source+ field (+true+ or +false+) or lists the fields to return. + # @option arguments [Boolean, String, Array] :_source Indicates whether to return the `_source` field (`true` or `false`) or lists the fields to return. # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude from the response. - # You can also use this parameter to exclude fields from the subset specified in +_source_includes+ query parameter. - # If the +_source+ parameter is +false+, this parameter is ignored. + # You can also use this parameter to exclude fields from the subset specified in `_source_includes` query parameter. + # If the `_source` parameter is `false`, this parameter is ignored. # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. # If this parameter is specified, only these source fields are returned. - # You can exclude fields from this subset using the +_source_excludes+ query parameter. - # If the +_source+ parameter is +false+, this parameter is ignored. + # You can exclude fields from this subset using the `_source_excludes` query parameter. + # If the `_source` parameter is `false`, this parameter is ignored. # @option arguments [String, Array] :stored_fields A comma-separated list of stored fields to return as part of a hit. # If no fields are specified, no stored fields are included in the response. - # If this field is specified, the +_source+ parameter defaults to +false+. - # Only leaf fields can be retrieved with the +stored_field+ option. + # If this field is specified, the `_source` parameter defaults to `false`. + # Only leaf fields can be retrieved with the `stored_field` option. # Object fields can't be returned;​if specified, the request fails. # @option arguments [Integer] :version The version number for concurrency control. # It must match the current version of the document for the request to succeed. # @option arguments [String] :version_type The version type. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb index cb9c3b7999..ddd816172f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb @@ -27,7 +27,18 @@ module Actions # @option arguments [String] :id The identifier for the stored script or search template. (*Required*) # @option arguments [Time] :master_timeout The period to wait for the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # It can also be set to +-1+ to indicate that the request should never timeout. Server default: . + # It can also be set to `-1` to indicate that the request should never timeout. Server default: . + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get-script diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb index c88356fe5e..537ada530c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb @@ -24,6 +24,17 @@ module Actions # Get script contexts. # Get a list of supported script contexts and their methods. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get-script-context @@ -38,7 +49,7 @@ def get_script_context(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_script_context' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb index 9984756ecf..9bb85d2e17 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb @@ -24,6 +24,17 @@ module Actions # Get script languages. # Get a list of available script types, languages, and contexts. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get-script-languages @@ -38,7 +49,7 @@ def get_script_languages(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_script_language' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb index 7a42cee621..3e2acad79a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb @@ -24,29 +24,43 @@ module Actions # Get a document's source. # Get the source of a document. # For example: - # + + # + # ``` # GET my-index-000001/_source/1 - # + - # You can use the source filtering parameters to control which parts of the +_source+ are returned: - # + + # ``` + # + # You can use the source filtering parameters to control which parts of the `_source` are returned: + # + # ``` # GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities - # + + # ``` # # @option arguments [String] :id A unique document identifier. (*Required*) # @option arguments [String] :index The name of the index that contains the document. (*Required*) # @option arguments [String] :preference The node or shard the operation should be performed on. # By default, the operation is randomized between the shard replicas. - # @option arguments [Boolean] :realtime If +true+, the request is real-time as opposed to near-real-time. Server default: true. - # @option arguments [Boolean] :refresh If +true+, the request refreshes the relevant shards before retrieving the document. - # Setting it to +true+ should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). + # @option arguments [Boolean] :realtime If `true`, the request is real-time as opposed to near-real-time. Server default: true. + # @option arguments [Boolean] :refresh If `true`, the request refreshes the relevant shards before retrieving the document. + # Setting it to `true` should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). # @option arguments [String] :routing A custom value used to route operations to a specific shard. - # @option arguments [Boolean, String, Array] :_source Indicates whether to return the +_source+ field (+true+ or +false+) or lists the fields to return. + # @option arguments [Boolean, String, Array] :_source Indicates whether to return the `_source` field (`true` or `false`) or lists the fields to return. # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude in the response. # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. # @option arguments [String, Array] :stored_fields A comma-separated list of stored fields to return as part of a hit. # @option arguments [Integer] :version The version number for concurrency control. # It must match the current version of the document for the request to succeed. # @option arguments [String] :version_type The version type. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-get diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb b/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb index b063923e09..b49446b832 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb @@ -25,7 +25,7 @@ module Actions # Explore graph analytics. # Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. # The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. - # An initial request to the +_explore+ API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + # An initial request to the `_explore` API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. # Subsequent requests enable you to spider out from one more vertices of interest. # You can exclude vertices that have already been returned. # @@ -34,6 +34,17 @@ module Actions # @option arguments [Time] :timeout Specifies the period of time to wait for a response from each shard. # If no response is received before the timeout expires, the request fails and returns an error. # Defaults to no timeout. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb b/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb index eb71dcd424..f176eaa43a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb @@ -39,6 +39,17 @@ module Actions # @option arguments [Time] :timeout Explicit operation timeout. # @option arguments [Boolean] :verbose Opt-in for more information about the health of the system. Server default: true. # @option arguments [Integer] :size Limit the number of affected resources the health report API returns. Server default: 1000. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-health-report diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index.rb index 7fae20a0ee..6be49d2d66 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index.rb @@ -26,68 +26,68 @@ module Actions # If the target is an index and the document already exists, the request updates the document and increments its version. # NOTE: You cannot use this API to send update requests for existing documents in a data stream. # If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: - # * To add or overwrite a document using the +PUT //_doc/<_id>+ request format, you must have the +create+, +index+, or +write+ index privilege. - # * To add a document using the +POST //_doc/+ request format, you must have the +create_doc+, +create+, +index+, or +write+ index privilege. - # * To automatically create a data stream or index with this API request, you must have the +auto_configure+, +create_index+, or +manage+ index privilege. + # * To add or overwrite a document using the `PUT //_doc/<_id>` request format, you must have the `create`, `index`, or `write` index privilege. + # * To add a document using the `POST //_doc/` request format, you must have the `create_doc`, `create`, `index`, or `write` index privilege. + # * To automatically create a data stream or index with this API request, you must have the `auto_configure`, `create_index`, or `manage` index privilege. # Automatic data stream creation requires a matching index template with data stream enabled. # NOTE: Replica shards might not all be started when an indexing operation returns successfully. - # By default, only the primary is required. Set +wait_for_active_shards+ to change this default behavior. + # By default, only the primary is required. Set `wait_for_active_shards` to change this default behavior. # **Automatically create data streams and indices** - # If the request's target doesn't exist and matches an index template with a +data_stream+ definition, the index operation automatically creates the data stream. + # If the request's target doesn't exist and matches an index template with a `data_stream` definition, the index operation automatically creates the data stream. # If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. # NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. # If no mapping exists, the index operation creates a dynamic mapping. # By default, new fields and objects are automatically added to the mapping if needed. - # Automatic index creation is controlled by the +action.auto_create_index+ setting. - # If it is +true+, any index can be created automatically. - # You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to +false+ to turn off automatic index creation entirely. - # Specify a comma-separated list of patterns you want to allow or prefix each pattern with +++ or +-+ to indicate whether it should be allowed or blocked. + # Automatic index creation is controlled by the `action.auto_create_index` setting. + # If it is `true`, any index can be created automatically. + # You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to `false` to turn off automatic index creation entirely. + # Specify a comma-separated list of patterns you want to allow or prefix each pattern with `+` or `-` to indicate whether it should be allowed or blocked. # When a list is specified, the default behaviour is to disallow. - # NOTE: The +action.auto_create_index+ setting affects the automatic creation of indices only. + # NOTE: The `action.auto_create_index` setting affects the automatic creation of indices only. # It does not affect the creation of data streams. # **Optimistic concurrency control** - # Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the +if_seq_no+ and +if_primary_term+ parameters. - # If a mismatch is detected, the operation will result in a +VersionConflictException+ and a status code of +409+. + # Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the `if_seq_no` and `if_primary_term` parameters. + # If a mismatch is detected, the operation will result in a `VersionConflictException` and a status code of `409`. # **Routing** # By default, shard placement — or routing — is controlled by using a hash of the document's ID value. - # For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the +routing+ parameter. - # When setting up explicit mapping, you can also use the +_routing+ field to direct the index operation to extract the routing value from the document itself. + # For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the `routing` parameter. + # When setting up explicit mapping, you can also use the `_routing` field to direct the index operation to extract the routing value from the document itself. # This does come at the (very minimal) cost of an additional document parsing pass. - # If the +_routing+ mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. - # NOTE: Data streams do not support custom routing unless they were created with the +allow_custom_routing+ setting enabled in the template. + # If the `_routing` mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + # NOTE: Data streams do not support custom routing unless they were created with the `allow_custom_routing` setting enabled in the template. # **Distributed** # The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. # After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. # **Active shards** # To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. # If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. - # By default, write operations only wait for the primary shards to be active before proceeding (that is to say +wait_for_active_shards+ is +1+). - # This default can be overridden in the index settings dynamically by setting +index.write.wait_for_active_shards+. - # To alter this behavior per operation, use the +wait_for_active_shards request+ parameter. - # Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is +number_of_replicas++1). + # By default, write operations only wait for the primary shards to be active before proceeding (that is to say `wait_for_active_shards` is `1`). + # This default can be overridden in the index settings dynamically by setting `index.write.wait_for_active_shards`. + # To alter this behavior per operation, use the `wait_for_active_shards request` parameter. + # Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is `number_of_replicas`+1). # Specifying a negative value or a number greater than the number of shard copies will throw an error. # For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). # If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. # This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. - # If +wait_for_active_shards+ is set on the request to +3+ (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + # If `wait_for_active_shards` is set on the request to `3` (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. # This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. - # However, if you set +wait_for_active_shards+ to +all+ (or to +4+, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + # However, if you set `wait_for_active_shards` to `all` (or to `4`, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. # The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. # It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. # After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. - # The +_shards+ section of the API response reveals the number of shard copies on which replication succeeded and failed. + # The `_shards` section of the API response reveals the number of shard copies on which replication succeeded and failed. # **No operation (noop) updates** # When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. - # If this isn't acceptable use the +_update+ API with +detect_noop+ set to +true+. - # The +detect_noop+ option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + # If this isn't acceptable use the `_update` API with `detect_noop` set to `true`. + # The `detect_noop` option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. # There isn't a definitive rule for when noop updates aren't acceptable. # It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. # **Versioning** # Each indexed document is given a version number. # By default, internal versioning is used that starts at 1 and increments with each update, deletes included. # Optionally, the version number can be set to an external value (for example, if maintained in a database). - # To enable this functionality, +version_type+ should be set to +external+. - # The value provided must be a numeric, long value greater than or equal to 0, and less than around +9.2e+18+. + # To enable this functionality, `version_type` should be set to `external`. + # The value provided must be a numeric, long value greater than or equal to 0, and less than around `9.2e+18`. # NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. # If no version is provided, the operation runs without any version checks. # When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. @@ -106,26 +106,26 @@ module Actions # Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. # # @option arguments [String] :id A unique identifier for the document. - # To automatically generate a document ID, use the +POST //_doc/+ request format and omit this parameter. + # To automatically generate a document ID, use the `POST //_doc/` request format and omit this parameter. # @option arguments [String] :index The name of the data stream or index to target. - # If the target doesn't exist and matches the name or wildcard (+*+) pattern of an index template with a +data_stream+ definition, this request creates the data stream. + # If the target doesn't exist and matches the name or wildcard (`*`) pattern of an index template with a `data_stream` definition, this request creates the data stream. # If the target doesn't exist and doesn't match a data stream template, this request creates the index. # You can check for existing targets with the resolve index API. (*Required*) # @option arguments [Integer] :if_primary_term Only perform the operation if the document has this primary term. # @option arguments [Integer] :if_seq_no Only perform the operation if the document has this sequence number. # @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Server default: true. - # @option arguments [String] :op_type Set to +create+ to only index the document if it does not already exist (put if absent). - # If a document with the specified +_id+ already exists, the indexing operation will fail. - # The behavior is the same as using the +/_create+ endpoint. - # If a document ID is specified, this paramater defaults to +index+. - # Otherwise, it defaults to +create+. - # If the request targets a data stream, an +op_type+ of +create+ is required. + # @option arguments [String] :op_type Set to `create` to only index the document if it does not already exist (put if absent). + # If a document with the specified `_id` already exists, the indexing operation will fail. + # The behavior is the same as using the `/_create` endpoint. + # If a document ID is specified, this paramater defaults to `index`. + # Otherwise, it defaults to `create`. + # If the request targets a data stream, an `op_type` of `create` is required. # @option arguments [String] :pipeline The ID of the pipeline to use to preprocess incoming documents. - # If the index has a default ingest pipeline specified, then setting the value to +_none+ disables the default ingest pipeline for this request. + # If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request. # If a final pipeline is configured it will always run, regardless of the value of this parameter. - # @option arguments [String] :refresh If +true+, Elasticsearch refreshes the affected shards to make this operation visible to search. - # If +wait_for+, it waits for a refresh to make this operation visible to search. - # If +false+, it does nothing with refreshes. Server default: false. + # @option arguments [String] :refresh If `true`, Elasticsearch refreshes the affected shards to make this operation visible to search. + # If `wait_for`, it waits for a refresh to make this operation visible to search. + # If `false`, it does nothing with refreshes. Server default: false. # @option arguments [String] :routing A custom value that is used to route operations to a specific shard. # @option arguments [Time] :timeout The period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.This parameter is useful for situations where the primary shard assigned to perform the operation might not be available when the operation runs. # Some reasons for this might be that the primary shard is currently recovering from a gateway or undergoing relocation. @@ -135,9 +135,20 @@ module Actions # It must be a non-negative long number. # @option arguments [String] :version_type The version type. # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. - # You can set it to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). - # The default value of +1+ means it waits for each primary shard to be active. Server default: 1. - # @option arguments [Boolean] :require_alias If +true+, the destination must be an index alias. + # You can set it to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). + # The default value of `1` means it waits for each primary shard to be active. Server default: 1. + # @option arguments [Boolean] :require_alias If `true`, the destination must be an index alias. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body document # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb index 0453cd449b..8aed98e1c0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb @@ -28,6 +28,17 @@ module Actions # @option arguments [String] :policy Identifier for the policy. (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-delete-lifecycle diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb index 25d494c248..d567662060 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb @@ -27,11 +27,22 @@ module Actions # For data streams, the API retrieves the current lifecycle status for the stream's backing indices. # The response indicates when the index entered each lifecycle state, provides the definition of the running phase, and information about any failures. # - # @option arguments [String] :index Comma-separated list of data streams, indices, and aliases to target. Supports wildcards (+*+). - # To target all data streams and indices, use +*+ or +_all+. (*Required*) + # @option arguments [String] :index Comma-separated list of data streams, indices, and aliases to target. Supports wildcards (`*`). + # To target all data streams and indices, use `*` or `_all`. (*Required*) # @option arguments [Boolean] :only_errors Filters the returned indices to only indices that are managed by ILM and are in an error state, either due to an encountering an error while executing the policy, or attempting to use a policy that does not exist. # @option arguments [Boolean] :only_managed Filters the returned indices to only indices that are managed by ILM. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-explain-lifecycle diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb index af403495fa..df22791f73 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb @@ -27,6 +27,17 @@ module Actions # @option arguments [String] :policy Identifier for the policy. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-get-lifecycle diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb index ad8db18484..ac017a3193 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb @@ -25,6 +25,17 @@ module Actions # Get the ILM status. # Get the current index lifecycle management status. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-get-status @@ -39,7 +50,7 @@ def get_status(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_ilm/status' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb index dfb2a8e3a1..173424c569 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb @@ -32,13 +32,24 @@ module Actions # 1. Remove custom allocation settings from existing ILM policies. # 1. Replace custom allocation settings from existing indices with the corresponding tier preference. # ILM must be stopped before performing the migration. - # Use the stop ILM and get ILM status APIs to wait until the reported operation mode is +STOPPED+. + # Use the stop ILM and get ILM status APIs to wait until the reported operation mode is `STOPPED`. # # @option arguments [Boolean] :dry_run If true, simulates the migration from node attributes based allocation filters to data tiers, but does not perform the migration. # This provides a way to retrieve the indices and ILM policies that need to be migrated. # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. - # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb index 4f4af4cc80..e2cbb3fcda 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb @@ -28,13 +28,24 @@ module Actions # You must specify both the current step and the step to be executed in the body of the request. # The request will fail if the current step does not match the step currently running for the index # This is to prevent the index from being moved from an unexpected step into the next step. - # When specifying the target (+next_step+) to which the index will be moved, either the name or both the action and name fields are optional. + # When specifying the target (`next_step`) to which the index will be moved, either the name or both the action and name fields are optional. # If only the phase is specified, the index will move to the first step of the first action in the target phase. # If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. # Only actions specified in the ILM policy are considered valid. # An index cannot move to a step that is not part of its policy. # # @option arguments [String] :index The name of the index whose lifecycle step is to change (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -59,7 +70,7 @@ def move_to_step(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "_ilm/move/#{Utils.listify(_index)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb index 36469c9e04..3d1be8f914 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb @@ -29,6 +29,17 @@ module Actions # @option arguments [String] :policy Identifier for the policy. (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb index cfaecdb7bc..14dd9e21fa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb @@ -27,6 +27,17 @@ module Actions # It also stops managing the indices. # # @option arguments [String] :index The name of the index to remove policy on (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-remove-policy @@ -50,7 +61,7 @@ def remove_policy(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "#{Utils.listify(_index)}/_ilm/remove" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb index 7669e489d3..bef5f16c84 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb @@ -28,6 +28,17 @@ module Actions # Use the explain lifecycle state API to determine whether an index is in the ERROR step. # # @option arguments [String] :index The name of the indices (comma-separated) whose failed lifecycle step is to be retry (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-retry @@ -51,7 +62,7 @@ def retry(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "#{Utils.listify(_index)}/_ilm/retry" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb index 0fba530fca..de21cfc076 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb @@ -29,6 +29,17 @@ module Actions # # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-start diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb index d68f931a9f..782756746e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb @@ -30,6 +30,17 @@ module Actions # # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-stop diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb index e62251fcb7..97102bb844 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb @@ -28,22 +28,33 @@ module Actions # # @option arguments [String] :index A comma-separated list or wildcard expression of index names used to limit the request. # By default, you must explicitly name the indices you are adding blocks to. - # To allow the adding of blocks to indices with +_all+, +*+, or other wildcard expressions, change the +action.destructive_requires_name+ setting to +false+. - # You can update this setting in the +elasticsearch.yml+ file or by using the cluster update settings API. (*Required*) + # To allow the adding of blocks to indices with `_all`, `*`, or other wildcard expressions, change the `action.destructive_requires_name` setting to `false`. + # You can update this setting in the `elasticsearch.yml` file or by using the cluster update settings API. (*Required*) # @option arguments [String] :block The block type to add to the index. (*Required*) - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. - # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. + # For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. Server default: true. # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # It supports comma-separated values, such as +open,hidden+. Server default: open. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # It supports comma-separated values, such as `open,hidden`. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Time] :master_timeout The period to wait for the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. # If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged. - # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-add-block diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb index 39b64996bd..64ed929f9b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb @@ -25,13 +25,24 @@ module Actions # Get tokens from text analysis. # The analyze API performs analysis on a text string and returns the resulting tokens. # Generating excessive amount of tokens may cause a node to run out of memory. - # The +index.analyze.max_token_count+ setting enables you to limit the number of tokens that can be produced. + # The `index.analyze.max_token_count` setting enables you to limit the number of tokens that can be produced. # If more than this limit of tokens gets generated, an error occurs. - # The +_analyze+ endpoint without a specified index will always use +10000+ as its limit. + # The `_analyze` endpoint without a specified index will always use `10000` as its limit. # # @option arguments [String] :index Index used to derive the analyzer. - # If specified, the +analyzer+ or field parameter overrides this value. + # If specified, the `analyzer` or field parameter overrides this value. # If no index is specified or the index does not have a default analyzer, the analyze API uses the standard analyzer. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb index 34c327d8cc..c9c6557825 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb @@ -30,6 +30,17 @@ module Actions # support SLA of official GA features. # # @option arguments [String, Array] :index The index or data stream name (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-cancel-migrate-reindex @@ -53,7 +64,7 @@ def cancel_migrate_reindex(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "_migration/reindex/#{Utils.listify(_index)}/_cancel" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb index 4b9a063cc2..4dc10ef84e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb @@ -26,24 +26,35 @@ module Actions # Clear the cache of one or more indices. # For data streams, the API clears the caches of the stream's backing indices. # By default, the clear cache API clears all caches. - # To clear only specific caches, use the +fielddata+, +query+, or +request+ parameters. - # To clear the cache only of specific fields, use the +fields+ parameter. + # To clear only specific caches, use the `fielddata`, `query`, or `request` parameters. + # To clear the cache only of specific fields, use the `fields` parameter. # # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. - # Supports wildcards (+*+). - # To target all data streams and indices, omit this parameter or use +*+ or +_all+. - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # Supports wildcards (`*`). + # To target all data streams and indices, omit this parameter or use `*` or `_all`. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :fielddata If +true+, clears the fields cache. - # Use the +fields+ parameter to clear the cache of specific fields only. - # @option arguments [String, Array] :fields Comma-separated list of field names used to limit the +fielddata+ parameter. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. - # @option arguments [Boolean] :query If +true+, clears the query cache. - # @option arguments [Boolean] :request If +true+, clears the request cache. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :fielddata If `true`, clears the fields cache. + # Use the `fields` parameter to clear the cache of specific fields only. + # @option arguments [String, Array] :fields Comma-separated list of field names used to limit the `fielddata` parameter. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :query If `true`, clears the query cache. + # @option arguments [Boolean] :request If `true`, clears the request cache. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-clear-cache diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb index 81a433bc94..2ee438bcc4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb @@ -29,7 +29,7 @@ module Actions # The API also does not copy index metadata from the original index. # Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. # For example, if you clone a CCR follower index, the resulting clone will not be a follower index. - # The clone API copies most index settings from the source index to the resulting index, with the exception of +index.number_of_replicas+ and +index.auto_expand_replicas+. + # The clone API copies most index settings from the source index to the resulting index, with the exception of `index.number_of_replicas` and `index.auto_expand_replicas`. # To set the number of replicas in the resulting index, configure these settings in the clone request. # Cloning works as follows: # * First, it creates a new target index with the same definition as the source index. @@ -42,10 +42,10 @@ module Actions # * The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. # The current write index on a data stream cannot be cloned. # In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. - # NOTE: Mappings cannot be specified in the +_clone+ request. The mappings of the source index will be used for the target index. + # NOTE: Mappings cannot be specified in the `_clone` request. The mappings of the source index will be used for the target index. # **Monitor the cloning process** - # The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the +wait_for_status+ parameter to +yellow+. - # The +_clone+ API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + # The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the `wait_for_status` parameter to `yellow`. + # The `_clone` API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. # At this point, all shards are in the state unassigned. # If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. # Once the primary shard is allocated, it moves to state initializing, and the clone process begins. @@ -61,7 +61,18 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. - # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1. + # Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). Server default: 1. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb index efc688f4bd..e83b446b37 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb @@ -31,26 +31,37 @@ module Actions # The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. # You can open and close multiple indices. # An error is thrown if the request explicitly refers to a missing index. - # This behaviour can be turned off using the +ignore_unavailable=true+ parameter. + # This behaviour can be turned off using the `ignore_unavailable=true` parameter. # By default, you must explicitly name the indices you are opening or closing. - # To open or close indices with +_all+, +*+, or other wildcard expressions, change the+action.destructive_requires_name+ setting to +false+. This setting can also be changed with the cluster update settings API. + # To open or close indices with `_all`, `*`, or other wildcard expressions, change the`action.destructive_requires_name` setting to `false`. This setting can also be changed with the cluster update settings API. # Closed indices consume a significant amount of disk-space which can cause problems in managed environments. - # Closing indices can be turned off with the cluster settings API by setting +cluster.indices.close.enable+ to +false+. + # Closing indices can be turned off with the cluster settings API by setting `cluster.indices.close.enable` to `false`. # # @option arguments [String, Array] :index Comma-separated list or wildcard expression of index names used to limit the request. (*Required*) - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. - # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1. + # Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). Server default: 1. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-close diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb index d8ca968107..625068f163 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb @@ -31,29 +31,40 @@ module Actions # **Wait for active shards** # By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. # The index creation response will indicate what happened. - # For example, +acknowledged+ indicates whether the index was successfully created in the cluster, +while shards_acknowledged+ indicates whether the requisite number of shard copies were started for each shard in the index before timing out. - # Note that it is still possible for either +acknowledged+ or +shards_acknowledged+ to be +false+, but for the index creation to be successful. + # For example, `acknowledged` indicates whether the index was successfully created in the cluster, `while shards_acknowledged` indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + # Note that it is still possible for either `acknowledged` or `shards_acknowledged` to be `false`, but for the index creation to be successful. # These values simply indicate whether the operation completed before the timeout. - # If +acknowledged+ is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. - # If +shards_acknowledged+ is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, +acknowledged+ is +true+). - # You can change the default of only waiting for the primary shards to start through the index setting +index.write.wait_for_active_shards+. - # Note that changing this setting will also affect the +wait_for_active_shards+ value on all subsequent write operations. + # If `acknowledged` is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + # If `shards_acknowledged` is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, `acknowledged` is `true`). + # You can change the default of only waiting for the primary shards to start through the index setting `index.write.wait_for_active_shards`. + # Note that changing this setting will also affect the `wait_for_active_shards` value on all subsequent write operations. # # @option arguments [String] :index Name of the index you wish to create. # Index names must meet the following criteria: # - Lowercase only - # - Cannot include +\+, +/+, +*+, +?+, +"+, +<+, +>+, +|+, ++ (space character), +,+, or +#+ - # - Indices prior to 7.0 could contain a colon (+:+), but that has been deprecated and will not be supported in later versions - # - Cannot start with +-+, +_+, or +++ - # - Cannot be +.+ or +..+ + # - Cannot include `\`, `/`, `*`, `?`, `"`, `<`, `>`, `|`, ` `(space character),`,`, or`#` + # - Indices prior to 7.0 could contain a colon (`:`), but that has been deprecated and will not be supported in later versions + # - Cannot start with `-`, `_`, or `+` + # - Cannot be `.` or `..` # - Cannot be longer than 255 bytes (note thtat it is bytes, so multi-byte characters will reach the limit faster) - # - Names starting with +.+ are deprecated, except for hidden indices and internal indices managed by plugins (*Required*) + # - Names starting with `.` are deprecated, except for hidden indices and internal indices managed by plugins (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. - # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1. + # Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). Server default: 1. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb index e434aeb110..d66fd10299 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb @@ -27,12 +27,23 @@ module Actions # # @option arguments [String] :name Name of the data stream, which must meet the following criteria: # Lowercase only; - # Cannot include +\+, +/+, +*+, +?+, +"+, +<+, +>+, +|+, +,+, +#+, +:+, or a space character; - # Cannot start with +-+, +_+, +++, or +.ds-+; - # Cannot be +.+ or +..+; + # Cannot include `\`, `/`, `*`, `?`, `"`, `<`, `>`, `|`, `,`, `#`, `:`, or a space character; + # Cannot start with `-`, `_`, `+`, or `.ds-`; + # Cannot be `.` or `..`; # Cannot be longer than 255 bytes. Multi-byte characters count towards this limit faster. (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-create-data-stream diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb index b0ef74f4c8..fe50668b87 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb @@ -31,6 +31,17 @@ module Actions # # @option arguments [String] :source The source index or data stream name (*Required*) # @option arguments [String] :dest The destination index or data stream name (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body create_from # @@ -59,7 +70,7 @@ def create_from(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_create_from/#{Utils.listify(_source)}/#{Utils.listify(_dest)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb index 47b6864a9d..f93583bf1d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb @@ -26,10 +26,21 @@ module Actions # Get statistics for one or more data streams. # # @option arguments [String] :name Comma-separated list of data streams used to limit the request. - # Wildcard expressions (+*+) are supported. - # To target all data streams in a cluster, omit this parameter or use +*+. + # Wildcard expressions (`*`) are supported. + # To target all data streams in a cluster, omit this parameter or use `*`. # @option arguments [String, Array] :expand_wildcards Type of data stream that wildcard patterns can match. - # Supports comma-separated values, such as +open,hidden+. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-data-streams-stats-1 diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb index 6f1e344362..27a0ba4a2a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb @@ -31,19 +31,30 @@ module Actions # # @option arguments [String, Array] :index Comma-separated list of indices to delete. # You cannot specify index aliases. - # By default, this parameter does not support wildcards (+*+) or +_all+. - # To use wildcards or +_all+, set the +action.destructive_requires_name+ cluster setting to +false+. (*Required*) - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # By default, this parameter does not support wildcards (`*`) or `_all`. + # To use wildcards or `_all`, set the `action.destructive_requires_name` cluster setting to `false`. (*Required*) + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb index b2c088ea24..3229046dde 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb @@ -26,13 +26,24 @@ module Actions # Removes a data stream or index from an alias. # # @option arguments [String, Array] :index Comma-separated list of data streams or indices used to limit the request. - # Supports wildcards (+*+). (*Required*) + # Supports wildcards (`*`). (*Required*) # @option arguments [String, Array] :name Comma-separated list of aliases to remove. - # Supports wildcards (+*+). To remove all aliases, use +*+ or +_all+. (*Required*) + # Supports wildcards (`*`). To remove all aliases, use `*` or `_all`. (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-alias diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb index 67d0351aff..b500c4415e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb @@ -25,10 +25,21 @@ module Actions # Delete data stream lifecycles. # Removes the data stream lifecycle from a data stream, rendering it not managed by the data stream lifecycle. # - # @option arguments [String, Array] :name A comma-separated list of data streams of which the data stream lifecycle will be deleted; use +*+ to get all data streams (*Required*) + # @option arguments [String, Array] :name A comma-separated list of data streams of which the data stream lifecycle will be deleted; use `*` to get all data streams (*Required*) # @option arguments [String, Array] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) # @option arguments [Time] :master_timeout Specify timeout for connection to master # @option arguments [Time] :timeout Explicit timestamp for the document + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-data-lifecycle diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb index c6b42a7308..920ebb64b0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb @@ -25,9 +25,20 @@ module Actions # Delete data streams. # Deletes one or more data streams and their backing indices. # - # @option arguments [String, Array] :name Comma-separated list of data streams to delete. Wildcard (+*+) expressions are supported. (*Required*) + # @option arguments [String, Array] :name Comma-separated list of data streams to delete. Wildcard (`*`) expressions are supported. (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. - # @option arguments [String, Array] :expand_wildcards Type of data stream that wildcard patterns can match. Supports comma-separated values,such as +open,hidden+. Server default: open. + # @option arguments [String, Array] :expand_wildcards Type of data stream that wildcard patterns can match. Supports comma-separated values,such as `open,hidden`. Server default: open. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-data-stream diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb index b293ccce09..b56023b8ff 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb @@ -30,6 +30,17 @@ module Actions # @option arguments [String, Array] :name Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-index-template diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb index 8a924387e2..ccc0260578 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb @@ -23,13 +23,25 @@ module API module Indices module Actions # Delete a legacy index template. + # IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. # # @option arguments [String] :name The name of the legacy index template to delete. - # Wildcard (+*+) expressions are supported. (*Required*) + # Wildcard (`*`) expressions are supported. (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-delete-template diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb index e7af4a43b3..c09e8915a2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb @@ -26,9 +26,9 @@ module Actions # Analyze the disk usage of each field of an index or data stream. # This API might not support indices created in previous Elasticsearch versions. # The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. - # NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index +store_size+ value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + # NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index `store_size` value because some small metadata files are ignored and some parts of data files might not be scanned by the API. # Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. - # The stored size of the +_id+ field is likely underestimated while the +_source+ field is overestimated. + # The stored size of the `_id` field is likely underestimated while the `_source` field is overestimated. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the @@ -36,17 +36,28 @@ module Actions # # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. # It’s recommended to execute this API with a single index (or the latest backing index of a data stream) as the API consumes resources significantly. (*Required*) - # @option arguments [Boolean] :allow_no_indices If false, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # @option arguments [Boolean] :allow_no_indices If false, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. - # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. + # For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. Server default: open. - # @option arguments [Boolean] :flush If +true+, the API performs a flush before analysis. - # If +false+, the response may not include uncommitted data. Server default: true. - # @option arguments [Boolean] :ignore_unavailable If +true+, missing or closed indices are not included in the response. + # Supports comma-separated values, such as `open,hidden`. Server default: open. + # @option arguments [Boolean] :flush If `true`, the API performs a flush before analysis. + # If `false`, the response may not include uncommitted data. Server default: true. + # @option arguments [Boolean] :ignore_unavailable If `true`, missing or closed indices are not included in the response. # @option arguments [Boolean] :run_expensive_tasks Analyzing field disk usage is resource-intensive. - # To use the API, this parameter must be set to +true+. + # To use the API, this parameter must be set to `true`. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-disk-usage diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb index 2be85ed545..e960ba87f1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb @@ -23,12 +23,12 @@ module API module Indices module Actions # Downsample an index. - # Aggregate a time series (TSDS) index and store pre-computed statistical summaries (+min+, +max+, +sum+, +value_count+ and +avg+) for each metric field grouped by a configured time interval. + # Aggregate a time series (TSDS) index and store pre-computed statistical summaries (`min`, `max`, `sum`, `value_count` and `avg`) for each metric field grouped by a configured time interval. # For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. # All documents within an hour interval are summarized and stored as a single document in the downsample index. # NOTE: Only indices in a time series data stream are supported. # Neither field nor document level security can be defined on the source index. - # The source index must be read only (+index.blocks.write: true+). + # The source index must be read only (`index.blocks.write: true`). # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the @@ -36,6 +36,17 @@ module Actions # # @option arguments [String] :index Name of the time series index to downsample. (*Required*) # @option arguments [String] :target_index Name of the index to create. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body config # @@ -64,7 +75,7 @@ def downsample(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "#{Utils.listify(_index)}/_downsample/#{Utils.listify(_target_index)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb index b8eb5e3dfe..2c96527227 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb @@ -25,17 +25,28 @@ module Actions # Check indices. # Check if one or more indices, index aliases, or data streams exist. # - # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases. Supports wildcards (+*+). (*Required*) - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases. Supports wildcards (`*`). (*Required*) + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. - # @option arguments [Boolean] :include_defaults If +true+, return all default settings in the response. - # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :flat_settings If `true`, returns settings in flat format. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :include_defaults If `true`, return all default settings in the response. + # @option arguments [Boolean] :local If `true`, the request retrieves information from the local node only. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-exists diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb index 813e855c78..d2090923a3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb @@ -25,18 +25,29 @@ module Actions # Check aliases. # Check if one or more data stream or index aliases exist. # - # @option arguments [String, Array] :name Comma-separated list of aliases to check. Supports wildcards (+*+). (*Required*) - # @option arguments [String, Array] :index Comma-separated list of data streams or indices used to limit the request. Supports wildcards (+*+). - # To target all data streams and indices, omit this parameter or use +*+ or +_all+. - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # @option arguments [String, Array] :name Comma-separated list of aliases to check. Supports wildcards (`*`). (*Required*) + # @option arguments [String, Array] :index Comma-separated list of data streams or indices used to limit the request. Supports wildcards (`*`). + # To target all data streams and indices, omit this parameter or use `*` or `_all`. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :ignore_unavailable If +false+, requests that include a missing data stream or index in the target indices or data streams return an error. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If `false`, requests that include a missing data stream or index in the target indices or data streams return an error. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-exists-alias diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb index 232ab4ab5d..3c38a372a1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb @@ -29,6 +29,17 @@ module Actions # @option arguments [Boolean] :local If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. # @option arguments [Boolean] :flat_settings If true, returns settings in flat format. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-exists-index-template diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb index 9de13e12e3..d1f2081bc3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb @@ -28,12 +28,23 @@ module Actions # IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. # # @option arguments [String, Array] :name A comma-separated list of index template names used to limit the request. - # Wildcard (+*+) expressions are supported. (*Required*) + # Wildcard (`*`) expressions are supported. (*Required*) # @option arguments [Boolean] :flat_settings Indicates whether to use a flat format for the response. # @option arguments [Boolean] :local Indicates whether to get information from the local node only. # @option arguments [Time] :master_timeout The period to wait for the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-exists-template diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb index 4f71398806..e611468d8f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb @@ -28,6 +28,17 @@ module Actions # @option arguments [String, Array] :index The name of the index to explain (*Required*) # @option arguments [Boolean] :include_defaults indicates if the API should return the default values the system uses for the index's lifecycle # @option arguments [Time] :master_timeout Specify timeout for connection to master + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-explain-data-lifecycle diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb index 106bb6688e..3aed52c6e9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb @@ -34,14 +34,25 @@ module Actions # support SLA of official GA features. # # @option arguments [String, Array] :index Comma-separated list or wildcard expression of index names used to limit the request. (*Required*) - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. - # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. + # For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # @option arguments [Boolean] :ignore_unavailable If +true+, missing or closed indices are not included in the response. + # Supports comma-separated values, such as `open,hidden`. + # @option arguments [Boolean] :ignore_unavailable If `true`, missing or closed indices are not included in the response. # @option arguments [String, Array] :fields Comma-separated list or wildcard expressions of fields to include in the statistics. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-field-usage-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb index 6d737706b4..2d879c6154 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb @@ -33,18 +33,29 @@ module Actions # If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. # # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases to flush. - # Supports wildcards (+*+). - # To flush all data streams and indices, omit this parameter or use +*+ or +_all+. - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # Supports wildcards (`*`). + # To flush all data streams and indices, omit this parameter or use `*` or `_all`. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :force If +true+, the request forces a flush even if there are no changes to commit to the index. Server default: true. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. - # @option arguments [Boolean] :wait_if_ongoing If +true+, the flush operation blocks until execution when another flush operation is running. - # If +false+, Elasticsearch returns an error if you request a flush when another flush operation is running. Server default: true. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :force If `true`, the request forces a flush even if there are no changes to commit to the index. Server default: true. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :wait_if_ongoing If `true`, the flush operation blocks until execution when another flush operation is running. + # If `false`, Elasticsearch returns an error if you request a flush when another flush operation is running. Server default: true. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-flush diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb index 1cb4788374..db5a288ed5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb @@ -34,13 +34,13 @@ module Actions # So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. # If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. # **Blocks during a force merge** - # Calls to this API block until the merge is complete (unless request contains +wait_for_completion=false+). + # Calls to this API block until the merge is complete (unless request contains `wait_for_completion=false`). # If the client connection is lost before completion then the force merge process will continue in the background. # Any new requests to force merge the same indices will also block until the ongoing force merge is complete. # **Running force merge asynchronously** - # If the request contains +wait_for_completion=false+, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + # If the request contains `wait_for_completion=false`, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. # However, you can not cancel this task as the force merge task is not cancelable. - # Elasticsearch creates a record of this task as a document at +_tasks/+. + # Elasticsearch creates a record of this task as a document at `_tasks/`. # When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. # **Force merging multiple indices** # You can force merge multiple indices with a single request by targeting: @@ -49,27 +49,39 @@ module Actions # * One or more aliases # * All data streams and indices in a cluster # Each targeted shard is force-merged separately using the force_merge threadpool. - # By default each node only has a single +force_merge+ thread which means that the shards on that node are force-merged one at a time. - # If you expand the +force_merge+ threadpool on a node then it will force merge its shards in parallel - # Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case +max_num_segments parameter+ is set to +1+, to rewrite all segments into a new one. + # By default each node only has a single `force_merge` thread which means that the shards on that node are force-merged one at a time. + # If you expand the `force_merge` threadpool on a node then it will force merge its shards in parallel + # Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case `max_num_segments parameter` is set to `1`, to rewrite all segments into a new one. # **Data streams and time-based indices** # Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. # In these cases, each index only receives indexing traffic for a certain period of time. # Once an index receive no more writes, its shards can be force-merged to a single segment. # This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. # For example: - # + + # + # ``` # POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 - # + + # ``` # - # @option arguments [String, Array] :index A comma-separated list of index names; use +_all+ or empty string to perform the operation on all indices - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes +_all+ string or when no indices have been specified) + # @option arguments [String, Array] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) # @option arguments [String, Array] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. # @option arguments [Boolean] :flush Specify whether the index should be flushed after performing the operation (default: true) # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) # @option arguments [Integer] :max_num_segments The number of segments the index should be merged into (default: dynamic) # @option arguments [Boolean] :only_expunge_deletes Specify whether the operation should only expunge deleted documents # @option arguments [Boolean] :wait_for_completion Should the request wait until the force merge is completed. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-forcemerge diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb index fe77f5905b..f527ae9aff 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb @@ -40,6 +40,17 @@ module Actions # @option arguments [Boolean] :local If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [String, Array] :features Return only information on specified index features Server default: ['aliases', 'mappings', 'settings']. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb index 9f3f96cc73..738ae2f81a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb @@ -26,20 +26,31 @@ module Actions # Retrieves information for one or more data stream or index aliases. # # @option arguments [String, Array] :name Comma-separated list of aliases to retrieve. - # Supports wildcards (+*+). - # To retrieve all aliases, omit this parameter or use +*+ or +_all+. + # Supports wildcards (`*`). + # To retrieve all aliases, omit this parameter or use `*` or `_all`. # @option arguments [String, Array] :index Comma-separated list of data streams or indices used to limit the request. - # Supports wildcards (+*+). - # To target all data streams and indices, omit this parameter or use +*+ or +_all+. - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # Supports wildcards (`*`). + # To target all data streams and indices, omit this parameter or use `*` or `_all`. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-alias diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb index ddda76fe14..afb058143f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb @@ -26,13 +26,24 @@ module Actions # Get the data stream lifecycle configuration of one or more data streams. # # @option arguments [String, Array] :name Comma-separated list of data streams to limit the request. - # Supports wildcards (+*+). - # To target all data streams, omit this parameter or use +*+ or +_all+. (*Required*) + # Supports wildcards (`*`). + # To target all data streams, omit this parameter or use `*` or `_all`. (*Required*) # @option arguments [String, Array] :expand_wildcards Type of data stream that wildcard patterns can match. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :include_defaults If +true+, return all default settings in the response. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :include_defaults If `true`, return all default settings in the response. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-data-lifecycle diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb index feeea0d7d6..b569f60fa8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb @@ -25,6 +25,17 @@ module Actions # Get data stream lifecycle stats. # Get statistics about the data streams that are managed by a data stream lifecycle. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-data-lifecycle-stats @@ -39,7 +50,7 @@ def get_data_lifecycle_stats(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_lifecycle/stats' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb index 3396f73cee..6d1fd934fb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb @@ -26,12 +26,23 @@ module Actions # Get information about one or more data streams. # # @option arguments [String, Array] :name Comma-separated list of data stream names used to limit the request. - # Wildcard (+*+) expressions are supported. If omitted, all data streams are returned. + # Wildcard (`*`) expressions are supported. If omitted, all data streams are returned. # @option arguments [String, Array] :expand_wildcards Type of data stream that wildcard patterns can match. - # Supports comma-separated values, such as +open,hidden+. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :verbose Whether the maximum timestamp for each data stream should be calculated and returned. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-data-stream diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb index 1eee94d15b..0d0805105e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb @@ -28,19 +28,30 @@ module Actions # This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. # # @option arguments [String, Array] :fields Comma-separated list or wildcard expression of fields used to limit returned information. - # Supports wildcards (+*+). (*Required*) + # Supports wildcards (`*`). (*Required*) # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. - # Supports wildcards (+*+). - # To target all data streams and indices, omit this parameter or use +*+ or +_all+. - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # Supports wildcards (`*`). + # To target all data streams and indices, omit this parameter or use `*` or `_all`. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. - # @option arguments [Boolean] :include_defaults If +true+, return all default settings in the response. - # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :include_defaults If `true`, return all default settings in the response. + # @option arguments [Boolean] :local If `true`, the request retrieves information from the local node only. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-mapping diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb index d9fea20175..072248f1fd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb @@ -30,6 +30,17 @@ module Actions # @option arguments [Boolean] :flat_settings If true, returns settings in flat format. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-index-template diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb index a759b64467..aba5182590 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb @@ -26,18 +26,29 @@ module Actions # For data streams, the API retrieves mappings for the stream’s backing indices. # # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. - # Supports wildcards (+*+). - # To target all data streams and indices, omit this parameter or use +*+ or +_all+. - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # Supports wildcards (`*`). + # To target all data streams and indices, omit this parameter or use `*` or `_all`. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. - # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :local If `true`, the request retrieves information from the local node only. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-mapping diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb index 57c734cb57..ba10edd141 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb @@ -30,6 +30,17 @@ module Actions # support SLA of official GA features. # # @option arguments [String, Array] :index The index or data stream name. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-migration @@ -53,7 +64,7 @@ def get_migrate_reindex_status(arguments = {}) method = Elasticsearch::API::HTTP_GET path = "_migration/reindex/#{Utils.listify(_index)}/_status" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb index 10c10c9bb3..db107ea0b4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb @@ -27,25 +27,36 @@ module Actions # For data streams, it returns setting information for the stream's backing indices. # # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit - # the request. Supports wildcards (+*+). To target all data streams and - # indices, omit this parameter or use +*+ or +_all+. + # the request. Supports wildcards (`*`). To target all data streams and + # indices, omit this parameter or use `*` or `_all`. # @option arguments [String, Array] :name Comma-separated list or wildcard expression of settings to retrieve. - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index - # alias, or +_all+ value targets only missing or closed indices. This + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index + # alias, or `_all` value targets only missing or closed indices. This # behavior applies even if the request targets other open indices. For - # example, a request targeting +foo*,bar*+ returns an error if an index - # starts with foo but no index starts with +bar+. Server default: true. + # example, a request targeting `foo*,bar*` returns an error if an index + # starts with foo but no index starts with `bar`. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. Server default: open. - # @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. - # @option arguments [Boolean] :include_defaults If +true+, return all default settings in the response. - # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. If - # +false+, information is retrieved from the master node. + # Supports comma-separated values, such as `open,hidden`. Server default: open. + # @option arguments [Boolean] :flat_settings If `true`, returns settings in flat format. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :include_defaults If `true`, return all default settings in the response. + # @option arguments [Boolean] :local If `true`, the request retrieves information from the local node only. If + # `false`, information is retrieved from the master node. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is # received before the timeout expires, the request fails and returns an # error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-settings diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb index 5019823553..a94eaa9735 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb @@ -22,17 +22,28 @@ module Elasticsearch module API module Indices module Actions - # Get index templates. + # Get legacy index templates. # Get information about one or more index templates. # IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. # # @option arguments [String, Array] :name Comma-separated list of index template names used to limit the request. - # Wildcard (+*+) expressions are supported. - # To return all index templates, omit this parameter or use a value of +_all+ or +*+. - # @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format. - # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. + # Wildcard (`*`) expressions are supported. + # To return all index templates, omit this parameter or use a value of `_all` or `*`. + # @option arguments [Boolean] :flat_settings If `true`, returns settings in flat format. + # @option arguments [Boolean] :local If `true`, the request retrieves information from the local node only. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-get-template diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb index aad800d2dc..00d414cfa3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb @@ -31,6 +31,17 @@ module Actions # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body reindex # @@ -48,7 +59,7 @@ def migrate_reindex(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_migration/reindex' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb index 89e1a1c6ba..bbe156eed7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb @@ -27,7 +27,7 @@ module Actions # You must have a matching index template that is data stream enabled. # The alias must meet the following criteria: # The alias must have a write index; - # All indices for the alias must have a +@timestamp+ field mapping of a +date+ or +date_nanos+ field type; + # All indices for the alias must have a `@timestamp` field mapping of a `date` or `date_nanos` field type; # The alias must not have any filters; # The alias must not use custom routing. # If successful, the request removes the alias and creates a data stream with the same name. @@ -37,6 +37,17 @@ module Actions # @option arguments [String] :name Name of the index alias to convert to a data stream. (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-migrate-to-data-stream diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb index ad48775fd0..81c1daa85b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb @@ -25,6 +25,17 @@ module Actions # Update data streams. # Performs one or more data stream modification actions in a single atomic operation. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -42,7 +53,7 @@ def modify_data_stream(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_data_stream/_modify' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb index 3adcf16e83..0e9af19557 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb @@ -32,32 +32,43 @@ module Actions # The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. # You can open and close multiple indices. # An error is thrown if the request explicitly refers to a missing index. - # This behavior can be turned off by using the +ignore_unavailable=true+ parameter. + # This behavior can be turned off by using the `ignore_unavailable=true` parameter. # By default, you must explicitly name the indices you are opening or closing. - # To open or close indices with +_all+, +*+, or other wildcard expressions, change the +action.destructive_requires_name+ setting to +false+. + # To open or close indices with `_all`, `*`, or other wildcard expressions, change the `action.destructive_requires_name` setting to `false`. # This setting can also be changed with the cluster update settings API. # Closed indices consume a significant amount of disk-space which can cause problems in managed environments. - # Closing indices can be turned off with the cluster settings API by setting +cluster.indices.close.enable+ to +false+. - # Because opening or closing an index allocates its shards, the +wait_for_active_shards+ setting on index creation applies to the +_open+ and +_close+ index actions as well. + # Closing indices can be turned off with the cluster settings API by setting `cluster.indices.close.enable` to `false`. + # Because opening or closing an index allocates its shards, the `wait_for_active_shards` setting on index creation applies to the `_open` and `_close` index actions as well. # # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. - # Supports wildcards (+*+). + # Supports wildcards (`*`). # By default, you must explicitly name the indices you using to limit the request. - # To limit a request using +_all+, +*+, or other wildcard expressions, change the +action.destructive_requires_name+ setting to false. - # You can update this setting in the +elasticsearch.yml+ file or using the cluster update settings API. (*Required*) - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # To limit a request using `_all`, `*`, or other wildcard expressions, change the `action.destructive_requires_name` setting to false. + # You can update this setting in the `elasticsearch.yml` file or using the cluster update settings API. (*Required*) + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. - # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1. + # Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). Server default: 1. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-open diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb index 009cf0fbb5..f78f5ee8cb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb @@ -34,6 +34,17 @@ module Actions # # @option arguments [String] :name The name of the data stream (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-promote-data-stream diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb index bd308f50dd..f7c83b4ae4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb @@ -26,7 +26,7 @@ module Actions # Adds a data stream or index to an alias. # # @option arguments [String, Array] :index Comma-separated list of data streams or indices to add. - # Supports wildcards (+*+). + # Supports wildcards (`*`). # Wildcard patterns that match both data streams and indices return an error. (*Required*) # @option arguments [String] :name Alias to update. # If the alias doesn’t exist, the request creates it. @@ -35,6 +35,17 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb index 9728a23c6d..4abaf6dd01 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb @@ -26,16 +26,27 @@ module Actions # Update the data stream lifecycle of the specified data streams. # # @option arguments [String, Array] :name Comma-separated list of data streams used to limit the request. - # Supports wildcards (+*+). - # To target all data streams use +*+ or +_all+. (*Required*) + # Supports wildcards (`*`). + # To target all data streams use `*` or `_all`. (*Required*) # @option arguments [String, Array] :expand_wildcards Type of data stream that wildcard patterns can match. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +hidden+, +open+, +closed+, +none+. Server default: open. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `hidden`, `open`, `closed`, `none`. Server default: open. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is # received before the timeout expires, the request fails and returns an # error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb index 375406be6c..5643ce6f34 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb @@ -29,26 +29,37 @@ module Actions # For data streams, these settings and mappings are applied when the stream's backing indices are created. # Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. # Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. - # You can use C-style +/* *\/+ block comments in index templates. + # You can use C-style `/* *\/` block comments in index templates. # You can include comments anywhere in the request body, except before the opening curly bracket. # **Multiple matching templates** # If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. # Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. # **Composing aliases, mappings, and settings** - # When multiple component templates are specified in the +composed_of+ field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. + # When multiple component templates are specified in the `composed_of` field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. # Any mappings, settings, or aliases from the parent index template are merged in next. # Finally, any configuration on the index request itself is merged. # Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. # If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. - # This recursive merging strategy applies not only to field mappings, but also root options like +dynamic_templates+ and +meta+. - # If an earlier component contains a +dynamic_templates+ block, then by default new +dynamic_templates+ entries are appended onto the end. + # This recursive merging strategy applies not only to field mappings, but also root options like `dynamic_templates` and `meta`. + # If an earlier component contains a `dynamic_templates` block, then by default new `dynamic_templates` entries are appended onto the end. # If an entry already exists with the same key, then it is overwritten by the new definition. # # @option arguments [String] :name Index or template name (*Required*) - # @option arguments [Boolean] :create If +true+, this request cannot replace or update existing index templates. + # @option arguments [Boolean] :create If `true`, this request cannot replace or update existing index templates. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [String] :cause User defined reason for creating/updating the index template + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb index 6fc736d3d1..cb6990e63f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb @@ -33,7 +33,7 @@ module Actions # You can populate the new multi-field with the update by query API. # **Change supported mapping parameters for an existing field** # The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. - # For example, you can use the update mapping API to update the +ignore_above+ parameter. + # For example, you can use the update mapping API to update the `ignore_above` parameter. # **Change the mapping of an existing field** # Except for supported mapping parameters, you can't change the mapping or field type of an existing field. # Changing an existing field could invalidate data that's already indexed. @@ -43,19 +43,30 @@ module Actions # Renaming a field would invalidate data already indexed under the old field name. # Instead, add an alias field to create an alternate field name. # - # @option arguments [String, Array] :index A comma-separated list of index names the mapping should be added to (supports wildcards); use +_all+ or omit to add the mapping on all indices. (*Required*) - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # @option arguments [String, Array] :index A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. (*Required*) + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. - # @option arguments [Boolean] :write_index_only If +true+, the mappings are applied only to the current write index for the target. + # @option arguments [Boolean] :write_index_only If `true`, the mappings are applied only to the current write index for the target. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb index 344ecb27ec..5e46e10d9a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb @@ -26,8 +26,48 @@ module Actions # Changes dynamic index settings in real time. # For data streams, index setting changes are applied to all backing indices by default. # To revert a setting to the default value, use a null value. - # The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. - # To preserve existing settings from being updated, set the +preserve_existing+ parameter to +true+. + # The list of per-index settings that can be updated dynamically on live indices can be found in index settings documentation. + # To preserve existing settings from being updated, set the `preserve_existing` parameter to `true`. + # For performance optimization during bulk indexing, you can disable the refresh interval. + # Refer to {https://www.elastic.co/docs/deploy-manage/production-guidance/optimize-performance/indexing-speed#disable-refresh-interval disable refresh interval} for an example. + # There are multiple valid ways to represent index settings in the request body. You can specify only the setting, for example: + # + # ``` + # { + # "number_of_replicas": 1 + # } + # ``` + # + # Or you can use an `index` setting object: + # + # ``` + # { + # "index": { + # "number_of_replicas": 1 + # } + # } + # ``` + # + # Or you can use dot annotation: + # + # ``` + # { + # "index.number_of_replicas": 1 + # } + # ``` + # + # Or you can embed any of the aforementioned options in a `settings` object. For example: + # + # ``` + # { + # "settings": { + # "index": { + # "number_of_replicas": 1 + # } + # } + # } + # ``` + # # NOTE: You can only define new analyzers on closed indices. # To add an analyzer, you must close the index, define the analyzer, and reopen the index. # You cannot close the write index of a data stream. @@ -36,30 +76,42 @@ module Actions # This affects searches and any new data added to the stream after the rollover. # However, it does not affect the data stream's backing indices or their existing data. # To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. + # Refer to {https://www.elastic.co/docs/manage-data/data-store/text-analysis/specify-an-analyzer#update-analyzers-on-existing-indices updating analyzers on existing indices} for step-by-step examples. # # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit - # the request. Supports wildcards (+*+). To target all data streams and - # indices, omit this parameter or use +*+ or +_all+. - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index - # alias, or +_all+ value targets only missing or closed indices. This + # the request. Supports wildcards (`*`). To target all data streams and + # indices, omit this parameter or use `*` or `_all`. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index + # alias, or `_all` value targets only missing or closed indices. This # behavior applies even if the request targets other open indices. For - # example, a request targeting +foo*,bar*+ returns an error if an index - # starts with +foo+ but no index starts with +bar+. + # example, a request targeting `foo*,bar*` returns an error if an index + # starts with `foo` but no index starts with `bar`. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. If the request can target # data streams, this argument determines whether wildcard expressions match # hidden data streams. Supports comma-separated values, such as - # +open,hidden+. Server default: open. - # @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format. - # @option arguments [Boolean] :ignore_unavailable If +true+, returns settings in flat format. + # `open,hidden`. Server default: open. + # @option arguments [Boolean] :flat_settings If `true`, returns settings in flat format. + # @option arguments [Boolean] :ignore_unavailable If `true`, returns settings in flat format. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is # received before the timeout expires, the request fails and returns an # error. Server default: 30s. - # @option arguments [Boolean] :preserve_existing If +true+, existing index settings remain unchanged. + # @option arguments [Boolean] :preserve_existing If `true`, existing index settings remain unchanged. # @option arguments [Boolean] :reopen Whether to close and reopen the index to apply non-dynamic settings. - # If set to +true+ the indices to which the settings are being applied + # If set to `true` the indices to which the settings are being applied # will be closed temporarily and then reopened in order to apply the changes. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the # timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body settings # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb index 908c82c06d..fb54e75e60 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb @@ -22,7 +22,7 @@ module Elasticsearch module API module Indices module Actions - # Create or update an index template. + # Create or update a legacy index template. # Index templates define settings, mappings, and aliases that can be applied automatically to new indices. # Elasticsearch applies templates to new indices based on an index pattern that matches the index name. # IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. @@ -31,7 +31,7 @@ module Actions # Index templates are only applied during index creation. # Changes to index templates do not affect existing indices. # Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. - # You can use C-style +/* *\/+ block comments in index templates. + # You can use C-style `/* *\/` block comments in index templates. # You can include comments anywhere in the request body, except before the opening curly bracket. # **Indices matching multiple templates** # Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. @@ -46,6 +46,17 @@ module Actions # matches multiple templates.Templates with lower 'order' values are merged first. Templates with higher # 'order' values are merged later, overriding templates with lower values. # @option arguments [String] :cause User defined reason for creating/updating the index template + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb index 9be3af9666..1ef7656ce0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb @@ -41,10 +41,21 @@ module Actions # This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. # # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. - # Supports wildcards (+*+). - # To target all data streams and indices, omit this parameter or use +*+ or +_all+. - # @option arguments [Boolean] :active_only If +true+, the response only includes ongoing shard recoveries. - # @option arguments [Boolean] :detailed If +true+, the response includes detailed information about shard recoveries. + # Supports wildcards (`*`). + # To target all data streams and indices, omit this parameter or use `*` or `_all`. + # @option arguments [Boolean] :active_only If `true`, the response only includes ongoing shard recoveries. + # @option arguments [Boolean] :detailed If `true`, the response includes detailed information about shard recoveries. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-recovery diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb index 2a24048428..ef5e06b706 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb @@ -26,23 +26,34 @@ module Actions # A refresh makes recent operations performed on one or more indices available for search. # For data streams, the API runs the refresh operation on the stream’s backing indices. # By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. - # You can change this default interval with the +index.refresh_interval+ setting. + # You can change this default interval with the `index.refresh_interval` setting. # Refresh requests are synchronous and do not return a response until the refresh operation completes. # Refreshes are resource-intensive. # To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. - # If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's +refresh=wait_for+ query parameter option. + # If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's `refresh=wait_for` query parameter option. # This option ensures the indexing operation waits for a periodic refresh before running the search. # # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. - # Supports wildcards (+*+). - # To target all data streams and indices, omit this parameter or use +*+ or +_all+. - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # Supports wildcards (`*`). + # To target all data streams and indices, omit this parameter or use `*` or `_all`. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-refresh diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb index 2c1d677308..4bd2411186 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb @@ -26,8 +26,8 @@ module Actions # Reload an index's search analyzers and their resources. # For data streams, the API reloads search analyzers and resources for the stream's backing indices. # IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. - # You can use the reload search analyzers API to pick up changes to synonym files used in the +synonym_graph+ or +synonym+ token filter of a search analyzer. - # To be eligible, the token filter must have an +updateable+ flag of +true+ and only be used in search analyzers. + # You can use the reload search analyzers API to pick up changes to synonym files used in the `synonym_graph` or `synonym` token filter of a search analyzer. + # To be eligible, the token filter must have an `updateable` flag of `true` and only be used in search analyzers. # NOTE: This API does not perform a reload for each shard of an index. # Instead, it performs a reload for each node containing index shards. # As a result, the total shard count returned by the API can differ from the number of index shards. @@ -35,10 +35,21 @@ module Actions # This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. # # @option arguments [String, Array] :index A comma-separated list of index names to reload analyzers for (*Required*) - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes +_all+ string or when no indices have been specified) + # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) # @option arguments [String, Array] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) # @option arguments [String] :resource Changed resource to reload analyzers from if applicable + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-reload-search-analyzers diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb index 9c14231812..091a4e3ebe 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb @@ -29,55 +29,66 @@ module Actions # You use the same index expression with this endpoint as you would for cross-cluster search. # Index and cluster exclusions are also supported with this endpoint. # For each cluster in the index expression, information is returned about: - # * Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the +remote/info+ endpoint. - # * Whether each remote cluster is configured with +skip_unavailable+ as +true+ or +false+. + # * Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the `remote/info` endpoint. + # * Whether each remote cluster is configured with `skip_unavailable` as `true` or `false`. # * Whether there are any indices, aliases, or data streams on that cluster that match the index expression. # * Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). # * Cluster version information, including the Elasticsearch server version. - # For example, +GET /_resolve/cluster/my-index-*,cluster*:my-index-*+ returns information about the local cluster and all remotely configured clusters that start with the alias +cluster*+. - # Each cluster returns information about whether it has any indices, aliases or data streams that match +my-index-*+.The ability to query without an index expression was added in version 8.18, so when + # For example, `GET /_resolve/cluster/my-index-*,cluster*:my-index-*` returns information about the local cluster and all remotely configured clusters that start with the alias `cluster*`. + # Each cluster returns information about whether it has any indices, aliases or data streams that match `my-index-*`.The ability to query without an index expression was added in version 8.18, so when # querying remote clusters older than that, the local cluster will send the index - # expression +dummy*+ to those remote clusters. Thus, if an errors occur, you may see a reference + # expression `dummy*` to those remote clusters. Thus, if an errors occur, you may see a reference # to that index expression even though you didn't request it. If it causes a problem, you can - # instead include an index expression like +*:*+ to bypass the issue.You may want to exclude a cluster or index from a search when: - # * A remote cluster is not currently connected and is configured with +skip_unavailable=false+. Running a cross-cluster search under those conditions will cause the entire search to fail. - # * A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is +logs*,remote1:logs*+ and the remote1 cluster has no indices, aliases or data streams that match +logs*+. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. - # * The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the +_resolve/cluster+ response will be present. (This is also where security/permission errors will be shown.) - # * A remote cluster is an older version that does not support the feature you want to use in your search.The +remote/info+ endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. + # instead include an index expression like `*:*` to bypass the issue.You may want to exclude a cluster or index from a search when: + # * A remote cluster is not currently connected and is configured with `skip_unavailable=false`. Running a cross-cluster search under those conditions will cause the entire search to fail. + # * A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is `logs*,remote1:logs*` and the remote1 cluster has no indices, aliases or data streams that match `logs*`. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. + # * The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the `_resolve/cluster` response will be present. (This is also where security/permission errors will be shown.) + # * A remote cluster is an older version that does not support the feature you want to use in your search.The `remote/info` endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. # The remote cluster may be available, while the local cluster is not currently connected to it. - # You can use the +_resolve/cluster+ API to attempt to reconnect to remote clusters. - # For example with +GET _resolve/cluster+ or +GET _resolve/cluster/*:*+. - # The +connected+ field in the response will indicate whether it was successful. - # If a connection was (re-)established, this will also cause the +remote/info+ endpoint to now indicate a connected status. + # You can use the `_resolve/cluster` API to attempt to reconnect to remote clusters. + # For example with `GET _resolve/cluster` or `GET _resolve/cluster/*:*`. + # The `connected` field in the response will indicate whether it was successful. + # If a connection was (re-)established, this will also cause the `remote/info` endpoint to now indicate a connected status. # # @option arguments [String, Array] :name A comma-separated list of names or index patterns for the indices, aliases, and data streams to resolve. - # Resources on remote clusters can be specified using the ++:++ syntax. - # Index and cluster exclusions (e.g., +-cluster1:*+) are also supported. + # Resources on remote clusters can be specified using the ``:`` syntax. + # Index and cluster exclusions (e.g., `-cluster1:*`) are also supported. # If no index expression is specified, information about all remote clusters configured on the local cluster # is returned without doing any index matching - # @option arguments [Boolean] :allow_no_indices If false, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing + # @option arguments [Boolean] :allow_no_indices If false, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing # or closed indices. This behavior applies even if the request targets other open indices. For example, a request - # targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. + # targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. # NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index - # options to the +_resolve/cluster+ API endpoint that takes no index expression. Server default: true. + # options to the `_resolve/cluster` API endpoint that takes no index expression. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. # NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index - # options to the +_resolve/cluster+ API endpoint that takes no index expression. Server default: open. + # options to the `_resolve/cluster` API endpoint that takes no index expression. Server default: open. # @option arguments [Boolean] :ignore_throttled If true, concrete, expanded, or aliased indices are ignored when frozen. # NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index - # options to the +_resolve/cluster+ API endpoint that takes no index expression. + # options to the `_resolve/cluster` API endpoint that takes no index expression. # @option arguments [Boolean] :ignore_unavailable If false, the request returns an error if it targets a missing or closed index. # NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index - # options to the +_resolve/cluster+ API endpoint that takes no index expression. + # options to the `_resolve/cluster` API endpoint that takes no index expression. # @option arguments [Time] :timeout The maximum time to wait for remote clusters to respond. # If a remote cluster does not respond within this timeout period, the API response # will show the cluster as not connected and include an error message that the # request timed out.The default timeout is unset and the query can take # as long as the networking layer is configured to wait for remote clusters that are # not responding (typically 30 seconds). + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-resolve-cluster diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb index a86c0633ab..b6a2ae1c09 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb @@ -27,15 +27,26 @@ module Actions # Multiple patterns and remote clusters are supported. # # @option arguments [String, Array] :name Comma-separated name(s) or index pattern(s) of the indices, aliases, and data streams to resolve. - # Resources on remote clusters can be specified using the ++:++ syntax. (*Required*) + # Resources on remote clusters can be specified using the ``:`` syntax. (*Required*) # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. - # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. + # For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. Server default: true. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-resolve-index diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb index 41d780a3d4..950c45371b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb @@ -34,34 +34,45 @@ module Actions # TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. # Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. # If an index alias points to multiple indices, one of the indices must be a write index. - # The rollover API creates a new write index for the alias with +is_write_index+ set to +true+. - # The API also +sets is_write_index+ to +false+ for the previous write index. + # The rollover API creates a new write index for the alias with `is_write_index` set to `true`. + # The API also `sets is_write_index` to `false` for the previous write index. # **Roll over an index alias with one index** # If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. - # NOTE: A rollover creates a new index and is subject to the +wait_for_active_shards+ setting. + # NOTE: A rollover creates a new index and is subject to the `wait_for_active_shards` setting. # **Increment index names for an alias** # When you roll over an index alias, you can specify a name for the new index. - # If you don't specify a name and the current index ends with +-+ and a number, such as +my-index-000001+ or +my-index-3+, the new index name increments that number. - # For example, if you roll over an alias with a current index of +my-index-000001+, the rollover creates a new index named +my-index-000002+. + # If you don't specify a name and the current index ends with `-` and a number, such as `my-index-000001` or `my-index-3`, the new index name increments that number. + # For example, if you roll over an alias with a current index of `my-index-000001`, the rollover creates a new index named `my-index-000002`. # This number is always six characters and zero-padded, regardless of the previous index's name. # If you use an index alias for time series data, you can use date math in the index name to track the rollover date. - # For example, you can create an alias that points to an index named ++. - # If you create the index on May 6, 2099, the index's name is +my-index-2099.05.06-000001+. - # If you roll over the alias on May 7, 2099, the new index's name is +my-index-2099.05.07-000002+. + # For example, you can create an alias that points to an index named ``. + # If you create the index on May 6, 2099, the index's name is `my-index-2099.05.06-000001`. + # If you roll over the alias on May 7, 2099, the new index's name is `my-index-2099.05.07-000002`. # # @option arguments [String] :alias Name of the data stream or index alias to roll over. (*Required*) # @option arguments [String] :new_index Name of the index to create. # Supports date math. # Data streams do not support this parameter. - # @option arguments [Boolean] :dry_run If +true+, checks whether the current index satisfies the specified conditions but does not perform a rollover. + # @option arguments [Boolean] :dry_run If `true`, checks whether the current index satisfies the specified conditions but does not perform a rollover. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. - # Set to all or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1. + # Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). Server default: 1. # @option arguments [Boolean] :lazy If set to true, the rollover action will only mark a data stream to signal that it needs to be rolled over at the next write. # Only allowed on data streams. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb index 11a121fd18..afd7dff080 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb @@ -27,15 +27,26 @@ module Actions # For data streams, the API returns information about the stream's backing indices. # # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. - # Supports wildcards (+*+). - # To target all data streams and indices, omit this parameter or use +*+ or +_all+. - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # Supports wildcards (`*`). + # To target all data streams and indices, omit this parameter or use `*` or `_all`. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-segments diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb index f1601f5346..ebeaa695e4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb @@ -40,6 +40,17 @@ module Actions # this argument determines whether wildcard expressions match hidden data streams. Server default: open. # @option arguments [Boolean] :ignore_unavailable If true, missing or closed indices are not included in the response. # @option arguments [Shardstorestatus] :status List of shard health statuses used to limit the request. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-shard-stores diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb index 11e366418e..1feab79508 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb @@ -38,7 +38,7 @@ module Actions # A shrink operation: # * Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. # * Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. - # * Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the +.routing.allocation.initial_recovery._id+ index setting. + # * Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the `.routing.allocation.initial_recovery._id` index setting. # IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: # * The target index must not exist. # * The source index must have more primary shards than the target index. @@ -53,7 +53,18 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. - # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1. + # Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). Server default: 1. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb index 63741dbef2..45cb0f977b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb @@ -30,6 +30,17 @@ module Actions # @option arguments [String] :cause User defined reason for dry-run creating the new template for simulation purposes Server default: false. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-simulate-index-template diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb index d4450e7e10..c4cbe06a5f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb @@ -31,6 +31,17 @@ module Actions # @option arguments [String] :cause User defined reason for dry-run creating the new template for simulation purposes # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb index a312f3bce6..856d9e3709 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb @@ -28,14 +28,16 @@ module Actions # * The index must be read-only. # * The cluster health status must be green. # You can do make an index read-only with the following request using the add index block API: - # + + # + # ``` # PUT /my_source_index/_block/write - # + + # ``` + # # The current write index on a data stream cannot be split. # In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. - # The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the +index.number_of_routing_shards+ setting. + # The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the `index.number_of_routing_shards` setting. # The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. - # For instance, a 5 shard index with +number_of_routing_shards+ set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. + # For instance, a 5 shard index with `number_of_routing_shards` set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. # A split operation: # * Creates a new target index with the same definition as the source index, but with a larger number of primary shards. # * Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. @@ -54,7 +56,18 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. - # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1. + # Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). Server default: 1. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb index 1019c92d65..3d3aa015f2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb @@ -24,19 +24,19 @@ module Indices module Actions # Get index statistics. # For data streams, the API retrieves statistics for the stream's backing indices. - # By default, the returned statistics are index-level with +primaries+ and +total+ aggregations. - # +primaries+ are the values for only the primary shards. - # +total+ are the accumulated values for both primary and replica shards. - # To get shard-level statistics, set the +level+ parameter to +shards+. + # By default, the returned statistics are index-level with `primaries` and `total` aggregations. + # `primaries` are the values for only the primary shards. + # `total` are the accumulated values for both primary and replica shards. + # To get shard-level statistics, set the `level` parameter to `shards`. # NOTE: When moving to another node, the shard-level statistics for a shard are cleared. # Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. # # @option arguments [String, Array] :metric Limit the information returned the specific metrics. - # @option arguments [String, Array] :index A comma-separated list of index names; use +_all+ or empty string to perform the operation on all indices + # @option arguments [String, Array] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices # @option arguments [String, Array] :completion_fields Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. If the request can target data streams, this argument # determines whether wildcard expressions match hidden data streams. Supports comma-separated values, - # such as +open,hidden+. + # such as `open,hidden`. # @option arguments [String, Array] :fielddata_fields Comma-separated list or wildcard expressions of fields to include in fielddata statistics. # @option arguments [String, Array] :fields Comma-separated list or wildcard expressions of fields to include in the statistics. # @option arguments [Boolean] :forbid_closed_indices If true, statistics are not collected from closed indices. Server default: true. @@ -44,6 +44,17 @@ module Actions # @option arguments [Boolean] :include_segment_file_sizes If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested). # @option arguments [Boolean] :include_unloaded_segments If true, the response includes information from segments that are not loaded into memory. # @option arguments [String] :level Indicates whether statistics are aggregated at the cluster, index, or shard level. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-indices-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb index a59ebf498d..052f6808d8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb @@ -29,6 +29,17 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb index c4bf6edce4..42336649d7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb @@ -26,26 +26,37 @@ module Actions # Validates a query without running it. # # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases to search. - # Supports wildcards (+*+). - # To search all data streams or indices, omit this parameter or use +*+ or +_all+. - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # Supports wildcards (`*`). + # To search all data streams or indices, omit this parameter or use `*` or `_all`. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. Server default: true. - # @option arguments [Boolean] :all_shards If +true+, the validation is executed on all shards instead of one random shard per index. + # @option arguments [Boolean] :all_shards If `true`, the validation is executed on all shards instead of one random shard per index. # @option arguments [String] :analyzer Analyzer to use for the query string. - # This parameter can only be used when the +q+ query string parameter is specified. - # @option arguments [Boolean] :analyze_wildcard If +true+, wildcard and prefix queries are analyzed. - # @option arguments [String] :default_operator The default operator for query string query: +AND+ or +OR+. Server default: OR. + # This parameter can only be used when the `q` query string parameter is specified. + # @option arguments [Boolean] :analyze_wildcard If `true`, wildcard and prefix queries are analyzed. + # @option arguments [String] :default_operator The default operator for query string query: `AND` or `OR`. Server default: OR. # @option arguments [String] :df Field to use as default where no field prefix is given in the query string. - # This parameter can only be used when the +q+ query string parameter is specified. + # This parameter can only be used when the `q` query string parameter is specified. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :explain If +true+, the response returns detailed information if an error has occurred. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. - # @option arguments [Boolean] :lenient If +true+, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - # @option arguments [Boolean] :rewrite If +true+, returns a more detailed explanation showing the actual Lucene query that will be executed. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :explain If `true`, the response returns detailed information if an error has occurred. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :lenient If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + # @option arguments [Boolean] :rewrite If `true`, returns a more detailed explanation showing the actual Lucene query that will be executed. # @option arguments [String] :q Query in the Lucene query string syntax. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb index b54954cf9a..0fe91dcbc1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb @@ -23,9 +23,26 @@ module API module Inference module Actions # Perform chat completion inference + # The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. + # It only works with the `chat_completion` task type for `openai` and `elastic` inference services. + # NOTE: The `chat_completion` task type is only available within the _stream API and only supports streaming. + # The Chat completion inference API and the Stream inference API differ in their response structure and capabilities. + # The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. + # If you use the `openai` service or the `elastic` service, use the Chat completion inference API. # # @option arguments [String] :inference_id The inference Id (*Required*) # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference request to complete. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body chat_completion_request # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb index 5074461f56..97a20f26d7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb @@ -26,6 +26,17 @@ module Actions # # @option arguments [String] :inference_id The inference Id (*Required*) # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference request to complete. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb index 3e475591d1..6c5b27cd97 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb @@ -28,6 +28,17 @@ module Actions # @option arguments [String] :inference_id The inference identifier. (*Required*) # @option arguments [Boolean] :dry_run When true, the endpoint is not deleted and a list of ingest processors which reference this endpoint is returned. # @option arguments [Boolean] :force When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-delete diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb index 0771682330..d288f51b55 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb @@ -26,6 +26,17 @@ module Actions # # @option arguments [String] :task_type The task type # @option arguments [String] :inference_id The inference Id + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-inference-get @@ -55,7 +66,7 @@ def get(arguments = {}) else '_inference' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb index 521f4bc278..9be8603f00 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb @@ -31,6 +31,17 @@ module Actions # @option arguments [String] :task_type The type of inference task that the model performs. # @option arguments [String] :inference_id The unique identifier for the inference endpoint. (*Required*) # @option arguments [Time] :timeout The amount of time to wait for the inference request to complete. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb index e62e966dc2..de805f6fbb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb @@ -23,17 +23,40 @@ module API module Inference module Actions # Create an inference endpoint. - # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - # After creating the endpoint, wait for the model deployment to complete before using it. - # To verify the deployment status, use the get trained model statistics API. - # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. - # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. # IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. # For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. # However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + # The following integrations are available through the inference API. You can find the available task types next to the integration name: + # * AlibabaCloud AI Search (`completion`, `rerank`, `sparse_embedding`, `text_embedding`) + # * Amazon Bedrock (`completion`, `text_embedding`) + # * Anthropic (`completion`) + # * Azure AI Studio (`completion`, `text_embedding`) + # * Azure OpenAI (`completion`, `text_embedding`) + # * Cohere (`completion`, `rerank`, `text_embedding`) + # * Elasticsearch (`rerank`, `sparse_embedding`, `text_embedding` - this service is for built-in models and models uploaded through Eland) + # * ELSER (`sparse_embedding`) + # * Google AI Studio (`completion`, `text_embedding`) + # * Google Vertex AI (`rerank`, `text_embedding`) + # * Hugging Face (`text_embedding`) + # * Mistral (`text_embedding`) + # * OpenAI (`chat_completion`, `completion`, `text_embedding`) + # * VoyageAI (`text_embedding`, `rerank`) + # * Watsonx inference integration (`text_embedding`) + # * JinaAI (`text_embedding`, `rerank`) # - # @option arguments [String] :task_type The task type + # @option arguments [String] :task_type The task type. Refer to the integration list in the API description for the available task types. # @option arguments [String] :inference_id The inference Id (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body inference_config # @@ -65,7 +88,7 @@ def put(arguments = {}) else "_inference/#{Utils.listify(_inference_id)}" end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb index dc05cb8ad0..7d1f2ca9b7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb @@ -23,15 +23,21 @@ module API module Inference module Actions # Create an AlibabaCloud AI Search inference endpoint. - # Create an inference endpoint to perform an inference task with the +alibabacloud-ai-search+ service. - # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - # After creating the endpoint, wait for the model deployment to complete before using it. - # To verify the deployment status, use the get trained model statistics API. - # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. - # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # Create an inference endpoint to perform an inference task with the `alibabacloud-ai-search` service. # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :alibabacloud_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -63,7 +69,7 @@ def put_alibabacloud(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_alibabacloud_inference_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb index b2362cfdc1..d9ff77cdb4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb @@ -23,10 +23,21 @@ module API module Inference module Actions # Create an Amazon Bedrock inference endpoint. - # Creates an inference endpoint to perform an inference task with the +amazonbedrock+ service. + # Create an inference endpoint to perform an inference task with the `amazonbedrock` service. # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :amazonbedrock_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -58,7 +69,7 @@ def put_amazonbedrock(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_amazonbedrock_inference_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb index 39072b436d..0a8f51c988 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb @@ -23,16 +23,22 @@ module API module Inference module Actions # Create an Anthropic inference endpoint. - # Create an inference endpoint to perform an inference task with the +anthropic+ service. - # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - # After creating the endpoint, wait for the model deployment to complete before using it. - # To verify the deployment status, use the get trained model statistics API. - # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. - # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # Create an inference endpoint to perform an inference task with the `anthropic` service. # # @option arguments [String] :task_type The task type. - # The only valid task type for the model to perform is +completion+. (*Required*) + # The only valid task type for the model to perform is `completion`. (*Required*) # @option arguments [String] :anthropic_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -64,7 +70,7 @@ def put_anthropic(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_anthropic_inference_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb index 82af72edfc..965cce81e0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb @@ -23,15 +23,21 @@ module API module Inference module Actions # Create an Azure AI studio inference endpoint. - # Create an inference endpoint to perform an inference task with the +azureaistudio+ service. - # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - # After creating the endpoint, wait for the model deployment to complete before using it. - # To verify the deployment status, use the get trained model statistics API. - # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. - # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # Create an inference endpoint to perform an inference task with the `azureaistudio` service. # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :azureaistudio_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -63,7 +69,7 @@ def put_azureaistudio(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_azureaistudio_inference_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb index 408a0e21cf..ce34edbd4d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb @@ -23,20 +23,26 @@ module API module Inference module Actions # Create an Azure OpenAI inference endpoint. - # Create an inference endpoint to perform an inference task with the +azureopenai+ service. + # Create an inference endpoint to perform an inference task with the `azureopenai` service. # The list of chat completion models that you can choose from in your Azure OpenAI deployment include: # * {https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-4-and-gpt-4-turbo-models GPT-4 and GPT-4 Turbo models} # * {https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-35 GPT-3.5} # The list of embeddings models that you can choose from in your deployment can be found in the {https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#embeddings Azure models documentation}. - # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - # After creating the endpoint, wait for the model deployment to complete before using it. - # To verify the deployment status, use the get trained model statistics API. - # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. - # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. # # @option arguments [String] :task_type The type of the inference task that the model will perform. - # NOTE: The +chat_completion+ task type only supports streaming and only through the _stream API. (*Required*) + # NOTE: The `chat_completion` task type only supports streaming and only through the _stream API. (*Required*) # @option arguments [String] :azureopenai_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -68,7 +74,7 @@ def put_azureopenai(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_azureopenai_inference_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb index bda580f0c0..3504b95d7f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb @@ -23,15 +23,21 @@ module API module Inference module Actions # Create a Cohere inference endpoint. - # Create an inference endpoint to perform an inference task with the +cohere+ service. - # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - # After creating the endpoint, wait for the model deployment to complete before using it. - # To verify the deployment status, use the get trained model statistics API. - # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. - # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # Create an inference endpoint to perform an inference task with the `cohere` service. # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :cohere_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -63,7 +69,7 @@ def put_cohere(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_cohere_inference_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb index 610f49ccc2..a5bf884b90 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb @@ -23,11 +23,22 @@ module API module Inference module Actions # Create an Elasticsearch inference endpoint. - # Create an inference endpoint to perform an inference task with the +elasticsearch+ service. + # Create an inference endpoint to perform an inference task with the `elasticsearch` service. # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :elasticsearch_inference_id The unique identifier of the inference endpoint. - # The must not match the +model_id+. (*Required*) + # The must not match the `model_id`. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -59,7 +70,7 @@ def put_elasticsearch(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_elasticsearch_inference_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb index 0dbb83c399..eaf53490f1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb @@ -23,11 +23,22 @@ module API module Inference module Actions # Create an ELSER inference endpoint. - # Create an inference endpoint to perform an inference task with the +elser+ service. + # Create an inference endpoint to perform an inference task with the `elser` service. # You can also deploy ELSER by using the Elasticsearch inference integration. # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :elser_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -55,7 +66,7 @@ def put_elser(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_elser_inference_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb index 60ef4de789..0554e1a463 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb @@ -23,15 +23,21 @@ module API module Inference module Actions # Create an Google AI Studio inference endpoint. - # Create an inference endpoint to perform an inference task with the +googleaistudio+ service. - # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - # After creating the endpoint, wait for the model deployment to complete before using it. - # To verify the deployment status, use the get trained model statistics API. - # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. - # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # Create an inference endpoint to perform an inference task with the `googleaistudio` service. # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :googleaistudio_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -63,7 +69,7 @@ def put_googleaistudio(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_googleaistudio_inference_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb index 4ee6cb0198..1d1bd066de 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb @@ -23,15 +23,21 @@ module API module Inference module Actions # Create a Google Vertex AI inference endpoint. - # Create an inference endpoint to perform an inference task with the +googlevertexai+ service. - # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - # After creating the endpoint, wait for the model deployment to complete before using it. - # To verify the deployment status, use the get trained model statistics API. - # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. - # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # Create an inference endpoint to perform an inference task with the `googlevertexai` service. # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :googlevertexai_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -63,7 +69,7 @@ def put_googlevertexai(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_googlevertexai_inference_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb index 30a33849c0..974ad78a31 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb @@ -23,26 +23,32 @@ module API module Inference module Actions # Create a Hugging Face inference endpoint. - # Create an inference endpoint to perform an inference task with the +hugging_face+ service. + # Create an inference endpoint to perform an inference task with the `hugging_face` service. # You must first create an inference endpoint on the Hugging Face endpoint page to get an endpoint URL. - # 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. + # 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. # Create the endpoint and copy the URL after the endpoint initialization has been finished. # The following models are recommended for the Hugging Face service: - # * +all-MiniLM-L6-v2+ - # * +all-MiniLM-L12-v2+ - # * +all-mpnet-base-v2+ - # * +e5-base-v2+ - # * +e5-small-v2+ - # * +multilingual-e5-base+ - # * +multilingual-e5-small+ - # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - # After creating the endpoint, wait for the model deployment to complete before using it. - # To verify the deployment status, use the get trained model statistics API. - # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. - # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # * `all-MiniLM-L6-v2` + # * `all-MiniLM-L12-v2` + # * `all-mpnet-base-v2` + # * `e5-base-v2` + # * `e5-small-v2` + # * `multilingual-e5-base` + # * `multilingual-e5-small` # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :huggingface_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -74,7 +80,7 @@ def put_hugging_face(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_huggingface_inference_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb index 2427385f3e..28e20aee46 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb @@ -23,17 +23,23 @@ module API module Inference module Actions # Create an JinaAI inference endpoint. - # Create an inference endpoint to perform an inference task with the +jinaai+ service. - # To review the available +rerank+ models, refer to . - # To review the available +text_embedding+ models, refer to the . - # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - # After creating the endpoint, wait for the model deployment to complete before using it. - # To verify the deployment status, use the get trained model statistics API. - # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. - # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # Create an inference endpoint to perform an inference task with the `jinaai` service. + # To review the available `rerank` models, refer to . + # To review the available `text_embedding` models, refer to the . # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :jinaai_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -65,7 +71,7 @@ def put_jinaai(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_jinaai_inference_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb index d2fb7bbf88..84f5d63055 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb @@ -23,16 +23,22 @@ module API module Inference module Actions # Create a Mistral inference endpoint. - # Creates an inference endpoint to perform an inference task with the +mistral+ service. - # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - # After creating the endpoint, wait for the model deployment to complete before using it. - # To verify the deployment status, use the get trained model statistics API. - # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. - # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # Creates an inference endpoint to perform an inference task with the `mistral` service. # # @option arguments [String] :task_type The task type. - # The only valid task type for the model to perform is +text_embedding+. (*Required*) + # The only valid task type for the model to perform is `text_embedding`. (*Required*) # @option arguments [String] :mistral_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -64,7 +70,7 @@ def put_mistral(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_mistral_inference_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb index 3ed710be87..fb6fb127f2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb @@ -23,16 +23,22 @@ module API module Inference module Actions # Create an OpenAI inference endpoint. - # Create an inference endpoint to perform an inference task with the +openai+ service. - # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - # After creating the endpoint, wait for the model deployment to complete before using it. - # To verify the deployment status, use the get trained model statistics API. - # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. - # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + # Create an inference endpoint to perform an inference task with the `openai` service or `openai` compatible APIs. # # @option arguments [String] :task_type The type of the inference task that the model will perform. - # NOTE: The +chat_completion+ task type only supports streaming and only through the _stream API. (*Required*) + # NOTE: The `chat_completion` task type only supports streaming and only through the _stream API. (*Required*) # @option arguments [String] :openai_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -64,7 +70,7 @@ def put_openai(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_openai_inference_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb index 64a6e606f9..fdde9cc055 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb @@ -23,11 +23,22 @@ module API module Inference module Actions # Create a VoyageAI inference endpoint. - # Create an inference endpoint to perform an inference task with the +voyageai+ service. + # Create an inference endpoint to perform an inference task with the `voyageai` service. # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :voyageai_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -59,7 +70,7 @@ def put_voyageai(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_voyageai_inference_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb index f0bacba091..73276fc845 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb @@ -23,18 +23,24 @@ module API module Inference module Actions # Create a Watsonx inference endpoint. - # Create an inference endpoint to perform an inference task with the +watsonxai+ service. - # You need an IBM Cloud Databases for Elasticsearch deployment to use the +watsonxai+ inference service. + # Create an inference endpoint to perform an inference task with the `watsonxai` service. + # You need an IBM Cloud Databases for Elasticsearch deployment to use the `watsonxai` inference service. # You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. - # When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - # After creating the endpoint, wait for the model deployment to complete before using it. - # To verify the deployment status, use the get trained model statistics API. - # Look for +"state": "fully_allocated"+ in the response and ensure that the +"allocation_count"+ matches the +"target_allocation_count"+. - # Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. # # @option arguments [String] :task_type The task type. - # The only valid task type for the model to perform is +text_embedding+. (*Required*) + # The only valid task type for the model to perform is `text_embedding`. (*Required*) # @option arguments [String] :watsonx_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -66,7 +72,7 @@ def put_watsonx(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_watsonx_inference_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb index 9e3e6d4c1a..e1b6bf9caa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb @@ -26,6 +26,17 @@ module Actions # # @option arguments [String] :inference_id The unique identifier for the inference endpoint. (*Required*) # @option arguments [Time] :timeout The amount of time to wait for the inference request to complete. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb index 6c5703ed7b..fde51c6e8c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb @@ -26,6 +26,17 @@ module Actions # # @option arguments [String] :inference_id The inference Id (*Required*) # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference request to complete. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb index 0d6c22c1bf..f4f854cabc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb @@ -26,9 +26,20 @@ module Actions # Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. # This API works only with the completion task type. # IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. - # This API requires the +monitor_inference+ cluster privilege (the built-in +inference_admin+ and +inference_user+ roles grant this privilege). You must use a client that supports streaming. + # This API requires the `monitor_inference` cluster privilege (the built-in `inference_admin` and `inference_user` roles grant this privilege). You must use a client that supports streaming. # # @option arguments [String] :inference_id The unique identifier for the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -53,7 +64,7 @@ def stream_completion(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "_inference/completion/#{Utils.listify(_inference_id)}/_stream" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb index 8ef7273dee..929072e993 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb @@ -26,6 +26,17 @@ module Actions # # @option arguments [String] :inference_id The inference Id (*Required*) # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference request to complete. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb index 8a6b39a25a..66e941f31d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb @@ -23,13 +23,24 @@ module API module Inference module Actions # Update an inference endpoint. - # Modify +task_settings+, secrets (within +service_settings+), or +num_allocations+ for an inference endpoint, depending on the specific endpoint service and +task_type+. + # Modify `task_settings`, secrets (within `service_settings`), or `num_allocations` for an inference endpoint, depending on the specific endpoint service and `task_type`. # IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. # For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. # However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. # # @option arguments [String] :inference_id The unique identifier of the inference endpoint. (*Required*) # @option arguments [String] :task_type The type of inference task that the model performs. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body inference_config # @@ -61,7 +72,7 @@ def update(arguments = {}) else "_inference/#{Utils.listify(_inference_id)}/_update" end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/info.rb index 51ada46301..e6abffcb88 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/info.rb @@ -24,6 +24,17 @@ module Actions # Get cluster info. # Get basic build, version, and cluster information. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-info @@ -38,7 +49,7 @@ def info(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb index a0d373e674..11a0dc7958 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb @@ -29,6 +29,17 @@ module Actions # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-delete-geoip-database diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb index e23f5fbbb3..468ba5bd57 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb @@ -27,10 +27,21 @@ module Actions # @option arguments [String, Array] :id A comma-separated list of IP location database configurations. (*Required*) # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. - # A value of +-1+ indicates that the request should never time out. Server default: 30s. + # A value of `-1` indicates that the request should never time out. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. - # A value of +-1+ indicates that the request should never time out. Server default: 30s. + # A value of `-1` indicates that the request should never time out. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-delete-ip-location-database diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb index 5c45b4e05c..ad12018c61 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb @@ -26,11 +26,22 @@ module Actions # Delete one or more ingest pipelines. # # @option arguments [String] :id Pipeline ID or wildcard expression of pipeline IDs used to limit the request. - # To delete all ingest pipelines in a cluster, use a value of +*+. (*Required*) + # To delete all ingest pipelines in a cluster, use a value of `*`. (*Required*) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-delete-pipeline diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb index 0e0e3beab8..ca8e793fbc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb @@ -25,6 +25,17 @@ module Actions # Get GeoIP statistics. # Get download statistics for GeoIP2 databases that are used with the GeoIP processor. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/reference/enrich-processor/geoip-processor @@ -39,7 +50,7 @@ def geo_ip_stats(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_ingest/geoip/stats' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb index a1b47be6fb..72e874c73b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb @@ -26,8 +26,19 @@ module Actions # Get information about one or more IP geolocation database configurations. # # @option arguments [String, Array] :id A comma-separated list of database configuration IDs to retrieve. - # Wildcard (+*+) expressions are supported. - # To get all database configurations, omit this parameter or use +*+. + # Wildcard (`*`) expressions are supported. + # To get all database configurations, omit this parameter or use `*`. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-get-geoip-database @@ -53,7 +64,7 @@ def get_geoip_database(arguments = {}) else '_ingest/geoip/database' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb index 92573b2ded..ca4d0724fc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb @@ -25,11 +25,22 @@ module Actions # Get IP geolocation database configurations. # # @option arguments [String, Array] :id Comma-separated list of database configuration IDs to retrieve. - # Wildcard (+*+) expressions are supported. - # To get all database configurations, omit this parameter or use +*+. + # Wildcard (`*`) expressions are supported. + # To get all database configurations, omit this parameter or use `*`. # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. - # A value of +-1+ indicates that the request should never time out. Server default: 30s. + # A value of `-1` indicates that the request should never time out. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-get-ip-location-database diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb index 3f0a79afe4..3983241db9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb @@ -27,11 +27,22 @@ module Actions # This API returns a local reference of the pipeline. # # @option arguments [String] :id Comma-separated list of pipeline IDs to retrieve. - # Wildcard (+*+) expressions are supported. - # To get all ingest pipelines, omit this parameter or use +*+. + # Wildcard (`*`) expressions are supported. + # To get all ingest pipelines, omit this parameter or use `*`. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :summary Return pipelines without their definitions (default: false) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ingest-get-pipeline diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb index 91cffdbb3f..9a50e0ed05 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb @@ -27,6 +27,17 @@ module Actions # You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. # A grok pattern is like a regular expression that supports aliased expressions that can be reused. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/reference/enrich-processor/grok-processor @@ -41,7 +52,7 @@ def processor_grok(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_ingest/processor/grok' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb index 18d2c8bd83..5b883d0c65 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb @@ -29,6 +29,17 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb index d476a80359..114f0e92b8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb @@ -27,10 +27,21 @@ module Actions # @option arguments [String] :id The database configuration identifier. (*Required*) # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. - # A value of +-1+ indicates that the request should never time out. Server default: 30s. + # A value of `-1` indicates that the request should never time out. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. # If no response is received before the timeout expires, the cluster metadata update still applies but the response indicates that it was not completely acknowledged. - # A value of +-1+ indicates that the request should never time out. Server default: 30s. + # A value of `-1` indicates that the request should never time out. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body configuration # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb index 2d22696020..de0f0bea17 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb @@ -29,6 +29,17 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Integer] :if_version Required version for optimistic concurrency control for pipeline updates + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb index cab60867b6..a03260b337 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb @@ -27,8 +27,19 @@ module Actions # You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. # # @option arguments [String] :id The pipeline to test. - # If you don't specify a +pipeline+ in the request body, this parameter is required. - # @option arguments [Boolean] :verbose If +true+, the response includes output data for each processor in the executed pipeline. + # If you don't specify a `pipeline` in the request body, this parameter is required. + # @option arguments [Boolean] :verbose If `true`, the response includes output data for each processor in the executed pipeline. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb index d4133b72e5..04ee6cd922 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb @@ -28,6 +28,17 @@ module Actions # # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-delete diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb index 5e3770c595..a47c08eec2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb @@ -25,9 +25,20 @@ module Actions # Get license information. # Get information about your Elastic license including its type, its status, when it was issued, and when it expires. # - # @option arguments [Boolean] :accept_enterprise If +true+, this parameter returns enterprise for Enterprise license types. If +false+, this parameter returns platinum for both platinum and enterprise license types. This behavior is maintained for backwards compatibility. + # @option arguments [Boolean] :accept_enterprise If `true`, this parameter returns enterprise for Enterprise license types. If `false`, this parameter returns platinum for both platinum and enterprise license types. This behavior is maintained for backwards compatibility. # This parameter is deprecated and will always be set to true in 8.x. Server default: true. - # @option arguments [Boolean] :local Specifies whether to retrieve local information. The default value is +false+, which means the information is retrieved from the master node. + # @option arguments [Boolean] :local Specifies whether to retrieve local information. The default value is `false`, which means the information is retrieved from the master node. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-get diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb index 4300614100..b4c331cce7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb @@ -24,6 +24,17 @@ module License module Actions # Get the basic license status. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-get-basic-status @@ -38,7 +49,7 @@ def get_basic_status(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_license/basic_status' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb index 31431d62c6..240b932ea2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb @@ -24,6 +24,17 @@ module License module Actions # Get the trial status. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-get-trial-status @@ -38,7 +49,7 @@ def get_trial_status(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_license/trial_status' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb index f866445781..19a424f20b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb @@ -33,6 +33,17 @@ module Actions # @option arguments [Boolean] :acknowledge Specifies whether you acknowledge the license changes. # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb index 7ced16d004..4a9bf2aead 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb @@ -26,12 +26,23 @@ module Actions # Start an indefinite basic license, which gives access to all the basic features. # NOTE: In order to start a basic license, you must not currently have a basic license. # If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. - # You must then re-submit the API request with the +acknowledge+ parameter set to +true+. + # You must then re-submit the API request with the `acknowledge` parameter set to `true`. # To check the status of your basic license, use the get basic license API. # # @option arguments [Boolean] :acknowledge whether the user has acknowledged acknowledge messages (default: false) # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-post-start-basic diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb index 4a2af3b46c..609f1e9f92 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb @@ -31,6 +31,17 @@ module Actions # @option arguments [Boolean] :acknowledge whether the user has acknowledged acknowledge messages (default: false) # @option arguments [String] :type_query_string [TODO] # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-post-start-trial diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb index 5d85131c02..e100e5e12a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb @@ -27,6 +27,17 @@ module Actions # If the request succeeds, you receive an empty response with an appropriate status code. # # @option arguments [String] :id An identifier for the pipeline. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-logstash-delete-pipeline @@ -50,7 +61,7 @@ def delete_pipeline(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_logstash/pipeline/#{Utils.listify(_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb index ff148df695..edb0c6b653 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb @@ -26,6 +26,17 @@ module Actions # Get pipelines that are used for Logstash Central Management. # # @option arguments [String, Array] :id A comma-separated list of pipeline identifiers. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-logstash-get-pipeline @@ -51,7 +62,7 @@ def get_pipeline(arguments = {}) else '_logstash/pipeline' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb index 1181c44dec..5512e2c34d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb @@ -27,6 +27,17 @@ module Actions # If the specified pipeline exists, it is replaced. # # @option arguments [String] :id An identifier for the pipeline. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body pipeline # @@ -52,7 +63,7 @@ def put_pipeline(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_logstash/pipeline/#{Utils.listify(_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb index 9350a64463..7401b9d6b5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb @@ -29,6 +29,17 @@ module Actions # Calling this API clears the caches without restarting the deployment. # # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-clear-trained-model-deployment-cache @@ -52,7 +63,7 @@ def clear_trained_model_deployment_cache(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "_ml/trained_models/#{Utils.listify(_model_id)}/deployment/cache/_clear" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb index f8b379397d..8778980a83 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb @@ -28,12 +28,23 @@ module Actions # If you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request. # When a datafeed that has a specified end date stops, it automatically closes its associated job. # - # @option arguments [String] :job_id Identifier for the anomaly detection job. It can be a job identifier, a group name, or a wildcard expression. You can close multiple anomaly detection jobs in a single API request by using a group name, a comma-separated list of jobs, or a wildcard expression. You can close all jobs by using +_all+ or by specifying +*+ as the job identifier. (*Required*) - # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no jobs that match; contains the +_all+ string or no identifiers and there are no matches; or contains wildcard expressions and there are only partial matches. By default, it returns an empty jobs array when there are no matches and the subset of results when there are partial matches. - # If +false+, the request returns a 404 status code when there are no matches or only partial matches. Server default: true. + # @option arguments [String] :job_id Identifier for the anomaly detection job. It can be a job identifier, a group name, or a wildcard expression. You can close multiple anomaly detection jobs in a single API request by using a group name, a comma-separated list of jobs, or a wildcard expression. You can close all jobs by using `_all` or by specifying `*` as the job identifier. (*Required*) + # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no jobs that match; contains the `_all` string or no identifiers and there are no matches; or contains wildcard expressions and there are only partial matches. By default, it returns an empty jobs array when there are no matches and the subset of results when there are partial matches. + # If `false`, the request returns a 404 status code when there are no matches or only partial matches. Server default: true. # @option arguments [Boolean] :force Use to close a failed job, or to forcefully close a job which has not responded to its initial close request; the request returns without performing the associated actions such as flushing buffers and persisting the model snapshots. - # If you want the job to be in a consistent state after the close job API returns, do not set to +true+. This parameter should be used only in situations where the job has already failed or where you are not interested in results the job might have recently produced or might produce in the future. + # If you want the job to be in a consistent state after the close job API returns, do not set to `true`. This parameter should be used only in situations where the job has already failed or where you are not interested in results the job might have recently produced or might produce in the future. # @option arguments [Time] :timeout Controls the time to wait until a job has closed. Server default: 30m. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb index 7028c4ad2a..b984d56511 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb @@ -26,6 +26,17 @@ module Actions # Remove all scheduled events from a calendar, then delete it. # # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-calendar @@ -49,7 +60,7 @@ def delete_calendar(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_ml/calendars/#{Utils.listify(_calendar_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb index eb0176850f..4f6bc4bc0e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb @@ -27,6 +27,17 @@ module Actions # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*) # @option arguments [String] :event_id Identifier for the scheduled event. # You can obtain this identifier by using the get calendar events API. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-calendar-event @@ -53,7 +64,7 @@ def delete_calendar_event(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_ml/calendars/#{Utils.listify(_calendar_id)}/events/#{Utils.listify(_event_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb index 15a3b67d58..c2894ef734 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb @@ -27,6 +27,17 @@ module Actions # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*) # @option arguments [String, Array] :job_id An identifier for the anomaly detection jobs. It can be a job identifier, a group name, or a # comma-separated list of jobs or groups. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-calendar-job @@ -53,7 +64,7 @@ def delete_calendar_job(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_ml/calendars/#{Utils.listify(_calendar_id)}/jobs/#{Utils.listify(_job_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb index 133e2f635b..e2009b3320 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb @@ -25,8 +25,19 @@ module Actions # Delete a data frame analytics job. # # @option arguments [String] :id Identifier for the data frame analytics job. (*Required*) - # @option arguments [Boolean] :force If +true+, it deletes a job that is not stopped; this method is quicker than stopping and deleting the job. + # @option arguments [Boolean] :force If `true`, it deletes a job that is not stopped; this method is quicker than stopping and deleting the job. # @option arguments [Time] :timeout The time to wait for the job to be deleted. Server default: 1m. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-data-frame-analytics diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb index 0ee20e7c38..4cf51a90ee 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb @@ -30,6 +30,17 @@ module Actions # characters. (*Required*) # @option arguments [Boolean] :force Use to forcefully delete a started datafeed; this method is quicker than # stopping and deleting the datafeed. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-datafeed diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb index c1b2a71a2d..ab715c501e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb @@ -29,14 +29,25 @@ module Actions # You can limit the request to a single or set of anomaly detection jobs by # using a job identifier, a group name, a comma-separated list of jobs, or a # wildcard expression. You can delete expired data for all anomaly detection - # jobs by using +_all+, by specifying +*+ as the ++, or by omitting the - # ++. + # jobs by using `_all`, by specifying `*` as the ``, or by omitting the + # ``. # # @option arguments [String] :job_id Identifier for an anomaly detection job. It can be a job identifier, a # group name, or a wildcard expression. # @option arguments [Float] :requests_per_second The desired requests per second for the deletion processes. The default # behavior is no throttling. # @option arguments [Time] :timeout How long can the underlying delete processes run until they are canceled. Server default: 8h. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb index 1ae7496ff8..e3b741827e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb @@ -27,6 +27,17 @@ module Actions # filter. You must update or delete the job before you can delete the filter. # # @option arguments [String] :filter_id A string that uniquely identifies a filter. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-filter @@ -50,7 +61,7 @@ def delete_filter(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_ml/filters/#{Utils.listify(_filter_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb index 4683022ad7..dc3820f80f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb @@ -24,21 +24,32 @@ module MachineLearning module Actions # Delete forecasts from a job. # By default, forecasts are retained for 14 days. You can specify a - # different retention period with the +expires_in+ parameter in the forecast + # different retention period with the `expires_in` parameter in the forecast # jobs API. The delete forecast API enables you to delete one or more # forecasts before they expire. # # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) # @option arguments [String] :forecast_id A comma-separated list of forecast identifiers. If you do not specify - # this optional parameter or if you specify +_all+ or +*+ the API deletes + # this optional parameter or if you specify `_all` or `*` the API deletes # all forecasts from the job. # @option arguments [Boolean] :allow_no_forecasts Specifies whether an error occurs when there are no forecasts. In - # particular, if this parameter is set to +false+ and there are no + # particular, if this parameter is set to `false` and there are no # forecasts associated with the job, attempts to delete all forecasts # return an error. Server default: true. # @option arguments [Time] :timeout Specifies the period of time to wait for the completion of the delete # operation. When this period of time elapses, the API fails and returns an # error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-forecast diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb index fce3f7a120..81f1a39e96 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb @@ -38,6 +38,17 @@ module Actions # reset. # @option arguments [Boolean] :wait_for_completion Specifies whether the request should return immediately or wait until the # job deletion completes. Server default: true. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-job diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb index 64a0fa3412..eafc36ff42 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb @@ -25,10 +25,21 @@ module Actions # Delete a model snapshot. # You cannot delete the active model snapshot. To delete that snapshot, first # revert to a different one. To identify the active model snapshot, refer to - # the +model_snapshot_id+ in the results from the get jobs API. + # the `model_snapshot_id` in the results from the get jobs API. # # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) # @option arguments [String] :snapshot_id Identifier for the model snapshot. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-model-snapshot @@ -55,7 +66,7 @@ def delete_model_snapshot(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/model_snapshots/#{Utils.listify(_snapshot_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb index 9cfa29d4bb..064089f3c9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb @@ -28,6 +28,17 @@ module Actions # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) # @option arguments [Boolean] :force Forcefully deletes a trained model that is referenced by ingest pipelines or has a started deployment. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-trained-model diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb index decd14d7b7..2f2bc3a115 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb @@ -25,10 +25,21 @@ module Actions # Delete a trained model alias. # This API deletes an existing model alias that refers to a trained model. If # the model alias is missing or refers to a model other than the one identified - # by the +model_id+, this API returns an error. + # by the `model_id`, this API returns an error. # # @option arguments [String] :model_alias The model alias to delete. (*Required*) # @option arguments [String] :model_id The trained model ID to which the model alias refers. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-delete-trained-model-alias @@ -55,7 +66,7 @@ def delete_trained_model_alias(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_ml/trained_models/#{Utils.listify(_model_id)}/model_aliases/#{Utils.listify(_model_alias)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb index 2dd6808ccc..eae189aa09 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb @@ -27,6 +27,17 @@ module Actions # The estimate is based on analysis configuration details for the job and cardinality # estimates for the fields it references. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -44,7 +55,7 @@ def estimate_model_memory(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_ml/anomaly_detectors/_estimate_model_memory' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb index 104ac5fed1..2131c3e8d3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb @@ -28,6 +28,17 @@ module Actions # created by data frame analytics. Evaluation requires both a ground truth # field and an analytics result field to be present. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -45,7 +56,7 @@ def evaluate_data_frame(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_ml/data_frame/_evaluate' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb index 36e28803a5..438c3a738f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb @@ -33,6 +33,17 @@ module Actions # @option arguments [String] :id Identifier for the data frame analytics job. This identifier can contain # lowercase alphanumeric characters (a-z and 0-9), hyphens, and # underscores. It must start and end with alphanumeric characters. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -64,7 +75,7 @@ def explain_data_frame_analytics(arguments = {}) else '_ml/data_frame/analytics/_explain' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb index 4110a524b1..c2bb56e963 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb @@ -37,12 +37,23 @@ module Actions # and the model is updated for data from the specified time interval. # @option arguments [Boolean] :calc_interim If true, calculates the interim results for the most recent bucket or all # buckets within the latency period. - # @option arguments [String, Time] :end When used in conjunction with +calc_interim+ and +start+, specifies the + # @option arguments [String, Time] :end When used in conjunction with `calc_interim` and `start`, specifies the # range of buckets on which to calculate interim results. # @option arguments [String, Time] :skip_time Specifies to skip to a particular time value. Results are not generated # and the model is not updated for data from the specified time interval. - # @option arguments [String, Time] :start When used in conjunction with +calc_interim+, specifies the range of + # @option arguments [String, Time] :start When used in conjunction with `calc_interim`, specifies the range of # buckets on which to calculate interim results. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb index e46bca160d..c5ee072188 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb @@ -25,13 +25,13 @@ module Actions # Predict future behavior of a time series. # Forecasts are not supported for jobs that perform population analysis; an # error occurs if you try to create a forecast for a job that has an - # +over_field_name+ in its configuration. Forcasts predict future behavior + # `over_field_name` in its configuration. Forcasts predict future behavior # based on historical data. # # @option arguments [String] :job_id Identifier for the anomaly detection job. The job must be open when you # create a forecast; otherwise, an error occurs. (*Required*) # @option arguments [Time] :duration A period of time that indicates how far into the future to forecast. For - # example, +30d+ corresponds to 30 days. The forecast starts at the last + # example, `30d` corresponds to 30 days. The forecast starts at the last # record that was processed. Server default: 1d. # @option arguments [Time] :expires_in The period of time that forecast results are retained. After a forecast # expires, the results are deleted. If set to a value of 0, the forecast is @@ -41,6 +41,17 @@ module Actions # maximum is 500mb and minimum is 1mb. If set to 40% or more of the job’s # configured memory limit, it is automatically reduced to below that # amount. Server default: 20mb. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb index 57b4e25494..cf0f1c2678 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb @@ -29,16 +29,27 @@ module Actions # @option arguments [String, Time] :timestamp The timestamp of a single bucket result. If you do not specify this # parameter, the API returns information about all buckets. # @option arguments [Float] :anomaly_score Returns buckets with anomaly scores greater or equal than this value. Server default: 0. - # @option arguments [Boolean] :desc If +true+, the buckets are sorted in descending order. - # @option arguments [String, Time] :end Returns buckets with timestamps earlier than this time. +-1+ means it is + # @option arguments [Boolean] :desc If `true`, the buckets are sorted in descending order. + # @option arguments [String, Time] :end Returns buckets with timestamps earlier than this time. `-1` means it is # unset and results are not limited to specific timestamps. Server default: -1. - # @option arguments [Boolean] :exclude_interim If +true+, the output excludes interim results. + # @option arguments [Boolean] :exclude_interim If `true`, the output excludes interim results. # @option arguments [Boolean] :expand If true, the output includes anomaly records. # @option arguments [Integer] :from Skips the specified number of buckets. Server default: 0. # @option arguments [Integer] :size Specifies the maximum number of buckets to obtain. Server default: 100. # @option arguments [String] :sort Specifies the sort field for the requested buckets. Server default: timestamp. - # @option arguments [String, Time] :start Returns buckets with timestamps after this time. +-1+ means it is unset + # @option arguments [String, Time] :start Returns buckets with timestamps after this time. `-1` means it is unset # and results are not limited to specific timestamps. Server default: -1. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb index c9d831ab47..0188cacd81 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb @@ -24,12 +24,23 @@ module MachineLearning module Actions # Get info about events in calendars. # - # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids or a wildcard expression. You can get information for all calendars by using +_all+ or +*+ or by omitting the calendar identifier. (*Required*) + # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids or a wildcard expression. You can get information for all calendars by using `_all` or `*` or by omitting the calendar identifier. (*Required*) # @option arguments [String, Time] :end Specifies to get events with timestamps earlier than this time. # @option arguments [Integer] :from Skips the specified number of events. Server default: 0. - # @option arguments [String] :job_id Specifies to get events for a specific anomaly detection job identifier or job group. It must be used with a calendar identifier of +_all+ or +*+. + # @option arguments [String] :job_id Specifies to get events for a specific anomaly detection job identifier or job group. It must be used with a calendar identifier of `_all` or `*`. # @option arguments [Integer] :size Specifies the maximum number of events to obtain. Server default: 100. # @option arguments [String, Time] :start Specifies to get events with timestamps after this time. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-calendar-events diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb index a198a7b393..c7c9ccc73e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb @@ -24,9 +24,20 @@ module MachineLearning module Actions # Get calendar configuration info. # - # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids or a wildcard expression. You can get information for all calendars by using +_all+ or +*+ or by omitting the calendar identifier. + # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. You can get information for multiple calendars by using a comma-separated list of ids or a wildcard expression. You can get information for all calendars by using `_all` or `*` or by omitting the calendar identifier. # @option arguments [Integer] :from Skips the specified number of calendars. This parameter is supported only when you omit the calendar identifier. Server default: 0. # @option arguments [Integer] :size Specifies the maximum number of calendars to obtain. This parameter is supported only when you omit the calendar identifier. Server default: 10000. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb index 2a4515354b..015324da3c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb @@ -33,6 +33,17 @@ module Actions # @option arguments [Integer] :from Skips the specified number of categories. Server default: 0. # @option arguments [String] :partition_field_value Only return categories for the specified partition. # @option arguments [Integer] :size Specifies the maximum number of categories to obtain. Server default: 100. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb index d95c4343b8..c56420119d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb @@ -33,17 +33,28 @@ module Actions # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: # - Contains wildcard expressions and there are no data frame analytics # jobs that match. - # - Contains the +_all+ string or no identifiers and there are no matches. + # - Contains the `_all` string or no identifiers and there are no matches. # - Contains wildcard expressions and there are only partial matches. # The default value returns an empty data_frame_analytics array when there # are no matches and the subset of results when there are partial matches. - # If this parameter is +false+, the request returns a 404 status code when + # If this parameter is `false`, the request returns a 404 status code when # there are no matches or only partial matches. Server default: true. # @option arguments [Integer] :from Skips the specified number of data frame analytics jobs. Server default: 0. # @option arguments [Integer] :size Specifies the maximum number of data frame analytics jobs to obtain. Server default: 100. # @option arguments [Boolean] :exclude_generated Indicates if certain fields should be removed from the configuration on # retrieval. This allows the configuration to be in an acceptable format to # be retrieved and then added to another cluster. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-data-frame-analytics diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb index 71d580273f..65cc30b17f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb @@ -30,15 +30,26 @@ module Actions # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: # - Contains wildcard expressions and there are no data frame analytics # jobs that match. - # - Contains the +_all+ string or no identifiers and there are no matches. + # - Contains the `_all` string or no identifiers and there are no matches. # - Contains wildcard expressions and there are only partial matches. # The default value returns an empty data_frame_analytics array when there # are no matches and the subset of results when there are partial matches. - # If this parameter is +false+, the request returns a 404 status code when + # If this parameter is `false`, the request returns a 404 status code when # there are no matches or only partial matches. Server default: true. # @option arguments [Integer] :from Skips the specified number of data frame analytics jobs. Server default: 0. # @option arguments [Integer] :size Specifies the maximum number of data frame analytics jobs to obtain. Server default: 100. # @option arguments [Boolean] :verbose Defines whether the stats response should be verbose. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-data-frame-analytics-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb index e6c789e6e7..b16b882cd9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb @@ -25,9 +25,9 @@ module Actions # Get datafeed stats. # You can get statistics for multiple datafeeds in a single API request by # using a comma-separated list of datafeeds or a wildcard expression. You can - # get statistics for all datafeeds by using +_all+, by specifying +*+ as the - # ++, or by omitting the ++. If the datafeed is stopped, the - # only information you receive is the +datafeed_id+ and the +state+. + # get statistics for all datafeeds by using `_all`, by specifying `*` as the + # ``, or by omitting the ``. If the datafeed is stopped, the + # only information you receive is the `datafeed_id` and the `state`. # This API returns a maximum of 10,000 datafeeds. # # @option arguments [String, Array] :datafeed_id Identifier for the datafeed. It can be a datafeed identifier or a @@ -35,12 +35,23 @@ module Actions # returns information about all datafeeds. # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: # - Contains wildcard expressions and there are no datafeeds that match. - # - Contains the +_all+ string or no identifiers and there are no matches. + # - Contains the `_all` string or no identifiers and there are no matches. # - Contains wildcard expressions and there are only partial matches. - # The default value is +true+, which returns an empty +datafeeds+ array + # The default value is `true`, which returns an empty `datafeeds` array # when there are no matches and the subset of results when there are - # partial matches. If this parameter is +false+, the request returns a - # +404+ status code when there are no matches or only partial matches. + # partial matches. If this parameter is `false`, the request returns a + # `404` status code when there are no matches or only partial matches. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-datafeed-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb index 6693ab5f75..1211843abd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb @@ -25,8 +25,8 @@ module Actions # Get datafeeds configuration info. # You can get information for multiple datafeeds in a single API request by # using a comma-separated list of datafeeds or a wildcard expression. You can - # get information for all datafeeds by using +_all+, by specifying +*+ as the - # ++, or by omitting the ++. + # get information for all datafeeds by using `_all`, by specifying `*` as the + # ``, or by omitting the ``. # This API returns a maximum of 10,000 datafeeds. # # @option arguments [String, Array] :datafeed_id Identifier for the datafeed. It can be a datafeed identifier or a @@ -34,15 +34,26 @@ module Actions # returns information about all datafeeds. # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: # - Contains wildcard expressions and there are no datafeeds that match. - # - Contains the +_all+ string or no identifiers and there are no matches. + # - Contains the `_all` string or no identifiers and there are no matches. # - Contains wildcard expressions and there are only partial matches. - # The default value is +true+, which returns an empty +datafeeds+ array + # The default value is `true`, which returns an empty `datafeeds` array # when there are no matches and the subset of results when there are - # partial matches. If this parameter is +false+, the request returns a - # +404+ status code when there are no matches or only partial matches. + # partial matches. If this parameter is `false`, the request returns a + # `404` status code when there are no matches or only partial matches. # @option arguments [Boolean] :exclude_generated Indicates if certain fields should be removed from the configuration on # retrieval. This allows the configuration to be in an acceptable format to # be retrieved and then added to another cluster. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-datafeeds diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb index 6a75ecad3c..67b773b7cd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb @@ -28,6 +28,17 @@ module Actions # @option arguments [String, Array] :filter_id A string that uniquely identifies a filter. # @option arguments [Integer] :from Skips the specified number of filters. Server default: 0. # @option arguments [Integer] :size Specifies the maximum number of filters to obtain. Server default: 100. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-filters diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb index 5fa9355977..d2878cfc4c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb @@ -25,7 +25,7 @@ module Actions # Get anomaly detection job results for influencers. # Influencers are the entities that have contributed to, or are to blame for, # the anomalies. Influencer results are available only if an - # +influencer_field_name+ is specified in the job configuration. + # `influencer_field_name` is specified in the job configuration. # # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) # @option arguments [Boolean] :desc If true, the results are sorted in descending order. @@ -39,9 +39,20 @@ module Actions # @option arguments [Integer] :from Skips the specified number of influencers. Server default: 0. # @option arguments [Integer] :size Specifies the maximum number of influencers to obtain. Server default: 100. # @option arguments [String] :sort Specifies the sort field for the requested influencers. By default, the - # influencers are sorted by the +influencer_score+ value. + # influencers are sorted by the `influencer_score` value. # @option arguments [String, Time] :start Returns influencers with timestamps after this time. The default value # means it is unset and results are not limited to specific timestamps. Server default: -1. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb index 978ef67b1e..5d90193318 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb @@ -32,10 +32,21 @@ module Actions # - Contains wildcard expressions and there are no jobs that match. # - Contains the _all string or no identifiers and there are no matches. # - Contains wildcard expressions and there are only partial matches. - # If +true+, the API returns an empty +jobs+ array when + # If `true`, the API returns an empty `jobs` array when # there are no matches and the subset of results when there are partial - # matches. If +false+, the API returns a +404+ status + # matches. If `false`, the API returns a `404` status # code when there are no matches or only partial matches. Server default: true. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-job-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb index 85b9b30ff8..ed755b3a9d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb @@ -26,7 +26,7 @@ module Actions # You can get information for multiple anomaly detection jobs in a single API # request by using a group name, a comma-separated list of jobs, or a wildcard # expression. You can get information for all anomaly detection jobs by using - # +_all+, by specifying +*+ as the ++, or by omitting the ++. + # `_all`, by specifying `*` as the ``, or by omitting the ``. # # @option arguments [String, Array] :job_id Identifier for the anomaly detection job. It can be a job identifier, a # group name, or a wildcard expression. If you do not specify one of these @@ -35,13 +35,24 @@ module Actions # - Contains wildcard expressions and there are no jobs that match. # - Contains the _all string or no identifiers and there are no matches. # - Contains wildcard expressions and there are only partial matches. - # The default value is +true+, which returns an empty +jobs+ array when + # The default value is `true`, which returns an empty `jobs` array when # there are no matches and the subset of results when there are partial - # matches. If this parameter is +false+, the request returns a +404+ status + # matches. If this parameter is `false`, the request returns a `404` status # code when there are no matches or only partial matches. Server default: true. # @option arguments [Boolean] :exclude_generated Indicates if certain fields should be removed from the configuration on # retrieval. This allows the configuration to be in an acceptable format to # be retrieved and then added to another cluster. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-jobs diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb index b43d5433a3..419743e107 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb @@ -26,12 +26,23 @@ module Actions # Get information about how machine learning jobs and trained models are using memory, # on each node, both within the JVM heap, and natively, outside of the JVM. # - # @option arguments [String] :node_id The names of particular nodes in the cluster to target. For example, +nodeId1,nodeId2+ or - # +ml:true+ + # @option arguments [String] :node_id The names of particular nodes in the cluster to target. For example, `nodeId1,nodeId2` or + # `ml:true` # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout # expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request # fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-memory-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb index d18bcd4eaa..3d7de195b1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb @@ -26,8 +26,8 @@ module Actions # # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) # @option arguments [String] :snapshot_id A numerical character string that uniquely identifies the model snapshot. You can get information for multiple - # snapshots by using a comma-separated list or a wildcard expression. You can get all snapshots by using +_all+, - # by specifying +*+ as the snapshot ID, or by omitting the snapshot ID. (*Required*) + # snapshots by using a comma-separated list or a wildcard expression. You can get all snapshots by using `_all`, + # by specifying `*` as the snapshot ID, or by omitting the snapshot ID. (*Required*) # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: # - Contains wildcard expressions and there are no jobs that match. # - Contains the _all string or no identifiers and there are no matches. @@ -35,6 +35,17 @@ module Actions # The default value is true, which returns an empty jobs array when there are no matches and the subset of results # when there are partial matches. If this parameter is false, the request returns a 404 status code when there are # no matches or only partial matches. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-model-snapshot-upgrade-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb index 070bcbca12..d20b7b7d6a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb @@ -26,8 +26,8 @@ module Actions # # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) # @option arguments [String] :snapshot_id A numerical character string that uniquely identifies the model snapshot. You can get information for multiple - # snapshots by using a comma-separated list or a wildcard expression. You can get all snapshots by using +_all+, - # by specifying +*+ as the snapshot ID, or by omitting the snapshot ID. + # snapshots by using a comma-separated list or a wildcard expression. You can get all snapshots by using `_all`, + # by specifying `*` as the snapshot ID, or by omitting the snapshot ID. # @option arguments [Boolean] :desc If true, the results are sorted in descending order. # @option arguments [String, Time] :end Returns snapshots with timestamps earlier than this time. # @option arguments [Integer] :from Skips the specified number of snapshots. Server default: 0. @@ -35,6 +35,17 @@ module Actions # @option arguments [String] :sort Specifies the sort field for the requested snapshots. By default, the # snapshots are sorted by their timestamp. # @option arguments [String, Time] :start Returns snapshots with timestamps after this time. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb index 080321fc87..6f981b5fab 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb @@ -25,45 +25,56 @@ module Actions # Get overall bucket results. # Retrievs overall bucket results that summarize the bucket results of # multiple anomaly detection jobs. - # The +overall_score+ is calculated by combining the scores of all the + # The `overall_score` is calculated by combining the scores of all the # buckets within the overall bucket span. First, the maximum - # +anomaly_score+ per anomaly detection job in the overall bucket is - # calculated. Then the +top_n+ of those scores are averaged to result in - # the +overall_score+. This means that you can fine-tune the - # +overall_score+ so that it is more or less sensitive to the number of + # `anomaly_score` per anomaly detection job in the overall bucket is + # calculated. Then the `top_n` of those scores are averaged to result in + # the `overall_score`. This means that you can fine-tune the + # `overall_score` so that it is more or less sensitive to the number of # jobs that detect an anomaly at the same time. For example, if you set - # +top_n+ to +1+, the +overall_score+ is the maximum bucket score in the - # overall bucket. Alternatively, if you set +top_n+ to the number of jobs, - # the +overall_score+ is high only when all jobs detect anomalies in that - # overall bucket. If you set the +bucket_span+ parameter (to a value - # greater than its default), the +overall_score+ is the maximum - # +overall_score+ of the overall buckets that have a span equal to the + # `top_n` to `1`, the `overall_score` is the maximum bucket score in the + # overall bucket. Alternatively, if you set `top_n` to the number of jobs, + # the `overall_score` is high only when all jobs detect anomalies in that + # overall bucket. If you set the `bucket_span` parameter (to a value + # greater than its default), the `overall_score` is the maximum + # `overall_score` of the overall buckets that have a span equal to the # jobs' largest bucket span. # # @option arguments [String] :job_id Identifier for the anomaly detection job. It can be a job identifier, a # group name, a comma-separated list of jobs or groups, or a wildcard # expression.You can summarize the bucket results for all anomaly detection jobs by - # using +_all+ or by specifying +*+ as the ++. (*Required*) + # using `_all` or by specifying `*` as the ``. (*Required*) # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: # - Contains wildcard expressions and there are no jobs that match. - # - Contains the +_all+ string or no identifiers and there are no matches. + # - Contains the `_all` string or no identifiers and there are no matches. # - Contains wildcard expressions and there are only partial matches. - # If +true+, the request returns an empty +jobs+ array when there are no + # If `true`, the request returns an empty `jobs` array when there are no # matches and the subset of results when there are partial matches. If this - # parameter is +false+, the request returns a +404+ status code when there + # parameter is `false`, the request returns a `404` status code when there # are no matches or only partial matches. Server default: true. # @option arguments [Time] :bucket_span The span of the overall buckets. Must be greater or equal to the largest # bucket span of the specified anomaly detection jobs, which is the default # value.By default, an overall bucket has a span equal to the largest bucket span # of the specified anomaly detection jobs. To override that behavior, use - # the optional +bucket_span+ parameter. + # the optional `bucket_span` parameter. # @option arguments [String, Time] :end Returns overall buckets with timestamps earlier than this time. - # @option arguments [Boolean] :exclude_interim If +true+, the output excludes interim results. + # @option arguments [Boolean] :exclude_interim If `true`, the output excludes interim results. # @option arguments [Double, String] :overall_score Returns overall buckets with overall scores greater than or equal to this # value. # @option arguments [String, Time] :start Returns overall buckets with timestamps after this time. # @option arguments [Integer] :top_n The number of top anomaly detection job bucket scores to be used in the - # +overall_score+ calculation. Server default: 1. + # `overall_score` calculation. Server default: 1. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb index 2feee60298..de266d44c2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb @@ -38,13 +38,24 @@ module Actions # @option arguments [Boolean] :desc If true, the results are sorted in descending order. # @option arguments [String, Time] :end Returns records with timestamps earlier than this time. The default value # means results are not limited to specific timestamps. Server default: -1. - # @option arguments [Boolean] :exclude_interim If +true+, the output excludes interim results. + # @option arguments [Boolean] :exclude_interim If `true`, the output excludes interim results. # @option arguments [Integer] :from Skips the specified number of records. Server default: 0. # @option arguments [Float] :record_score Returns records with anomaly scores greater or equal than this value. Server default: 0. # @option arguments [Integer] :size Specifies the maximum number of records to obtain. Server default: 100. # @option arguments [String] :sort Specifies the sort field for the requested records. Server default: record_score. # @option arguments [String, Time] :start Returns records with timestamps after this time. The default value means # results are not limited to specific timestamps. Server default: -1. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb index daf53919fa..3281a783c1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb @@ -45,6 +45,17 @@ module Actions # @option arguments [String] :tags A comma delimited string of tags. A trained model can have many tags, or # none. When supplied, only trained models that contain all the supplied # tags are returned. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-trained-models diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb index 658898acd2..a741aa7fdc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb @@ -36,6 +36,17 @@ module Actions # subset of results when there are partial matches. Server default: true. # @option arguments [Integer] :from Skips the specified number of models. Server default: 0. # @option arguments [Integer] :size Specifies the maximum number of models to obtain. Server default: 100. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-get-trained-models-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb index 2022419f27..517a157f5d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb @@ -26,6 +26,17 @@ module Actions # # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) # @option arguments [Time] :timeout Controls the amount of time to wait for inference results. Server default: 10s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb index aad9d7c138..26f8586f06 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb @@ -31,6 +31,17 @@ module Actions # the maximum size of machine learning jobs that could run in the current # cluster configuration. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-info @@ -45,7 +56,7 @@ def info(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_ml/info' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb index 3a7ded1ed6..b88b0bc379 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb @@ -32,6 +32,17 @@ module Actions # # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) # @option arguments [Time] :timeout Controls the time to wait until a job has opened. Server default: 30m. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb index bb44cfaaa6..dbb644f4c4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb @@ -25,6 +25,17 @@ module Actions # Add scheduled events to the calendar. # # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -50,7 +61,7 @@ def post_calendar_events(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "_ml/calendars/#{Utils.listify(_calendar_id)}/events" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb index 1721c938d3..87cc1fcfda 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb @@ -29,6 +29,17 @@ module Actions # @option arguments [String] :job_id Identifier for the anomaly detection job. The job must have a state of open to receive and process the data. (*Required*) # @option arguments [String, Time] :reset_end Specifies the end of the bucket resetting range. # @option arguments [String, Time] :reset_start Specifies the start of the bucket resetting range. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body data # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb index aa22290240..c15e33e4f7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb @@ -26,6 +26,17 @@ module Actions # Preview the extracted features used by a data frame analytics config. # # @option arguments [String] :id Identifier for the data frame analytics job. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -57,7 +68,7 @@ def preview_data_frame_analytics(arguments = {}) else '_ml/data_frame/analytics/_preview' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb index b940f32987..061a0b4534 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb @@ -38,6 +38,17 @@ module Actions # configuration details in the request body. # @option arguments [String, Time] :start The start time from where the datafeed preview should begin # @option arguments [String, Time] :end The end time when the datafeed preview should stop + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb index f836eefb50..f8b09bad81 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb @@ -25,6 +25,17 @@ module Actions # Create a calendar. # # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -49,7 +60,7 @@ def put_calendar(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_ml/calendars/#{Utils.listify(_calendar_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb index f9fa1ca272..506d2c3359 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb @@ -26,6 +26,17 @@ module Actions # # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*) # @option arguments [String, Array] :job_id An identifier for the anomaly detection jobs. It can be a job identifier, a group name, or a comma-separated list of jobs or groups. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-calendar-job @@ -52,7 +63,7 @@ def put_calendar_job(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_ml/calendars/#{Utils.listify(_calendar_id)}/jobs/#{Utils.listify(_job_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb index 63a61a93e7..0bd1fc9c7e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb @@ -25,13 +25,24 @@ module Actions # Create a data frame analytics job. # This API creates a data frame analytics job that performs an analysis on the # source indices and stores the outcome in a destination index. - # By default, the query used in the source configuration is +{"match_all": {}}+. + # By default, the query used in the source configuration is `{"match_all": {}}`. # If the destination index does not exist, it is created automatically when you start the job. # If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. # # @option arguments [String] :id Identifier for the data frame analytics job. This identifier can contain # lowercase alphanumeric characters (a-z and 0-9), hyphens, and # underscores. It must start and end with alphanumeric characters. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -57,7 +68,7 @@ def put_data_frame_analytics(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_ml/data_frame/analytics/#{Utils.listify(_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb index 8de0c14e46..9a4ba03c43 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb @@ -25,24 +25,43 @@ module Actions # Create a datafeed. # Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. # You can associate only one datafeed with each anomaly detection job. - # The datafeed contains a query that runs at a defined interval (+frequency+). - # If you are concerned about delayed data, you can add a delay (+query_delay') at each interval. - # By default, the datafeed uses the following query:+{"match_all": {"boost": 1}}+. + # The datafeed contains a query that runs at a defined interval (`frequency`). + # If you are concerned about delayed data, you can add a delay ( + # ``` + # query_delay') at each interval. + # By default, the datafeed uses the following query: + # ``` + # {"match_all": {"boost": 1}} + # ``` + # . # When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had # at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, # those credentials are used instead. # You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed - # directly to the+.ml-config+index. Do not give users+write+privileges on the+.ml-config` index. + # directly to the + # ``` + # .ml-config`index. Do not give users`write`privileges on the`.ml-config` index. # # @option arguments [String] :datafeed_id A numerical character string that uniquely identifies the datafeed. # This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. # It must start and end with alphanumeric characters. (*Required*) - # @option arguments [Boolean] :allow_no_indices If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the +_all+ + # @option arguments [Boolean] :allow_no_indices If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the `_all` # string or when no indices are specified. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. If the request can target data streams, this argument determines # whether wildcard expressions match hidden data streams. Supports comma-separated values. Server default: open. # @option arguments [Boolean] :ignore_throttled If true, concrete, expanded, or aliased indices are ignored when frozen. Server default: true. # @option arguments [Boolean] :ignore_unavailable If true, unavailable indices (missing or closed) are ignored. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb index 7818c12d96..cf43f6bf90 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb @@ -24,9 +24,20 @@ module MachineLearning module Actions # Create a filter. # A filter contains a list of strings. It can be used by one or more anomaly detection jobs. - # Specifically, filters are referenced in the +custom_rules+ property of detector configuration objects. + # Specifically, filters are referenced in the `custom_rules` property of detector configuration objects. # # @option arguments [String] :filter_id A string that uniquely identifies a filter. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -52,7 +63,7 @@ def put_filter(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_ml/filters/#{Utils.listify(_filter_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb index 32f9bb398c..e610d1945c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb @@ -23,21 +23,32 @@ module API module MachineLearning module Actions # Create an anomaly detection job. - # If you include a +datafeed_config+, you must have read index privileges on the source index. - # If you include a +datafeed_config+ but do not provide a query, the datafeed uses +{"match_all": {"boost": 1}}+. + # If you include a `datafeed_config`, you must have read index privileges on the source index. + # If you include a `datafeed_config` but do not provide a query, the datafeed uses `{"match_all": {"boost": 1}}`. # # @option arguments [String] :job_id The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. (*Required*) - # @option arguments [Boolean] :allow_no_indices If +true+, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the - # +_all+ string or when no indices are specified. Server default: true. + # @option arguments [Boolean] :allow_no_indices If `true`, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the + # `_all` string or when no indices are specified. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. If the request can target data streams, this argument determines # whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are: - # - +all+: Match any data stream or index, including hidden ones. - # - +closed+: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed. - # - +hidden+: Match hidden data streams and hidden indices. Must be combined with +open+, +closed+, or both. - # - +none+: Wildcard patterns are not accepted. - # - +open+: Match open, non-hidden indices. Also matches any non-hidden data stream. Server default: open. - # @option arguments [Boolean] :ignore_throttled If +true+, concrete, expanded or aliased indices are ignored when frozen. Server default: true. - # @option arguments [Boolean] :ignore_unavailable If +true+, unavailable indices (missing or closed) are ignored. + # - `all`: Match any data stream or index, including hidden ones. + # - `closed`: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed. + # - `hidden`: Match hidden data streams and hidden indices. Must be combined with `open`, `closed`, or both. + # - `none`: Wildcard patterns are not accepted. + # - `open`: Match open, non-hidden indices. Also matches any non-hidden data stream. Server default: open. + # @option arguments [Boolean] :ignore_throttled If `true`, concrete, expanded or aliased indices are ignored when frozen. Server default: true. + # @option arguments [Boolean] :ignore_unavailable If `true`, unavailable indices (missing or closed) are ignored. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb index ffc9efd594..2594bb90af 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb @@ -26,11 +26,22 @@ module Actions # Enable you to supply a trained model that is not created by data frame analytics. # # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) - # @option arguments [Boolean] :defer_definition_decompression If set to +true+ and a +compressed_definition+ is provided, + # @option arguments [Boolean] :defer_definition_decompression If set to `true` and a `compressed_definition` is provided, # the request defers definition decompression and skips relevant # validations. # @option arguments [Boolean] :wait_for_completion Whether to wait for all child operations (e.g. model download) # to complete. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb index 54ad9045bf..9f729ea519 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb @@ -45,6 +45,17 @@ module Actions # @option arguments [Boolean] :reassign Specifies whether the alias gets reassigned to the specified trained # model if it is already assigned to a different model. If the alias is # already assigned and this parameter is false, the API returns an error. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-put-trained-model-alias diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb index c9a65ddb3f..21c5cfaef6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb @@ -26,7 +26,18 @@ module Actions # # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) # @option arguments [Integer] :part The definition part number. When the definition is loaded for inference the definition parts are streamed in the - # order of their part number. The first part must be +0+ and the final part must be +total_parts - 1+. (*Required*) + # order of their part number. The first part must be `0` and the final part must be `total_parts - 1`. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -55,7 +66,7 @@ def put_trained_model_definition_part(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_ml/trained_models/#{Utils.listify(_model_id)}/definition/#{Utils.listify(_part)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb index dcf9f74f22..a71f1afe2d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb @@ -24,9 +24,20 @@ module MachineLearning module Actions # Create a trained model vocabulary. # This API is supported only for natural language processing (NLP) models. - # The vocabulary is stored in the index as described in +inference_config.*.vocabulary+ of the trained model definition. + # The vocabulary is stored in the index as described in `inference_config.*.vocabulary` of the trained model definition. # # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -52,7 +63,7 @@ def put_trained_model_vocabulary(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_ml/trained_models/#{Utils.listify(_model_id)}/vocabulary" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb index ae26e4f96f..c8428a63e1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb @@ -34,6 +34,17 @@ module Actions # @option arguments [Boolean] :delete_user_annotations Specifies whether annotations that have been added by the # user should be deleted along with any auto-generated annotations when the job is # reset. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-reset-job diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb index e0f0df7146..c803beff4b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb @@ -32,7 +32,7 @@ module Actions # snapshot after Black Friday or a critical system failure. # # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) - # @option arguments [String] :snapshot_id You can specify +empty+ as the . Reverting to the empty + # @option arguments [String] :snapshot_id You can specify `empty` as the . Reverting to the empty # snapshot means the anomaly detection job starts learning a new model from # scratch when it is started. (*Required*) # @option arguments [Boolean] :delete_intervening_results If true, deletes the results in the time period between the latest @@ -41,6 +41,17 @@ module Actions # intervening results when reverting a snapshot, the job will not accept # input data that is older than the current time. If you want to resend # data, then delete the intervening results. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb index 7d4d4979bc..dbb6ac92c9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb @@ -36,10 +36,21 @@ module Actions # You can see the current value for the upgrade_mode setting by using the get # machine learning info API. # - # @option arguments [Boolean] :enabled When +true+, it enables +upgrade_mode+ which temporarily halts all job + # @option arguments [Boolean] :enabled When `true`, it enables `upgrade_mode` which temporarily halts all job # and datafeed tasks and prohibits new job and datafeed tasks from # starting. # @option arguments [Time] :timeout The time to wait for the request to be completed. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-set-upgrade-mode diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb index 60842983ad..2ae1ae8083 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb @@ -27,7 +27,7 @@ module Actions # throughout its lifecycle. # If the destination index does not exist, it is created automatically the # first time you start the data frame analytics job. The - # +index.number_of_shards+ and +index.number_of_replicas+ settings for the + # `index.number_of_shards` and `index.number_of_replicas` settings for the # destination index are copied from the source index. If there are multiple # source indices, the destination index copies the highest setting values. The # mappings for the destination index are also copied from the source indices. @@ -40,6 +40,17 @@ module Actions # underscores. It must start and end with alphanumeric characters. (*Required*) # @option arguments [Time] :timeout Controls the amount of time to wait until the data frame analytics job # starts. Server default: 20s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-start-data-frame-analytics diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb index a9a6efc33e..4526d03034 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb @@ -36,21 +36,32 @@ module Actions # alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric # characters. (*Required*) # @option arguments [String, Time] :end The time that the datafeed should end, which can be specified by using one of the following formats: - # - ISO 8601 format with milliseconds, for example +2017-01-22T06:00:00.000Z+ - # - ISO 8601 format without milliseconds, for example +2017-01-22T06:00:00+00:00+ - # - Milliseconds since the epoch, for example +1485061200000+ - # Date-time arguments using either of the ISO 8601 formats must have a time zone designator, where +Z+ is accepted - # as an abbreviation for UTC time. When a URL is expected (for example, in browsers), the +++ used in time zone - # designators must be encoded as +%2B+. + # - ISO 8601 format with milliseconds, for example `2017-01-22T06:00:00.000Z` + # - ISO 8601 format without milliseconds, for example `2017-01-22T06:00:00+00:00` + # - Milliseconds since the epoch, for example `1485061200000` + # Date-time arguments using either of the ISO 8601 formats must have a time zone designator, where `Z` is accepted + # as an abbreviation for UTC time. When a URL is expected (for example, in browsers), the `+` used in time zone + # designators must be encoded as `%2B`. # The end time value is exclusive. If you do not specify an end time, the datafeed # runs continuously. - # @option arguments [String, Time] :start The time that the datafeed should begin, which can be specified by using the same formats as the +end+ parameter. + # @option arguments [String, Time] :start The time that the datafeed should begin, which can be specified by using the same formats as the `end` parameter. # This value is inclusive. # If you do not specify a start time and the datafeed is associated with a new anomaly detection job, the analysis # starts from the earliest time for which data is available. # If you restart a stopped datafeed and specify a start value that is earlier than the timestamp of the latest # processed record, the datafeed continues from 1 millisecond after the timestamp of the latest processed record. # @option arguments [Time] :timeout Specifies the amount of time to wait until a datafeed starts. Server default: 20s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb index 64d8f9059a..122903acc7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb @@ -27,8 +27,8 @@ module Actions # # @option arguments [String] :model_id The unique identifier of the trained model. Currently, only PyTorch models are supported. (*Required*) # @option arguments [Integer, String] :cache_size The inference cache size (in memory outside the JVM heap) per node for the model. - # The default value is the same size as the +model_size_bytes+. To disable the cache, - # +0b+ can be provided. + # The default value is the same size as the `model_size_bytes`. To disable the cache, + # `0b` can be provided. # @option arguments [String] :deployment_id A unique identifier for the deployment of the model. # @option arguments [Integer] :number_of_allocations The number of model allocations on each node where the model is deployed. # All allocations on a node share the same copy of the model in memory but use @@ -47,6 +47,17 @@ module Actions # it will automatically be changed to a value less than the number of hardware threads. Server default: 1. # @option arguments [Time] :timeout Specifies the amount of time to wait for the model to deploy. Server default: 20s. # @option arguments [String] :wait_for Specifies the allocation status to wait for before returning. Server default: started. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb index 676ba4658a..4216ff6ea0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb @@ -41,6 +41,17 @@ module Actions # @option arguments [Boolean] :force If true, the data frame analytics job is stopped forcefully. # @option arguments [Time] :timeout Controls the amount of time to wait until the data frame analytics job # stops. Defaults to 20 seconds. Server default: 20s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-stop-data-frame-analytics diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb index a2416e1bcb..838d086e6d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb @@ -27,17 +27,28 @@ module Actions # multiple times throughout its lifecycle. # # @option arguments [String] :datafeed_id Identifier for the datafeed. You can stop multiple datafeeds in a single API request by using a comma-separated - # list of datafeeds or a wildcard expression. You can close all datafeeds by using +_all+ or by specifying +*+ as + # list of datafeeds or a wildcard expression. You can close all datafeeds by using `_all` or by specifying `*` as # the identifier. (*Required*) # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: # - Contains wildcard expressions and there are no datafeeds that match. - # - Contains the +_all+ string or no identifiers and there are no matches. + # - Contains the `_all` string or no identifiers and there are no matches. # - Contains wildcard expressions and there are only partial matches. - # If +true+, the API returns an empty datafeeds array when there are no matches and the subset of results when - # there are partial matches. If +false+, the API returns a 404 status code when there are no matches or only + # If `true`, the API returns an empty datafeeds array when there are no matches and the subset of results when + # there are partial matches. If `false`, the API returns a 404 status code when there are no matches or only # partial matches. Server default: true. - # @option arguments [Boolean] :force If +true+, the datafeed is stopped forcefully. + # @option arguments [Boolean] :force If `true`, the datafeed is stopped forcefully. # @option arguments [Time] :timeout Specifies the amount of time to wait until a datafeed stops. Server default: 20s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb index 952476adaa..ec34f116ea 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb @@ -26,11 +26,22 @@ module Actions # # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no deployments that match; - # contains the +_all+ string or no identifiers and there are no matches; or contains wildcard expressions and + # contains the `_all` string or no identifiers and there are no matches; or contains wildcard expressions and # there are only partial matches. By default, it returns an empty array when there are no matches and the subset of results when there are partial matches. - # If +false+, the request returns a 404 status code when there are no matches or only partial matches. Server default: true. + # If `false`, the request returns a 404 status code when there are no matches or only partial matches. Server default: true. # @option arguments [Boolean] :force Forcefully stops the deployment, even if it is used by ingest pipelines. You can't use these pipelines until you # restart the model deployment. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-stop-trained-model-deployment diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb index 33c290608b..c369f6d487 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb @@ -27,6 +27,17 @@ module Actions # @option arguments [String] :id Identifier for the data frame analytics job. This identifier can contain # lowercase alphanumeric characters (a-z and 0-9), hyphens, and # underscores. It must start and end with alphanumeric characters. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -52,7 +63,7 @@ def update_data_frame_analytics(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "_ml/data_frame/analytics/#{Utils.listify(_id)}/_update" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb index 64783aa511..192a94c0c9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb @@ -31,17 +31,28 @@ module Actions # @option arguments [String] :datafeed_id A numerical character string that uniquely identifies the datafeed. # This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. # It must start and end with alphanumeric characters. (*Required*) - # @option arguments [Boolean] :allow_no_indices If +true+, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the - # +_all+ string or when no indices are specified. Server default: true. + # @option arguments [Boolean] :allow_no_indices If `true`, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the + # `_all` string or when no indices are specified. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. If the request can target data streams, this argument determines # whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are: - # - +all+: Match any data stream or index, including hidden ones. - # - +closed+: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed. - # - +hidden+: Match hidden data streams and hidden indices. Must be combined with +open+, +closed+, or both. - # - +none+: Wildcard patterns are not accepted. - # - +open+: Match open, non-hidden indices. Also matches any non-hidden data stream. Server default: open. - # @option arguments [Boolean] :ignore_throttled If +true+, concrete, expanded or aliased indices are ignored when frozen. Server default: true. - # @option arguments [Boolean] :ignore_unavailable If +true+, unavailable indices (missing or closed) are ignored. + # - `all`: Match any data stream or index, including hidden ones. + # - `closed`: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed. + # - `hidden`: Match hidden data streams and hidden indices. Must be combined with `open`, `closed`, or both. + # - `none`: Wildcard patterns are not accepted. + # - `open`: Match open, non-hidden indices. Also matches any non-hidden data stream. Server default: open. + # @option arguments [Boolean] :ignore_throttled If `true`, concrete, expanded or aliased indices are ignored when frozen. Server default: true. + # @option arguments [Boolean] :ignore_unavailable If `true`, unavailable indices (missing or closed) are ignored. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb index 924830e47f..b626e8a5d0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb @@ -26,6 +26,17 @@ module Actions # Updates the description of a filter, adds items, or removes items from the list. # # @option arguments [String] :filter_id A string that uniquely identifies a filter. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -51,7 +62,7 @@ def update_filter(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "_ml/filters/#{Utils.listify(_filter_id)}/_update" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb index 9077570d93..7f5b36a945 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb @@ -26,6 +26,17 @@ module Actions # Updates certain properties of an anomaly detection job. # # @option arguments [String] :job_id Identifier for the job. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -51,7 +62,7 @@ def update_job(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/_update" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb index 5786a3fd4b..943425c943 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb @@ -27,6 +27,17 @@ module Actions # # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*) # @option arguments [String] :snapshot_id Identifier for the model snapshot. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -55,7 +66,7 @@ def update_model_snapshot(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/model_snapshots/#{Utils.listify(_snapshot_id)}/_update" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb index 3ee6f51f4b..e85b3404e6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb @@ -31,6 +31,17 @@ module Actions # Increasing this value generally increases the throughput. # If this setting is greater than the number of hardware threads # it will automatically be changed to a value less than the number of hardware threads. Server default: 1. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb index d03a41760e..e6da7d92ef 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb @@ -38,6 +38,17 @@ module Actions # @option arguments [Boolean] :wait_for_completion When true, the API won’t respond until the upgrade is complete. # Otherwise, it responds as soon as the upgrade task is assigned to a node. # @option arguments [Time] :timeout Controls the time to wait for the request to complete. Server default: 30m. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-upgrade-job-snapshot diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb b/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb index 2598e24a02..d27633555d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb @@ -26,29 +26,40 @@ module Actions # If you specify an index in the request URI, you only need to specify the document IDs in the request body. # To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. # **Filter source fields** - # By default, the +_source+ field is returned for every document (if stored). - # Use the +_source+ and +_source_include+ or +source_exclude+ attributes to filter what fields are returned for a particular document. - # You can include the +_source+, +_source_includes+, and +_source_excludes+ query parameters in the request URI to specify the defaults to use when there are no per-document instructions. + # By default, the `_source` field is returned for every document (if stored). + # Use the `_source` and `_source_include` or `source_exclude` attributes to filter what fields are returned for a particular document. + # You can include the `_source`, `_source_includes`, and `_source_excludes` query parameters in the request URI to specify the defaults to use when there are no per-document instructions. # **Get stored fields** - # Use the +stored_fields+ attribute to specify the set of stored fields you want to retrieve. + # Use the `stored_fields` attribute to specify the set of stored fields you want to retrieve. # Any requested fields that are not stored are ignored. - # You can include the +stored_fields+ query parameter in the request URI to specify the defaults to use when there are no per-document instructions. + # You can include the `stored_fields` query parameter in the request URI to specify the defaults to use when there are no per-document instructions. # - # @option arguments [String] :index Name of the index to retrieve documents from when +ids+ are specified, or when a document in the +docs+ array does not specify an index. + # @option arguments [String] :index Name of the index to retrieve documents from when `ids` are specified, or when a document in the `docs` array does not specify an index. # @option arguments [Boolean] :force_synthetic_source Should this request force synthetic _source? # Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. # Fetches with this enabled will be slower the enabling synthetic source natively in the index. # @option arguments [String] :preference Specifies the node or shard the operation should be performed on. Random by default. - # @option arguments [Boolean] :realtime If +true+, the request is real-time as opposed to near-real-time. Server default: true. - # @option arguments [Boolean] :refresh If +true+, the request refreshes relevant shards before retrieving documents. + # @option arguments [Boolean] :realtime If `true`, the request is real-time as opposed to near-real-time. Server default: true. + # @option arguments [Boolean] :refresh If `true`, the request refreshes relevant shards before retrieving documents. # @option arguments [String] :routing Custom value used to route operations to a specific shard. - # @option arguments [Boolean, String, Array] :_source True or false to return the +_source+ field or not, or a list of fields to return. + # @option arguments [Boolean, String, Array] :_source True or false to return the `_source` field or not, or a list of fields to return. # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude from the response. - # You can also use this parameter to exclude fields from the subset specified in +_source_includes+ query parameter. + # You can also use this parameter to exclude fields from the subset specified in `_source_includes` query parameter. # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. - # If this parameter is specified, only these source fields are returned. You can exclude fields from this subset using the +_source_excludes+ query parameter. - # If the +_source+ parameter is +false+, this parameter is ignored. - # @option arguments [String, Array] :stored_fields If +true+, retrieves the document fields stored in the index rather than the document +_source+. Server default: false. + # If this parameter is specified, only these source fields are returned. You can exclude fields from this subset using the `_source_excludes` query parameter. + # If the `_source` parameter is `false`, this parameter is ignored. + # @option arguments [String, Array] :stored_fields If `true`, retrieves the document fields stored in the index rather than the document `_source`. Server default: false. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb b/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb index f87356b286..762a3014d1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb @@ -28,6 +28,17 @@ module Actions # You are strongly recommended to use the Upgrade Assistant. # # @option arguments [String] :index Comma-separate list of data streams or indices to check. Wildcard (*) expressions are supported. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-migration-deprecations @@ -53,7 +64,7 @@ def deprecations(arguments = {}) else '_migration/deprecations' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb index 5ddb2fcd32..ac3b03725e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb @@ -28,6 +28,17 @@ module Actions # TIP: This API is designed for indirect use by the Upgrade Assistant. # You are strongly recommended to use the Upgrade Assistant. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-migration-get-feature-upgrade-status @@ -42,7 +53,7 @@ def get_feature_upgrade_status(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_migration/system_features' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb b/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb index fc8ed402c5..20578a36bb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb @@ -28,6 +28,17 @@ module Actions # Some functionality might be temporarily unavailable during the migration process. # TIP: The API is designed for indirect use by the Upgrade Assistant. We strongly recommend you use the Upgrade Assistant. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-migration-get-feature-upgrade-status @@ -42,7 +53,7 @@ def post_feature_upgrade(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_migration/system_features' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb index 1939435445..b291687a31 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb @@ -24,16 +24,22 @@ module Actions # Run multiple searches. # The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. # The structure is as follows: - # + - # header\n - # body\n - # header\n - # body\n - # + + # + # ``` + # header + # + # body + # + # header + # + # body + # + # ``` + # # This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. - # IMPORTANT: The final line of data must end with a newline character +\n+. - # Each newline character may be preceded by a carriage return +\r+. - # When sending requests to this endpoint the +Content-Type+ header should be set to +application/x-ndjson+. + # IMPORTANT: The final line of data must end with a newline character `\n`. + # Each newline character may be preceded by a carriage return `\r`. + # When sending requests to this endpoint the `Content-Type` header should be set to `application/x-ndjson`. # # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and index aliases to search. # @option arguments [Boolean] :allow_no_indices If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. @@ -48,13 +54,24 @@ module Actions # Typically, this adds a small overhead to a request. # However, using computationally expensive named queries on a large number of hits may add significant overhead. # @option arguments [Integer] :max_concurrent_searches Maximum number of concurrent searches the multi search API can execute. - # Defaults to +max(1, (# of data nodes * min(search thread pool size, 10)))+. + # Defaults to `max(1, (# of data nodes * min(search thread pool size, 10)))`. # @option arguments [Integer] :max_concurrent_shard_requests Maximum number of concurrent shard requests that each sub-search request executes per node. Server default: 5. # @option arguments [Integer] :pre_filter_shard_size Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method i.e., if date filters are mandatory to match but the shard bounds and the query are disjoint. # @option arguments [Boolean] :rest_total_hits_as_int If true, hits.total are returned as an integer in the response. Defaults to false, which returns an object. # @option arguments [String] :routing Custom routing value used to route search operations to a specific shard. # @option arguments [String] :search_type Indicates whether global term and document frequencies should be used when scoring returned documents. # @option arguments [Boolean] :typed_keys Specifies whether aggregation and suggester names should be prefixed by their respective types in the response. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body searches # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb index ad37661b9e..6e4ebca9d4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb @@ -23,26 +23,38 @@ module API module Actions # Run multiple templated searches. # Run multiple templated searches with a single request. - # If you are providing a text file or text input to +curl+, use the +--data-binary+ flag instead of +-d+ to preserve newlines. + # If you are providing a text file or text input to `curl`, use the `--data-binary` flag instead of `-d` to preserve newlines. # For example: - # + + # + # ``` # $ cat requests # { "index": "my-index" } # { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} # { "index": "my-other-index" } # { "id": "my-other-search-template", "params": { "query_type": "match_all" }} # $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo - # + + # ``` # # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to search. - # It supports wildcards (+*+). - # To search all data streams and indices, omit this parameter or use +*+. - # @option arguments [Boolean] :ccs_minimize_roundtrips If +true+, network round-trips are minimized for cross-cluster search requests. Server default: true. + # It supports wildcards (`*`). + # To search all data streams and indices, omit this parameter or use `*`. + # @option arguments [Boolean] :ccs_minimize_roundtrips If `true`, network round-trips are minimized for cross-cluster search requests. Server default: true. # @option arguments [Integer] :max_concurrent_searches The maximum number of concurrent searches the API can run. # @option arguments [String] :search_type The type of the search operation. - # @option arguments [Boolean] :rest_total_hits_as_int If +true+, the response returns +hits.total+ as an integer. - # If +false+, it returns +hits.total+ as an object. - # @option arguments [Boolean] :typed_keys If +true+, the response prefixes aggregation and suggester names with their respective types. + # @option arguments [Boolean] :rest_total_hits_as_int If `true`, the response returns `hits.total` as an integer. + # If `false`, it returns `hits.total` as an object. + # @option arguments [Boolean] :typed_keys If `true`, the response prefixes aggregation and suggester names with their respective types. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body search_templates # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb b/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb index 8c6a6e435b..590147683e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb @@ -25,27 +25,38 @@ module Actions # Get multiple term vectors with a single request. # You can specify existing documents by index and ID or provide artificial documents in the body of the request. # You can specify the index in the request body or request URI. - # The response contains a +docs+ array with all the fetched termvectors. + # The response contains a `docs` array with all the fetched termvectors. # Each element has the structure provided by the termvectors API. # **Artificial documents** - # You can also use +mtermvectors+ to generate term vectors for artificial documents provided in the body of the request. - # The mapping used is determined by the specified +_index+. + # You can also use `mtermvectors` to generate term vectors for artificial documents provided in the body of the request. + # The mapping used is determined by the specified `_index`. # # @option arguments [String] :index The name of the index that contains the documents. # @option arguments [Array] :ids A comma-separated list of documents ids. You must define ids as parameter or set "ids" or "docs" in the request body # @option arguments [String, Array] :fields A comma-separated list or wildcard expressions of fields to include in the statistics. - # It is used as the default list unless a specific field list is provided in the +completion_fields+ or +fielddata_fields+ parameters. - # @option arguments [Boolean] :field_statistics If +true+, the response includes the document count, sum of document frequencies, and sum of total term frequencies. Server default: true. - # @option arguments [Boolean] :offsets If +true+, the response includes term offsets. Server default: true. - # @option arguments [Boolean] :payloads If +true+, the response includes term payloads. Server default: true. - # @option arguments [Boolean] :positions If +true+, the response includes term positions. Server default: true. + # It is used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters. + # @option arguments [Boolean] :field_statistics If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies. Server default: true. + # @option arguments [Boolean] :offsets If `true`, the response includes term offsets. Server default: true. + # @option arguments [Boolean] :payloads If `true`, the response includes term payloads. Server default: true. + # @option arguments [Boolean] :positions If `true`, the response includes term positions. Server default: true. # @option arguments [String] :preference The node or shard the operation should be performed on. # It is random by default. # @option arguments [Boolean] :realtime If true, the request is real-time as opposed to near-real-time. Server default: true. # @option arguments [String] :routing A custom value used to route operations to a specific shard. # @option arguments [Boolean] :term_statistics If true, the response includes term frequency and document frequency. - # @option arguments [Integer] :version If +true+, returns the document version as part of a hit. + # @option arguments [Integer] :version If `true`, returns the document version as part of a hit. # @option arguments [String] :version_type The version type. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb index 750122ae4e..2b97ffb70e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb @@ -30,7 +30,18 @@ module Actions # support SLA of official GA features. # # @option arguments [String, Array] :node_id Comma-separated list of node IDs or names used to limit returned information. (*Required*) - # @option arguments [Integer] :max_archive_version Specifies the maximum +archive_version+ to be cleared from the archive. (*Required*) + # @option arguments [Integer] :max_archive_version Specifies the maximum `archive_version` to be cleared from the archive. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-clear-repositories-metering-archive @@ -61,7 +72,7 @@ def clear_repositories_metering_archive(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_nodes/#{Utils.listify(_node_id)}/_repositories_metering/#{Utils.listify(_max_archive_version)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb index 029bd8b1d3..43117d7544 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb @@ -32,6 +32,17 @@ module Actions # support SLA of official GA features. # # @option arguments [String, Array] :node_id Comma-separated list of node IDs or names used to limit returned information. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-get-repositories-metering-info @@ -55,7 +66,7 @@ def get_repositories_metering_info(arguments = {}) method = Elasticsearch::API::HTTP_GET path = "_nodes/#{Utils.listify(_node_id)}/_repositories_metering" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb index af74ef7206..9add690da7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb @@ -36,6 +36,17 @@ module Actions # before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [String] :type The type to sample. Server default: cpu. # @option arguments [String] :sort The sort order for 'cpu' type (default: total) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-hot-threads diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb index fea25d2a2f..416b02f956 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb @@ -29,6 +29,17 @@ module Actions # @option arguments [String, Array] :metric Limits the information returned to the specific metrics. Supports a comma-separated list, such as http,ingest. # @option arguments [Boolean] :flat_settings If true, returns settings in flat format. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-info diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb index e867f3c5fc..91c1e44cfe 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb @@ -33,6 +33,17 @@ module Actions # @option arguments [String, Array] :node_id The names of particular nodes in the cluster to target. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb index 4c55e3068f..7ffbaf03b7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb @@ -37,7 +37,18 @@ module Actions # @option arguments [String] :level Indicates whether statistics are aggregated at the cluster, index, or shard level. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Array] :types A comma-separated list of document types for the indexing index metric. - # @option arguments [Boolean] :include_unloaded_segments If +true+, the response includes information from segments that are not loaded into memory. + # @option arguments [Boolean] :include_unloaded_segments If `true`, the response includes information from segments that are not loaded into memory. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb index 989d96d9a1..a3005224f1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb @@ -24,11 +24,22 @@ module Nodes module Actions # Get feature usage information. # - # @option arguments [String, Array] :node_id A comma-separated list of node IDs or names to limit the returned information; use +_local+ to return information from the node you're connecting to, leave empty to get information from all nodes + # @option arguments [String, Array] :node_id A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes # @option arguments [String, Array] :metric Limits the information returned to the specific metrics. - # A comma-separated list of the following options: +_all+, +rest_actions+. + # A comma-separated list of the following options: `_all`, `rest_actions`. # @option arguments [Time] :timeout Period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-nodes-usage diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb b/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb index e3fcf37e81..93d57b597b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb @@ -26,17 +26,17 @@ module Actions # which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the # state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple # search requests using the same point in time. For example, if refreshes happen between - # +search_after+ requests, then the results of those requests might not be consistent as changes happening + # `search_after` requests, then the results of those requests might not be consistent as changes happening # between searches are only visible to the more recent point in time. # A point in time must be opened explicitly before being used in search requests. - # A subsequent search request with the +pit+ parameter must not specify +index+, +routing+, or +preference+ values as these parameters are copied from the point in time. - # Just like regular searches, you can use +from+ and +size+ to page through point in time search results, up to the first 10,000 hits. - # If you want to retrieve more hits, use PIT with +search_after+. + # A subsequent search request with the `pit` parameter must not specify `index`, `routing`, or `preference` values as these parameters are copied from the point in time. + # Just like regular searches, you can use `from` and `size` to page through point in time search results, up to the first 10,000 hits. + # If you want to retrieve more hits, use PIT with `search_after`. # IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. - # When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a +NoShardAvailableActionException+ exception. + # When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a `NoShardAvailableActionException` exception. # To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. # **Keeping point in time alive** - # The +keep_alive+ parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + # The `keep_alive` parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. # The value does not need to be long enough to process all data — it just needs to be long enough for the next request. # Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. # Once the smaller segments are no longer needed they are deleted. @@ -48,19 +48,30 @@ module Actions # Note that a point-in-time doesn't prevent its associated indices from being deleted. # You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. # - # @option arguments [String, Array] :index A comma-separated list of index names to open point in time; use +_all+ or empty string to perform the operation on all indices (*Required*) + # @option arguments [String, Array] :index A comma-separated list of index names to open point in time; use `_all` or empty string to perform the operation on all indices (*Required*) # @option arguments [Time] :keep_alive Extend the length of time that the point in time persists. (*Required*) - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [String] :preference The node or shard the operation should be performed on. # By default, it is random. # @option arguments [String] :routing A custom value that is used to route operations to a specific shard. # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # It supports comma-separated values, such as +open,hidden+. Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. + # It supports comma-separated values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. # @option arguments [Boolean] :allow_partial_search_results Indicates whether the point in time tolerates unavailable shards or shard failures when initially creating the PIT. - # If +false+, creating a point in time request when a shard is missing or unavailable will throw an exception. - # If +true+, the point in time will contain all the shards that are available at the time of the request. + # If `false`, creating a point in time request when a shard is missing or unavailable will throw an exception. + # If `true`, the point in time will contain all the shards that are available at the time of the request. # @option arguments [Integer] :max_concurrent_shard_requests Maximum number of concurrent shard requests that each sub-search request executes per node. Server default: 5. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb index 5457ee834d..0b22d6ab62 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb @@ -24,6 +24,17 @@ module Actions # Ping the cluster. # Get information about whether the cluster is running. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-cluster @@ -38,7 +49,7 @@ def ping(arguments = {}) method = Elasticsearch::API::HTTP_HEAD path = '' - params = {} + params = Utils.process_params(arguments) begin perform_request(method, path, params, body, headers, request_opts).status == 200 diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb b/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb index 269f4dae7a..060d38cf76 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb @@ -30,10 +30,21 @@ module Actions # To prevent errors, the API immediately compiles the script or template in this context. # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. - # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. - # It can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb index be29a8405f..ecc2e110ff 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb @@ -28,6 +28,17 @@ module Actions # # @option arguments [String] :ruleset_id The unique identifier of the query ruleset containing the rule to delete (*Required*) # @option arguments [String] :rule_id The unique identifier of the query rule within the specified ruleset to delete (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-delete-rule @@ -54,7 +65,7 @@ def delete_rule(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_query_rules/#{Utils.listify(_ruleset_id)}/_rule/#{Utils.listify(_rule_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb index d48daadd33..ef8976b20e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb @@ -27,6 +27,17 @@ module Actions # This is a destructive action that is not recoverable. # # @option arguments [String] :ruleset_id The unique identifier of the query ruleset to delete (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-delete-ruleset diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb index 6674ea6c8e..7222f9e37d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb @@ -27,6 +27,17 @@ module Actions # # @option arguments [String] :ruleset_id The unique identifier of the query ruleset containing the rule to retrieve (*Required*) # @option arguments [String] :rule_id The unique identifier of the query rule within the specified ruleset to retrieve (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-get-rule @@ -53,7 +64,7 @@ def get_rule(arguments = {}) method = Elasticsearch::API::HTTP_GET path = "_query_rules/#{Utils.listify(_ruleset_id)}/_rule/#{Utils.listify(_rule_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb index 2cbb229917..a3d40af77e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb @@ -26,6 +26,17 @@ module Actions # Get details about a query ruleset. # # @option arguments [String] :ruleset_id The unique identifier of the query ruleset (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-get-ruleset @@ -49,7 +60,7 @@ def get_ruleset(arguments = {}) method = Elasticsearch::API::HTTP_GET path = "_query_rules/#{Utils.listify(_ruleset_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb index 8ed278b0a5..6d15c3daf7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb @@ -27,6 +27,17 @@ module Actions # # @option arguments [Integer] :from The offset from the first result to fetch. Server default: 0. # @option arguments [Integer] :size The maximum number of results to retrieve. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-query-rules-list-rulesets diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb index 9f48191d06..3637e6f67d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb @@ -31,6 +31,17 @@ module Actions # # @option arguments [String] :ruleset_id The unique identifier of the query ruleset containing the rule to be created or updated. (*Required*) # @option arguments [String] :rule_id The unique identifier of the query rule within the specified ruleset to be created or updated. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -59,7 +70,7 @@ def put_rule(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_query_rules/#{Utils.listify(_ruleset_id)}/_rule/#{Utils.listify(_rule_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb index c5d5304920..3b18028200 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb @@ -24,13 +24,24 @@ module QueryRules module Actions # Create or update a query ruleset. # There is a limit of 100 rules per ruleset. - # This limit can be increased by using the +xpack.applications.rules.max_rules_per_ruleset+ cluster setting. - # IMPORTANT: Due to limitations within pinned queries, you can only select documents using +ids+ or +docs+, but cannot use both in single rule. + # This limit can be increased by using the `xpack.applications.rules.max_rules_per_ruleset` cluster setting. + # IMPORTANT: Due to limitations within pinned queries, you can only select documents using `ids` or `docs`, but cannot use both in single rule. # It is advised to use one or the other in query rulesets, to avoid errors. # Additionally, pinned queries have a maximum limit of 100 pinned hits. # If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. # # @option arguments [String] :ruleset_id The unique identifier of the query ruleset to be created or updated. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -56,7 +67,7 @@ def put_ruleset(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_query_rules/#{Utils.listify(_ruleset_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb index 79a2bfad82..a61dbc9b40 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb @@ -26,6 +26,17 @@ module Actions # Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. # # @option arguments [String] :ruleset_id The unique identifier of the query ruleset to be created or updated (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -51,7 +62,7 @@ def test(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "_query_rules/#{Utils.listify(_ruleset_id)}/_test" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb b/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb index a94d484832..9ab8e7572f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb @@ -25,12 +25,23 @@ module Actions # Evaluate the quality of ranked search results over a set of typical search queries. # # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and index aliases used to limit the request. - # Wildcard (+*+) expressions are supported. - # To target all data streams and indices in a cluster, omit this parameter or use +_all+ or +*+. - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. + # Wildcard (`*`) expressions are supported. + # To target all data streams and indices in a cluster, omit this parameter or use `_all` or `*`. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. Server default: true. # @option arguments [String, Array] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. - # @option arguments [Boolean] :ignore_unavailable If +true+, missing or closed indices are not included in the response. + # @option arguments [Boolean] :ignore_unavailable If `true`, missing or closed indices are not included in the response. # @option arguments [String] :search_type Search operation type + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb index 8d4b2ab5a7..2b1a9cf0fa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb @@ -27,42 +27,43 @@ module Actions # The source can be any existing index, alias, or data stream. # The destination must differ from the source. # For example, you cannot reindex a data stream into itself. - # IMPORTANT: Reindex requires +_source+ to be enabled for all documents in the source. + # IMPORTANT: Reindex requires `_source` to be enabled for all documents in the source. # The destination should be configured as wanted before calling the reindex API. # Reindex does not copy the settings from the source or its associated template. # Mappings, shard counts, and replicas, for example, must be configured ahead of time. # If the Elasticsearch security features are enabled, you must have the following security privileges: - # * The +read+ index privilege for the source data stream, index, or alias. - # * The +write+ index privilege for the destination data stream, index, or index alias. - # * To automatically create a data stream or index with a reindex API request, you must have the +auto_configure+, +create_index+, or +manage+ index privilege for the destination data stream, index, or alias. - # * If reindexing from a remote cluster, the +source.remote.user+ must have the +monitor+ cluster privilege and the +read+ index privilege for the source data stream, index, or alias. - # If reindexing from a remote cluster, you must explicitly allow the remote host in the +reindex.remote.whitelist+ setting. + # * The `read` index privilege for the source data stream, index, or alias. + # * The `write` index privilege for the destination data stream, index, or index alias. + # * To automatically create a data stream or index with a reindex API request, you must have the `auto_configure`, `create_index`, or `manage` index privilege for the destination data stream, index, or alias. + # * If reindexing from a remote cluster, the `source.remote.user` must have the `monitor` cluster privilege and the `read` index privilege for the source data stream, index, or alias. + # If reindexing from a remote cluster, you must explicitly allow the remote host in the `reindex.remote.whitelist` setting. # Automatic data stream creation requires a matching index template with data stream enabled. - # The +dest+ element can be configured like the index API to control optimistic concurrency control. - # Omitting +version_type+ or setting it to +internal+ causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. - # Setting +version_type+ to +external+ causes Elasticsearch to preserve the +version+ from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. - # Setting +op_type+ to +create+ causes the reindex API to create only missing documents in the destination. + # The `dest` element can be configured like the index API to control optimistic concurrency control. + # Omitting `version_type` or setting it to `internal` causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. + # Setting `version_type` to `external` causes Elasticsearch to preserve the `version` from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. + # Setting `op_type` to `create` causes the reindex API to create only missing documents in the destination. # All existing documents will cause a version conflict. - # IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an +op_type+ of +create+. + # IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an `op_type` of `create`. # A reindex can only add new documents to a destination data stream. # It cannot update existing documents in a destination data stream. # By default, version conflicts abort the reindex process. - # To continue reindexing if there are conflicts, set the +conflicts+ request body property to +proceed+. + # To continue reindexing if there are conflicts, set the `conflicts` request body property to `proceed`. # In this case, the response includes a count of the version conflicts that were encountered. - # Note that the handling of other error types is unaffected by the +conflicts+ property. - # Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than +max_docs+ until it has successfully indexed +max_docs+ documents into the target or it has gone through every document in the source query. + # Note that the handling of other error types is unaffected by the `conflicts` property. + # Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than `max_docs` until it has successfully indexed `max_docs` documents into the target or it has gone through every document in the source query. # NOTE: The reindex API makes no effort to handle ID collisions. # The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. # Instead, make sure that IDs are unique by using a script. # **Running reindex asynchronously** - # If the request contains +wait_for_completion=false+, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. - # Elasticsearch creates a record of this task as a document at +_tasks/+. + # If the request contains `wait_for_completion=false`, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. + # Elasticsearch creates a record of this task as a document at `_tasks/`. # **Reindex from multiple sources** # If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. # That way you can resume the process if there are any errors by removing the partially completed source and starting over. # It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. # For example, you can use a bash script like this: - # + + # + # ``` # for index in i1 i2 i3 i4 i5; do # curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ # "source": { @@ -73,18 +74,21 @@ module Actions # } # }' # done - # + + # ``` + # # **Throttling** - # Set +requests_per_second+ to any positive decimal number (+1.4+, +6+, +1000+, for example) to throttle the rate at which reindex issues batches of index operations. + # Set `requests_per_second` to any positive decimal number (`1.4`, `6`, `1000`, for example) to throttle the rate at which reindex issues batches of index operations. # Requests are throttled by padding each batch with a wait time. - # To turn off throttling, set +requests_per_second+ to +-1+. + # To turn off throttling, set `requests_per_second` to `-1`. # The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. - # The padding time is the difference between the batch size divided by the +requests_per_second+ and the time spent writing. - # By default the batch size is +1000+, so if +requests_per_second+ is set to +500+: - # + + # The padding time is the difference between the batch size divided by the `requests_per_second` and the time spent writing. + # By default the batch size is `1000`, so if `requests_per_second` is set to `500`: + # + # ``` # target_time = 1000 / 500 per second = 2 seconds # wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds - # + + # ``` + # # Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. # This is "bursty" instead of "smooth". # **Slicing** @@ -92,86 +96,99 @@ module Actions # This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. # NOTE: Reindexing from remote clusters does not support manual or automatic slicing. # You can slice a reindex request manually by providing a slice ID and total number of slices to each request. - # You can also let reindex automatically parallelize by using sliced scroll to slice on +_id+. - # The +slices+ parameter specifies the number of slices to use. - # Adding +slices+ to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: + # You can also let reindex automatically parallelize by using sliced scroll to slice on `_id`. + # The `slices` parameter specifies the number of slices to use. + # Adding `slices` to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: # * You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. - # * Fetching the status of the task for the request with +slices+ only contains the status of completed slices. + # * Fetching the status of the task for the request with `slices` only contains the status of completed slices. # * These sub-requests are individually addressable for things like cancellation and rethrottling. - # * Rethrottling the request with +slices+ will rethrottle the unfinished sub-request proportionally. - # * Canceling the request with +slices+ will cancel each sub-request. - # * Due to the nature of +slices+, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. - # * Parameters like +requests_per_second+ and +max_docs+ on a request with +slices+ are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using +max_docs+ with +slices+ might not result in exactly +max_docs+ documents being reindexed. + # * Rethrottling the request with `slices` will rethrottle the unfinished sub-request proportionally. + # * Canceling the request with `slices` will cancel each sub-request. + # * Due to the nature of `slices`, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + # * Parameters like `requests_per_second` and `max_docs` on a request with `slices` are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using `max_docs` with `slices` might not result in exactly `max_docs` documents being reindexed. # * Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. - # If slicing automatically, setting +slices+ to +auto+ will choose a reasonable number for most indices. + # If slicing automatically, setting `slices` to `auto` will choose a reasonable number for most indices. # If slicing manually or otherwise tuning automatic slicing, use the following guidelines. # Query performance is most efficient when the number of slices is equal to the number of shards in the index. - # If that number is large (for example, +500+), choose a lower number as too many slices will hurt performance. + # If that number is large (for example, `500`), choose a lower number as too many slices will hurt performance. # Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. # Indexing performance scales linearly across available resources with the number of slices. # Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. # **Modify documents during reindexing** - # Like +_update_by_query+, reindex operations support a script that modifies the document. - # Unlike +_update_by_query+, the script is allowed to modify the document's metadata. - # Just as in +_update_by_query+, you can set +ctx.op+ to change the operation that is run on the destination. - # For example, set +ctx.op+ to +noop+ if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the +noop+ counter in the response body. - # Set +ctx.op+ to +delete+ if your script decides that the document must be deleted from the destination. - # The deletion will be reported in the +deleted+ counter in the response body. - # Setting +ctx.op+ to anything else will return an error, as will setting any other field in +ctx+. + # Like `_update_by_query`, reindex operations support a script that modifies the document. + # Unlike `_update_by_query`, the script is allowed to modify the document's metadata. + # Just as in `_update_by_query`, you can set `ctx.op` to change the operation that is run on the destination. + # For example, set `ctx.op` to `noop` if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the `noop` counter in the response body. + # Set `ctx.op` to `delete` if your script decides that the document must be deleted from the destination. + # The deletion will be reported in the `deleted` counter in the response body. + # Setting `ctx.op` to anything else will return an error, as will setting any other field in `ctx`. # Think of the possibilities! Just be careful; you are able to change: - # * +_id+ - # * +_index+ - # * +_version+ - # * +_routing+ - # Setting +_version+ to +null+ or clearing it from the +ctx+ map is just like not sending the version in an indexing request. + # * `_id` + # * `_index` + # * `_version` + # * `_routing` + # Setting `_version` to `null` or clearing it from the `ctx` map is just like not sending the version in an indexing request. # It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. # **Reindex from remote** # Reindex supports reindexing from a remote Elasticsearch cluster. - # The +host+ parameter must contain a scheme, host, port, and optional path. - # The +username+ and +password+ parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. + # The `host` parameter must contain a scheme, host, port, and optional path. + # The `username` and `password` parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. # Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. # There are a range of settings available to configure the behavior of the HTTPS connection. # When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. - # Remote hosts must be explicitly allowed with the +reindex.remote.whitelist+ setting. + # Remote hosts must be explicitly allowed with the `reindex.remote.whitelist` setting. # It can be set to a comma delimited list of allowed remote host and port combinations. # Scheme is ignored; only the host and port are used. # For example: - # + + # + # ``` # reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] - # + + # ``` + # # The list of allowed hosts must be configured on any nodes that will coordinate the reindex. # This feature should work with remote clusters of any version of Elasticsearch. # This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. # WARNING: Elasticsearch does not support forward compatibility across major versions. # For example, you cannot reindex from a 7.x cluster into a 6.x cluster. - # To enable queries sent to older versions of Elasticsearch, the +query+ parameter is sent directly to the remote host without validation or modification. + # To enable queries sent to older versions of Elasticsearch, the `query` parameter is sent directly to the remote host without validation or modification. # NOTE: Reindexing from remote clusters does not support manual or automatic slicing. # Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. # If the remote index includes very large documents you'll need to use a smaller batch size. - # It is also possible to set the socket read timeout on the remote connection with the +socket_timeout+ field and the connection timeout with the +connect_timeout+ field. + # It is also possible to set the socket read timeout on the remote connection with the `socket_timeout` field and the connection timeout with the `connect_timeout` field. # Both default to 30 seconds. # **Configuring SSL parameters** # Reindex from remote supports configurable SSL settings. - # These must be specified in the +elasticsearch.yml+ file, with the exception of the secure settings, which you add in the Elasticsearch keystore. + # These must be specified in the `elasticsearch.yml` file, with the exception of the secure settings, which you add in the Elasticsearch keystore. # It is not possible to configure SSL in the body of the reindex request. # - # @option arguments [Boolean] :refresh If +true+, the request refreshes affected shards to make this operation visible to search. + # @option arguments [Boolean] :refresh If `true`, the request refreshes affected shards to make this operation visible to search. # @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second. # By default, there is no throttle. Server default: -1. # @option arguments [Time] :scroll The period of time that a consistent view of the index should be maintained for scrolled search. # @option arguments [Integer, String] :slices The number of slices this task should be divided into. # It defaults to one slice, which means the task isn't sliced into subtasks.Reindex supports sliced scroll to parallelize the reindexing process. - # This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts.NOTE: Reindexing from remote clusters does not support manual or automatic slicing.If set to +auto+, Elasticsearch chooses the number of slices to use. + # This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts.NOTE: Reindexing from remote clusters does not support manual or automatic slicing.If set to `auto`, Elasticsearch chooses the number of slices to use. # This setting will use one slice per shard, up to a certain limit. # If there are multiple sources, it will choose the number of slices based on the index or backing index with the smallest number of shards. Server default: 1. # @option arguments [Time] :timeout The period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards. # By default, Elasticsearch waits for at least one minute before failing. # The actual wait time could be longer, particularly when multiple waits occur. Server default: 1m. # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. - # Set it to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). + # Set it to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). # The default value is one, which means it waits for each primary shard to be active. Server default: 1. - # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks until the operation is complete. Server default: true. - # @option arguments [Boolean] :require_alias If +true+, the destination must be an index alias. + # @option arguments [Boolean] :wait_for_completion If `true`, the request blocks until the operation is complete. Server default: true. + # @option arguments [Boolean] :require_alias If `true`, the destination must be an index alias. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb index d24584210a..e38cb1ca88 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb @@ -24,16 +24,29 @@ module Actions # Throttle a reindex operation. # Change the number of requests per second for a particular reindex operation. # For example: - # + + # + # ``` # POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1 - # + + # ``` + # # Rethrottling that speeds up the query takes effect immediately. # Rethrottling that slows down the query will take effect after completing the current batch. # This behavior prevents scroll timeouts. # # @option arguments [String] :task_id The task identifier, which can be found by using the tasks API. (*Required*) # @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second. - # It can be either +-1+ to turn off throttling or any decimal number like +1.7+ or +12+ to throttle to that level. + # It can be either `-1` to turn off throttling or any decimal number like `1.7` or `12` to throttle to that level. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-reindex diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb index 190f3f6685..e9405ef31a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb @@ -25,7 +25,18 @@ module Actions # Render a search template as a search request body. # # @option arguments [String] :id The ID of the search template to render. - # If no +source+ is specified, this or the +id+ request body parameter is required. + # If no `source` is specified, this or the `id` request body parameter is required. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -57,7 +68,7 @@ def render_search_template(arguments = {}) else '_render/template' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb b/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb index 560e47f575..048ddfe3f6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb @@ -32,6 +32,17 @@ module Actions # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -52,7 +63,7 @@ def scripts_painless_execute(arguments = {}) end path = '_scripts/painless/_execute' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb b/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb index c6e0c7524b..b30d1a67b3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb @@ -22,11 +22,11 @@ module Elasticsearch module API module Actions # Run a scrolling search. - # IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the +search_after+ parameter with a point in time (PIT). + # IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the `search_after` parameter with a point in time (PIT). # The scroll API gets large sets of results from a single scrolling search request. - # To get the necessary scroll ID, submit a search API request that includes an argument for the +scroll+ query parameter. - # The +scroll+ parameter indicates how long Elasticsearch should retain the search context for the request. - # The search response returns a scroll ID in the +_scroll_id+ response body parameter. + # To get the necessary scroll ID, submit a search API request that includes an argument for the `scroll` query parameter. + # The `scroll` parameter indicates how long Elasticsearch should retain the search context for the request. + # The search response returns a scroll ID in the `_scroll_id` response body parameter. # You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. # If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. # You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. @@ -35,6 +35,17 @@ module Actions # @option arguments [String] :scroll_id The scroll ID # @option arguments [Time] :scroll The period to retain the search context for scrolling. Server default: 1d. # @option arguments [Boolean] :rest_total_hits_as_int If true, the API response’s hit.total property is returned as an integer. If false, the API response’s hit.total property is returned as an object. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search.rb index bc5754d830..64bef0624b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search.rb @@ -23,12 +23,12 @@ module API module Actions # Run a search. # Get search hits that match the query defined in the request. - # You can provide search queries using the +q+ query string parameter or the request body. + # You can provide search queries using the `q` query string parameter or the request body. # If both are specified, only the query parameter is used. # If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. - # To search a point in time (PIT) for an alias, you must have the +read+ index privilege for the alias's data streams or indices. + # To search a point in time (PIT) for an alias, you must have the `read` index privilege for the alias's data streams or indices. # **Search slicing** - # When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the +slice+ and +pit+ properties. + # When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the `slice` and `pit` properties. # By default the splitting is done first on the shards, then locally on each shard. # The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. # For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. @@ -37,116 +37,127 @@ module Actions # This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. # # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to search. - # It supports wildcards (+*+). - # To search all data streams and indices, omit this parameter or use +*+ or +_all+. - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # It supports wildcards (`*`). + # To search all data streams and indices, omit this parameter or use `*` or `_all`. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. - # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. - # @option arguments [Boolean] :allow_partial_search_results If +true+ and there are shard request timeouts or shard failures, the request returns partial results. - # If +false+, it returns an error with no partial results.To override the default behavior, you can set the +search.default_allow_partial_results+ cluster setting to +false+. Server default: true. + # For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. Server default: true. + # @option arguments [Boolean] :allow_partial_search_results If `true` and there are shard request timeouts or shard failures, the request returns partial results. + # If `false`, it returns an error with no partial results.To override the default behavior, you can set the `search.default_allow_partial_results` cluster setting to `false`. Server default: true. # @option arguments [String] :analyzer The analyzer to use for the query string. - # This parameter can be used only when the +q+ query string parameter is specified. - # @option arguments [Boolean] :analyze_wildcard If +true+, wildcard and prefix queries are analyzed. - # This parameter can be used only when the +q+ query string parameter is specified. + # This parameter can be used only when the `q` query string parameter is specified. + # @option arguments [Boolean] :analyze_wildcard If `true`, wildcard and prefix queries are analyzed. + # This parameter can be used only when the `q` query string parameter is specified. # @option arguments [Integer] :batched_reduce_size The number of shard results that should be reduced at once on the coordinating node. # If the potential number of shards in the request can be large, this value should be used as a protection mechanism to reduce the memory overhead per search request. Server default: 512. - # @option arguments [Boolean] :ccs_minimize_roundtrips If +true+, network round-trips between the coordinating node and the remote clusters are minimized when running cross-cluster search (CCS) requests. Server default: true. - # @option arguments [String] :default_operator The default operator for the query string query: +AND+ or +OR+. - # This parameter can be used only when the +q+ query string parameter is specified. Server default: OR. + # @option arguments [Boolean] :ccs_minimize_roundtrips If `true`, network round-trips between the coordinating node and the remote clusters are minimized when running cross-cluster search (CCS) requests. Server default: true. + # @option arguments [String] :default_operator The default operator for the query string query: `AND` or `OR`. + # This parameter can be used only when the `q` query string parameter is specified. Server default: OR. # @option arguments [String] :df The field to use as a default when no field prefix is given in the query string. - # This parameter can be used only when the +q+ query string parameter is specified. + # This parameter can be used only when the `q` query string parameter is specified. # @option arguments [String, Array] :docvalue_fields A comma-separated list of fields to return as the docvalue representation of a field for each hit. # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # It supports comma-separated values such as +open,hidden+. Server default: open. - # @option arguments [Boolean] :explain If +true+, the request returns detailed information about score computation as part of a hit. - # @option arguments [Boolean] :ignore_throttled If +true+, concrete, expanded or aliased indices will be ignored when frozen. Server default: true. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. - # @option arguments [Boolean] :include_named_queries_score If +true+, the response includes the score contribution from any named queries.This functionality reruns each named query on every hit in a search response. + # It supports comma-separated values such as `open,hidden`. Server default: open. + # @option arguments [Boolean] :explain If `true`, the request returns detailed information about score computation as part of a hit. + # @option arguments [Boolean] :ignore_throttled If `true`, concrete, expanded or aliased indices will be ignored when frozen. Server default: true. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :include_named_queries_score If `true`, the response includes the score contribution from any named queries.This functionality reruns each named query on every hit in a search response. # Typically, this adds a small overhead to a request. # However, using computationally expensive named queries on a large number of hits may add significant overhead. - # @option arguments [Boolean] :lenient If +true+, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [Boolean] :lenient If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + # This parameter can be used only when the `q` query string parameter is specified. # @option arguments [Integer] :max_concurrent_shard_requests The number of concurrent shard requests per node that the search runs concurrently. # This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests. Server default: 5. # @option arguments [String] :preference The nodes and shards used for the search. # By default, Elasticsearch selects from eligible nodes and shards using adaptive replica selection, accounting for allocation awareness. # Valid values are: - # - +_only_local+ to run the search only on shards on the local node. - # - +_local+ to, if possible, run the search on shards on the local node, or if not, select shards using the default method. - # - +_only_nodes:,+ to run the search on only the specified nodes IDs. If suitable shards exist on more than one selected node, use shards on those nodes using the default method. If none of the specified nodes are available, select shards from any available node using the default method. - # - +_prefer_nodes:,+ to if possible, run the search on the specified nodes IDs. If not, select shards using the default method. - # - +_shards:,+ to run the search only on the specified shards. You can combine this value with other +preference+ values. However, the +_shards+ value must come first. For example: +_shards:2,3|_local+. - # - ++ (any string that does not start with +_+) to route searches with the same ++ to the same shards in the same order. + # - `_only_local` to run the search only on shards on the local node. + # - `_local` to, if possible, run the search on shards on the local node, or if not, select shards using the default method. + # - `_only_nodes:,` to run the search on only the specified nodes IDs. If suitable shards exist on more than one selected node, use shards on those nodes using the default method. If none of the specified nodes are available, select shards from any available node using the default method. + # - `_prefer_nodes:,` to if possible, run the search on the specified nodes IDs. If not, select shards using the default method. + # - `_shards:,` to run the search only on the specified shards. You can combine this value with other `preference` values. However, the `_shards` value must come first. For example: `_shards:2,3|_local`. + # - `` (any string that does not start with `_`) to route searches with the same `` to the same shards in the same order. # @option arguments [Integer] :pre_filter_shard_size A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. # This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method (if date filters are mandatory to match but the shard bounds and the query are disjoint). # When unspecified, the pre-filter phase is executed if any of these conditions is met: # - The request targets more than 128 shards. # - The request targets one or more read-only index. # - The primary sort of the query targets an indexed field. - # @option arguments [Boolean] :request_cache If +true+, the caching of search results is enabled for requests where +size+ is +0+. + # @option arguments [Boolean] :request_cache If `true`, the caching of search results is enabled for requests where `size` is `0`. # It defaults to index level settings. # @option arguments [String] :routing A custom value that is used to route operations to a specific shard. # @option arguments [Time] :scroll The period to retain the search context for scrolling. - # By default, this value cannot exceed +1d+ (24 hours). - # You can change this limit by using the +search.max_keep_alive+ cluster-level setting. + # By default, this value cannot exceed `1d` (24 hours). + # You can change this limit by using the `search.max_keep_alive` cluster-level setting. # @option arguments [String] :search_type Indicates how distributed term frequencies are calculated for relevance scoring. - # @option arguments [Array] :stats Specific +tag+ of the request for logging and statistical purposes. + # @option arguments [Array] :stats Specific `tag` of the request for logging and statistical purposes. # @option arguments [String, Array] :stored_fields A comma-separated list of stored fields to return as part of a hit. # If no fields are specified, no stored fields are included in the response. - # If this field is specified, the +_source+ parameter defaults to +false+. - # You can pass +_source: true+ to return both source fields and stored fields in the search response. + # If this field is specified, the `_source` parameter defaults to `false`. + # You can pass `_source: true` to return both source fields and stored fields in the search response. # @option arguments [String] :suggest_field The field to use for suggestions. # @option arguments [String] :suggest_mode The suggest mode. - # This parameter can be used only when the +suggest_field+ and +suggest_text+ query string parameters are specified. Server default: missing. + # This parameter can be used only when the `suggest_field` and `suggest_text` query string parameters are specified. Server default: missing. # @option arguments [Integer] :suggest_size The number of suggestions to return. - # This parameter can be used only when the +suggest_field+ and +suggest_text+ query string parameters are specified. + # This parameter can be used only when the `suggest_field` and `suggest_text` query string parameters are specified. # @option arguments [String] :suggest_text The source text for which the suggestions should be returned. - # This parameter can be used only when the +suggest_field+ and +suggest_text+ query string parameters are specified. + # This parameter can be used only when the `suggest_field` and `suggest_text` query string parameters are specified. # @option arguments [Integer] :terminate_after The maximum number of documents to collect for each shard. # If a query reaches this limit, Elasticsearch terminates the query early. # Elasticsearch collects documents before sorting.IMPORTANT: Use with caution. # Elasticsearch applies this parameter to each shard handling the request. # When possible, let Elasticsearch perform early termination automatically. # Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. - # If set to +0+ (default), the query does not terminate early. Server default: 0. + # If set to `0` (default), the query does not terminate early. Server default: 0. # @option arguments [Time] :timeout The period of time to wait for a response from each shard. # If no response is received before the timeout expires, the request fails and returns an error. # It defaults to no timeout. # @option arguments [Boolean, Integer] :track_total_hits The number of hits matching the query to count accurately. - # If +true+, the exact number of hits is returned at the cost of some performance. - # If +false+, the response does not include the total number of hits matching the query. Server default: 10000. - # @option arguments [Boolean] :track_scores If +true+, the request calculates and returns document scores, even if the scores are not used for sorting. - # @option arguments [Boolean] :typed_keys If +true+, aggregation and suggester names are be prefixed by their respective types in the response. - # @option arguments [Boolean] :rest_total_hits_as_int Indicates whether +hits.total+ should be rendered as an integer or an object in the rest search response. - # @option arguments [Boolean] :version If +true+, the request returns the document version as part of a hit. + # If `true`, the exact number of hits is returned at the cost of some performance. + # If `false`, the response does not include the total number of hits matching the query. Server default: 10000. + # @option arguments [Boolean] :track_scores If `true`, the request calculates and returns document scores, even if the scores are not used for sorting. + # @option arguments [Boolean] :typed_keys If `true`, aggregation and suggester names are be prefixed by their respective types in the response. + # @option arguments [Boolean] :rest_total_hits_as_int Indicates whether `hits.total` should be rendered as an integer or an object in the rest search response. + # @option arguments [Boolean] :version If `true`, the request returns the document version as part of a hit. # @option arguments [Boolean, String, Array] :_source The source fields that are returned for matching documents. - # These fields are returned in the +hits._source+ property of the search response. + # These fields are returned in the `hits._source` property of the search response. # Valid values are: - # - +true+ to return the entire document source. - # - +false+ to not return the document source. - # - ++ to return the source fields that are specified as a comma-separated list that supports wildcard (+*+) patterns. Server default: true. + # - `true` to return the entire document source. + # - `false` to not return the document source. + # - `` to return the source fields that are specified as a comma-separated list that supports wildcard (`*`) patterns. Server default: true. # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude from the response. - # You can also use this parameter to exclude fields from the subset specified in +_source_includes+ query parameter. - # If the +_source+ parameter is +false+, this parameter is ignored. + # You can also use this parameter to exclude fields from the subset specified in `_source_includes` query parameter. + # If the `_source` parameter is `false`, this parameter is ignored. # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. # If this parameter is specified, only these source fields are returned. - # You can exclude fields from this subset using the +_source_excludes+ query parameter. - # If the +_source+ parameter is +false+, this parameter is ignored. - # @option arguments [Boolean] :seq_no_primary_term If +true+, the request returns the sequence number and primary term of the last modification of each hit. + # You can exclude fields from this subset using the `_source_excludes` query parameter. + # If the `_source` parameter is `false`, this parameter is ignored. + # @option arguments [Boolean] :seq_no_primary_term If `true`, the request returns the sequence number and primary term of the last modification of each hit. # @option arguments [String] :q A query in the Lucene query string syntax. # Query parameter searches do not support the full Elasticsearch Query DSL but are handy for testing.IMPORTANT: This parameter overrides the query parameter in the request body. # If both parameters are specified, documents matching the query request body parameter are not returned. # @option arguments [Integer] :size The number of hits to return. - # By default, you cannot page through more than 10,000 hits using the +from+ and +size+ parameters. - # To page through more hits, use the +search_after+ parameter. Server default: 10. + # By default, you cannot page through more than 10,000 hits using the `from` and `size` parameters. + # To page through more hits, use the `search_after` parameter. Server default: 10. # @option arguments [Integer] :from The starting document offset, which must be non-negative. - # By default, you cannot page through more than 10,000 hits using the +from+ and +size+ parameters. - # To page through more hits, use the +search_after+ parameter. Server default: 0. - # @option arguments [String] :sort A comma-separated list of +:+ pairs. + # By default, you cannot page through more than 10,000 hits using the `from` and `size` parameters. + # To page through more hits, use the `search_after` parameter. Server default: 0. + # @option arguments [String] :sort A comma-separated list of `:` pairs. # @option arguments [Boolean] :force_synthetic_source Should this request force synthetic _source? # Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. # Fetches with this enabled will be slower the enabling synthetic source natively in the index. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb index badf81fb53..18cb1a4939 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb @@ -30,6 +30,17 @@ module Actions # SLA of official GA features. # # @option arguments [String] :name The name of the search application to delete. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-delete @@ -53,7 +64,7 @@ def delete(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_application/search_application/#{Utils.listify(_name)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb index 5e836b5994..7b4d3fb755 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb @@ -30,6 +30,17 @@ module Actions # support SLA of official GA features. # # @option arguments [String] :name The name of the analytics collection to be deleted (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-delete-behavioral-analytics @@ -53,7 +64,7 @@ def delete_behavioral_analytics(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_application/analytics/#{Utils.listify(_name)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb index 99cd0b43e0..0e34467c3b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb @@ -29,6 +29,17 @@ module Actions # SLA of official GA features. # # @option arguments [String] :name The name of the search application (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-get @@ -52,7 +63,7 @@ def get(arguments = {}) method = Elasticsearch::API::HTTP_GET path = "_application/search_application/#{Utils.listify(_name)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb index 83ca8e13a5..44cc4493f5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb @@ -29,6 +29,17 @@ module Actions # support SLA of official GA features. # # @option arguments [Array] :name A list of analytics collections to limit the returned information + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-get-behavioral-analytics @@ -54,7 +65,7 @@ def get_behavioral_analytics(arguments = {}) else '_application/analytics' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb index 39606f89c3..0b8c651a28 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb @@ -32,6 +32,17 @@ module Actions # @option arguments [String] :q Query in the Lucene query string syntax. # @option arguments [Integer] :from Starting offset. Server default: 0. # @option arguments [Integer] :size Specifies a max number of results to get. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-get-behavioral-analytics diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb index 765ad75480..5c5ff012fa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb @@ -31,6 +31,17 @@ module Actions # @option arguments [String] :collection_name The name of the behavioral analytics collection. (*Required*) # @option arguments [String] :event_type The analytics event type. (*Required*) # @option arguments [Boolean] :debug Whether the response type has to include more details + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body payload # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb index 53a03928a0..0512b9afd5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb @@ -29,7 +29,18 @@ module Actions # SLA of official GA features. # # @option arguments [String] :name The name of the search application to be created or updated. (*Required*) - # @option arguments [Boolean] :create If +true+, this request cannot replace or update existing Search Applications. + # @option arguments [Boolean] :create If `true`, this request cannot replace or update existing Search Applications. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body search_application # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb index 1d9a035112..5c80387fd8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb @@ -29,6 +29,17 @@ module Actions # support SLA of official GA features. # # @option arguments [String] :name The name of the analytics collection to be created or updated. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-application-put-behavioral-analytics @@ -52,7 +63,7 @@ def put_behavioral_analytics(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_application/analytics/#{Utils.listify(_name)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb index b045759f35..dfd543c93a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb @@ -24,15 +24,26 @@ module SearchApplication module Actions # Render a search application query. # Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. - # If a parameter used in the search template is not specified in +params+, the parameter's default value will be used. + # If a parameter used in the search template is not specified in `params`, the parameter's default value will be used. # The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API. - # You must have +read+ privileges on the backing alias of the search application. + # You must have `read` privileges on the backing alias of the search application. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # # @option arguments [String] :name The name of the search application to render teh query for. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -57,7 +68,7 @@ def render_query(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "_application/search_application/#{Utils.listify(_name)}/_render_query" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb index 52ba099d2a..12a03a9079 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb @@ -32,6 +32,17 @@ module Actions # # @option arguments [String] :name The name of the search application to be searched. (*Required*) # @option arguments [Boolean] :typed_keys Determines whether aggregation names are prefixed by their respective types in the response. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb index f2bc8f7373..80b0101a57 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb @@ -26,12 +26,13 @@ module Actions # Before using this API, you should be familiar with the Mapbox vector tile specification. # The API returns results as a binary mapbox vector tile. # Internally, Elasticsearch translates a vector tile search API request into a search containing: - # * A +geo_bounding_box+ query on the ++. The query uses the +//+ tile as a bounding box. - # * A +geotile_grid+ or +geohex_grid+ aggregation on the ++. The +grid_agg+ parameter determines the aggregation type. The aggregation uses the +//+ tile as a bounding box. - # * Optionally, a +geo_bounds+ aggregation on the ++. The search only includes this aggregation if the +exact_bounds+ parameter is +true+. - # * If the optional parameter +with_labels+ is +true+, the internal search will include a dynamic runtime field that calls the +getLabelPosition+ function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. - # For example, Elasticsearch may translate a vector tile search API request with a +grid_agg+ argument of +geotile+ and an +exact_bounds+ argument of +true+ into the following search - # + + # * A `geo_bounding_box` query on the ``. The query uses the `//` tile as a bounding box. + # * A `geotile_grid` or `geohex_grid` aggregation on the ``. The `grid_agg` parameter determines the aggregation type. The aggregation uses the `//` tile as a bounding box. + # * Optionally, a `geo_bounds` aggregation on the ``. The search only includes this aggregation if the `exact_bounds` parameter is `true`. + # * If the optional parameter `with_labels` is `true`, the internal search will include a dynamic runtime field that calls the `getLabelPosition` function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. + # For example, Elasticsearch may translate a vector tile search API request with a `grid_agg` argument of `geotile` and an `exact_bounds` argument of `true` into the following search + # + # ``` # GET my-index/_search # { # "size": 10000, @@ -75,14 +76,15 @@ module Actions # } # } # } - # + + # ``` + # # The API returns results as a binary Mapbox vector tile. # Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: - # * A +hits+ layer containing a feature for each ++ value matching the +geo_bounding_box+ query. - # * An +aggs+ layer containing a feature for each cell of the +geotile_grid+ or +geohex_grid+. The layer only contains features for cells with matching data. + # * A `hits` layer containing a feature for each `` value matching the `geo_bounding_box` query. + # * An `aggs` layer containing a feature for each cell of the `geotile_grid` or `geohex_grid`. The layer only contains features for cells with matching data. # * A meta layer containing: # * A feature containing a bounding box. By default, this is the bounding box of the tile. - # * Value ranges for any sub-aggregations on the +geotile_grid+ or +geohex_grid+. + # * Value ranges for any sub-aggregations on the `geotile_grid` or `geohex_grid`. # * Metadata for the search. # The API only returns features that can display at its zoom level. # For example, if a polygon feature has no area at its zoom level, the API omits it. @@ -90,20 +92,20 @@ module Actions # IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. # If you specify both parameters, the query parameter takes precedence. # **Grid precision for geotile** - # For a +grid_agg+ of +geotile+, you can use cells in the +aggs+ layer as tiles for lower zoom levels. - # +grid_precision+ represents the additional zoom levels available through these cells. The final precision is computed by as follows: + + grid_precision+. - # For example, if ++ is 7 and +grid_precision+ is 8, then the +geotile_grid+ aggregation will use a precision of 15. + # For a `grid_agg` of `geotile`, you can use cells in the `aggs` layer as tiles for lower zoom levels. + # `grid_precision` represents the additional zoom levels available through these cells. The final precision is computed by as follows: ` + grid_precision`. + # For example, if `` is 7 and `grid_precision` is 8, then the `geotile_grid` aggregation will use a precision of 15. # The maximum final precision is 29. - # The +grid_precision+ also determines the number of cells for the grid as follows: +(2^grid_precision) x (2^grid_precision)+. + # The `grid_precision` also determines the number of cells for the grid as follows: `(2^grid_precision) x (2^grid_precision)`. # For example, a value of 8 divides the tile into a grid of 256 x 256 cells. - # The +aggs+ layer only contains features for cells with matching data. + # The `aggs` layer only contains features for cells with matching data. # **Grid precision for geohex** - # For a +grid_agg+ of +geohex+, Elasticsearch uses ++ and +grid_precision+ to calculate a final precision as follows: + + grid_precision+. - # This precision determines the H3 resolution of the hexagonal cells produced by the +geohex+ aggregation. + # For a `grid_agg` of `geohex`, Elasticsearch uses `` and `grid_precision` to calculate a final precision as follows: ` + grid_precision`. + # This precision determines the H3 resolution of the hexagonal cells produced by the `geohex` aggregation. # The following table maps the H3 resolution for each precision. - # For example, if ++ is 3 and +grid_precision+ is 3, the precision is 6. + # For example, if `` is 3 and `grid_precision` is 3, the precision is 6. # At a precision of 6, hexagonal cells have an H3 resolution of 2. - # If ++ is 3 and +grid_precision+ is 4, the precision is 7. + # If `` is 3 and `grid_precision` is 4, the precision is 7. # At a precision of 7, hexagonal cells have an H3 resolution of 3. # | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | # | --------- | ---------------- | ------------- | ----------------| ----- | @@ -146,13 +148,13 @@ module Actions # @option arguments [Integer] :zoom Zoom level for the vector tile to search (*Required*) # @option arguments [Integer] :x X coordinate for the vector tile to search (*Required*) # @option arguments [Integer] :y Y coordinate for the vector tile to search (*Required*) - # @option arguments [Boolean] :exact_bounds If +false+, the meta layer's feature is the bounding box of the tile. + # @option arguments [Boolean] :exact_bounds If `false`, the meta layer's feature is the bounding box of the tile. # If true, the meta layer's feature is a bounding box resulting from a # geo_bounds aggregation. The aggregation runs on values that intersect # the // tile with wrap_longitude set to false. The resulting # bounding box may be larger than the vector tile. # @option arguments [Integer] :extent The size, in pixels, of a side of the tile. Vector tiles are square with equal sides. Server default: 4096. - # @option arguments [String] :grid_agg Aggregation used to create a grid for +field+. + # @option arguments [String] :grid_agg Aggregation used to create a grid for `field`. # @option arguments [Integer] :grid_precision Additional zoom levels available through the aggs layer. For example, if is 7 # and grid_precision is 8, you can zoom in up to level 15. Accepts 0-8. If 0, results # don't include the aggs layer. Server default: 8. @@ -162,14 +164,25 @@ module Actions # of the cell. Server default: grid. # @option arguments [Integer] :size Maximum number of features to return in the hits layer. Accepts 0-10000. # If 0, results don't include the hits layer. Server default: 10000. - # @option arguments [Boolean] :with_labels If +true+, the hits and aggs layers will contain additional point features representing + # @option arguments [Boolean] :with_labels If `true`, the hits and aggs layers will contain additional point features representing # suggested label positions for the original features. - # - +Point+ and +MultiPoint+ features will have one of the points selected. - # - +Polygon+ and +MultiPolygon+ features will have a single point generated, either the centroid, if it is within the polygon, or another point within the polygon selected from the sorted triangle-tree. - # - +LineString+ features will likewise provide a roughly central point selected from the triangle-tree. + # - `Point` and `MultiPoint` features will have one of the points selected. + # - `Polygon` and `MultiPolygon` features will have a single point generated, either the centroid, if it is within the polygon, or another point within the polygon selected from the sorted triangle-tree. + # - `LineString` features will likewise provide a roughly central point selected from the triangle-tree. # - The aggregation results will provide one central point for each aggregation bucket. # All attributes from the original features will also be copied to the new label features. - # In addition, the new features will be distinguishable using the tag +_mvt_label_position+. + # In addition, the new features will be distinguishable using the tag `_mvt_label_position`. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb index f3a8eb39f4..f5c77389f2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb @@ -24,27 +24,38 @@ module Actions # Get the search shards. # Get the indices and shards that a search request would be run against. # This information can be useful for working out issues or planning optimizations with routing and shard preferences. - # When filtered aliases are used, the filter is returned as part of the +indices+ section. - # If the Elasticsearch security features are enabled, you must have the +view_index_metadata+ or +manage+ index privilege for the target data stream, index, or alias. + # When filtered aliases are used, the filter is returned as part of the `indices` section. + # If the Elasticsearch security features are enabled, you must have the `view_index_metadata` or `manage` index privilege for the target data stream, index, or alias. # # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to search. - # It supports wildcards (+*+). - # To search all data streams and indices, omit this parameter or use +*+ or +_all+. - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # It supports wildcards (`*`). + # To search all data streams and indices, omit this parameter or use `*` or `_all`. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. - # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. + # For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. - # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :local If `true`, the request retrieves information from the local node only. # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # IT can also be set to +-1+ to indicate that the request should never timeout. Server default: 30s. + # IT can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. # @option arguments [String] :preference The node or shard the operation should be performed on. # It is random by default. # @option arguments [String] :routing A custom value used to route operations to a specific shard. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-search-shards diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb index cc599e85e6..cfb8231c65 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb @@ -24,28 +24,39 @@ module Actions # Run a search with a search template. # # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to search. - # It supports wildcards (+*+). - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # It supports wildcards (`*`). + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. - # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. - # @option arguments [Boolean] :ccs_minimize_roundtrips If +true+, network round-trips are minimized for cross-cluster search requests. + # For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. Server default: true. + # @option arguments [Boolean] :ccs_minimize_roundtrips If `true`, network round-trips are minimized for cross-cluster search requests. # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. - # @option arguments [Boolean] :explain If +true+, the response includes additional details about score computation as part of a hit. - # @option arguments [Boolean] :ignore_throttled If +true+, specified concrete, expanded, or aliased indices are not included in the response when throttled. Server default: true. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. + # Supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. + # @option arguments [Boolean] :explain If `true`, the response includes additional details about score computation as part of a hit. + # @option arguments [Boolean] :ignore_throttled If `true`, specified concrete, expanded, or aliased indices are not included in the response when throttled. Server default: true. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [String] :preference The node or shard the operation should be performed on. # It is random by default. - # @option arguments [Boolean] :profile If +true+, the query execution is profiled. + # @option arguments [Boolean] :profile If `true`, the query execution is profiled. # @option arguments [String] :routing A custom value used to route operations to a specific shard. # @option arguments [Time] :scroll Specifies how long a consistent view of the index # should be maintained for scrolled search. # @option arguments [String] :search_type The type of the search operation. - # @option arguments [Boolean] :rest_total_hits_as_int If +true+, +hits.total+ is rendered as an integer in the response. - # If +false+, it is rendered as an object. - # @option arguments [Boolean] :typed_keys If +true+, the response prefixes aggregation and suggester names with their respective types. + # @option arguments [Boolean] :rest_total_hits_as_int If `true`, `hits.total` is rendered as an integer in the response. + # If `false`, it is rendered as an object. + # @option arguments [Boolean] :typed_keys If `true`, the response prefixes aggregation and suggester names with their respective types. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb index b6c8cd8e11..e512f70c1c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb @@ -31,6 +31,17 @@ module Actions # # @option arguments [String, Array] :node_id The names of the nodes in the cluster to target. # @option arguments [Time] :master_timeout [TODO] + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-searchable-snapshots-cache-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb index f96ac8810f..af3b9b958e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb @@ -30,10 +30,21 @@ module Actions # support SLA of official GA features. # # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to clear from the cache. - # It supports wildcards (+*+). + # It supports wildcards (`*`). # @option arguments [String, Array] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. - # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes +_all+ string or when no indices have been specified) + # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-searchable-snapshots-clear-cache diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb index f60838f40d..4c4cb7b7ad 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb @@ -31,9 +31,20 @@ module Actions # @option arguments [String] :snapshot The name of the snapshot of the index to mount. (*Required*) # @option arguments [Time] :master_timeout The period to wait for the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Boolean] :wait_for_completion If true, the request blocks until the operation is complete. # @option arguments [String] :storage The mount option for the searchable snapshot index. Server default: full_copy. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb index 1b7c8c6730..1d5cf1d741 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb @@ -26,6 +26,17 @@ module Actions # # @option arguments [String, Array] :index A comma-separated list of data streams and indices to retrieve statistics for. # @option arguments [String] :level Return stats aggregated at cluster, index or shard level + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-searchable-snapshots-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb index ef73a3f119..37956bce27 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb @@ -26,13 +26,24 @@ module Actions # Create or update a user profile on behalf of another user. # NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. # Individual users and external applications should not call this API directly. - # The calling application must have either an +access_token+ or a combination of +username+ and +password+ for the user that the profile document is intended for. + # The calling application must have either an `access_token` or a combination of `username` and `password` for the user that the profile document is intended for. # Elastic reserves the right to change or remove this feature in future releases without prior notice. - # This API creates or updates a profile document for end users with information that is extracted from the user's authentication object including +username+, +full_name,+ +roles+, and the authentication realm. - # For example, in the JWT +access_token+ case, the profile user's +username+ is extracted from the JWT token claim pointed to by the +claims.principal+ setting of the JWT realm that authenticated the token. + # This API creates or updates a profile document for end users with information that is extracted from the user's authentication object including `username`, `full_name,` `roles`, and the authentication realm. + # For example, in the JWT `access_token` case, the profile user's `username` is extracted from the JWT token claim pointed to by the `claims.principal` setting of the JWT realm that authenticated the token. # When updating a profile document, the API enables the document if it was disabled. - # Any updates do not change existing content for either the +labels+ or +data+ fields. + # Any updates do not change existing content for either the `labels` or `data` fields. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -50,7 +61,7 @@ def activate_user_profile(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_security/profile/_activate' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb index c34455af24..2ed859157f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb @@ -28,6 +28,17 @@ module Actions # A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. # If the user cannot be authenticated, this API returns a 401 status code. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-authenticate @@ -42,7 +53,7 @@ def authenticate(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_security/_authenticate' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb index a5f3fd771b..45d8bbbffe 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb @@ -26,7 +26,18 @@ module Actions # The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. # The bulk delete roles API cannot delete roles that are defined in roles files. # - # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. + # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb index 433c8e40f9..2e20c2b337 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb @@ -26,7 +26,18 @@ module Actions # The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. # The bulk create or update roles API cannot update roles that are defined in roles files. # - # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. + # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb index e6ed1ed32a..98e3260304 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb @@ -28,11 +28,22 @@ module Actions # This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. # It is not possible to update expired or invalidated API keys. # This API supports updates to API key access scope, metadata and expiration. - # The access scope of each API key is derived from the +role_descriptors+ you specify in the request and a snapshot of the owner user's permissions at the time of the request. + # The access scope of each API key is derived from the `role_descriptors` you specify in the request and a snapshot of the owner user's permissions at the time of the request. # The snapshot of the owner's permissions is updated automatically on every call. - # IMPORTANT: If you don't specify +role_descriptors+ in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. + # IMPORTANT: If you don't specify `role_descriptors` in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. # A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -50,7 +61,7 @@ def bulk_update_api_keys(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_security/api_key/_bulk_update' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb index c8ccc63c61..14fb68ce8d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb @@ -27,7 +27,18 @@ module Actions # # @option arguments [String] :username The user whose password you want to change. If you do not specify this # parameter, the password is changed for the current user. - # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. + # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb index 531631e2e1..ba19b8e66c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb @@ -27,8 +27,19 @@ module Actions # The cache is also automatically cleared on state changes of the security index. # # @option arguments [String, Array] :ids Comma-separated list of API key IDs to evict from the API key cache. - # To evict all API keys, use +*+. + # To evict all API keys, use `*`. # Does not support other wildcard patterns. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-clear-api-key-cache @@ -52,7 +63,7 @@ def clear_api_key_cache(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "_security/api_key/#{Utils.listify(_ids)}/_clear_cache" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb index 96514f8500..aa08b80269 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb @@ -27,8 +27,19 @@ module Actions # The cache is also automatically cleared for applications that have their privileges updated. # # @option arguments [String] :application A comma-separated list of applications. - # To clear all applications, use an asterism (+*+). + # To clear all applications, use an asterism (`*`). # It does not support other wildcard patterns. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-clear-cached-privileges @@ -52,7 +63,7 @@ def clear_cached_privileges(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "_security/privilege/#{Utils.listify(_application)}/_clear_cache" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb index 52d8f7faa2..6265fb2ccb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb @@ -30,10 +30,21 @@ module Actions # For more information, refer to the documentation about controlling the user cache. # # @option arguments [String, Array] :realms A comma-separated list of realms. - # To clear all realms, use an asterisk (+*+). + # To clear all realms, use an asterisk (`*`). # It does not support other wildcard patterns. (*Required*) # @option arguments [Array] :usernames A comma-separated list of the users to clear from the cache. # If you do not specify this parameter, the API evicts all users from the user cache. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-clear-cached-realms diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb index 680fd86e7f..f4f291d61c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb @@ -26,8 +26,19 @@ module Actions # Evict roles from the native role cache. # # @option arguments [String, Array] :name A comma-separated list of roles to evict from the role cache. - # To evict all roles, use an asterisk (+*+). + # To evict all roles, use an asterisk (`*`). # It does not support other wildcard patterns. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-clear-cached-roles @@ -51,7 +62,7 @@ def clear_cached_roles(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "_security/role/#{Utils.listify(_name)}/_clear_cache" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb index 1a404e26bb..d1c3176530 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb @@ -24,16 +24,27 @@ module Security module Actions # Clear service account token caches. # Evict a subset of all entries from the service account token caches. - # Two separate caches exist for service account tokens: one cache for tokens backed by the +service_tokens+ file, and another for tokens backed by the +.security+ index. + # Two separate caches exist for service account tokens: one cache for tokens backed by the `service_tokens` file, and another for tokens backed by the `.security` index. # This API clears matching entries from both caches. - # The cache for service account tokens backed by the +.security+ index is cleared automatically on state changes of the security index. - # The cache for tokens backed by the +service_tokens+ file is cleared automatically on file changes. + # The cache for service account tokens backed by the `.security` index is cleared automatically on state changes of the security index. + # The cache for tokens backed by the `service_tokens` file is cleared automatically on file changes. # # @option arguments [String] :namespace The namespace, which is a top-level grouping of service accounts. (*Required*) # @option arguments [String] :service The name of the service, which must be unique within its namespace. (*Required*) # @option arguments [String, Array] :name A comma-separated list of token names to evict from the service account token caches. - # Use a wildcard (+*+) to evict all tokens that belong to a service account. + # Use a wildcard (`*`) to evict all tokens that belong to a service account. # It does not support other wildcard patterns. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-clear-cached-service-tokens @@ -63,7 +74,7 @@ def clear_cached_service_tokens(arguments = {}) method = Elasticsearch::API::HTTP_POST path = "_security/service/#{Utils.listify(_namespace)}/#{Utils.listify(_service)}/credential/token/#{Utils.listify(_name)}/_clear_cache" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb index a8c2305dde..66ea5fe323 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb @@ -32,7 +32,18 @@ module Actions # The API keys are created by the Elasticsearch API key service, which is automatically enabled. # To configure or turn off the API key service, refer to API key service setting documentation. # - # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. + # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb index 8fd05dde1b..fe3caa4694 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb @@ -23,16 +23,27 @@ module API module Security module Actions # Create a cross-cluster API key. - # Create an API key of the +cross_cluster+ type for the API key based remote cluster access. - # A +cross_cluster+ API key cannot be used to authenticate through the REST interface. + # Create an API key of the `cross_cluster` type for the API key based remote cluster access. + # A `cross_cluster` API key cannot be used to authenticate through the REST interface. # IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. # Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. - # NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the +access+ property. + # NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the `access` property. # A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. # By default, API keys never expire. You can specify expiration information when you create the API keys. # Cross-cluster API keys can only be updated with the update cross-cluster API key API. # Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -50,7 +61,7 @@ def create_cross_cluster_api_key(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_security/cross_cluster/api_key' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb index 584dbc17d3..85dab1e0e9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb @@ -31,9 +31,20 @@ module Actions # @option arguments [String] :service The name of the service. (*Required*) # @option arguments [String] :name The name for the service account token. # If omitted, a random name will be generated.Token names must be at least one and no more than 256 characters. - # They can contain alphanumeric characters (a-z, A-Z, 0-9), dashes (+-+), and underscores (+_+), but cannot begin with an underscore.NOTE: Token names must be unique in the context of the associated service account. - # They must also be globally unique with their fully qualified names, which are comprised of the service account principal and token name, such as +//+. - # @option arguments [String] :refresh If +true+ then refresh the affected shards to make this operation visible to search, if +wait_for+ (the default) then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. + # They can contain alphanumeric characters (a-z, A-Z, 0-9), dashes (`-`), and underscores (`_`), but cannot begin with an underscore.NOTE: Token names must be unique in the context of the associated service account. + # They must also be globally unique with their fully qualified names, which are comprised of the service account principal and token name, such as `//`. + # @option arguments [String] :refresh If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-create-service-token diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb index 0c483f6146..6fb7c08798 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb @@ -24,13 +24,24 @@ module Security module Actions # Delegate PKI authentication. # This API implements the exchange of an X509Certificate chain for an Elasticsearch access token. - # The certificate chain is validated, according to RFC 5280, by sequentially considering the trust configuration of every installed PKI realm that has +delegation.enabled+ set to +true+. - # A successfully trusted client certificate is also subject to the validation of the subject distinguished name according to thw +username_pattern+ of the respective realm. + # The certificate chain is validated, according to RFC 5280, by sequentially considering the trust configuration of every installed PKI realm that has `delegation.enabled` set to `true`. + # A successfully trusted client certificate is also subject to the validation of the subject distinguished name according to thw `username_pattern` of the respective realm. # This API is called by smart and trusted proxies, such as Kibana, which terminate the user's TLS session but still want to authenticate the user by using a PKI realm—-​as if the user connected directly to Elasticsearch. # IMPORTANT: The association between the subject public key in the target certificate and the corresponding private key is not validated. # This is part of the TLS authentication process and it is delegated to the proxy that calls this API. # The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -48,7 +59,7 @@ def delegate_pki(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_security/delegate_pki' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb index 4aa4a6ad03..929a55fdb8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb @@ -24,13 +24,24 @@ module Security module Actions # Delete application privileges. # To use this API, you must have one of the following privileges: - # * The +manage_security+ cluster privilege (or a greater privilege such as +all+). + # * The `manage_security` cluster privilege (or a greater privilege such as `all`). # * The "Manage Application Privileges" global privilege for the application being referenced in the request. # # @option arguments [String] :application The name of the application. # Application privileges are always associated with exactly one application. (*Required*) # @option arguments [String, Array] :name The name of the privilege. (*Required*) - # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. + # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delete-privileges diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb index 57a38c0207..22e39efc3f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb @@ -28,7 +28,18 @@ module Actions # The delete roles API cannot remove roles that are defined in roles files. # # @option arguments [String] :name The name of the role. (*Required*) - # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. + # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delete-role diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb index 7b4ba25d56..9aef2aa44b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb @@ -29,7 +29,18 @@ module Actions # # @option arguments [String] :name The distinct name that identifies the role mapping. # The name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way. (*Required*) - # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. + # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delete-role-mapping diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb index 8a724d18ba..7a5b5832ef 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb @@ -28,7 +28,18 @@ module Actions # @option arguments [String] :namespace The namespace, which is a top-level grouping of service accounts. (*Required*) # @option arguments [String] :service The service name. (*Required*) # @option arguments [String] :name The name of the service account token. (*Required*) - # @option arguments [String] :refresh If +true+ then refresh the affected shards to make this operation visible to search, if +wait_for+ (the default) then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. + # @option arguments [String] :refresh If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delete-service-token diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb index 956571cfb9..4f7cbf104e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb @@ -26,7 +26,18 @@ module Actions # Delete users from the native realm. # # @option arguments [String] :username An identifier for the user. (*Required*) - # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. + # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-delete-user diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb index 3a7946af59..3c0127c85a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb @@ -28,7 +28,18 @@ module Actions # You can use this API to revoke a user's access to Elasticsearch. # # @option arguments [String] :username An identifier for the user. (*Required*) - # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. + # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-disable-user diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb index 437e8392ad..16e49bf081 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb @@ -34,6 +34,17 @@ module Actions # @option arguments [String] :refresh If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search. # If 'wait_for', it waits for a refresh to make this operation visible to search. # If 'false', it does nothing with refreshes. Server default: false. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-disable-user-profile diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb index a696e91575..f865456e92 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb @@ -27,7 +27,18 @@ module Actions # By default, when you create users, they are enabled. # # @option arguments [String] :username An identifier for the user. (*Required*) - # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. + # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-enable-user diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb index 1b71e3d4f0..3220f86e51 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb @@ -35,6 +35,17 @@ module Actions # visible to search. # If 'wait_for', it waits for a refresh to make this operation visible to search. # If 'false', nothing is done with refreshes. Server default: false. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-enable-user-profile diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb index b706c091a3..d970c75513 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb @@ -27,6 +27,17 @@ module Actions # NOTE: This API is currently intended for internal use only by Kibana. # Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-enroll-kibana @@ -41,7 +52,7 @@ def enroll_kibana(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_security/enroll/kibana' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb index ca502606c1..7c1d116855 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb @@ -27,6 +27,17 @@ module Actions # The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. # The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-enroll-node @@ -41,7 +52,7 @@ def enroll_node(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_security/enroll/node' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb index 2163ecac5d..845f825b09 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb @@ -24,26 +24,37 @@ module Security module Actions # Get API key information. # Retrieves information for one or more API keys. - # NOTE: If you have only the +manage_own_api_key+ privilege, this API returns only the API keys that you own. - # If you have +read_security+, +manage_api_key+ or greater privileges (including +manage_security+), this API returns all API keys regardless of ownership. + # NOTE: If you have only the `manage_own_api_key` privilege, this API returns only the API keys that you own. + # If you have `read_security`, `manage_api_key` or greater privileges (including `manage_security`), this API returns all API keys regardless of ownership. # # @option arguments [String] :id An API key id. - # This parameter cannot be used with any of +name+, +realm_name+ or +username+. + # This parameter cannot be used with any of `name`, `realm_name` or `username`. # @option arguments [String] :name An API key name. - # This parameter cannot be used with any of +id+, +realm_name+ or +username+. + # This parameter cannot be used with any of `id`, `realm_name` or `username`. # It supports prefix search with wildcard. # @option arguments [Boolean] :owner A boolean flag that can be used to query API keys owned by the currently authenticated user. - # The +realm_name+ or +username+ parameters cannot be specified when this parameter is set to +true+ as they are assumed to be the currently authenticated ones. + # The `realm_name` or `username` parameters cannot be specified when this parameter is set to `true` as they are assumed to be the currently authenticated ones. # @option arguments [String] :realm_name The name of an authentication realm. - # This parameter cannot be used with either +id+ or +name+ or when +owner+ flag is set to +true+. + # This parameter cannot be used with either `id` or `name` or when `owner` flag is set to `true`. # @option arguments [String] :username The username of a user. - # This parameter cannot be used with either +id+ or +name+ or when +owner+ flag is set to +true+. + # This parameter cannot be used with either `id` or `name` or when `owner` flag is set to `true`. # @option arguments [Boolean] :with_limited_by Return the snapshot of the owner user's role descriptors # associated with the API key. An API key's actual # permission is the intersection of its assigned role # descriptors and the owner user's role descriptors. - # @option arguments [Boolean] :active_only A boolean flag that can be used to query API keys that are currently active. An API key is considered active if it is neither invalidated, nor expired at query time. You can specify this together with other parameters such as +owner+ or +name+. If +active_only+ is false, the response will include both active and inactive (expired or invalidated) keys. + # @option arguments [Boolean] :active_only A boolean flag that can be used to query API keys that are currently active. An API key is considered active if it is neither invalidated, nor expired at query time. You can specify this together with other parameters such as `owner` or `name`. If `active_only` is false, the response will include both active and inactive (expired or invalidated) keys. # @option arguments [Boolean] :with_profile_uid Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-api-key diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb index d3dbb18d8d..6b192a9b5a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb @@ -25,6 +25,17 @@ module Actions # Get builtin privileges. # Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-builtin-privileges @@ -39,7 +50,7 @@ def get_builtin_privileges(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_security/privilege/_builtin' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb index b2c0789482..254536ef9f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb @@ -24,7 +24,7 @@ module Security module Actions # Get application privileges. # To use this API, you must have one of the following privileges: - # * The +read_security+ cluster privilege (or a greater privilege such as +manage_security+ or +all+). + # * The `read_security` cluster privilege (or a greater privilege such as `manage_security` or `all`). # * The "Manage Application Privileges" global privilege for the application being referenced in the request. # # @option arguments [String] :application The name of the application. @@ -32,6 +32,17 @@ module Actions # If you do not specify this parameter, the API returns information about all privileges for all applications. # @option arguments [String, Array] :name The name of the privilege. # If you do not specify this parameter, the API returns information about all privileges for the requested application. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-privileges @@ -61,7 +72,7 @@ def get_privileges(arguments = {}) else '_security/privilege' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb index 9598f177d2..077d3b91d7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb @@ -30,6 +30,17 @@ module Actions # @option arguments [String, Array] :name The name of the role. # You can specify multiple roles as a comma-separated list. # If you do not specify this parameter, the API returns information about all roles. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-role diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb index 4976ea1e19..b6f896673f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb @@ -28,6 +28,17 @@ module Actions # The get role mappings API cannot retrieve role mappings that are defined in role mapping files. # # @option arguments [String, Array] :name The distinct name that identifies the role mapping. The name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way. You can specify multiple mapping names as a comma-separated list. If you do not specify this parameter, the API returns information about all role mappings. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-role-mapping @@ -53,7 +64,7 @@ def get_role_mapping(arguments = {}) else '_security/role_mapping' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb index 8dd67ac4c4..786ca9d1c4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb @@ -24,13 +24,24 @@ module Security module Actions # Get service accounts. # Get a list of service accounts that match the provided path parameters. - # NOTE: Currently, only the +elastic/fleet-server+ service account is available. + # NOTE: Currently, only the `elastic/fleet-server` service account is available. # # @option arguments [String] :namespace The name of the namespace. # Omit this parameter to retrieve information about all service accounts. - # If you omit this parameter, you must also omit the +service+ parameter. + # If you omit this parameter, you must also omit the `service` parameter. # @option arguments [String] :service The service name. - # Omit this parameter to retrieve information about all service accounts that belong to the specified +namespace+. + # Omit this parameter to retrieve information about all service accounts that belong to the specified `namespace`. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-service-accounts @@ -60,7 +71,7 @@ def get_service_accounts(arguments = {}) else '_security/service' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb index adfba22613..c8e7293900 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb @@ -23,13 +23,24 @@ module API module Security module Actions # Get service account credentials. - # To use this API, you must have at least the +read_security+ cluster privilege (or a greater privilege such as +manage_service_account+ or +manage_security+). + # To use this API, you must have at least the `read_security` cluster privilege (or a greater privilege such as `manage_service_account` or `manage_security`). # The response includes service account tokens that were created with the create service account tokens API as well as file-backed tokens from all nodes of the cluster. - # NOTE: For tokens backed by the +service_tokens+ file, the API collects them from all nodes of the cluster. + # NOTE: For tokens backed by the `service_tokens` file, the API collects them from all nodes of the cluster. # Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. # # @option arguments [String] :namespace The name of the namespace. (*Required*) # @option arguments [String] :service The service name. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-service-credentials @@ -56,7 +67,7 @@ def get_service_credentials(arguments = {}) method = Elasticsearch::API::HTTP_GET path = "_security/service/#{Utils.listify(_namespace)}/#{Utils.listify(_service)}/credential" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb index 4ae3cebb53..86fddf3042 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb @@ -23,14 +23,25 @@ module API module Security module Actions # Get security index settings. - # Get the user-configurable settings for the security internal index (+.security+ and associated indices). + # Get the user-configurable settings for the security internal index (`.security` and associated indices). # Only a subset of the index settings — those that are user-configurable—will be shown. # This includes: - # * +index.auto_expand_replicas+ - # * +index.number_of_replicas+ + # * `index.auto_expand_replicas` + # * `index.number_of_replicas` # # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-settings diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb index dcf31b3f45..c2c70f98ed 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb @@ -25,14 +25,25 @@ module Actions # Get a token. # Create a bearer token for access without requiring basic authentication. # The tokens are created by the Elasticsearch Token Service, which is automatically enabled when you configure TLS on the HTTP interface. - # Alternatively, you can explicitly enable the +xpack.security.authc.token.enabled+ setting. + # Alternatively, you can explicitly enable the `xpack.security.authc.token.enabled` setting. # When you are running in production mode, a bootstrap check prevents you from enabling the token service unless you also enable TLS on the HTTP interface. # The get token API takes the same parameters as a typical OAuth 2.0 token API except for the use of a JSON request body. # A successful get token API call returns a JSON structure that contains the access token, the amount of time (seconds) that the token expires in, the type, and the scope if available. # The tokens returned by the get token API have a finite period of time for which they are valid and after that time period, they can no longer be used. - # That time period is defined by the +xpack.security.authc.token.timeout+ setting. + # That time period is defined by the `xpack.security.authc.token.timeout` setting. # If you want to invalidate a token immediately, you can do so by using the invalidate token API. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -50,7 +61,7 @@ def get_token(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_security/oauth2/token' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb index 519cf98805..fe7cb9a531 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb @@ -27,6 +27,17 @@ module Actions # # @option arguments [Username] :username An identifier for the user. You can specify multiple usernames as a comma-separated list. If you omit this parameter, the API retrieves information about all users. # @option arguments [Boolean] :with_profile_uid Determines whether to retrieve the user profile UID, if it exists, for the users. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-user diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb index db3415af1c..024c381111 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb @@ -31,6 +31,17 @@ module Actions # @option arguments [String] :application The name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, the API returns information about all privileges for all applications. # @option arguments [String] :priviledge The name of the privilege. If you do not specify this parameter, the API returns information about all privileges for the requested application. # @option arguments [Name, Null] :username [TODO] + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-user-privileges diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb index 78ee9dfe95..c8e0fad628 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb @@ -29,10 +29,21 @@ module Actions # Elastic reserves the right to change or remove this feature in future releases without prior notice. # # @option arguments [Userprofileid] :uid A unique identifier for the user profile. (*Required*) - # @option arguments [String] :data A comma-separated list of filters for the +data+ field of the profile document. - # To return all content use +data=*+. - # To return a subset of content use +data=+ to retrieve content nested under the specified ++. - # By default returns no +data+ content. + # @option arguments [String] :data A comma-separated list of filters for the `data` field of the profile document. + # To return all content use `data=*`. + # To return a subset of content use `data=` to retrieve content nested under the specified ``. + # By default returns no `data` content. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-get-user-profile diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb index 5a8e27b10f..11fbaf5bed 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb @@ -39,6 +39,17 @@ module Actions # If applicable, it also returns expiration information for the API key in milliseconds. # By default, API keys never expire. You can specify expiration information when you create the API keys. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -56,7 +67,7 @@ def grant_api_key(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_security/api_key/grant' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb index 20fd245fa0..50399e647a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb @@ -28,6 +28,17 @@ module Actions # To check the privileges of other users, you must use the run as feature. # # @option arguments [String] :user Username + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -56,7 +67,7 @@ def has_privileges(arguments = {}) else '_security/user/_has_privileges' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb index e93945f32f..4b9aa4db7e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb @@ -27,6 +27,17 @@ module Actions # NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. # Elastic reserves the right to change or remove this feature in future releases without prior notice. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -44,7 +55,7 @@ def has_privileges_user_profile(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_security/profile/_has_privileges' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb index cf641b1e40..58161f7fbf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb @@ -25,15 +25,26 @@ module Actions # Invalidate API keys. # This API invalidates API keys created by the create API key or grant API key APIs. # Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. - # To use this API, you must have at least the +manage_security+, +manage_api_key+, or +manage_own_api_key+ cluster privileges. - # The +manage_security+ privilege allows deleting any API key, including both REST and cross cluster API keys. - # The +manage_api_key+ privilege allows deleting any REST API key, but not cross cluster API keys. - # The +manage_own_api_key+ only allows deleting REST API keys that are owned by the user. - # In addition, with the +manage_own_api_key+ privilege, an invalidation request must be issued in one of the three formats: - # - Set the parameter +owner=true+. - # - Or, set both +username+ and +realm_name+ to match the user's identity. - # - Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the +ids+ field. + # To use this API, you must have at least the `manage_security`, `manage_api_key`, or `manage_own_api_key` cluster privileges. + # The `manage_security` privilege allows deleting any API key, including both REST and cross cluster API keys. + # The `manage_api_key` privilege allows deleting any REST API key, but not cross cluster API keys. + # The `manage_own_api_key` only allows deleting REST API keys that are owned by the user. + # In addition, with the `manage_own_api_key` privilege, an invalidation request must be issued in one of the three formats: + # - Set the parameter `owner=true`. + # - Or, set both `username` and `realm_name` to match the user's identity. + # - Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the `ids` field. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -51,7 +62,7 @@ def invalidate_api_key(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = '_security/api_key' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb index d133fed460..4810bc07c2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb @@ -25,14 +25,25 @@ module Actions # Invalidate a token. # The access tokens returned by the get token API have a finite period of time for which they are valid. # After that time period, they can no longer be used. - # The time period is defined by the +xpack.security.authc.token.timeout+ setting. + # The time period is defined by the `xpack.security.authc.token.timeout` setting. # The refresh tokens returned by the get token API are only valid for 24 hours. # They can also be used exactly once. # If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. # NOTE: While all parameters are optional, at least one of them is required. - # More specifically, either one of +token+ or +refresh_token+ parameters is required. - # If none of these two are specified, then +realm_name+ and/or +username+ need to be specified. + # More specifically, either one of `token` or `refresh_token` parameters is required. + # If none of these two are specified, then `realm_name` and/or `username` need to be specified. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -50,7 +61,7 @@ def invalidate_token(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = '_security/oauth2/token' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb index fd5e0372cb..ebf6f9ccb7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb @@ -27,6 +27,17 @@ module Actions # Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. # These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -44,7 +55,7 @@ def oidc_authenticate(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_security/oidc/authenticate' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb index 6020564fd1..c9f928510d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb @@ -23,11 +23,22 @@ module API module Security module Actions # Logout of OpenID Connect. - # Invalidate an access token and a refresh token that were generated as a response to the +/_security/oidc/authenticate+ API. + # Invalidate an access token and a refresh token that were generated as a response to the `/_security/oidc/authenticate` API. # If the OpenID Connect authentication realm in Elasticsearch is accordingly configured, the response to this call will contain a URI pointing to the end session endpoint of the OpenID Connect Provider in order to perform single logout. # Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. # These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -45,7 +56,7 @@ def oidc_logout(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_security/oidc/logout' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb index 48b27f73fe..e498547f38 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb @@ -28,6 +28,17 @@ module Actions # Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. # These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -45,7 +56,7 @@ def oidc_prepare_authentication(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_security/oidc/prepare' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb index b3f16bb4ac..81bec87b4a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb @@ -24,19 +24,30 @@ module Security module Actions # Create or update application privileges. # To use this API, you must have one of the following privileges: - # * The +manage_security+ cluster privilege (or a greater privilege such as +all+). + # * The `manage_security` cluster privilege (or a greater privilege such as `all`). # * The "Manage Application Privileges" global privilege for the application being referenced in the request. # Application names are formed from a prefix, with an optional suffix that conform to the following rules: # * The prefix must begin with a lowercase ASCII letter. # * The prefix must contain only ASCII letters or digits. # * The prefix must be at least 3 characters long. - # * If the suffix exists, it must begin with either a dash +-+ or +_+. - # * The suffix cannot contain any of the following characters: +\+, +/+, +*+, +?+, +"+, +<+, +>+, +|+, +,+, +*+. + # * If the suffix exists, it must begin with either a dash `-` or `_`. + # * The suffix cannot contain any of the following characters: `\`, `/`, `*`, `?`, `"`, `<`, `>`, `|`, `,`, `*`. # * No part of the name can contain whitespace. - # Privilege names must begin with a lowercase ASCII letter and must contain only ASCII letters and digits along with the characters +_+, +-+, and +.+. - # Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: +/+, +*+, +:+. + # Privilege names must begin with a lowercase ASCII letter and must contain only ASCII letters and digits along with the characters `_`, `-`, and `.`. + # Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: `/`, `*`, `:`. # - # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. + # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body privileges # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb index f6b023b7ca..40ed13d292 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb @@ -28,7 +28,18 @@ module Actions # File-based role management is not available in Elastic Serverless. # # @option arguments [String] :name The name of the role that is being created or updated. On Elasticsearch Serverless, the role name must begin with a letter or digit and can only contain letters, digits and the characters '_', '-', and '.'. Each role must have a unique name, as this will serve as the identifier for that role. (*Required*) - # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. + # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb index b7be0f3982..e505beead3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb @@ -30,10 +30,10 @@ module Actions # Roles can be created by using the create or update roles API or roles files. # **Role templates** # The most common use for role mappings is to create a mapping from a known value on the user to a fixed role name. - # For example, all users in the +cn=admin,dc=example,dc=com+ LDAP group should be given the superuser role in Elasticsearch. - # The +roles+ field is used for this purpose. + # For example, all users in the `cn=admin,dc=example,dc=com` LDAP group should be given the superuser role in Elasticsearch. + # The `roles` field is used for this purpose. # For more complex needs, it is possible to use Mustache templates to dynamically determine the names of the roles that should be granted to the user. - # The +role_templates+ field is used for this purpose. + # The `role_templates` field is used for this purpose. # NOTE: To use role templates successfully, the relevant scripting feature must be enabled. # Otherwise, all attempts to create a role mapping with role templates fail. # All of the user fields that are available in the role mapping rules are also available in the role templates. @@ -43,7 +43,18 @@ module Actions # # @option arguments [String] :name The distinct name that identifies the role mapping. # The name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way. (*Required*) - # @option arguments [String] :refresh If +true+ (the default) then refresh the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ then do nothing with refreshes. + # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb index 39729fde7a..3be8350a6f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb @@ -30,8 +30,19 @@ module Actions # @option arguments [String] :username An identifier for the user.NOTE: Usernames must be at least 1 and no more than 507 characters. # They can contain alphanumeric characters (a-z, A-Z, 0-9), spaces, punctuation, and printable symbols in the Basic Latin (ASCII) block. # Leading or trailing whitespace is not allowed. (*Required*) - # @option arguments [String] :refresh Valid values are +true+, +false+, and +wait_for+. + # @option arguments [String] :refresh Valid values are `true`, `false`, and `wait_for`. # These values have the same meaning as in the index API, but the default value for this API is true. Server default: true. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb index ce49bffe45..4df9364033 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb @@ -25,16 +25,27 @@ module Actions # Find API keys with a query. # Get a paginated list of API keys and their information. # You can optionally filter the results with a query. - # To use this API, you must have at least the +manage_own_api_key+ or the +read_security+ cluster privileges. - # If you have only the +manage_own_api_key+ privilege, this API returns only the API keys that you own. - # If you have the +read_security+, +manage_api_key+, or greater privileges (including +manage_security+), this API returns all API keys regardless of ownership. + # To use this API, you must have at least the `manage_own_api_key` or the `read_security` cluster privileges. + # If you have only the `manage_own_api_key` privilege, this API returns only the API keys that you own. + # If you have the `read_security`, `manage_api_key`, or greater privileges (including `manage_security`), this API returns all API keys regardless of ownership. # # @option arguments [Boolean] :with_limited_by Return the snapshot of the owner user's role descriptors associated with the API key. # An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors (effectively limited by it). - # An API key cannot retrieve any API key’s limited-by role descriptors (including itself) unless it has +manage_api_key+ or higher privileges. + # An API key cannot retrieve any API key’s limited-by role descriptors (including itself) unless it has `manage_api_key` or higher privileges. # @option arguments [Boolean] :with_profile_uid Determines whether to also retrieve the profile UID for the API key owner principal. - # If it exists, the profile UID is returned under the +profile_uid+ response field for each API key. + # If it exists, the profile UID is returned under the `profile_uid` response field for each API key. # @option arguments [Boolean] :typed_keys Determines whether aggregation names are prefixed by their respective types in the response. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb index 2df09d9eac..a8ea62f583 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb @@ -29,6 +29,17 @@ module Actions # You can optionally filter the results with a query. # Also, the results can be paginated and sorted. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -49,7 +60,7 @@ def query_role(arguments = {}) end path = '_security/_query/role' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb index 6f183a9940..83998e81f2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb @@ -29,6 +29,17 @@ module Actions # This API is only for native users. # # @option arguments [Boolean] :with_profile_uid Determines whether to retrieve the user profile UID, if it exists, for the users. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb index a004e88f79..9285002d13 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb @@ -29,10 +29,21 @@ module Actions # The SAML message that is submitted can be: # * A response to a SAML authentication request that was previously created using the SAML prepare authentication API. # * An unsolicited SAML message in the case of an IdP-initiated single sign-on (SSO) flow. - # In either case, the SAML message needs to be a base64 encoded XML document with a root element of ++. + # In either case, the SAML message needs to be a base64 encoded XML document with a root element of ``. # After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. # This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -50,7 +61,7 @@ def saml_authenticate(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_security/saml/authenticate' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb index 4cdf71edfd..25b72d158b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb @@ -32,6 +32,17 @@ module Actions # The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. # The caller of this API must prepare the request accordingly so that this API can handle either of them. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -49,7 +60,7 @@ def saml_complete_logout(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_security/saml/complete_logout' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb index 709301986d..ad8acc11f1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb @@ -27,10 +27,21 @@ module Actions # NOTE: This API is intended for use by custom web applications other than Kibana. # If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. # The logout request comes from the SAML IdP during an IdP initiated Single Logout. - # The custom web application can use this API to have Elasticsearch process the +LogoutRequest+. + # The custom web application can use this API to have Elasticsearch process the `LogoutRequest`. # After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. # Thus the user can be redirected back to their IdP. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -48,7 +59,7 @@ def saml_invalidate(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_security/saml/invalidate' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb index cc8c242843..15cefdd9c2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb @@ -29,6 +29,17 @@ module Actions # This API invalidates the tokens that were generated for a user by the SAML authenticate API. # If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -46,7 +57,7 @@ def saml_logout(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_security/saml/logout' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb index 574a3a1410..75fd4396cb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb @@ -23,17 +23,28 @@ module API module Security module Actions # Prepare SAML authentication. - # Create a SAML authentication request (++) as a URL string based on the configuration of the respective SAML realm in Elasticsearch. + # Create a SAML authentication request (``) as a URL string based on the configuration of the respective SAML realm in Elasticsearch. # NOTE: This API is intended for use by custom web applications other than Kibana. # If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. # This API returns a URL pointing to the SAML Identity Provider. # You can use the URL to redirect the browser of the user in order to continue the authentication process. - # The URL includes a single parameter named +SAMLRequest+, which contains a SAML Authentication request that is deflated and Base64 encoded. - # If the configuration dictates that SAML authentication requests should be signed, the URL has two extra parameters named +SigAlg+ and +Signature+. + # The URL includes a single parameter named `SAMLRequest`, which contains a SAML Authentication request that is deflated and Base64 encoded. + # If the configuration dictates that SAML authentication requests should be signed, the URL has two extra parameters named `SigAlg` and `Signature`. # These parameters contain the algorithm used for the signature and the signature value itself. # It also returns a random string that uniquely identifies this SAML Authentication request. # The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -51,7 +62,7 @@ def saml_prepare_authentication(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_security/saml/prepare' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb index 8e242705c3..9f6e34cd11 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb @@ -28,6 +28,17 @@ module Actions # This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. # # @option arguments [String] :realm_name The name of the SAML realm in Elasticsearch. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-security-saml-service-provider-metadata @@ -51,7 +62,7 @@ def saml_service_provider_metadata(arguments = {}) method = Elasticsearch::API::HTTP_GET path = "_security/saml/metadata/#{Utils.listify(_realm_name)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb index 6e649a71d5..139d94639a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb @@ -28,11 +28,22 @@ module Actions # Individual users and external applications should not call this API directly. # Elastic reserves the right to change or remove this feature in future releases without prior notice. # - # @option arguments [String] :data A comma-separated list of filters for the +data+ field of the profile document. - # To return all content use +data=*+. - # To return a subset of content, use +data=+ to retrieve content nested under the specified ++. - # By default, the API returns no +data+ content. - # It is an error to specify +data+ as both the query parameter and the request body field. + # @option arguments [String] :data A comma-separated list of filters for the `data` field of the profile document. + # To return all content use `data=*`. + # To return a subset of content, use `data=` to retrieve content nested under the specified ``. + # By default, the API returns no `data` content. + # It is an error to specify `data` as both the query parameter and the request body field. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb index f6cb32b70a..afadfed551 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb @@ -25,19 +25,30 @@ module Actions # Update an API key. # Update attributes of an existing API key. # This API supports updates to an API key's access scope, expiration, and metadata. - # To use this API, you must have at least the +manage_own_api_key+ cluster privilege. + # To use this API, you must have at least the `manage_own_api_key` cluster privilege. # Users can only update API keys that they created or that were granted to them. - # To update another user’s API key, use the +run_as+ feature to submit a request on behalf of another user. + # To update another user’s API key, use the `run_as` feature to submit a request on behalf of another user. # IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. # Use this API to update API keys created by the create API key or grant API Key APIs. # If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. # It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. - # The access scope of an API key is derived from the +role_descriptors+ you specify in the request and a snapshot of the owner user's permissions at the time of the request. + # The access scope of an API key is derived from the `role_descriptors` you specify in the request and a snapshot of the owner user's permissions at the time of the request. # The snapshot of the owner's permissions is updated automatically on every call. - # IMPORTANT: If you don't specify +role_descriptors+ in the request, a call to this API might still change the API key's access scope. + # IMPORTANT: If you don't specify `role_descriptors` in the request, a call to this API might still change the API key's access scope. # This change can occur if the owner user's permissions have changed since the API key was created or last modified. # # @option arguments [String] :id The ID of the API key to update. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -62,7 +73,7 @@ def update_api_key(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_security/api_key/#{Utils.listify(_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb index 16c9c4b39a..1c1f3c9072 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb @@ -24,17 +24,28 @@ module Security module Actions # Update a cross-cluster API key. # Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. - # To use this API, you must have at least the +manage_security+ cluster privilege. + # To use this API, you must have at least the `manage_security` cluster privilege. # Users can only update API keys that they created. - # To update another user's API key, use the +run_as+ feature to submit a request on behalf of another user. + # To update another user's API key, use the `run_as` feature to submit a request on behalf of another user. # IMPORTANT: It's not possible to use an API key as the authentication credential for this API. # To update an API key, the owner user's credentials are required. # It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. # This API supports updates to an API key's access scope, metadata, and expiration. - # The owner user's information, such as the +username+ and +realm+, is also updated automatically on every call. + # The owner user's information, such as the `username` and `realm`, is also updated automatically on every call. # NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. # # @option arguments [String] :id The ID of the cross-cluster API key to update. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -60,7 +71,7 @@ def update_cross_cluster_api_key(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_security/cross_cluster/api_key/#{Utils.listify(_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb index 61c1b1ed64..5b25a6ff44 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb @@ -23,8 +23,8 @@ module API module Security module Actions # Update security index settings. - # Update the user-configurable settings for the security internal index (+.security+ and associated indices). Only a subset of settings are allowed to be modified. This includes +index.auto_expand_replicas+ and +index.number_of_replicas+. - # NOTE: If +index.auto_expand_replicas+ is set, +index.number_of_replicas+ will be ignored during updates. + # Update the user-configurable settings for the security internal index (`.security` and associated indices). Only a subset of settings are allowed to be modified. This includes `index.auto_expand_replicas` and `index.number_of_replicas`. + # NOTE: If `index.auto_expand_replicas` is set, `index.number_of_replicas` will be ignored during updates. # If a specific index is not in use on the system and settings are provided for it, the request will be rejected. # This API does not yet support configuring the settings for indices before they are in use. # @@ -32,6 +32,17 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. # @option arguments [Time] :timeout The period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb index d5619e7b05..02d0805ae4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb @@ -28,12 +28,12 @@ module Actions # Individual users and external applications should not call this API directly. # Elastic reserves the right to change or remove this feature in future releases without prior notice. # To use this API, you must have one of the following privileges: - # * The +manage_user_profile+ cluster privilege. - # * The +update_profile_data+ global privilege for the namespaces that are referenced in the request. - # This API updates the +labels+ and +data+ fields of an existing user profile document with JSON objects. + # * The `manage_user_profile` cluster privilege. + # * The `update_profile_data` global privilege for the namespaces that are referenced in the request. + # This API updates the `labels` and `data` fields of an existing user profile document with JSON objects. # New keys and their values are added to the profile document and conflicting keys are replaced by data that's included in the request. # For both labels and data, content is namespaced by the top-level fields. - # The +update_profile_data+ global privilege grants privileges for updating only the allowed namespaces. + # The `update_profile_data` global privilege grants privileges for updating only the allowed namespaces. # # @option arguments [String] :uid A unique identifier for the user profile. (*Required*) # @option arguments [Integer] :if_seq_no Only perform the operation if the document has this sequence number. @@ -42,6 +42,17 @@ module Actions # visible to search. # If 'wait_for', it waits for a refresh to make this operation visible to search. # If 'false', nothing is done with refreshes. Server default: false. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb b/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb index a24664a008..8914c355bd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb @@ -45,6 +45,17 @@ module Actions # If you specify this parameter in the request path, it is used for any documents that do not explicitly specify an index argument. # @option arguments [String] :pipeline The pipeline to use as the default pipeline. # This value can be used to override the default pipeline of the index. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb index 03d6d11c01..fbc6c5ddfb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb @@ -28,10 +28,21 @@ module Actions # @option arguments [String] :repository The name of the snapshot repository to clean up. (*Required*) # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+ Server default: 30s. + # To indicate that the request should never timeout, set it to `-1` Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. # If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-cleanup-repository diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb index 5c1b22f0e8..a8257feabd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb @@ -30,7 +30,18 @@ module Actions # @option arguments [String] :target_snapshot The target snapshot name. (*Required*) # @option arguments [Time] :master_timeout The period to wait for the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb index c8c34f7851..604935aa49 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb @@ -31,8 +31,19 @@ module Actions # It must be unique in the repository. (*Required*) # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. - # @option arguments [Boolean] :wait_for_completion If +true+, the request returns a response when the snapshot is complete. - # If +false+, the request returns a response when the snapshot initializes. + # @option arguments [Boolean] :wait_for_completion If `true`, the request returns a response when the snapshot is complete. + # If `false`, the request returns a response when the snapshot initializes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb index fdb0e1a27a..ab79bf1a47 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb @@ -25,20 +25,31 @@ module Actions # Create or update a snapshot repository. # IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. # To register a snapshot repository, the cluster's global metadata must be writeable. - # Ensure there are no cluster blocks (for example, +cluster.blocks.read_only+ and +clsuter.blocks.read_only_allow_delete+ settings) that prevent write access. + # Ensure there are no cluster blocks (for example, `cluster.blocks.read_only` and `clsuter.blocks.read_only_allow_delete` settings) that prevent write access. # Several options for this API can be specified using a query parameter or a request body parameter. # If both parameters are specified, only the query parameter is used. # # @option arguments [String] :repository The name of the snapshot repository to register or update. (*Required*) # @option arguments [Time] :master_timeout The period to wait for the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. # If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. - # @option arguments [Boolean] :verify If +true+, the request verifies the repository is functional on all master and data nodes in the cluster. - # If +false+, this verification is skipped. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. + # @option arguments [Boolean] :verify If `true`, the request verifies the repository is functional on all master and data nodes in the cluster. + # If `false`, this verification is skipped. # You can also perform this verification with the verify snapshot repository API. Server default: true. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body repository # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb index dac24a237f..9413dff25b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb @@ -26,10 +26,21 @@ module Actions # # @option arguments [String] :repository The name of the repository to delete a snapshot from. (*Required*) # @option arguments [String] :snapshot A comma-separated list of snapshot names to delete. - # It also accepts wildcards (+*+). (*Required*) + # It also accepts wildcards (`*`). (*Required*) # @option arguments [Time] :master_timeout The period to wait for the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-delete diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb index d45c4edf5a..c877d68d44 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb @@ -27,13 +27,24 @@ module Actions # The snapshots themselves are left untouched and in place. # # @option arguments [String, Array] :repository The ame of the snapshot repositories to unregister. - # Wildcard (+*+) patterns are supported. (*Required*) + # Wildcard (`*`) patterns are supported. (*Required*) # @option arguments [Time] :master_timeout The period to wait for the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. # If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-delete-repository diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb index 4501930b69..2f0c2a81cf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb @@ -23,40 +23,51 @@ module API module Snapshot module Actions # Get snapshot information. - # NOTE: The +after+ parameter and +next+ field enable you to iterate through snapshots with some consistency guarantees regarding concurrent creation or deletion of snapshots. + # NOTE: The `after` parameter and `next` field enable you to iterate through snapshots with some consistency guarantees regarding concurrent creation or deletion of snapshots. # It is guaranteed that any snapshot that exists at the beginning of the iteration and is not concurrently deleted will be seen during the iteration. # Snapshots concurrently created may be seen during an iteration. # # @option arguments [String] :repository A comma-separated list of snapshot repository names used to limit the request. - # Wildcard (+*+) expressions are supported. (*Required*) + # Wildcard (`*`) expressions are supported. (*Required*) # @option arguments [String, Array] :snapshot A comma-separated list of snapshot names to retrieve - # Wildcards (+*+) are supported. - # - To get information about all snapshots in a registered repository, use a wildcard (+*+) or +_all+. - # - To get information about any snapshots that are currently running, use +_current+. (*Required*) + # Wildcards (`*`) are supported. + # - To get information about all snapshots in a registered repository, use a wildcard (`*`) or `_all`. + # - To get information about any snapshots that are currently running, use `_current`. (*Required*) # @option arguments [String] :after An offset identifier to start pagination from as returned by the next field in the response body. # @option arguments [String] :from_sort_value The value of the current sort column at which to start retrieval. - # It can be a string +snapshot-+ or a repository name when sorting by snapshot or repository name. - # It can be a millisecond time value or a number when sorting by +index-+ or shard count. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error for any snapshots that are unavailable. - # @option arguments [Boolean] :index_details If +true+, the response includes additional information about each index in the snapshot comprising the number of shards in the index, the total size of the index in bytes, and the maximum number of segments per shard in the index. - # The default is +false+, meaning that this information is omitted. - # @option arguments [Boolean] :index_names If +true+, the response includes the name of each index in each snapshot. Server default: true. - # @option arguments [Boolean] :include_repository If +true+, the response includes the repository name in each snapshot. Server default: true. + # It can be a string `snapshot-` or a repository name when sorting by snapshot or repository name. + # It can be a millisecond time value or a number when sorting by `index-` or shard count. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error for any snapshots that are unavailable. + # @option arguments [Boolean] :index_details If `true`, the response includes additional information about each index in the snapshot comprising the number of shards in the index, the total size of the index in bytes, and the maximum number of segments per shard in the index. + # The default is `false`, meaning that this information is omitted. + # @option arguments [Boolean] :index_names If `true`, the response includes the name of each index in each snapshot. Server default: true. + # @option arguments [Boolean] :include_repository If `true`, the response includes the repository name in each snapshot. Server default: true. # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [String] :order The sort order. - # Valid values are +asc+ for ascending and +desc+ for descending order. + # Valid values are `asc` for ascending and `desc` for descending order. # The default behavior is ascending order. Server default: asc. # @option arguments [Integer] :offset Numeric offset to start pagination from based on the snapshots matching this request. Using a non-zero value for this parameter is mutually exclusive with using the after parameter. Defaults to 0. Server default: 0. # @option arguments [Integer] :size The maximum number of snapshots to return. # The default is 0, which means to return all that match the request without limit. Server default: 0. - # @option arguments [String] :slm_policy_filter Filter snapshots by a comma-separated list of snapshot lifecycle management (SLM) policy names that snapshots belong to.You can use wildcards (+*+) and combinations of wildcards followed by exclude patterns starting with +-+. - # For example, the pattern +*,-policy-a-\*+ will return all snapshots except for those that were created by an SLM policy with a name starting with +policy-a-+. - # Note that the wildcard pattern +*+ matches all snapshots created by an SLM policy but not those snapshots that were not created by an SLM policy. - # To include snapshots that were not created by an SLM policy, you can use the special pattern +_none+ that will match all snapshots without an SLM policy. + # @option arguments [String] :slm_policy_filter Filter snapshots by a comma-separated list of snapshot lifecycle management (SLM) policy names that snapshots belong to.You can use wildcards (`*`) and combinations of wildcards followed by exclude patterns starting with `-`. + # For example, the pattern `*,-policy-a-\*` will return all snapshots except for those that were created by an SLM policy with a name starting with `policy-a-`. + # Note that the wildcard pattern `*` matches all snapshots created by an SLM policy but not those snapshots that were not created by an SLM policy. + # To include snapshots that were not created by an SLM policy, you can use the special pattern `_none` that will match all snapshots without an SLM policy. # @option arguments [String] :sort The sort order for the result. # The default behavior is sorting by snapshot start time stamp. Server default: start_time. - # @option arguments [Boolean] :verbose If +true+, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.NOTE: The parameters +size+, +order+, +after+, +from_sort_value+, +offset+, +slm_policy_filter+, and +sort+ are not supported when you set +verbose=false+ and the sort order for requests with +verbose=false+ is undefined. Server default: true. + # @option arguments [Boolean] :verbose If `true`, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.NOTE: The parameters `size`, `order`, `after`, `from_sort_value`, `offset`, `slm_policy_filter`, and `sort` are not supported when you set `verbose=false` and the sort order for requests with `verbose=false` is undefined. Server default: true. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-get diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb index 66681ec87a..fb90bf82ea 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb @@ -25,12 +25,23 @@ module Actions # Get snapshot repository information. # # @option arguments [String, Array] :repository A comma-separated list of snapshot repository names used to limit the request. - # Wildcard (+*+) expressions are supported including combining wildcards with exclude patterns starting with +-+.To get information about all snapshot repositories registered in the cluster, omit this parameter or use +*+ or +_all+. - # @option arguments [Boolean] :local If +true+, the request gets information from the local node only. - # If +false+, the request gets information from the master node. + # Wildcard (`*`) expressions are supported including combining wildcards with exclude patterns starting with `-`.To get information about all snapshot repositories registered in the cluster, omit this parameter or use `*` or `_all`. + # @option arguments [Boolean] :local If `true`, the request gets information from the local node only. + # If `false`, the request gets information from the master node. # @option arguments [Time] :master_timeout The period to wait for the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: to 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: to 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-get-repository diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb index 2eebb9a78b..20568d60d3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb @@ -30,8 +30,8 @@ module Actions # Some storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do. This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system. # The default values for the parameters are deliberately low to reduce the impact of running an analysis inadvertently and to provide a sensible starting point for your investigations. # Run your first analysis with the default parameter values to check for simple problems. - # If successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a +blob_count+ of at least +2000+, a +max_blob_size+ of at least +2gb+, a +max_total_data_size+ of at least +1tb+, and a +register_operation_count+ of at least +100+. - # Always specify a generous timeout, possibly +1h+ or longer, to allow time for each analysis to run to completion. + # If successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a `blob_count` of at least `2000`, a `max_blob_size` of at least `2gb`, a `max_total_data_size` of at least `1tb`, and a `register_operation_count` of at least `100`. + # Always specify a generous timeout, possibly `1h` or longer, to allow time for each analysis to run to completion. # Perform the analyses using a multi-node cluster of a similar size to your production cluster so that it can detect any problems that only arise when the repository is accessed by many nodes at once. # If the analysis fails, Elasticsearch detected that your repository behaved unexpectedly. # This usually means you are using a third-party storage system with an incorrect or incompatible implementation of the API it claims to support. @@ -60,7 +60,7 @@ module Actions # IMPORTANT: An analysis writes a substantial amount of data to your repository and then reads it back again. # This consumes bandwidth on the network between the cluster and the repository, and storage space and I/O bandwidth on the repository itself. # You must ensure this load does not affect other users of these systems. - # Analyses respect the repository settings +max_snapshot_bytes_per_sec+ and +max_restore_bytes_per_sec+ if available and the cluster setting +indices.recovery.max_bytes_per_sec+ which you can use to limit the bandwidth they consume. + # Analyses respect the repository settings `max_snapshot_bytes_per_sec` and `max_restore_bytes_per_sec` if available and the cluster setting `indices.recovery.max_bytes_per_sec` which you can use to limit the bandwidth they consume. # NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. # NOTE: Different versions of Elasticsearch may perform different checks for repository compatibility, with newer versions typically being stricter than older ones. # A storage system that passes repository analysis with one version of Elasticsearch may fail with a different version. @@ -69,10 +69,10 @@ module Actions # NOTE: This API may not work correctly in a mixed-version cluster. # *Implementation details* # NOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions. The request parameters and response format depend on details of the implementation so may also be different in newer versions. - # The analysis comprises a number of blob-level tasks, as set by the +blob_count+ parameter and a number of compare-and-exchange operations on linearizable registers, as set by the +register_operation_count+ parameter. + # The analysis comprises a number of blob-level tasks, as set by the `blob_count` parameter and a number of compare-and-exchange operations on linearizable registers, as set by the `register_operation_count` parameter. # These tasks are distributed over the data and master-eligible nodes in the cluster for execution. # For most blob-level tasks, the executing node first writes a blob to the repository and then instructs some of the other nodes in the cluster to attempt to read the data it just wrote. - # The size of the blob is chosen randomly, according to the +max_blob_size+ and +max_total_data_size+ parameters. + # The size of the blob is chosen randomly, according to the `max_blob_size` and `max_total_data_size` parameters. # If any of these reads fails then the repository does not implement the necessary read-after-write semantics that Elasticsearch requires. # For some blob-level tasks, the executing node will instruct some of its peers to attempt to read the data before the writing process completes. # These reads are permitted to fail, but must not return partial data. @@ -97,26 +97,37 @@ module Actions # # @option arguments [String] :repository The name of the repository. (*Required*) # @option arguments [Integer] :blob_count The total number of blobs to write to the repository during the test. - # For realistic experiments, you should set it to at least +2000+. Server default: 100. + # For realistic experiments, you should set it to at least `2000`. Server default: 100. # @option arguments [Integer] :concurrency The number of operations to run concurrently during the test. Server default: 10. # @option arguments [Boolean] :detailed Indicates whether to return detailed results, including timing information for every operation performed during the analysis. # If false, it returns only a summary of the analysis. # @option arguments [Integer] :early_read_node_count The number of nodes on which to perform an early read operation while writing each blob. # Early read operations are only rarely performed. Server default: 2. # @option arguments [Integer, String] :max_blob_size The maximum size of a blob to be written during the test. - # For realistic experiments, you should set it to at least +2gb+. Server default: 10mb. + # For realistic experiments, you should set it to at least `2gb`. Server default: 10mb. # @option arguments [Integer, String] :max_total_data_size An upper limit on the total size of all the blobs written during the test. - # For realistic experiments, you should set it to at least +1tb+. Server default: 1gb. + # For realistic experiments, you should set it to at least `1tb`. Server default: 1gb. # @option arguments [Float] :rare_action_probability The probability of performing a rare action such as an early read, an overwrite, or an aborted write on each blob. Server default: 0.02. # @option arguments [Boolean] :rarely_abort_writes Indicates whether to rarely cancel writes before they complete. Server default: true. # @option arguments [Integer] :read_node_count The number of nodes on which to read a blob after writing. Server default: 10. # @option arguments [Integer] :register_operation_count The minimum number of linearizable register operations to perform in total. - # For realistic experiments, you should set it to at least +100+. Server default: 10. + # For realistic experiments, you should set it to at least `100`. Server default: 10. # @option arguments [Integer] :seed The seed for the pseudo-random number generator used to generate the list of operations performed during the test. # To repeat the same set of operations in multiple experiments, use the same seed in each experiment. # Note that the operations are performed concurrently so might not always happen in the same order on each run. # @option arguments [Time] :timeout The period of time to wait for the test to complete. # If no response is received before the timeout expires, the test is cancelled and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-repository-analyze diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb index 499fa4e030..82110c0d07 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb @@ -29,9 +29,11 @@ module Actions # The snapshot and cluster versions must be compatible. # To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. # Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: - # + + # + # ``` # GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream - # + + # ``` + # # If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. # If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. # @@ -39,10 +41,21 @@ module Actions # @option arguments [String] :snapshot The name of the snapshot to restore. (*Required*) # @option arguments [Time] :master_timeout The period to wait for the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. - # @option arguments [Boolean] :wait_for_completion If +true+, the request returns a response when the restore operation completes. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. + # @option arguments [Boolean] :wait_for_completion If `true`, the request returns a response when the restore operation completes. # The operation is complete when it finishes all attempts to recover primary shards for restored indices. - # This applies even if one or more of the recovery attempts fail.If +false+, the request returns a response when the restore operation initializes. + # This applies even if one or more of the recovery attempts fail.If `false`, the request returns a response when the restore operation initializes. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb index de016489a5..840a6a659a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb @@ -26,9 +26,9 @@ module Actions # Get a detailed description of the current state for each shard participating in the snapshot. # Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. # If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. - # If you omit the ++ request path parameter, the request retrieves information only for currently running snapshots. + # If you omit the `` request path parameter, the request retrieves information only for currently running snapshots. # This usage is preferred. - # If needed, you can specify ++ and ++ to retrieve information for specific snapshots, even if they're not currently running. + # If needed, you can specify `` and `` to retrieve information for specific snapshots, even if they're not currently running. # WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. # The API requires a read from the repository for each shard in each snapshot. # For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). @@ -36,15 +36,26 @@ module Actions # These requests can also tax machine resources and, when using cloud storage, incur high processing costs. # # @option arguments [String] :repository The snapshot repository name used to limit the request. - # It supports wildcards (+*+) if ++ isn't specified. + # It supports wildcards (`*`) if `` isn't specified. # @option arguments [String, Array] :snapshot A comma-separated list of snapshots to retrieve status for. # The default is currently running snapshots. - # Wildcards (+*+) are not supported. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error for any snapshots that are unavailable. - # If +true+, the request ignores snapshots that are unavailable, such as those that are corrupted or temporarily cannot be returned. + # Wildcards (`*`) are not supported. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error for any snapshots that are unavailable. + # If `true`, the request ignores snapshots that are unavailable, such as those that are corrupted or temporarily cannot be returned. # @option arguments [Time] :master_timeout The period to wait for the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-status diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb index e598fa0221..341b65e9c4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb @@ -28,10 +28,21 @@ module Actions # @option arguments [String] :repository The name of the snapshot repository to verify. (*Required*) # @option arguments [Time] :master_timeout The period to wait for the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. # If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-snapshot-verify-repository diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb index 752925a43a..326d6cec64 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb @@ -31,6 +31,17 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-delete-lifecycle diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb index 8adc4ac545..a801a392dd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb @@ -31,6 +31,17 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-execute-lifecycle diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb index b07bca7c22..957de72f5c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb @@ -30,6 +30,17 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-execute-retention diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb index e2b69b2565..fcf4231e82 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb @@ -30,6 +30,17 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-get-lifecycle diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb index ea84205b32..b935c70462 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb @@ -27,6 +27,17 @@ module Actions # # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-get-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb index e5489c9d99..b936867a14 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb @@ -26,10 +26,21 @@ module Actions # # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-get-status diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb index 97496d3c7b..da4c749690 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb @@ -30,10 +30,21 @@ module Actions # @option arguments [String] :policy_id The identifier for the snapshot lifecycle policy you want to create or update. (*Required*) # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb index 693e1228ac..b964446113 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb @@ -28,10 +28,21 @@ module Actions # # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-start diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb index 8c8404da94..f4c39c3b18 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb @@ -32,10 +32,21 @@ module Actions # # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Time] :timeout The period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-slm-stop diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb index 591dd11414..8317b4ed32 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb @@ -24,6 +24,17 @@ module SQL module Actions # Clear an SQL search cursor. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -41,7 +52,7 @@ def clear_cursor(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_sql/close' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb index c3d1c227c4..b974d979c6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb @@ -26,10 +26,21 @@ module Actions # Delete an async SQL search or a stored synchronous SQL search. # If the search is still running, the API cancels it. # If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: - # * Users with the +cancel_task+ cluster privilege. + # * Users with the `cancel_task` cluster privilege. # * The user who first submitted the search. # # @option arguments [String] :id The identifier for the search. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-sql-delete-async @@ -53,7 +64,7 @@ def delete_async(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_sql/async/delete/#{Utils.listify(_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb index 7d01036b6e..f56d5680ce 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb @@ -30,12 +30,23 @@ module Actions # @option arguments [String] :delimiter The separator for CSV results. # The API supports this parameter only for CSV responses. Server default: ,. # @option arguments [String] :format The format for the response. - # You must specify a format using this parameter or the +Accept+ HTTP header. + # You must specify a format using this parameter or the `Accept` HTTP header. # If you specify both, the API uses this parameter. # @option arguments [Time] :keep_alive The retention period for the search and its results. - # It defaults to the +keep_alive+ period for the original SQL search. + # It defaults to the `keep_alive` period for the original SQL search. # @option arguments [Time] :wait_for_completion_timeout The period to wait for complete results. # It defaults to no timeout, meaning the request waits for complete search results. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-sql-get-async diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb index df222387c3..5cfcc8de6a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb @@ -26,6 +26,17 @@ module Actions # Get the current status of an async SQL search or a stored synchronous SQL search. # # @option arguments [String] :id The identifier for the search. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-sql-get-async-status @@ -49,7 +60,7 @@ def get_async_status(arguments = {}) method = Elasticsearch::API::HTTP_GET path = "_sql/async/status/#{Utils.listify(_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb index 2f0d225870..1b2114e54d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb @@ -26,8 +26,19 @@ module Actions # Run an SQL request. # # @option arguments [String] :format The format for the response. - # You can also specify a format using the +Accept+ HTTP header. - # If you specify both this parameter and the +Accept+ HTTP header, this parameter takes precedence. + # You can also specify a format using the `Accept` HTTP header. + # If you specify both this parameter and the `Accept` HTTP header, this parameter takes precedence. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb index 5111adca36..d6476e2719 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb @@ -24,8 +24,19 @@ module SQL module Actions # Translate SQL into Elasticsearch queries. # Translate an SQL search into a search API request containing Query DSL. - # It accepts the same request body parameters as the SQL search API, excluding +cursor+. + # It accepts the same request body parameters as the SQL search API, excluding `cursor`. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -43,7 +54,7 @@ def translate(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_sql/translate' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb index 6ad12c2fbb..05c54d0de8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb @@ -28,12 +28,23 @@ module Actions # - Settings for transport and HTTP interfaces # - TLS settings that are used within authentication realms # - TLS settings for remote monitoring exporters - # The list includes certificates that are used for configuring trust, such as those configured in the +xpack.security.transport.ssl.truststore+ and +xpack.security.transport.ssl.certificate_authorities+ settings. - # It also includes certificates that are used for configuring server identity, such as +xpack.security.http.ssl.keystore+ and +xpack.security.http.ssl.certificate settings+. + # The list includes certificates that are used for configuring trust, such as those configured in the `xpack.security.transport.ssl.truststore` and `xpack.security.transport.ssl.certificate_authorities` settings. + # It also includes certificates that are used for configuring server identity, such as `xpack.security.http.ssl.keystore` and `xpack.security.http.ssl.certificate settings`. # The list does not include certificates that are sourced from the default SSL context of the Java Runtime Environment (JRE), even if those certificates are in use within Elasticsearch. # NOTE: When a PKCS#11 token is configured as the truststore of the JRE, the API returns all the certificates that are included in the PKCS#11 token irrespective of whether these are used in the Elasticsearch TLS configuration. # If Elasticsearch is configured to use a keystore or truststore, the API output includes all certificates in that store, even though some of the certificates might not be in active use within the cluster. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ssl-certificates @@ -48,7 +59,7 @@ def certificates(arguments = {}) method = Elasticsearch::API::HTTP_GET path = '_ssl/certificates' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb index 935f9d31ae..49d242b297 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb @@ -37,6 +37,17 @@ module Actions # When the synonyms set is not used in analyzers, you will be able to delete it. # # @option arguments [String] :id The synonyms set identifier to delete. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-delete-synonym @@ -60,7 +71,7 @@ def delete_synonym(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_synonyms/#{Utils.listify(_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb index 1313b51d31..1b7ff8aa57 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb @@ -27,6 +27,17 @@ module Actions # # @option arguments [String] :set_id The ID of the synonym set to update. (*Required*) # @option arguments [String] :rule_id The ID of the synonym rule to delete. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-delete-synonym-rule @@ -53,7 +64,7 @@ def delete_synonym_rule(arguments = {}) method = Elasticsearch::API::HTTP_DELETE path = "_synonyms/#{Utils.listify(_set_id)}/#{Utils.listify(_rule_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb index c049d83238..608ac39387 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb @@ -27,6 +27,17 @@ module Actions # @option arguments [String] :id The synonyms set identifier to retrieve. (*Required*) # @option arguments [Integer] :from The starting offset for query rules to retrieve. Server default: 0. # @option arguments [Integer] :size The max number of query rules to retrieve. Server default: 10. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-get-synonym diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb index fcafe680e7..4b7c1c7b01 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb @@ -27,6 +27,17 @@ module Actions # # @option arguments [String] :set_id The ID of the synonym set to retrieve the synonym rule from. (*Required*) # @option arguments [String] :rule_id The ID of the synonym rule to retrieve. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-get-synonym-rule @@ -53,7 +64,7 @@ def get_synonym_rule(arguments = {}) method = Elasticsearch::API::HTTP_GET path = "_synonyms/#{Utils.listify(_set_id)}/#{Utils.listify(_rule_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb index 13c547833c..aeaec9db75 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb @@ -27,6 +27,17 @@ module Actions # # @option arguments [Integer] :from The starting offset for synonyms sets to retrieve. Server default: 0. # @option arguments [Integer] :size The maximum number of synonyms sets to retrieve. Server default: 10. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-synonyms-get-synonym diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb index b951478145..fec02e9f97 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb @@ -29,6 +29,17 @@ module Actions # This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. # # @option arguments [String] :id The ID of the synonyms set to be created or updated. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -54,7 +65,7 @@ def put_synonym(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_synonyms/#{Utils.listify(_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb index 34df4121f5..cc43e8cc21 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb @@ -29,6 +29,17 @@ module Actions # # @option arguments [String] :set_id The ID of the synonym set. (*Required*) # @option arguments [String] :rule_id The ID of the synonym rule to be updated or created. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -57,7 +68,7 @@ def put_synonym_rule(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_synonyms/#{Utils.listify(_set_id)}/#{Utils.listify(_rule_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb index b5ae0b891c..21c88d85c5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb @@ -29,7 +29,7 @@ module Actions # It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. # The get task information API will continue to list these cancelled tasks until they complete. # The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible. - # To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the +?detailed+ parameter to identify the other tasks the system is running. + # To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the `?detailed` parameter to identify the other tasks the system is running. # You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach @@ -41,6 +41,17 @@ module Actions # @option arguments [Array] :nodes A comma-separated list of node IDs or names that is used to limit the request. # @option arguments [String] :parent_task_id A parent task ID that is used to limit the tasks. # @option arguments [Boolean] :wait_for_completion If true, the request blocks until all found tasks are complete. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-tasks diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb index 6942495b02..66b31419cf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb @@ -35,7 +35,18 @@ module Actions # @option arguments [String] :task_id The task identifier. (*Required*) # @option arguments [Time] :timeout The period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. - # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks until the task has completed. + # @option arguments [Boolean] :wait_for_completion If `true`, the request blocks until the task has completed. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-tasks diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb index 87da7ab0a9..236b1057df 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb @@ -27,14 +27,17 @@ module Actions # WARNING: The task management API is new and should still be considered a beta feature. # The API may change in ways that are not backwards compatible. # **Identifying running tasks** - # The +X-Opaque-Id header+, when provided on the HTTP request header, is going to be returned as a header in the response as well as in the headers field for in the task information. + # The `X-Opaque-Id header`, when provided on the HTTP request header, is going to be returned as a header in the response as well as in the headers field for in the task information. # This enables you to track certain calls or associate certain tasks with the client that started them. # For example: - # + + # + # ``` # curl -i -H "X-Opaque-Id: 123456" "http://localhost:9200/_tasks?group_by=parents" - # + + # ``` + # # The API returns the following result: - # + + # + # ``` # HTTP/1.1 200 OK # X-Opaque-Id: 123456 # content-type: application/json; charset=UTF-8 @@ -70,29 +73,41 @@ module Actions # } # } # } - # + - # In this example, +X-Opaque-Id: 123456+ is the ID as a part of the response header. - # The +X-Opaque-Id+ in the task +headers+ is the ID for the task that was initiated by the REST request. - # The +X-Opaque-Id+ in the children +headers+ is the child task of the task that was initiated by the REST request. + # ``` + # + # In this example, `X-Opaque-Id: 123456` is the ID as a part of the response header. + # The `X-Opaque-Id` in the task `headers` is the ID for the task that was initiated by the REST request. + # The `X-Opaque-Id` in the children `headers` is the child task of the task that was initiated by the REST request. # This functionality is Experimental and may be changed or removed # completely in a future release. Elastic will take a best effort approach # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # # @option arguments [String] :actions A comma-separated list or wildcard expression of actions used to limit the request. - # For example, you can use +cluser:*+ to retrieve all cluster-related tasks. - # @option arguments [Boolean] :detailed If +true+, the response includes detailed information about the running tasks. + # For example, you can use `cluser:*` to retrieve all cluster-related tasks. + # @option arguments [Boolean] :detailed If `true`, the response includes detailed information about the running tasks. # This information is useful to distinguish tasks from each other but is more costly to run. # @option arguments [String] :group_by A key that is used to group tasks in the response. # The task lists can be grouped either by nodes or by parent tasks. # @option arguments [String, Array] :nodes A comma-separated list of node IDs or names that is used to limit the returned information. # @option arguments [String] :parent_task_id A parent task identifier that is used to limit returned information. - # To return all tasks, omit this parameter or use a value of +-1+. + # To return all tasks, omit this parameter or use a value of `-1`. # If the parent task is not found, the API does not return a 404 response code. # @option arguments [Time] :timeout The period to wait for each node to respond. # If a node does not respond before its timeout expires, the response does not include its information. - # However, timed out nodes are included in the +node_failures+ property. Server default: 30s. - # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks until the operation is complete. + # However, timed out nodes are included in the `node_failures` property. Server default: 30s. + # @option arguments [Boolean] :wait_for_completion If `true`, the request blocks until the operation is complete. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-tasks diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb b/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb index e4385f7ce1..8cc7f5f4e3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb @@ -26,8 +26,19 @@ module Actions # This API is designed for low-latency look-ups used in auto-complete scenarios. # # @option arguments [String] :index A comma-separated list of data streams, indices, and index aliases to search. - # Wildcard (+*+) expressions are supported. - # To search all data streams or indices, omit this parameter or use +*+ or +_all+. (*Required*) + # Wildcard (`*`) expressions are supported. + # To search all data streams or indices, omit this parameter or use `*` or `_all`. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -57,7 +68,7 @@ def terms_enum(arguments = {}) end path = "#{Utils.listify(_index)}/_terms_enum" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb b/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb index 9ec71bc47e..99426ef000 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb @@ -24,45 +24,58 @@ module Actions # Get term vector information. # Get information and statistics about terms in the fields of a particular document. # You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. - # You can specify the fields you are interested in through the +fields+ parameter or by adding the fields to the request body. + # You can specify the fields you are interested in through the `fields` parameter or by adding the fields to the request body. # For example: - # + + # + # ``` # GET /my-index-000001/_termvectors/1?fields=message - # + + # ``` + # # Fields can be specified using wildcards, similar to the multi match query. # Term vectors are real-time by default, not near real-time. - # This can be changed by setting +realtime+ parameter to +false+. + # This can be changed by setting `realtime` parameter to `false`. # You can request three types of values: _term information_, _term statistics_, and _field statistics_. # By default, all term information and field statistics are returned for all fields but term statistics are excluded. # **Term information** # * term frequency in the field (always returned) - # * term positions (+positions: true+) - # * start and end offsets (+offsets: true+) - # * term payloads (+payloads: true+), as base64 encoded bytes + # * term positions (`positions: true`) + # * start and end offsets (`offsets: true`) + # * term payloads (`payloads: true`), as base64 encoded bytes # If the requested information wasn't stored in the index, it will be computed on the fly if possible. # Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. # # @option arguments [String] :index The name of the index that contains the document. (*Required*) # @option arguments [String] :id A unique identifier for the document. # @option arguments [String, Array] :fields A comma-separated list or wildcard expressions of fields to include in the statistics. - # It is used as the default list unless a specific field list is provided in the +completion_fields+ or +fielddata_fields+ parameters. - # @option arguments [Boolean] :field_statistics If +true+, the response includes: + # It is used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters. + # @option arguments [Boolean] :field_statistics If `true`, the response includes: # - The document count (how many documents contain this field). # - The sum of document frequencies (the sum of document frequencies for all terms in this field). # - The sum of total term frequencies (the sum of total term frequencies of each term in this field). Server default: true. - # @option arguments [Boolean] :offsets If +true+, the response includes term offsets. Server default: true. - # @option arguments [Boolean] :payloads If +true+, the response includes term payloads. Server default: true. - # @option arguments [Boolean] :positions If +true+, the response includes term positions. Server default: true. + # @option arguments [Boolean] :offsets If `true`, the response includes term offsets. Server default: true. + # @option arguments [Boolean] :payloads If `true`, the response includes term payloads. Server default: true. + # @option arguments [Boolean] :positions If `true`, the response includes term positions. Server default: true. # @option arguments [String] :preference The node or shard the operation should be performed on. # It is random by default. # @option arguments [Boolean] :realtime If true, the request is real-time as opposed to near-real-time. Server default: true. # @option arguments [String] :routing A custom value that is used to route operations to a specific shard. - # @option arguments [Boolean] :term_statistics If +true+, the response includes: + # @option arguments [Boolean] :term_statistics If `true`, the response includes: # - The total term frequency (how often a term occurs in all documents). # - The document frequency (the number of documents containing the current term). # By default these values are not returned since term statistics can have a serious performance impact. - # @option arguments [Integer] :version If +true+, returns the document version as part of a hit. + # @option arguments [Integer] :version If `true`, returns the document version as part of a hit. # @option arguments [String] :version_type The version type. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb index 98e8d517f8..8444eb6647 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb @@ -25,7 +25,7 @@ module Actions # Find the structure of a text field. # Find the structure of a text field in an Elasticsearch index. # This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. - # For example, if you have ingested data into a very simple index that has just +@timestamp+ and message fields, you can use this API to see what common structure exists in the message field. + # For example, if you have ingested data into a very simple index that has just `@timestamp` and message fields, you can use this API to see what common structure exists in the message field. # The response from the API contains: # * Sample messages. # * Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. @@ -33,74 +33,85 @@ module Actions # * Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. # All this information can be calculated by the structure finder with no guidance. # However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. - # If the structure finder produces unexpected results, specify the +explain+ query parameter and an explanation will appear in the response. + # If the structure finder produces unexpected results, specify the `explain` query parameter and an explanation will appear in the response. # It helps determine why the returned structure was chosen. # - # @option arguments [String] :column_names If +format+ is set to +delimited+, you can specify the column names in a comma-separated list. + # @option arguments [String] :column_names If `format` is set to `delimited`, you can specify the column names in a comma-separated list. # If this parameter is not specified, the structure finder uses the column names from the header row of the text. # If the text does not have a header row, columns are named "column1", "column2", "column3", for example. - # @option arguments [String] :delimiter If you have set +format+ to +delimited+, you can specify the character used to delimit the values in each row. + # @option arguments [String] :delimiter If you have set `format` to `delimited`, you can specify the character used to delimit the values in each row. # Only a single character is supported; the delimiter cannot have multiple characters. - # By default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (+|+). + # By default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (`|`). # In this default scenario, all rows must have the same number of fields for the delimited format to be detected. # If you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row. # @option arguments [Integer] :documents_to_sample The number of documents to include in the structural analysis. # The minimum value is 2. Server default: 1000. # @option arguments [String] :ecs_compatibility The mode of compatibility with ECS compliant Grok patterns. # Use this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern. - # This setting primarily has an impact when a whole message Grok pattern such as +%{CATALINALOG}+ matches the input. - # If the structure finder identifies a common structure but has no idea of the meaning then generic field names such as +path+, +ipaddress+, +field1+, and +field2+ are used in the +grok_pattern+ output. + # This setting primarily has an impact when a whole message Grok pattern such as `%{CATALINALOG}` matches the input. + # If the structure finder identifies a common structure but has no idea of the meaning then generic field names such as `path`, `ipaddress`, `field1`, and `field2` are used in the `grok_pattern` output. # The intention in that situation is that a user who knows the meanings will rename the fields before using them. Server default: disabled. - # @option arguments [Boolean] :explain If +true+, the response includes a field named +explanation+, which is an array of strings that indicate how the structure finder produced its result. + # @option arguments [Boolean] :explain If `true`, the response includes a field named `explanation`, which is an array of strings that indicate how the structure finder produced its result. # @option arguments [String] :field The field that should be analyzed. (*Required*) # @option arguments [String] :format The high level structure of the text. # By default, the API chooses the format. # In this default scenario, all rows must have the same number of fields for a delimited format to be detected. # If the format is set to delimited and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row. - # @option arguments [String] :grok_pattern If the format is +semi_structured_text+, you can specify a Grok pattern that is used to extract fields from every message in the text. - # The name of the timestamp field in the Grok pattern must match what is specified in the +timestamp_field+ parameter. + # @option arguments [String] :grok_pattern If the format is `semi_structured_text`, you can specify a Grok pattern that is used to extract fields from every message in the text. + # The name of the timestamp field in the Grok pattern must match what is specified in the `timestamp_field` parameter. # If that parameter is not specified, the name of the timestamp field in the Grok pattern must match "timestamp". - # If +grok_pattern+ is not specified, the structure finder creates a Grok pattern. + # If `grok_pattern` is not specified, the structure finder creates a Grok pattern. # @option arguments [String] :index The name of the index that contains the analyzed field. (*Required*) - # @option arguments [String] :quote If the format is +delimited+, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character. + # @option arguments [String] :quote If the format is `delimited`, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character. # Only a single character is supported. - # If this parameter is not specified, the default value is a double quote (+"+). + # If this parameter is not specified, the default value is a double quote (`"`). # If your delimited text format does not use quoting, a workaround is to set this argument to a character that does not appear anywhere in the sample. - # @option arguments [Boolean] :should_trim_fields If the format is +delimited+, you can specify whether values between delimiters should have whitespace trimmed from them. - # If this parameter is not specified and the delimiter is pipe (+|+), the default value is true. - # Otherwise, the default value is +false+. + # @option arguments [Boolean] :should_trim_fields If the format is `delimited`, you can specify whether values between delimiters should have whitespace trimmed from them. + # If this parameter is not specified and the delimiter is pipe (`|`), the default value is true. + # Otherwise, the default value is `false`. # @option arguments [Time] :timeout The maximum amount of time that the structure analysis can take. # If the analysis is still running when the timeout expires, it will be stopped. Server default: 25s. # @option arguments [String] :timestamp_field The name of the field that contains the primary timestamp of each record in the text. - # In particular, if the text was ingested into an index, this is the field that would be used to populate the +@timestamp+ field.If the format is +semi_structured_text+, this field must match the name of the appropriate extraction in the +grok_pattern+. - # Therefore, for semi-structured text, it is best not to specify this parameter unless +grok_pattern+ is also specified.For structured text, if you specify this parameter, the field must exist within the text.If this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field. + # In particular, if the text was ingested into an index, this is the field that would be used to populate the `@timestamp` field.If the format is `semi_structured_text`, this field must match the name of the appropriate extraction in the `grok_pattern`. + # Therefore, for semi-structured text, it is best not to specify this parameter unless `grok_pattern` is also specified.For structured text, if you specify this parameter, the field must exist within the text.If this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field. # For structured text, it is not compulsory to have a timestamp in the text. # @option arguments [String] :timestamp_format The Java time format of the timestamp field in the text. # Only a subset of Java time format letter groups are supported: - # - +a+ - # - +d+ - # - +dd+ - # - +EEE+ - # - +EEEE+ - # - +H+ - # - +HH+ - # - +h+ - # - +M+ - # - +MM+ - # - +MMM+ - # - +MMMM+ - # - +mm+ - # - +ss+ - # - +XX+ - # - +XXX+ - # - +yy+ - # - +yyyy+ - # - +zzz+ - # Additionally +S+ letter groups (fractional seconds) of length one to nine are supported providing they occur after +ss+ and are separated from the +ss+ by a period (+.+), comma (+,+), or colon (+:+). - # Spacing and punctuation is also permitted with the exception a question mark (+?+), newline, and carriage return, together with literal text enclosed in single quotes. - # For example, +MM/dd HH.mm.ss,SSSSSS 'in' yyyy+ is a valid override format.One valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full +grok_pattern+. - # Another is when the timestamp format is one that the structure finder does not consider by default.If this parameter is not specified, the structure finder chooses the best format from a built-in set.If the special value +null+ is specified, the structure finder will not look for a primary timestamp in the text. + # - `a` + # - `d` + # - `dd` + # - `EEE` + # - `EEEE` + # - `H` + # - `HH` + # - `h` + # - `M` + # - `MM` + # - `MMM` + # - `MMMM` + # - `mm` + # - `ss` + # - `XX` + # - `XXX` + # - `yy` + # - `yyyy` + # - `zzz` + # Additionally `S` letter groups (fractional seconds) of length one to nine are supported providing they occur after `ss` and are separated from the `ss` by a period (`.`), comma (`,`), or colon (`:`). + # Spacing and punctuation is also permitted with the exception a question mark (`?`), newline, and carriage return, together with literal text enclosed in single quotes. + # For example, `MM/dd HH.mm.ss,SSSSSS 'in' yyyy` is a valid override format.One valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full `grok_pattern`. + # Another is when the timestamp format is one that the structure finder does not consider by default.If this parameter is not specified, the structure finder chooses the best format from a built-in set.If the special value `null` is specified, the structure finder will not look for a primary timestamp in the text. # When the format is semi-structured text, this will result in the structure finder treating the text as single-line messages. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-text_structure diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb index 9c4b88d9f8..a29171ee76 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb @@ -34,69 +34,80 @@ module Actions # Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. # All this information can be calculated by the structure finder with no guidance. # However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. - # If the structure finder produces unexpected results, specify the +explain+ query parameter and an explanation will appear in the response. + # If the structure finder produces unexpected results, specify the `explain` query parameter and an explanation will appear in the response. # It helps determine why the returned structure was chosen. # - # @option arguments [String] :column_names If the format is +delimited+, you can specify the column names in a comma-separated list. + # @option arguments [String] :column_names If the format is `delimited`, you can specify the column names in a comma-separated list. # If this parameter is not specified, the structure finder uses the column names from the header row of the text. # If the text does not have a header role, columns are named "column1", "column2", "column3", for example. - # @option arguments [String] :delimiter If you the format is +delimited+, you can specify the character used to delimit the values in each row. + # @option arguments [String] :delimiter If you the format is `delimited`, you can specify the character used to delimit the values in each row. # Only a single character is supported; the delimiter cannot have multiple characters. - # By default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (+|+). + # By default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (`|`). # In this default scenario, all rows must have the same number of fields for the delimited format to be detected. # If you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row. # @option arguments [String] :ecs_compatibility The mode of compatibility with ECS compliant Grok patterns. # Use this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern. - # This setting primarily has an impact when a whole message Grok pattern such as +%{CATALINALOG}+ matches the input. - # If the structure finder identifies a common structure but has no idea of meaning then generic field names such as +path+, +ipaddress+, +field1+, and +field2+ are used in the +grok_pattern+ output, with the intention that a user who knows the meanings rename these fields before using it. Server default: disabled. - # @option arguments [Boolean] :explain If this parameter is set to true, the response includes a field named +explanation+, which is an array of strings that indicate how the structure finder produced its result. + # This setting primarily has an impact when a whole message Grok pattern such as `%{CATALINALOG}` matches the input. + # If the structure finder identifies a common structure but has no idea of meaning then generic field names such as `path`, `ipaddress`, `field1`, and `field2` are used in the `grok_pattern` output, with the intention that a user who knows the meanings rename these fields before using it. Server default: disabled. + # @option arguments [Boolean] :explain If this parameter is set to true, the response includes a field named `explanation`, which is an array of strings that indicate how the structure finder produced its result. # @option arguments [String] :format The high level structure of the text. # By default, the API chooses the format. # In this default scenario, all rows must have the same number of fields for a delimited format to be detected. - # If the format is +delimited+ and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row. - # @option arguments [String] :grok_pattern If the format is +semi_structured_text+, you can specify a Grok pattern that is used to extract fields from every message in the text. - # The name of the timestamp field in the Grok pattern must match what is specified in the +timestamp_field+ parameter. + # If the format is `delimited` and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row. + # @option arguments [String] :grok_pattern If the format is `semi_structured_text`, you can specify a Grok pattern that is used to extract fields from every message in the text. + # The name of the timestamp field in the Grok pattern must match what is specified in the `timestamp_field` parameter. # If that parameter is not specified, the name of the timestamp field in the Grok pattern must match "timestamp". - # If +grok_pattern+ is not specified, the structure finder creates a Grok pattern. - # @option arguments [String] :quote If the format is +delimited+, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character. + # If `grok_pattern` is not specified, the structure finder creates a Grok pattern. + # @option arguments [String] :quote If the format is `delimited`, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character. # Only a single character is supported. - # If this parameter is not specified, the default value is a double quote (+"+). + # If this parameter is not specified, the default value is a double quote (`"`). # If your delimited text format does not use quoting, a workaround is to set this argument to a character that does not appear anywhere in the sample. - # @option arguments [Boolean] :should_trim_fields If the format is +delimited+, you can specify whether values between delimiters should have whitespace trimmed from them. - # If this parameter is not specified and the delimiter is pipe (+|+), the default value is true. - # Otherwise, the default value is +false+. + # @option arguments [Boolean] :should_trim_fields If the format is `delimited`, you can specify whether values between delimiters should have whitespace trimmed from them. + # If this parameter is not specified and the delimiter is pipe (`|`), the default value is true. + # Otherwise, the default value is `false`. # @option arguments [Time] :timeout The maximum amount of time that the structure analysis can take. # If the analysis is still running when the timeout expires, it will be stopped. Server default: 25s. # @option arguments [String] :timestamp_field The name of the field that contains the primary timestamp of each record in the text. - # In particular, if the text was ingested into an index, this is the field that would be used to populate the +@timestamp+ field.If the format is +semi_structured_text+, this field must match the name of the appropriate extraction in the +grok_pattern+. - # Therefore, for semi-structured text, it is best not to specify this parameter unless +grok_pattern+ is also specified.For structured text, if you specify this parameter, the field must exist within the text.If this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field. + # In particular, if the text was ingested into an index, this is the field that would be used to populate the `@timestamp` field.If the format is `semi_structured_text`, this field must match the name of the appropriate extraction in the `grok_pattern`. + # Therefore, for semi-structured text, it is best not to specify this parameter unless `grok_pattern` is also specified.For structured text, if you specify this parameter, the field must exist within the text.If this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field. # For structured text, it is not compulsory to have a timestamp in the text. # @option arguments [String] :timestamp_format The Java time format of the timestamp field in the text. # Only a subset of Java time format letter groups are supported: - # - +a+ - # - +d+ - # - +dd+ - # - +EEE+ - # - +EEEE+ - # - +H+ - # - +HH+ - # - +h+ - # - +M+ - # - +MM+ - # - +MMM+ - # - +MMMM+ - # - +mm+ - # - +ss+ - # - +XX+ - # - +XXX+ - # - +yy+ - # - +yyyy+ - # - +zzz+ - # Additionally +S+ letter groups (fractional seconds) of length one to nine are supported providing they occur after +ss+ and are separated from the +ss+ by a period (+.+), comma (+,+), or colon (+:+). - # Spacing and punctuation is also permitted with the exception a question mark (+?+), newline, and carriage return, together with literal text enclosed in single quotes. - # For example, +MM/dd HH.mm.ss,SSSSSS 'in' yyyy+ is a valid override format.One valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full +grok_pattern+. - # Another is when the timestamp format is one that the structure finder does not consider by default.If this parameter is not specified, the structure finder chooses the best format from a built-in set.If the special value +null+ is specified, the structure finder will not look for a primary timestamp in the text. + # - `a` + # - `d` + # - `dd` + # - `EEE` + # - `EEEE` + # - `H` + # - `HH` + # - `h` + # - `M` + # - `MM` + # - `MMM` + # - `MMMM` + # - `mm` + # - `ss` + # - `XX` + # - `XXX` + # - `yy` + # - `yyyy` + # - `zzz` + # Additionally `S` letter groups (fractional seconds) of length one to nine are supported providing they occur after `ss` and are separated from the `ss` by a period (`.`), comma (`,`), or colon (`:`). + # Spacing and punctuation is also permitted with the exception a question mark (`?`), newline, and carriage return, together with literal text enclosed in single quotes. + # For example, `MM/dd HH.mm.ss,SSSSSS 'in' yyyy` is a valid override format.One valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full `grok_pattern`. + # Another is when the timestamp format is one that the structure finder does not consider by default.If this parameter is not specified, the structure finder chooses the best format from a built-in set.If the special value `null` is specified, the structure finder will not look for a primary timestamp in the text. # When the format is semi-structured text, this will result in the structure finder treating the text as single-line messages. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb index 496d4a0b84..bc56d5a84b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb @@ -38,33 +38,33 @@ module Actions # # @option arguments [String] :charset The text's character set. # It must be a character set that is supported by the JVM that Elasticsearch uses. - # For example, +UTF-8+, +UTF-16LE+, +windows-1252+, or +EUC-JP+. + # For example, `UTF-8`, `UTF-16LE`, `windows-1252`, or `EUC-JP`. # If this parameter is not specified, the structure finder chooses an appropriate character set. - # @option arguments [String] :column_names If you have set format to +delimited+, you can specify the column names in a comma-separated list. + # @option arguments [String] :column_names If you have set format to `delimited`, you can specify the column names in a comma-separated list. # If this parameter is not specified, the structure finder uses the column names from the header row of the text. # If the text does not have a header role, columns are named "column1", "column2", "column3", for example. - # @option arguments [String] :delimiter If you have set +format+ to +delimited+, you can specify the character used to delimit the values in each row. + # @option arguments [String] :delimiter If you have set `format` to `delimited`, you can specify the character used to delimit the values in each row. # Only a single character is supported; the delimiter cannot have multiple characters. - # By default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (+|+). + # By default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (`|`). # In this default scenario, all rows must have the same number of fields for the delimited format to be detected. # If you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row. # @option arguments [String] :ecs_compatibility The mode of compatibility with ECS compliant Grok patterns. # Use this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern. - # Valid values are +disabled+ and +v1+. - # This setting primarily has an impact when a whole message Grok pattern such as +%{CATALINALOG}+ matches the input. - # If the structure finder identifies a common structure but has no idea of meaning then generic field names such as +path+, +ipaddress+, +field1+, and +field2+ are used in the +grok_pattern+ output, with the intention that a user who knows the meanings rename these fields before using it. Server default: disabled. - # @option arguments [Boolean] :explain If this parameter is set to +true+, the response includes a field named explanation, which is an array of strings that indicate how the structure finder produced its result. + # Valid values are `disabled` and `v1`. + # This setting primarily has an impact when a whole message Grok pattern such as `%{CATALINALOG}` matches the input. + # If the structure finder identifies a common structure but has no idea of meaning then generic field names such as `path`, `ipaddress`, `field1`, and `field2` are used in the `grok_pattern` output, with the intention that a user who knows the meanings rename these fields before using it. Server default: disabled. + # @option arguments [Boolean] :explain If this parameter is set to `true`, the response includes a field named explanation, which is an array of strings that indicate how the structure finder produced its result. # If the structure finder produces unexpected results for some text, use this query parameter to help you determine why the returned structure was chosen. # @option arguments [String] :format The high level structure of the text. - # Valid values are +ndjson+, +xml+, +delimited+, and +semi_structured_text+. + # Valid values are `ndjson`, `xml`, `delimited`, and `semi_structured_text`. # By default, the API chooses the format. # In this default scenario, all rows must have the same number of fields for a delimited format to be detected. - # If the format is set to +delimited+ and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row. - # @option arguments [String] :grok_pattern If you have set +format+ to +semi_structured_text+, you can specify a Grok pattern that is used to extract fields from every message in the text. - # The name of the timestamp field in the Grok pattern must match what is specified in the +timestamp_field+ parameter. + # If the format is set to `delimited` and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row. + # @option arguments [String] :grok_pattern If you have set `format` to `semi_structured_text`, you can specify a Grok pattern that is used to extract fields from every message in the text. + # The name of the timestamp field in the Grok pattern must match what is specified in the `timestamp_field` parameter. # If that parameter is not specified, the name of the timestamp field in the Grok pattern must match "timestamp". - # If +grok_pattern+ is not specified, the structure finder creates a Grok pattern. - # @option arguments [Boolean] :has_header_row If you have set +format+ to +delimited+, you can use this parameter to indicate whether the column names are in the first row of the text. + # If `grok_pattern` is not specified, the structure finder creates a Grok pattern. + # @option arguments [Boolean] :has_header_row If you have set `format` to `delimited`, you can use this parameter to indicate whether the column names are in the first row of the text. # If this parameter is not specified, the structure finder guesses based on the similarity of the first row of the text to other rows. # @option arguments [Integer] :line_merge_size_limit The maximum number of characters in a message when lines are merged to form messages while analyzing semi-structured text. # If you have extremely long messages you may need to increase this, but be aware that this may lead to very long processing times if the way to group lines into messages is misdetected. Server default: 10000. @@ -73,43 +73,43 @@ module Actions # If the value of this parameter is greater than the number of lines in the text, the analysis proceeds (as long as there are at least two lines in the text) for all of the lines.NOTE: The number of lines and the variation of the lines affects the speed of the analysis. # For example, if you upload text where the first 1000 lines are all variations on the same message, the analysis will find more commonality than would be seen with a bigger sample. # If possible, however, it is more efficient to upload sample text with more variety in the first 1000 lines than to request analysis of 100000 lines to achieve some variety. Server default: 1000. - # @option arguments [String] :quote If you have set +format+ to +delimited+, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character. + # @option arguments [String] :quote If you have set `format` to `delimited`, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character. # Only a single character is supported. - # If this parameter is not specified, the default value is a double quote (+"+). + # If this parameter is not specified, the default value is a double quote (`"`). # If your delimited text format does not use quoting, a workaround is to set this argument to a character that does not appear anywhere in the sample. - # @option arguments [Boolean] :should_trim_fields If you have set +format+ to +delimited+, you can specify whether values between delimiters should have whitespace trimmed from them. - # If this parameter is not specified and the delimiter is pipe (+|+), the default value is +true+. - # Otherwise, the default value is +false+. + # @option arguments [Boolean] :should_trim_fields If you have set `format` to `delimited`, you can specify whether values between delimiters should have whitespace trimmed from them. + # If this parameter is not specified and the delimiter is pipe (`|`), the default value is `true`. + # Otherwise, the default value is `false`. # @option arguments [Time] :timeout The maximum amount of time that the structure analysis can take. # If the analysis is still running when the timeout expires then it will be stopped. Server default: 25s. # @option arguments [String] :timestamp_field The name of the field that contains the primary timestamp of each record in the text. - # In particular, if the text were ingested into an index, this is the field that would be used to populate the +@timestamp+ field.If the +format+ is +semi_structured_text+, this field must match the name of the appropriate extraction in the +grok_pattern+. - # Therefore, for semi-structured text, it is best not to specify this parameter unless +grok_pattern+ is also specified.For structured text, if you specify this parameter, the field must exist within the text.If this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field. + # In particular, if the text were ingested into an index, this is the field that would be used to populate the `@timestamp` field.If the `format` is `semi_structured_text`, this field must match the name of the appropriate extraction in the `grok_pattern`. + # Therefore, for semi-structured text, it is best not to specify this parameter unless `grok_pattern` is also specified.For structured text, if you specify this parameter, the field must exist within the text.If this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field. # For structured text, it is not compulsory to have a timestamp in the text. # @option arguments [String] :timestamp_format The Java time format of the timestamp field in the text.Only a subset of Java time format letter groups are supported: - # - +a+ - # - +d+ - # - +dd+ - # - +EEE+ - # - +EEEE+ - # - +H+ - # - +HH+ - # - +h+ - # - +M+ - # - +MM+ - # - +MMM+ - # - +MMMM+ - # - +mm+ - # - +ss+ - # - +XX+ - # - +XXX+ - # - +yy+ - # - +yyyy+ - # - +zzz+ - # Additionally +S+ letter groups (fractional seconds) of length one to nine are supported providing they occur after +ss+ and separated from the +ss+ by a +.+, +,+ or +:+. - # Spacing and punctuation is also permitted with the exception of +?+, newline and carriage return, together with literal text enclosed in single quotes. - # For example, +MM/dd HH.mm.ss,SSSSSS 'in' yyyy+ is a valid override format.One valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full +grok_pattern+. - # Another is when the timestamp format is one that the structure finder does not consider by default.If this parameter is not specified, the structure finder chooses the best format from a built-in set.If the special value +null+ is specified the structure finder will not look for a primary timestamp in the text. + # - `a` + # - `d` + # - `dd` + # - `EEE` + # - `EEEE` + # - `H` + # - `HH` + # - `h` + # - `M` + # - `MM` + # - `MMM` + # - `MMMM` + # - `mm` + # - `ss` + # - `XX` + # - `XXX` + # - `yy` + # - `yyyy` + # - `zzz` + # Additionally `S` letter groups (fractional seconds) of length one to nine are supported providing they occur after `ss` and separated from the `ss` by a `.`, `,` or `:`. + # Spacing and punctuation is also permitted with the exception of `?`, newline and carriage return, together with literal text enclosed in single quotes. + # For example, `MM/dd HH.mm.ss,SSSSSS 'in' yyyy` is a valid override format.One valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full `grok_pattern`. + # Another is when the timestamp format is one that the structure finder does not consider by default.If this parameter is not specified, the structure finder chooses the best format from a built-in set.If the special value `null` is specified the structure finder will not look for a primary timestamp in the text. # When the format is semi-structured text this will result in the structure finder treating the text as single-line messages. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body text_files diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb index 71c36310d3..b70e29000d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb @@ -28,7 +28,18 @@ module Actions # # @option arguments [String] :ecs_compatibility The mode of compatibility with ECS compliant Grok patterns. # Use this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern. - # Valid values are +disabled+ and +v1+. Server default: disabled. + # Valid values are `disabled` and `v1`. Server default: disabled. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb index 3b84080930..9b198987a8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb @@ -30,6 +30,17 @@ module Actions # @option arguments [Boolean] :delete_dest_index If this value is true, the destination index is deleted together with the transform. If false, the destination # index will not be deleted # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-delete-transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb index 1f480a8eab..b5629cd085 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb @@ -34,14 +34,9 @@ def get_node_stats(arguments = {}) arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) - - method = if body - Elasticsearch::API::HTTP_POST - else - Elasticsearch::API::HTTP_GET - end + body = nil + method = Elasticsearch::API::HTTP_GET path = '_transform/_node_stats' params = {} diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb index da21c6895c..5a8e122e6a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb @@ -27,8 +27,8 @@ module Actions # # @option arguments [String, Array] :transform_id Identifier for the transform. It can be a transform identifier or a # wildcard expression. You can get information for all transforms by using - # +_all+, by specifying +*+ as the ++, or by omitting the - # ++. + # `_all`, by specifying `*` as the ``, or by omitting the + # ``. # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: # - Contains wildcard expressions and there are no transforms that match. # - Contains the _all string or no identifiers and there are no matches. @@ -40,6 +40,17 @@ module Actions # @option arguments [Boolean] :exclude_generated Excludes fields that were automatically added when creating the # transform. This allows the configuration to be in an acceptable format to # be retrieved and then added to another cluster. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-get-transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb index e566c26127..d5f799d0c0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb @@ -27,8 +27,8 @@ module Actions # # @option arguments [String, Array] :transform_id Identifier for the transform. It can be a transform identifier or a # wildcard expression. You can get information for all transforms by using - # +_all+, by specifying +*+ as the ++, or by omitting the - # ++. (*Required*) + # `_all`, by specifying `*` as the ``, or by omitting the + # ``. (*Required*) # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: # - Contains wildcard expressions and there are no transforms that match. # - Contains the _all string or no identifiers and there are no matches. @@ -38,6 +38,17 @@ module Actions # @option arguments [Integer] :from Skips the specified number of transforms. Server default: 0. # @option arguments [Integer] :size Specifies the maximum number of transforms to obtain. Server default: 100. # @option arguments [Time] :timeout Controls the time to wait for the stats + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-get-transform-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb index 6a22e964b5..0919720ce5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb @@ -32,6 +32,17 @@ module Actions # configuration details in the request body. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the # timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb index 7c8caac245..a2a514f3b4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb @@ -28,18 +28,18 @@ module Actions # a data frame). The ID for each document in the data frame is generated from a hash of the entity, so there is a # unique row per entity. # You must choose either the latest or pivot method for your transform; you cannot use both in a single transform. If - # you choose to use the pivot method for your transform, the entities are defined by the set of +group_by+ fields in - # the pivot object. If you choose to use the latest method, the entities are defined by the +unique_key+ field values + # you choose to use the pivot method for your transform, the entities are defined by the set of `group_by` fields in + # the pivot object. If you choose to use the latest method, the entities are defined by the `unique_key` field values # in the latest object. - # You must have +create_index+, +index+, and +read+ privileges on the destination index and +read+ and - # +view_index_metadata+ privileges on the source indices. When Elasticsearch security features are enabled, the + # You must have `create_index`, `index`, and `read` privileges on the destination index and `read` and + # `view_index_metadata` privileges on the source indices. When Elasticsearch security features are enabled, the # transform remembers which roles the user that created it had at the time of creation and uses those same roles. If # those roles do not have the required privileges on the source and destination indices, the transform fails when it # attempts unauthorized operations. # NOTE: You must use Kibana or this API to create a transform. Do not add a transform directly into any - # +.transform-internal*+ indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do - # not give users any privileges on +.transform-internal*+ indices. If you used transforms prior to 7.5, also do not - # give users any privileges on +.data-frame-internal*+ indices. + # `.transform-internal*` indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do + # not give users any privileges on `.transform-internal*` indices. If you used transforms prior to 7.5, also do not + # give users any privileges on `.data-frame-internal*` indices. # # @option arguments [String] :transform_id Identifier for the transform. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), # hyphens, and underscores. It has a 64 character limit and must start and end with alphanumeric characters. (*Required*) @@ -49,6 +49,17 @@ module Actions # until after the transform is created. The validations are always run when you start the transform, however, with # the exception of privilege checks. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb index 123515afee..ac7adf6347 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb @@ -23,14 +23,25 @@ module API module Transform module Actions # Reset a transform. - # Before you can reset it, you must stop it; alternatively, use the +force+ query parameter. + # Before you can reset it, you must stop it; alternatively, use the `force` query parameter. # If the destination index was created by the transform, it is deleted. # # @option arguments [String] :transform_id Identifier for the transform. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), # hyphens, and underscores. It has a 64 character limit and must start and end with alphanumeric characters. (*Required*) - # @option arguments [Boolean] :force If this value is +true+, the transform is reset regardless of its current state. If it's +false+, the transform + # @option arguments [Boolean] :force If this value is `true`, the transform is reset regardless of its current state. If it's `false`, the transform # must be stopped before it can be reset. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-reset-transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb index ee740dda6f..08bb70a2cb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb @@ -26,11 +26,22 @@ module Actions # Instantly run a transform to process data. # If you run this API, the transform will process the new data instantly, # without waiting for the configured frequency interval. After the API is called, - # the transform will be processed again at +now + frequency+ unless the API + # the transform will be processed again at `now + frequency` unless the API # is called again in the meantime. # # @option arguments [String] :transform_id Identifier for the transform. (*Required*) # @option arguments [Time] :timeout Controls the time to wait for the scheduling to take place Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-schedule-now-transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb index 526d83f0ff..9a9ff9dddb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb @@ -23,10 +23,10 @@ module API module Transform module Actions # Start a transform. - # When you start a transform, it creates the destination index if it does not already exist. The +number_of_shards+ is - # set to +1+ and the +auto_expand_replicas+ is set to +0-1+. If it is a pivot transform, it deduces the mapping + # When you start a transform, it creates the destination index if it does not already exist. The `number_of_shards` is + # set to `1` and the `auto_expand_replicas` is set to `0-1`. If it is a pivot transform, it deduces the mapping # definitions for the destination index from the source indices and the transform aggregations. If fields in the - # destination index are derived from scripts (as in the case of +scripted_metric+ or +bucket_script+ aggregations), + # destination index are derived from scripts (as in the case of `scripted_metric` or `bucket_script` aggregations), # the transform uses dynamic mappings unless an index template exists. If it is a latest transform, it does not deduce # mapping definitions; it uses dynamic mappings. To use explicit mappings, create the destination index before you # start the transform. Alternatively, you can create an index template, though it does not affect the deduced mappings @@ -40,6 +40,17 @@ module Actions # @option arguments [String] :transform_id Identifier for the transform. (*Required*) # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [String] :from Restricts the set of transformed entities to those changed after this time. Relative times like now-30d are supported. Only applicable for continuous transforms. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-start-transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb index c8338f6fff..38f57fe3c4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb @@ -26,19 +26,30 @@ module Actions # Stops one or more transforms. # # @option arguments [String] :transform_id Identifier for the transform. To stop multiple transforms, use a comma-separated list or a wildcard expression. - # To stop all transforms, use +_all+ or +*+ as the identifier. (*Required*) + # To stop all transforms, use `_all` or `*` as the identifier. (*Required*) # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no transforms that match; - # contains the +_all+ string or no identifiers and there are no matches; contains wildcard expressions and there + # contains the `_all` string or no identifiers and there are no matches; contains wildcard expressions and there # are only partial matches.If it is true, the API returns a successful acknowledgement message when there are no matches. When there are # only partial matches, the API stops the appropriate transforms.If it is false, the request returns a 404 status code when there are no matches or only partial matches. Server default: true. # @option arguments [Boolean] :force If it is true, the API forcefully stops the transforms. - # @option arguments [Time] :timeout Period to wait for a response when +wait_for_completion+ is +true+. If no response is received before the + # @option arguments [Time] :timeout Period to wait for a response when `wait_for_completion` is `true`. If no response is received before the # timeout expires, the request returns a timeout exception. However, the request continues processing and # eventually moves the transform to a STOPPED state. Server default: 30s. # @option arguments [Boolean] :wait_for_checkpoint If it is true, the transform does not completely stop until the current checkpoint is completed. If it is false, # the transform stops as soon as possible. # @option arguments [Boolean] :wait_for_completion If it is true, the API blocks until the indexer state completely stops. If it is false, the API returns # immediately and the indexer is stopped asynchronously in the background. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-stop-transform diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb index 75241f92d2..cb552892e9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb @@ -24,9 +24,9 @@ module Transform module Actions # Update a transform. # Updates certain properties of a transform. - # All updated properties except +description+ do not take effect until after the transform starts the next checkpoint, - # thus there is data consistency in each checkpoint. To use this API, you must have +read+ and +view_index_metadata+ - # privileges for the source indices. You must also have +index+ and +read+ privileges for the destination index. When + # All updated properties except `description` do not take effect until after the transform starts the next checkpoint, + # thus there is data consistency in each checkpoint. To use this API, you must have `read` and `view_index_metadata` + # privileges for the source indices. You must also have `index` and `read` privileges for the destination index. When # Elasticsearch security features are enabled, the transform remembers which roles the user who updated it had at the # time of update and runs with those privileges. # @@ -36,6 +36,17 @@ module Actions # created. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the # timeout expires, the request fails and returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb index e2b6a75c98..a77b3cca7f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb @@ -38,6 +38,17 @@ module Actions # @option arguments [Boolean] :dry_run When true, the request checks for updates but does not run them. # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and # returns an error. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-upgrade-transforms diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update.rb index acdfbff666..d6ee427869 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update.rb @@ -23,7 +23,7 @@ module API module Actions # Update a document. # Update a document by running a script or passing a partial document. - # If the Elasticsearch security features are enabled, you must have the +index+ or +write+ index privilege for the target index or index alias. + # If the Elasticsearch security features are enabled, you must have the `index` or `write` index privilege for the target index or index alias. # The script can update, delete, or skip modifying the document. # The API also supports passing a partial document, which is merged into the existing document. # To fully replace an existing document, use the index API. @@ -32,8 +32,8 @@ module Actions # * Runs the specified script. # * Indexes the result. # The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. - # The +_source+ field must be enabled to use this API. - # In addition to +_source+, you can access the following variables through the +ctx+ map: +_index+, +_type+, +_id+, +_version+, +_routing+, and +_now+ (the current timestamp). + # The `_source` field must be enabled to use this API. + # In addition to `_source`, you can access the following variables through the `ctx` map: `_index`, `_type`, `_id`, `_version`, `_routing`, and `_now` (the current timestamp). # # @option arguments [String] :id A unique identifier for the document to be updated. (*Required*) # @option arguments [String] :index The name of the target index. @@ -45,19 +45,30 @@ module Actions # @option arguments [String] :refresh If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search. # If 'wait_for', it waits for a refresh to make this operation visible to search. # If 'false', it does nothing with refreshes. Server default: false. - # @option arguments [Boolean] :require_alias If +true+, the destination must be an index alias. + # @option arguments [Boolean] :require_alias If `true`, the destination must be an index alias. # @option arguments [Integer] :retry_on_conflict The number of times the operation should be retried when a conflict occurs. Server default: 0. # @option arguments [String] :routing A custom value used to route operations to a specific shard. # @option arguments [Time] :timeout The period to wait for the following operations: dynamic mapping updates and waiting for active shards. # Elasticsearch waits for at least the timeout period before failing. # The actual wait time could be longer, particularly when multiple waits occur. Server default: 1m. # @option arguments [Integer, String] :wait_for_active_shards The number of copies of each shard that must be active before proceeding with the operation. - # Set to 'all' or any positive integer up to the total number of shards in the index (+number_of_replicas++1). - # The default value of +1+ means it waits for each primary shard to be active. Server default: 1. - # @option arguments [Boolean, String, Array] :_source If +false+, source retrieval is turned off. + # Set to 'all' or any positive integer up to the total number of shards in the index (`number_of_replicas`+1). + # The default value of `1` means it waits for each primary shard to be active. Server default: 1. + # @option arguments [Boolean, String, Array] :_source If `false`, source retrieval is turned off. # You can also specify a comma-separated list of the fields you want to retrieve. Server default: true. # @option arguments [String, Array] :_source_excludes The source fields you want to exclude. # @option arguments [String, Array] :_source_includes The source fields you want to retrieve. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb index d57ef2bab3..4a16d27836 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb @@ -25,46 +25,48 @@ module Actions # Updates documents that match the specified query. # If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes. # If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: - # * +read+ - # * +index+ or +write+ + # * `read` + # * `index` or `write` # You can specify the query criteria in the request URI or the request body using the same syntax as the search API. # When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. # When the versions match, the document is updated and the version number is incremented. # If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. - # You can opt to count version conflicts instead of halting and returning by setting +conflicts+ to +proceed+. - # Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than +max_docs+ until it has successfully updated +max_docs+ documents or it has gone through every document in the source query. + # You can opt to count version conflicts instead of halting and returning by setting `conflicts` to `proceed`. + # Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than `max_docs` until it has successfully updated `max_docs` documents or it has gone through every document in the source query. # NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. # While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. # A bulk update request is performed for each batch of matching documents. # Any query or update failures cause the update by query request to fail and the failures are shown in the response. # Any update requests that completed successfully still stick, they are not rolled back. # **Throttling update requests** - # To control the rate at which update by query issues batches of update operations, you can set +requests_per_second+ to any positive decimal number. + # To control the rate at which update by query issues batches of update operations, you can set `requests_per_second` to any positive decimal number. # This pads each batch with a wait time to throttle the rate. - # Set +requests_per_second+ to +-1+ to turn off throttling. + # Set `requests_per_second` to `-1` to turn off throttling. # Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. - # The padding time is the difference between the batch size divided by the +requests_per_second+ and the time spent writing. - # By default the batch size is 1000, so if +requests_per_second+ is set to +500+: - # + + # The padding time is the difference between the batch size divided by the `requests_per_second` and the time spent writing. + # By default the batch size is 1000, so if `requests_per_second` is set to `500`: + # + # ``` # target_time = 1000 / 500 per second = 2 seconds # wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds - # + + # ``` + # # Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. # This is "bursty" instead of "smooth". # **Slicing** # Update by query supports sliced scroll to parallelize the update process. # This can improve efficiency and provide a convenient way to break the request down into smaller parts. - # Setting +slices+ to +auto+ chooses a reasonable number for most data streams and indices. + # Setting `slices` to `auto` chooses a reasonable number for most data streams and indices. # This setting will use one slice per shard, up to a certain limit. # If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. - # Adding +slices+ to +_update_by_query+ just automates the manual process of creating sub-requests, which means it has some quirks: + # Adding `slices` to `_update_by_query` just automates the manual process of creating sub-requests, which means it has some quirks: # * You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. - # * Fetching the status of the task for the request with +slices+ only contains the status of completed slices. + # * Fetching the status of the task for the request with `slices` only contains the status of completed slices. # * These sub-requests are individually addressable for things like cancellation and rethrottling. - # * Rethrottling the request with +slices+ will rethrottle the unfinished sub-request proportionally. + # * Rethrottling the request with `slices` will rethrottle the unfinished sub-request proportionally. # * Canceling the request with slices will cancel each sub-request. # * Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. - # * Parameters like +requests_per_second+ and +max_docs+ on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using +max_docs+ with +slices+ might not result in exactly +max_docs+ documents being updated. + # * Parameters like `requests_per_second` and `max_docs` on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using `max_docs` with `slices` might not result in exactly `max_docs` documents being updated. # * Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. # If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: # * Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. @@ -72,51 +74,51 @@ module Actions # Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. # **Update the document source** # Update by query supports scripts to update the document source. - # As with the update API, you can set +ctx.op+ to change the operation that is performed. - # Set +ctx.op = "noop"+ if your script decides that it doesn't have to make any changes. - # The update by query operation skips updating the document and increments the +noop+ counter. - # Set +ctx.op = "delete"+ if your script decides that the document should be deleted. - # The update by query operation deletes the document and increments the +deleted+ counter. - # Update by query supports only +index+, +noop+, and +delete+. - # Setting +ctx.op+ to anything else is an error. - # Setting any other field in +ctx+ is an error. + # As with the update API, you can set `ctx.op` to change the operation that is performed. + # Set `ctx.op = "noop"` if your script decides that it doesn't have to make any changes. + # The update by query operation skips updating the document and increments the `noop` counter. + # Set `ctx.op = "delete"` if your script decides that the document should be deleted. + # The update by query operation deletes the document and increments the `deleted` counter. + # Update by query supports only `index`, `noop`, and `delete`. + # Setting `ctx.op` to anything else is an error. + # Setting any other field in `ctx` is an error. # This API enables you to only modify the source of matching documents; you cannot move them. # # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to search. - # It supports wildcards (+*+). - # To search all data streams or indices, omit this parameter or use +*+ or +_all+. (*Required*) - # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. + # It supports wildcards (`*`). + # To search all data streams or indices, omit this parameter or use `*` or `_all`. (*Required*) + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. - # For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true. + # For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. Server default: true. # @option arguments [String] :analyzer The analyzer to use for the query string. - # This parameter can be used only when the +q+ query string parameter is specified. - # @option arguments [Boolean] :analyze_wildcard If +true+, wildcard and prefix queries are analyzed. - # This parameter can be used only when the +q+ query string parameter is specified. - # @option arguments [String] :conflicts The preferred behavior when update by query hits version conflicts: +abort+ or +proceed+. Server default: abort. - # @option arguments [String] :default_operator The default operator for query string query: +AND+ or +OR+. - # This parameter can be used only when the +q+ query string parameter is specified. Server default: OR. + # This parameter can be used only when the `q` query string parameter is specified. + # @option arguments [Boolean] :analyze_wildcard If `true`, wildcard and prefix queries are analyzed. + # This parameter can be used only when the `q` query string parameter is specified. + # @option arguments [String] :conflicts The preferred behavior when update by query hits version conflicts: `abort` or `proceed`. Server default: abort. + # @option arguments [String] :default_operator The default operator for query string query: `AND` or `OR`. + # This parameter can be used only when the `q` query string parameter is specified. Server default: OR. # @option arguments [String] :df The field to use as default where no field prefix is given in the query string. - # This parameter can be used only when the +q+ query string parameter is specified. + # This parameter can be used only when the `q` query string parameter is specified. # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # It supports comma-separated values, such as +open,hidden+. - # Valid values are: +all+, +open+, +closed+, +hidden+, +none+. + # It supports comma-separated values, such as `open,hidden`. + # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. # @option arguments [Integer] :from Skips the specified number of documents. Server default: 0. - # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index. - # @option arguments [Boolean] :lenient If +true+, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - # This parameter can be used only when the +q+ query string parameter is specified. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. + # @option arguments [Boolean] :lenient If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + # This parameter can be used only when the `q` query string parameter is specified. # @option arguments [Integer] :max_docs The maximum number of documents to process. # It defaults to all documents. - # When set to a value less then or equal to +scroll_size+ then a scroll will not be used to retrieve the results for the operation. + # When set to a value less then or equal to `scroll_size` then a scroll will not be used to retrieve the results for the operation. # @option arguments [String] :pipeline The ID of the pipeline to use to preprocess incoming documents. - # If the index has a default ingest pipeline specified, then setting the value to +_none+ disables the default ingest pipeline for this request. + # If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request. # If a final pipeline is configured it will always run, regardless of the value of this parameter. # @option arguments [String] :preference The node or shard the operation should be performed on. # It is random by default. # @option arguments [String] :q A query in the Lucene query string syntax. - # @option arguments [Boolean] :refresh If +true+, Elasticsearch refreshes affected shards to make the operation visible to search after the request completes. - # This is different than the update API's +refresh+ parameter, which causes just the shard that received the request to be refreshed. - # @option arguments [Boolean] :request_cache If +true+, the request cache is used for this request. + # @option arguments [Boolean] :refresh If `true`, Elasticsearch refreshes affected shards to make the operation visible to search after the request completes. + # This is different than the update API's `refresh` parameter, which causes just the shard that received the request to be refreshed. + # @option arguments [Boolean] :request_cache If `true`, the request cache is used for this request. # It defaults to the index-level setting. # @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second. Server default: -1. # @option arguments [String] :routing A custom value used to route operations to a specific shard. @@ -124,10 +126,10 @@ module Actions # @option arguments [Integer] :scroll_size The size of the scroll request that powers the operation. Server default: 1000. # @option arguments [Time] :search_timeout An explicit timeout for each search request. # By default, there is no timeout. - # @option arguments [String] :search_type The type of the search operation. Available options include +query_then_fetch+ and +dfs_query_then_fetch+. + # @option arguments [String] :search_type The type of the search operation. Available options include `query_then_fetch` and `dfs_query_then_fetch`. # @option arguments [Integer, String] :slices The number of slices this task should be divided into. Server default: 1. # @option arguments [Array] :sort A comma-separated list of : pairs. - # @option arguments [Array] :stats The specific +tag+ of the request for logging and statistical purposes. + # @option arguments [Array] :stats The specific `tag` of the request for logging and statistical purposes. # @option arguments [Integer] :terminate_after The maximum number of documents to collect for each shard. # If a query reaches this limit, Elasticsearch terminates the query early. # Elasticsearch collects documents before sorting.IMPORTANT: Use with caution. @@ -138,15 +140,26 @@ module Actions # By default, it is one minute. # This guarantees Elasticsearch waits for at least the timeout before failing. # The actual wait time could be longer, particularly when multiple waits occur. Server default: 1m. - # @option arguments [Boolean] :version If +true+, returns the document version as part of a hit. + # @option arguments [Boolean] :version If `true`, returns the document version as part of a hit. # @option arguments [Boolean] :version_type Should the document increment the version number (internal) on hit or not (reindex) # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. - # Set to +all+ or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). - # The +timeout+ parameter controls how long each write request waits for unavailable shards to become available. + # Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). + # The `timeout` parameter controls how long each write request waits for unavailable shards to become available. # Both work exactly the way they work in the bulk API. Server default: 1. - # @option arguments [Boolean] :wait_for_completion If +true+, the request blocks until the operation is complete. - # If +false+, Elasticsearch performs some preflight checks, launches the request, and returns a task ID that you can use to cancel or get the status of the task. - # Elasticsearch creates a record of this task as a document at +.tasks/task/${taskId}+. Server default: true. + # @option arguments [Boolean] :wait_for_completion If `true`, the request blocks until the operation is complete. + # If `false`, Elasticsearch performs some preflight checks, launches the request, and returns a task ID that you can use to cancel or get the status of the task. + # Elasticsearch creates a record of this task as a document at `.tasks/task/${taskId}`. Server default: true. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb index da59c25bb8..587d4afd34 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb @@ -27,7 +27,18 @@ module Actions # # @option arguments [String] :task_id The ID for the task. (*Required*) # @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second. - # To turn off throttling, set it to +-1+. Server default: -1. + # To turn off throttling, set it to `-1`. Server default: -1. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-update-by-query-rethrottle diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb index 6b810799d4..2a55bca9a9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb @@ -24,15 +24,26 @@ module Watcher module Actions # Acknowledge a watch. # Acknowledging a watch enables you to manually throttle the execution of the watch's actions. - # The acknowledgement state of an action is stored in the +status.actions..ack.state+ structure. + # The acknowledgement state of an action is stored in the `status.actions..ack.state` structure. # IMPORTANT: If the specified watch is currently being executed, this API will return an error # The reason for this behavior is to prevent overwriting the watch status from a watch execution. - # Acknowledging an action throttles further executions of that action until its +ack.state+ is reset to +awaits_successful_execution+. + # Acknowledging an action throttles further executions of that action until its `ack.state` is reset to `awaits_successful_execution`. # This happens when the condition of the watch is not met (the condition evaluates to false). # # @option arguments [String] :watch_id The watch identifier. (*Required*) # @option arguments [String, Array] :action_id A comma-separated list of the action identifiers to acknowledge. # If you omit this parameter, all of the actions of the watch are acknowledged. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-ack-watch @@ -62,7 +73,7 @@ def ack_watch(arguments = {}) else "_watcher/watch/#{Utils.listify(_watch_id)}/_ack" end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb index 44dd212aa4..b0a6ac6570 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb @@ -26,6 +26,17 @@ module Actions # A watch can be either active or inactive. # # @option arguments [String] :watch_id The watch identifier. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-activate-watch @@ -49,7 +60,7 @@ def activate_watch(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_watcher/watch/#{Utils.listify(_watch_id)}/_activate" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb index 39dfcc10d2..dd0cc61c5e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb @@ -26,6 +26,17 @@ module Actions # A watch can be either active or inactive. # # @option arguments [String] :watch_id The watch identifier. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-deactivate-watch @@ -49,7 +60,7 @@ def deactivate_watch(arguments = {}) method = Elasticsearch::API::HTTP_PUT path = "_watcher/watch/#{Utils.listify(_watch_id)}/_deactivate" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb index 7dd45a6925..a40fdabf13 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb @@ -23,13 +23,24 @@ module API module Watcher module Actions # Delete a watch. - # When the watch is removed, the document representing the watch in the +.watches+ index is gone and it will never be run again. + # When the watch is removed, the document representing the watch in the `.watches` index is gone and it will never be run again. # Deleting a watch does not delete any watch execution records related to this watch from the watch history. # IMPORTANT: Deleting a watch must be done by using only this API. - # Do not delete the watch directly from the +.watches+ index using the Elasticsearch delete document API - # When Elasticsearch security features are enabled, make sure no write privileges are granted to anyone for the +.watches+ index. + # Do not delete the watch directly from the `.watches` index using the Elasticsearch delete document API + # When Elasticsearch security features are enabled, make sure no write privileges are granted to anyone for the `.watches` index. # # @option arguments [String] :id The watch identifier. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-delete-watch diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb index 4dd4ebbe8e..5367a53a66 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb @@ -30,11 +30,22 @@ module Actions # You can use the run watch API to run watches that are not yet registered by specifying the watch definition inline. # This serves as great tool for testing and debugging your watches prior to adding them to Watcher. # When Elasticsearch security features are enabled on your cluster, watches are run with the privileges of the user that stored the watches. - # If your user is allowed to read index +a+, but not index +b+, then the exact same set of rules will apply during execution of a watch. + # If your user is allowed to read index `a`, but not index `b`, then the exact same set of rules will apply during execution of a watch. # When using the run watch API, the authorization data of the user that called the API will be used as a base, instead of the information who stored the watch. # # @option arguments [String] :id The watch identifier. # @option arguments [Boolean] :debug Defines whether the watch runs in debug mode. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb index e27d95113b..3752485bf6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb @@ -23,11 +23,22 @@ module API module Watcher module Actions # Get Watcher index settings. - # Get settings for the Watcher internal index (+.watches+). - # Only a subset of settings are shown, for example +index.auto_expand_replicas+ and +index.number_of_replicas+. + # Get settings for the Watcher internal index (`.watches`). + # Only a subset of settings are shown, for example `index.auto_expand_replicas` and `index.number_of_replicas`. # # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-get-settings diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb index dc9313f093..04c26ab3dd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb @@ -25,6 +25,17 @@ module Actions # Get a watch. # # @option arguments [String] :id The watch identifier. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-get-watch @@ -48,7 +59,7 @@ def get_watch(arguments = {}) method = Elasticsearch::API::HTTP_GET path = "_watcher/watch/#{Utils.listify(_id)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb index 99fdd90c1d..8756ca5842 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb @@ -23,21 +23,32 @@ module API module Watcher module Actions # Create or update a watch. - # When a watch is registered, a new document that represents the watch is added to the +.watches+ index and its trigger is immediately registered with the relevant trigger engine. - # Typically for the +schedule+ trigger, the scheduler is the trigger engine. + # When a watch is registered, a new document that represents the watch is added to the `.watches` index and its trigger is immediately registered with the relevant trigger engine. + # Typically for the `schedule` trigger, the scheduler is the trigger engine. # IMPORTANT: You must use Kibana or this API to create a watch. - # Do not add a watch directly to the +.watches+ index by using the Elasticsearch index API. - # If Elasticsearch security features are enabled, do not give users write privileges on the +.watches+ index. + # Do not add a watch directly to the `.watches` index by using the Elasticsearch index API. + # If Elasticsearch security features are enabled, do not give users write privileges on the `.watches` index. # When you add a watch you can also define its initial active state by setting the *active* parameter. # When Elasticsearch security features are enabled, your watch can index or search only on indices for which the user that stored the watch has privileges. - # If the user is able to read index +a+, but not index +b+, the same will apply when the watch runs. + # If the user is able to read index `a`, but not index `b`, the same will apply when the watch runs. # # @option arguments [String] :id The identifier for the watch. (*Required*) # @option arguments [Boolean] :active The initial state of the watch. - # The default value is +true+, which means the watch is active by default. Server default: true. + # The default value is `true`, which means the watch is active by default. Server default: true. # @option arguments [Integer] :if_primary_term only update the watch if the last operation that has changed the watch has the specified primary term # @option arguments [Integer] :if_seq_no only update the watch if the last operation that has changed the watch has the specified sequence number # @option arguments [Integer] :version Explicit version number for concurrency control + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb index fed6ec16e8..adb606b902 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb @@ -24,8 +24,19 @@ module Watcher module Actions # Query watches. # Get all registered watches in a paginated manner and optionally filter watches by a query. - # Note that only the +_id+ and +metadata.*+ fields are queryable or sortable. + # Note that only the `_id` and `metadata.*` fields are queryable or sortable. # + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # @@ -46,7 +57,7 @@ def query_watches(arguments = {}) end path = '_watcher/_query/watches' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb index c02f8559c8..56232f12d5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb @@ -26,6 +26,17 @@ module Actions # Start the Watcher service if it is not already running. # # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-start diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb index bbd772bc30..c783bd31cf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb @@ -28,6 +28,17 @@ module Actions # # @option arguments [Watchermetric] :metric Defines which additional metrics are included in the response. # @option arguments [Boolean] :emit_stacktraces Defines whether stack traces are generated for each watch that is running. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-stats diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb index c521d0f191..304aa9a695 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb @@ -27,7 +27,18 @@ module Actions # # @option arguments [Time] :master_timeout The period to wait for the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-watcher-stop diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb index c97ef597bf..497d06b392 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb @@ -23,17 +23,28 @@ module API module Watcher module Actions # Update Watcher index settings. - # Update settings for the Watcher internal index (+.watches+). + # Update settings for the Watcher internal index (`.watches`). # Only a subset of settings can be modified. - # This includes +index.auto_expand_replicas+, +index.number_of_replicas+, +index.routing.allocation.exclude.*+, - # +index.routing.allocation.include.*+ and +index.routing.allocation.require.*+. - # Modification of +index.routing.allocation.include._tier_preference+ is an exception and is not allowed as the - # Watcher shards must always be in the +data_content+ tier. + # This includes `index.auto_expand_replicas`, `index.number_of_replicas`, `index.routing.allocation.exclude.*`, + # `index.routing.allocation.include.*` and `index.routing.allocation.require.*`. + # Modification of `index.routing.allocation.include._tier_preference` is an exception and is not allowed as the + # Watcher shards must always be in the `data_content` tier. # # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. # @option arguments [Time] :timeout The period to wait for a response. # If no response is received before the timeout expires, the request fails and returns an error. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb index c1e5be3bfd..278a2eedc3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb @@ -29,10 +29,21 @@ module Actions # * Feature information for the features that are currently enabled and available under the current license. # # @option arguments [Array] :categories A comma-separated list of the information categories to include in the response. - # For example, +build,license,features+. + # For example, `build,license,features`. # @option arguments [Boolean] :accept_enterprise If this param is used it must be set to true # @option arguments [Boolean] :human Defines whether additional human-readable information is included in the response. # In particular, it adds descriptions and a tag line. Server default: true. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-info diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb index c504e1ee07..6957c1ee5a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb @@ -28,7 +28,18 @@ module Actions # # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. - # To indicate that the request should never timeout, set it to +-1+. Server default: 30s. + # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-xpack diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index fc2f3c35bb..7342a5308e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.3'.freeze - ES_SPECIFICATION_COMMIT = '922e9456120bb3e729432d252a36ddd2b705df96'.freeze + ES_SPECIFICATION_COMMIT = 'bd6d2e5d2b8c470c576b72489b20a49fa95b6212'.freeze end end diff --git a/elasticsearch-api/spec/unit/actions/connector/post_spec.rb b/elasticsearch-api/spec/unit/actions/connector/post_spec.rb index 587a1fa0a5..f849b0b178 100644 --- a/elasticsearch-api/spec/unit/actions/connector/post_spec.rb +++ b/elasticsearch-api/spec/unit/actions/connector/post_spec.rb @@ -22,7 +22,7 @@ [ 'POST', '_connector', - {}, + { connector_id: 'foo' }, {}, {}, { endpoint: 'connector.post' } diff --git a/elasticsearch-api/spec/unit/actions/connector/update_active_filtering_spec.rb b/elasticsearch-api/spec/unit/actions/connector/update_active_filtering_spec.rb index 7d91535e2c..b2d4a259b0 100644 --- a/elasticsearch-api/spec/unit/actions/connector/update_active_filtering_spec.rb +++ b/elasticsearch-api/spec/unit/actions/connector/update_active_filtering_spec.rb @@ -33,6 +33,6 @@ end it 'performs the request' do - expect(client_double.connector.update_active_filtering(body: {}, connector_id: 'foo')).to be_a Elasticsearch::API::Response + expect(client_double.connector.update_active_filtering(connector_id: 'foo')).to be_a Elasticsearch::API::Response end end diff --git a/elasticsearch-api/spec/unit/actions/index_lifecycle_management/get_status_spec.rb b/elasticsearch-api/spec/unit/actions/index_lifecycle_management/get_status_spec.rb index fd72263150..a5fd5a430f 100644 --- a/elasticsearch-api/spec/unit/actions/index_lifecycle_management/get_status_spec.rb +++ b/elasticsearch-api/spec/unit/actions/index_lifecycle_management/get_status_spec.rb @@ -22,7 +22,7 @@ [ 'GET', '_ilm/status', - {}, + { index: 'foo' }, nil, {}, { endpoint: 'ilm.get_status' } diff --git a/elasticsearch-api/spec/unit/actions/ingest/get_geoip_database_spec.rb b/elasticsearch-api/spec/unit/actions/ingest/get_geoip_database_spec.rb index 535d653839..a46430d948 100644 --- a/elasticsearch-api/spec/unit/actions/ingest/get_geoip_database_spec.rb +++ b/elasticsearch-api/spec/unit/actions/ingest/get_geoip_database_spec.rb @@ -34,6 +34,6 @@ end it 'performs the request' do - expect(client_double.ingest.get_geoip_database(id: 'foo', body: {})).to be_a Elasticsearch::API::Response + expect(client_double.ingest.get_geoip_database(id: 'foo')).to be_a Elasticsearch::API::Response end end diff --git a/elasticsearch-api/spec/unit/actions/nodes/get_repositories_metering_info_spec.rb b/elasticsearch-api/spec/unit/actions/nodes/get_repositories_metering_info_spec.rb index 56bfdbe3c9..276967f504 100644 --- a/elasticsearch-api/spec/unit/actions/nodes/get_repositories_metering_info_spec.rb +++ b/elasticsearch-api/spec/unit/actions/nodes/get_repositories_metering_info_spec.rb @@ -22,10 +22,10 @@ [ 'GET', '_nodes/foo/_repositories_metering', - {}, + { max_archive_version: 'bar' }, nil, {}, - { defined_params: {node_id: 'foo' }, + { defined_params: { node_id: 'foo' }, endpoint: 'nodes.get_repositories_metering_info' } ] end diff --git a/elasticsearch-api/spec/unit/actions/ssl/certificates_spec.rb b/elasticsearch-api/spec/unit/actions/ssl/certificates_spec.rb index 7ff7f7a7af..0472e5b6df 100644 --- a/elasticsearch-api/spec/unit/actions/ssl/certificates_spec.rb +++ b/elasticsearch-api/spec/unit/actions/ssl/certificates_spec.rb @@ -22,7 +22,7 @@ [ 'GET', '_ssl/certificates', - {}, + { index: 'foo' }, nil, {}, { endpoint: 'ssl.certificates' } From fae4bf9a1766d9b11d8582c53ff110d6a6fd33e6 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 25 Jun 2025 08:59:36 +0100 Subject: [PATCH 59/75] [CI] Stop testing Serverless on Buildkite --- .buildkite/pipeline.yml | 56 ----------------------------------------- 1 file changed, 56 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index c635c77b45..13009e2f80 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -33,61 +33,5 @@ steps: DEBUG: true command: ./.buildkite/run-yaml-tests.sh artifact_paths: elasticsearch-api/tmp/* - - group: 'Elasticsearch Serverless :elasticsearch:' - steps: - - label: 'Create :elasticsearch: Serverless projects' - key: create-serverless - agents: - image: 'docker.elastic.co/appex-qa/qaf:latest' - env: - EC_PROJECT_PREFIX: ruby - EC_REGISTER_BACKEND: buildkite - EC_REGION: aws-eu-west-1 - EC_ENV: qa - commands: - - mkdir ~/.elastic - - touch ~/.elastic/cloud.json - - >- - echo "{\"api_key\":{\"qa\":\"$(vault read -field=qa - secret/ci/elastic-elasticsearch-ruby/cloud-access)\"}}" > - ~/.elastic/cloud.json - - ./.buildkite/create-serverless.sh - - label: 'Run :elasticsearch: Serverless :rspec: Tests :ruby:' - key: run-serverless-tests - depends_on: - - step: create-serverless - agents: - provider: gcp - env: - RUBY_VERSION: '3.4' - RUBY_SOURCE: ruby - TEST_SUITE: serverless - ES_YAML_TESTS_BRANCH: '9.0' - QUIET: false - command: ./.buildkite/run-yaml-tests.sh - artifact_paths: elasticsearch-api/tmp/* - - label: 'Destroy :elasticsearch: Serverless projects' - depends_on: - - step: run-serverless-tests - allow_failure: true - agents: - image: 'docker.elastic.co/appex-qa/qaf:latest' - env: - EC_REGISTER_BACKEND: buildkite - EC_ENV: qa - EC_REGION: aws-eu-west-1 - commands: - - mkdir ~/.elastic - - touch ~/.elastic/cloud.json - - >- - export EC_PROJECT_NAME=`buildkite-agent meta-data get - "EC_PROJECT_NAME"` - - >- - echo "{\"api_key\":{\"qa\":\"$(vault read -field=qa - secret/ci/elastic-elasticsearch-ruby/cloud-access)\"}}" > - ~/.elastic/cloud.json - - qaf elastic-cloud projects delete - - wait: ~ - continue_on_failure: true - label: Log Results command: ./.buildkite/log-results.sh From 3fa78e0dad1865c7579287b8fa0cbdc1f7caf96d Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 1 Jul 2025 09:34:12 +0100 Subject: [PATCH 60/75] [API][DOCS] Streamlines api source code documentation based on specificiation/generator updates. Improves type definitions for parameters in source code documentation. --- .../api/actions/async_search/delete.rb | 2 +- .../api/actions/async_search/get.rb | 2 +- .../api/actions/async_search/status.rb | 2 +- .../api/actions/async_search/submit.rb | 4 +- .../lib/elasticsearch/api/actions/bulk.rb | 2 +- .../elasticsearch/api/actions/cat/aliases.rb | 2 +- .../api/actions/cat/allocation.rb | 2 +- .../api/actions/cat/component_templates.rb | 2 +- .../elasticsearch/api/actions/cat/count.rb | 2 +- .../api/actions/cat/fielddata.rb | 2 +- .../elasticsearch/api/actions/cat/health.rb | 2 +- .../elasticsearch/api/actions/cat/indices.rb | 2 +- .../elasticsearch/api/actions/cat/master.rb | 2 +- .../actions/cat/ml_data_frame_analytics.rb | 2 +- .../api/actions/cat/ml_datafeeds.rb | 2 +- .../elasticsearch/api/actions/cat/ml_jobs.rb | 2 +- .../api/actions/cat/ml_trained_models.rb | 2 +- .../api/actions/cat/nodeattrs.rb | 2 +- .../elasticsearch/api/actions/cat/nodes.rb | 2 +- .../api/actions/cat/pending_tasks.rb | 2 +- .../elasticsearch/api/actions/cat/plugins.rb | 2 +- .../elasticsearch/api/actions/cat/recovery.rb | 2 +- .../api/actions/cat/repositories.rb | 2 +- .../elasticsearch/api/actions/cat/segments.rb | 2 +- .../elasticsearch/api/actions/cat/shards.rb | 2 +- .../api/actions/cat/snapshots.rb | 2 +- .../elasticsearch/api/actions/cat/tasks.rb | 2 +- .../api/actions/cat/templates.rb | 2 +- .../api/actions/cat/thread_pool.rb | 2 +- .../api/actions/cat/transforms.rb | 2 +- .../elasticsearch/api/actions/clear_scroll.rb | 2 +- .../api/actions/close_point_in_time.rb | 2 +- .../api/actions/cluster/allocation_explain.rb | 2 +- .../cluster/delete_component_template.rb | 2 +- .../delete_voting_config_exclusions.rb | 2 +- .../cluster/exists_component_template.rb | 2 +- .../actions/cluster/get_component_template.rb | 2 +- .../api/actions/cluster/get_settings.rb | 2 +- .../api/actions/cluster/health.rb | 2 +- .../elasticsearch/api/actions/cluster/info.rb | 2 +- .../api/actions/cluster/pending_tasks.rb | 2 +- .../cluster/post_voting_config_exclusions.rb | 2 +- .../actions/cluster/put_component_template.rb | 2 +- .../api/actions/cluster/put_settings.rb | 2 +- .../api/actions/cluster/remote_info.rb | 2 +- .../api/actions/cluster/reroute.rb | 2 +- .../api/actions/cluster/state.rb | 2 +- .../api/actions/cluster/stats.rb | 2 +- .../api/actions/connector/check_in.rb | 2 +- .../api/actions/connector/delete.rb | 2 +- .../api/actions/connector/get.rb | 2 +- .../api/actions/connector/list.rb | 2 +- .../api/actions/connector/post.rb | 2 +- .../api/actions/connector/put.rb | 2 +- .../api/actions/connector/sync_job_cancel.rb | 2 +- .../actions/connector/sync_job_check_in.rb | 2 +- .../api/actions/connector/sync_job_claim.rb | 2 +- .../api/actions/connector/sync_job_delete.rb | 2 +- .../api/actions/connector/sync_job_error.rb | 2 +- .../api/actions/connector/sync_job_get.rb | 2 +- .../api/actions/connector/sync_job_list.rb | 4 +- .../api/actions/connector/sync_job_post.rb | 2 +- .../connector/sync_job_update_stats.rb | 2 +- .../connector/update_active_filtering.rb | 2 +- .../actions/connector/update_api_key_id.rb | 2 +- .../actions/connector/update_configuration.rb | 2 +- .../api/actions/connector/update_error.rb | 2 +- .../api/actions/connector/update_features.rb | 2 +- .../api/actions/connector/update_filtering.rb | 2 +- .../connector/update_filtering_validation.rb | 2 +- .../actions/connector/update_index_name.rb | 2 +- .../api/actions/connector/update_name.rb | 2 +- .../api/actions/connector/update_native.rb | 2 +- .../api/actions/connector/update_pipeline.rb | 2 +- .../actions/connector/update_scheduling.rb | 2 +- .../actions/connector/update_service_type.rb | 2 +- .../api/actions/connector/update_status.rb | 2 +- .../lib/elasticsearch/api/actions/count.rb | 2 +- .../lib/elasticsearch/api/actions/create.rb | 2 +- .../delete_auto_follow_pattern.rb | 2 +- .../cross_cluster_replication/follow.rb | 2 +- .../cross_cluster_replication/follow_info.rb | 2 +- .../cross_cluster_replication/follow_stats.rb | 2 +- .../forget_follower.rb | 2 +- .../get_auto_follow_pattern.rb | 2 +- .../pause_auto_follow_pattern.rb | 2 +- .../cross_cluster_replication/pause_follow.rb | 2 +- .../put_auto_follow_pattern.rb | 2 +- .../resume_auto_follow_pattern.rb | 2 +- .../resume_follow.rb | 2 +- .../cross_cluster_replication/stats.rb | 2 +- .../cross_cluster_replication/unfollow.rb | 2 +- .../dangling_indices/delete_dangling_index.rb | 2 +- .../dangling_indices/import_dangling_index.rb | 2 +- .../dangling_indices/list_dangling_indices.rb | 2 +- .../lib/elasticsearch/api/actions/delete.rb | 2 +- .../api/actions/delete_by_query.rb | 2 +- .../api/actions/delete_by_query_rethrottle.rb | 2 +- .../api/actions/delete_script.rb | 2 +- .../api/actions/enrich/delete_policy.rb | 2 +- .../api/actions/enrich/execute_policy.rb | 2 +- .../api/actions/enrich/get_policy.rb | 2 +- .../api/actions/enrich/put_policy.rb | 2 +- .../elasticsearch/api/actions/enrich/stats.rb | 2 +- .../elasticsearch/api/actions/eql/delete.rb | 2 +- .../lib/elasticsearch/api/actions/eql/get.rb | 2 +- .../api/actions/eql/get_status.rb | 2 +- .../elasticsearch/api/actions/eql/search.rb | 2 +- .../api/actions/esql/async_query.rb | 12 +- .../api/actions/esql/async_query_delete.rb | 2 +- .../api/actions/esql/async_query_get.rb | 3 +- .../api/actions/esql/async_query_stop.rb | 2 +- .../elasticsearch/api/actions/esql/query.rb | 2 +- .../lib/elasticsearch/api/actions/exists.rb | 2 +- .../api/actions/exists_source.rb | 2 +- .../lib/elasticsearch/api/actions/explain.rb | 2 +- .../api/actions/features/get_features.rb | 2 +- .../api/actions/features/reset_features.rb | 2 +- .../elasticsearch/api/actions/field_caps.rb | 2 +- .../api/actions/fleet/global_checkpoints.rb | 4 +- .../api/actions/fleet/msearch.rb | 4 +- .../elasticsearch/api/actions/fleet/search.rb | 6 +- .../lib/elasticsearch/api/actions/get.rb | 8 +- .../elasticsearch/api/actions/get_script.rb | 2 +- .../api/actions/get_script_context.rb | 2 +- .../api/actions/get_script_languages.rb | 2 +- .../elasticsearch/api/actions/get_source.rb | 2 +- .../api/actions/graph/explore.rb | 2 +- .../api/actions/health_report.rb | 4 +- .../lib/elasticsearch/api/actions/index.rb | 2 +- .../delete_lifecycle.rb | 2 +- .../explain_lifecycle.rb | 2 +- .../get_lifecycle.rb | 2 +- .../index_lifecycle_management/get_status.rb | 2 +- .../migrate_to_data_tiers.rb | 2 +- .../move_to_step.rb | 2 +- .../put_lifecycle.rb | 2 +- .../remove_policy.rb | 2 +- .../index_lifecycle_management/retry.rb | 2 +- .../index_lifecycle_management/start.rb | 2 +- .../index_lifecycle_management/stop.rb | 2 +- .../api/actions/indices/add_block.rb | 2 +- .../api/actions/indices/analyze.rb | 2 +- .../actions/indices/cancel_migrate_reindex.rb | 2 +- .../api/actions/indices/clear_cache.rb | 5 +- .../api/actions/indices/clone.rb | 2 +- .../api/actions/indices/close.rb | 5 +- .../api/actions/indices/create.rb | 2 +- .../api/actions/indices/create_data_stream.rb | 2 +- .../api/actions/indices/create_from.rb | 2 +- .../api/actions/indices/data_streams_stats.rb | 2 +- .../api/actions/indices/delete.rb | 5 +- .../api/actions/indices/delete_alias.rb | 2 +- .../actions/indices/delete_data_lifecycle.rb | 2 +- .../api/actions/indices/delete_data_stream.rb | 2 +- .../actions/indices/delete_index_template.rb | 2 +- .../api/actions/indices/delete_template.rb | 2 +- .../api/actions/indices/disk_usage.rb | 2 +- .../api/actions/indices/downsample.rb | 2 +- .../api/actions/indices/exists.rb | 5 +- .../api/actions/indices/exists_alias.rb | 5 +- .../actions/indices/exists_index_template.rb | 2 +- .../api/actions/indices/exists_template.rb | 2 +- .../actions/indices/explain_data_lifecycle.rb | 2 +- .../api/actions/indices/field_usage_stats.rb | 2 +- .../api/actions/indices/flush.rb | 5 +- .../api/actions/indices/forcemerge.rb | 2 +- .../elasticsearch/api/actions/indices/get.rb | 2 +- .../api/actions/indices/get_alias.rb | 5 +- .../api/actions/indices/get_data_lifecycle.rb | 5 +- .../indices/get_data_lifecycle_stats.rb | 2 +- .../api/actions/indices/get_data_stream.rb | 2 +- .../api/actions/indices/get_field_mapping.rb | 5 +- .../api/actions/indices/get_index_template.rb | 2 +- .../api/actions/indices/get_mapping.rb | 5 +- .../indices/get_migrate_reindex_status.rb | 2 +- .../api/actions/indices/get_settings.rb | 2 +- .../api/actions/indices/get_template.rb | 2 +- .../api/actions/indices/migrate_reindex.rb | 2 +- .../actions/indices/migrate_to_data_stream.rb | 2 +- .../api/actions/indices/modify_data_stream.rb | 2 +- .../elasticsearch/api/actions/indices/open.rb | 5 +- .../actions/indices/promote_data_stream.rb | 2 +- .../api/actions/indices/put_alias.rb | 2 +- .../api/actions/indices/put_data_lifecycle.rb | 5 +- .../api/actions/indices/put_index_template.rb | 2 +- .../api/actions/indices/put_mapping.rb | 32 ++--- .../api/actions/indices/put_settings.rb | 2 +- .../api/actions/indices/put_template.rb | 2 +- .../api/actions/indices/recovery.rb | 2 +- .../api/actions/indices/refresh.rb | 5 +- .../indices/reload_search_analyzers.rb | 2 +- .../api/actions/indices/resolve_cluster.rb | 3 +- .../api/actions/indices/resolve_index.rb | 5 +- .../api/actions/indices/rollover.rb | 2 +- .../api/actions/indices/segments.rb | 5 +- .../api/actions/indices/shard_stores.rb | 4 +- .../api/actions/indices/shrink.rb | 2 +- .../indices/simulate_index_template.rb | 2 +- .../api/actions/indices/simulate_template.rb | 2 +- .../api/actions/indices/split.rb | 2 +- .../api/actions/indices/stats.rb | 4 +- .../api/actions/indices/update_aliases.rb | 2 +- .../api/actions/indices/validate_query.rb | 5 +- .../inference/chat_completion_unified.rb | 2 +- .../api/actions/inference/completion.rb | 2 +- .../api/actions/inference/delete.rb | 2 +- .../api/actions/inference/get.rb | 2 +- .../api/actions/inference/inference.rb | 2 +- .../api/actions/inference/put.rb | 2 +- .../api/actions/inference/put_alibabacloud.rb | 2 +- .../actions/inference/put_amazonbedrock.rb | 2 +- .../api/actions/inference/put_anthropic.rb | 2 +- .../actions/inference/put_azureaistudio.rb | 2 +- .../api/actions/inference/put_azureopenai.rb | 2 +- .../api/actions/inference/put_cohere.rb | 2 +- .../actions/inference/put_elasticsearch.rb | 2 +- .../api/actions/inference/put_elser.rb | 2 +- .../actions/inference/put_googleaistudio.rb | 2 +- .../actions/inference/put_googlevertexai.rb | 2 +- .../api/actions/inference/put_hugging_face.rb | 2 +- .../api/actions/inference/put_jinaai.rb | 2 +- .../api/actions/inference/put_mistral.rb | 2 +- .../api/actions/inference/put_openai.rb | 2 +- .../api/actions/inference/put_voyageai.rb | 2 +- .../api/actions/inference/put_watsonx.rb | 2 +- .../api/actions/inference/rerank.rb | 2 +- .../api/actions/inference/sparse_embedding.rb | 2 +- .../actions/inference/stream_completion.rb | 2 +- .../api/actions/inference/text_embedding.rb | 2 +- .../api/actions/inference/update.rb | 2 +- .../lib/elasticsearch/api/actions/info.rb | 2 +- .../actions/ingest/delete_geoip_database.rb | 2 +- .../ingest/delete_ip_location_database.rb | 2 +- .../api/actions/ingest/delete_pipeline.rb | 2 +- .../api/actions/ingest/geo_ip_stats.rb | 2 +- .../api/actions/ingest/get_geoip_database.rb | 2 +- .../ingest/get_ip_location_database.rb | 2 +- .../api/actions/ingest/get_pipeline.rb | 2 +- .../api/actions/ingest/processor_grok.rb | 2 +- .../api/actions/ingest/put_geoip_database.rb | 2 +- .../ingest/put_ip_location_database.rb | 2 +- .../api/actions/ingest/put_pipeline.rb | 2 +- .../api/actions/ingest/simulate.rb | 2 +- .../api/actions/license/delete.rb | 2 +- .../elasticsearch/api/actions/license/get.rb | 2 +- .../api/actions/license/get_basic_status.rb | 2 +- .../api/actions/license/get_trial_status.rb | 2 +- .../elasticsearch/api/actions/license/post.rb | 2 +- .../api/actions/license/post_start_basic.rb | 2 +- .../api/actions/license/post_start_trial.rb | 2 +- .../api/actions/logstash/delete_pipeline.rb | 2 +- .../api/actions/logstash/get_pipeline.rb | 2 +- .../api/actions/logstash/put_pipeline.rb | 2 +- .../clear_trained_model_deployment_cache.rb | 2 +- .../api/actions/machine_learning/close_job.rb | 2 +- .../machine_learning/delete_calendar.rb | 2 +- .../machine_learning/delete_calendar_event.rb | 2 +- .../machine_learning/delete_calendar_job.rb | 2 +- .../delete_data_frame_analytics.rb | 2 +- .../machine_learning/delete_datafeed.rb | 2 +- .../machine_learning/delete_expired_data.rb | 2 +- .../actions/machine_learning/delete_filter.rb | 2 +- .../machine_learning/delete_forecast.rb | 2 +- .../actions/machine_learning/delete_job.rb | 2 +- .../machine_learning/delete_model_snapshot.rb | 2 +- .../machine_learning/delete_trained_model.rb | 2 +- .../delete_trained_model_alias.rb | 2 +- .../machine_learning/estimate_model_memory.rb | 2 +- .../machine_learning/evaluate_data_frame.rb | 2 +- .../explain_data_frame_analytics.rb | 2 +- .../api/actions/machine_learning/flush_job.rb | 2 +- .../api/actions/machine_learning/forecast.rb | 2 +- .../actions/machine_learning/get_buckets.rb | 2 +- .../machine_learning/get_calendar_events.rb | 2 +- .../actions/machine_learning/get_calendars.rb | 2 +- .../machine_learning/get_categories.rb | 2 +- .../get_data_frame_analytics.rb | 2 +- .../get_data_frame_analytics_stats.rb | 2 +- .../machine_learning/get_datafeed_stats.rb | 2 +- .../actions/machine_learning/get_datafeeds.rb | 2 +- .../actions/machine_learning/get_filters.rb | 2 +- .../machine_learning/get_influencers.rb | 2 +- .../actions/machine_learning/get_job_stats.rb | 2 +- .../api/actions/machine_learning/get_jobs.rb | 2 +- .../machine_learning/get_memory_stats.rb | 2 +- .../get_model_snapshot_upgrade_stats.rb | 2 +- .../machine_learning/get_model_snapshots.rb | 2 +- .../machine_learning/get_overall_buckets.rb | 4 +- .../actions/machine_learning/get_records.rb | 2 +- .../machine_learning/get_trained_models.rb | 4 +- .../get_trained_models_stats.rb | 2 +- .../machine_learning/infer_trained_model.rb | 2 +- .../api/actions/machine_learning/info.rb | 2 +- .../api/actions/machine_learning/open_job.rb | 2 +- .../machine_learning/post_calendar_events.rb | 2 +- .../api/actions/machine_learning/post_data.rb | 2 +- .../preview_data_frame_analytics.rb | 2 +- .../machine_learning/preview_datafeed.rb | 2 +- .../actions/machine_learning/put_calendar.rb | 2 +- .../machine_learning/put_calendar_job.rb | 2 +- .../put_data_frame_analytics.rb | 2 +- .../actions/machine_learning/put_datafeed.rb | 16 +-- .../actions/machine_learning/put_filter.rb | 2 +- .../api/actions/machine_learning/put_job.rb | 9 +- .../machine_learning/put_trained_model.rb | 2 +- .../put_trained_model_alias.rb | 2 +- .../put_trained_model_definition_part.rb | 2 +- .../put_trained_model_vocabulary.rb | 2 +- .../api/actions/machine_learning/reset_job.rb | 2 +- .../machine_learning/revert_model_snapshot.rb | 2 +- .../machine_learning/set_upgrade_mode.rb | 2 +- .../start_data_frame_analytics.rb | 2 +- .../machine_learning/start_datafeed.rb | 2 +- .../start_trained_model_deployment.rb | 2 +- .../stop_data_frame_analytics.rb | 2 +- .../actions/machine_learning/stop_datafeed.rb | 2 +- .../stop_trained_model_deployment.rb | 2 +- .../update_data_frame_analytics.rb | 2 +- .../machine_learning/update_datafeed.rb | 9 +- .../actions/machine_learning/update_filter.rb | 2 +- .../actions/machine_learning/update_job.rb | 2 +- .../machine_learning/update_model_snapshot.rb | 2 +- .../update_trained_model_deployment.rb | 2 +- .../machine_learning/upgrade_job_snapshot.rb | 2 +- .../lib/elasticsearch/api/actions/mget.rb | 2 +- .../api/actions/migration/deprecations.rb | 2 +- .../migration/get_feature_upgrade_status.rb | 2 +- .../actions/migration/post_feature_upgrade.rb | 2 +- .../lib/elasticsearch/api/actions/msearch.rb | 2 +- .../api/actions/msearch_template.rb | 2 +- .../elasticsearch/api/actions/mtermvectors.rb | 2 +- .../clear_repositories_metering_archive.rb | 2 +- .../nodes/get_repositories_metering_info.rb | 2 +- .../api/actions/nodes/hot_threads.rb | 2 +- .../elasticsearch/api/actions/nodes/info.rb | 2 +- .../actions/nodes/reload_secure_settings.rb | 2 +- .../elasticsearch/api/actions/nodes/stats.rb | 2 +- .../elasticsearch/api/actions/nodes/usage.rb | 2 +- .../api/actions/open_point_in_time.rb | 4 +- .../lib/elasticsearch/api/actions/ping.rb | 2 +- .../elasticsearch/api/actions/put_script.rb | 2 +- .../api/actions/query_rules/delete_rule.rb | 2 +- .../api/actions/query_rules/delete_ruleset.rb | 2 +- .../api/actions/query_rules/get_rule.rb | 2 +- .../api/actions/query_rules/get_ruleset.rb | 2 +- .../api/actions/query_rules/list_rulesets.rb | 2 +- .../api/actions/query_rules/put_rule.rb | 2 +- .../api/actions/query_rules/put_ruleset.rb | 2 +- .../api/actions/query_rules/test.rb | 2 +- .../elasticsearch/api/actions/rank_eval.rb | 2 +- .../lib/elasticsearch/api/actions/reindex.rb | 112 +----------------- .../api/actions/reindex_rethrottle.rb | 2 +- .../api/actions/render_search_template.rb | 2 +- .../api/actions/scripts_painless_execute.rb | 2 +- .../lib/elasticsearch/api/actions/scroll.rb | 2 +- .../lib/elasticsearch/api/actions/search.rb | 4 +- .../api/actions/search_application/delete.rb | 2 +- .../delete_behavioral_analytics.rb | 2 +- .../api/actions/search_application/get.rb | 2 +- .../get_behavioral_analytics.rb | 2 +- .../api/actions/search_application/list.rb | 2 +- .../post_behavioral_analytics_event.rb | 2 +- .../api/actions/search_application/put.rb | 2 +- .../put_behavioral_analytics.rb | 2 +- .../search_application/render_query.rb | 2 +- .../api/actions/search_application/search.rb | 2 +- .../elasticsearch/api/actions/search_mvt.rb | 51 +------- .../api/actions/search_shards.rb | 5 +- .../api/actions/search_template.rb | 3 +- .../searchable_snapshots/cache_stats.rb | 2 +- .../searchable_snapshots/clear_cache.rb | 2 +- .../api/actions/searchable_snapshots/mount.rb | 2 +- .../api/actions/searchable_snapshots/stats.rb | 2 +- .../actions/security/activate_user_profile.rb | 2 +- .../api/actions/security/authenticate.rb | 2 +- .../api/actions/security/bulk_delete_role.rb | 2 +- .../api/actions/security/bulk_put_role.rb | 2 +- .../actions/security/bulk_update_api_keys.rb | 2 +- .../api/actions/security/change_password.rb | 2 +- .../actions/security/clear_api_key_cache.rb | 2 +- .../security/clear_cached_privileges.rb | 2 +- .../actions/security/clear_cached_realms.rb | 2 +- .../actions/security/clear_cached_roles.rb | 2 +- .../security/clear_cached_service_tokens.rb | 2 +- .../api/actions/security/create_api_key.rb | 2 +- .../security/create_cross_cluster_api_key.rb | 2 +- .../actions/security/create_service_token.rb | 2 +- .../api/actions/security/delegate_pki.rb | 2 +- .../api/actions/security/delete_privileges.rb | 2 +- .../api/actions/security/delete_role.rb | 2 +- .../actions/security/delete_role_mapping.rb | 2 +- .../actions/security/delete_service_token.rb | 2 +- .../api/actions/security/delete_user.rb | 2 +- .../api/actions/security/disable_user.rb | 2 +- .../actions/security/disable_user_profile.rb | 2 +- .../api/actions/security/enable_user.rb | 2 +- .../actions/security/enable_user_profile.rb | 2 +- .../api/actions/security/enroll_kibana.rb | 2 +- .../api/actions/security/enroll_node.rb | 2 +- .../api/actions/security/get_api_key.rb | 2 +- .../security/get_builtin_privileges.rb | 2 +- .../api/actions/security/get_privileges.rb | 2 +- .../api/actions/security/get_role.rb | 2 +- .../api/actions/security/get_role_mapping.rb | 2 +- .../actions/security/get_service_accounts.rb | 2 +- .../security/get_service_credentials.rb | 2 +- .../api/actions/security/get_settings.rb | 2 +- .../api/actions/security/get_token.rb | 2 +- .../api/actions/security/get_user.rb | 4 +- .../actions/security/get_user_privileges.rb | 4 +- .../api/actions/security/get_user_profile.rb | 6 +- .../api/actions/security/grant_api_key.rb | 2 +- .../api/actions/security/has_privileges.rb | 2 +- .../security/has_privileges_user_profile.rb | 2 +- .../actions/security/invalidate_api_key.rb | 2 +- .../api/actions/security/invalidate_token.rb | 2 +- .../api/actions/security/oidc_authenticate.rb | 2 +- .../api/actions/security/oidc_logout.rb | 2 +- .../security/oidc_prepare_authentication.rb | 2 +- .../api/actions/security/put_privileges.rb | 2 +- .../api/actions/security/put_role.rb | 2 +- .../api/actions/security/put_role_mapping.rb | 2 +- .../api/actions/security/put_user.rb | 2 +- .../api/actions/security/query_api_keys.rb | 3 +- .../api/actions/security/query_role.rb | 2 +- .../api/actions/security/query_user.rb | 2 +- .../api/actions/security/saml_authenticate.rb | 2 +- .../actions/security/saml_complete_logout.rb | 2 +- .../api/actions/security/saml_invalidate.rb | 2 +- .../api/actions/security/saml_logout.rb | 2 +- .../security/saml_prepare_authentication.rb | 2 +- .../saml_service_provider_metadata.rb | 2 +- .../actions/security/suggest_user_profiles.rb | 4 +- .../api/actions/security/update_api_key.rb | 2 +- .../security/update_cross_cluster_api_key.rb | 3 +- .../api/actions/security/update_settings.rb | 2 +- .../security/update_user_profile_data.rb | 2 +- .../api/actions/simulate/ingest.rb | 2 +- .../actions/snapshot/cleanup_repository.rb | 2 +- .../api/actions/snapshot/clone.rb | 2 +- .../api/actions/snapshot/create.rb | 2 +- .../api/actions/snapshot/create_repository.rb | 2 +- .../api/actions/snapshot/delete.rb | 2 +- .../api/actions/snapshot/delete_repository.rb | 2 +- .../elasticsearch/api/actions/snapshot/get.rb | 2 +- .../api/actions/snapshot/get_repository.rb | 2 +- .../actions/snapshot/repository_analyze.rb | 2 +- .../api/actions/snapshot/restore.rb | 2 +- .../api/actions/snapshot/status.rb | 2 +- .../api/actions/snapshot/verify_repository.rb | 2 +- .../delete_lifecycle.rb | 2 +- .../execute_lifecycle.rb | 2 +- .../execute_retention.rb | 2 +- .../get_lifecycle.rb | 2 +- .../get_stats.rb | 2 +- .../get_status.rb | 2 +- .../put_lifecycle.rb | 2 +- .../snapshot_lifecycle_management/start.rb | 2 +- .../snapshot_lifecycle_management/stop.rb | 2 +- .../api/actions/sql/clear_cursor.rb | 2 +- .../api/actions/sql/delete_async.rb | 2 +- .../api/actions/sql/get_async.rb | 2 +- .../api/actions/sql/get_async_status.rb | 2 +- .../elasticsearch/api/actions/sql/query.rb | 2 +- .../api/actions/sql/translate.rb | 2 +- .../api/actions/ssl/certificates.rb | 2 +- .../api/actions/synonyms/delete_synonym.rb | 2 +- .../actions/synonyms/delete_synonym_rule.rb | 2 +- .../api/actions/synonyms/get_synonym.rb | 2 +- .../api/actions/synonyms/get_synonym_rule.rb | 2 +- .../api/actions/synonyms/get_synonyms_sets.rb | 2 +- .../api/actions/synonyms/put_synonym.rb | 2 +- .../api/actions/synonyms/put_synonym_rule.rb | 2 +- .../elasticsearch/api/actions/tasks/cancel.rb | 4 +- .../elasticsearch/api/actions/tasks/get.rb | 2 +- .../elasticsearch/api/actions/tasks/list.rb | 4 +- .../elasticsearch/api/actions/terms_enum.rb | 2 +- .../elasticsearch/api/actions/termvectors.rb | 2 +- .../text_structure/find_field_structure.rb | 2 +- .../text_structure/find_message_structure.rb | 2 +- .../text_structure/test_grok_pattern.rb | 2 +- .../api/actions/transform/delete_transform.rb | 2 +- .../api/actions/transform/get_transform.rb | 2 +- .../actions/transform/get_transform_stats.rb | 2 +- .../actions/transform/preview_transform.rb | 2 +- .../api/actions/transform/put_transform.rb | 2 +- .../api/actions/transform/reset_transform.rb | 2 +- .../transform/schedule_now_transform.rb | 2 +- .../api/actions/transform/start_transform.rb | 2 +- .../api/actions/transform/stop_transform.rb | 2 +- .../api/actions/transform/update_transform.rb | 2 +- .../actions/transform/upgrade_transforms.rb | 2 +- .../lib/elasticsearch/api/actions/update.rb | 2 +- .../api/actions/update_by_query.rb | 3 +- .../api/actions/update_by_query_rethrottle.rb | 2 +- .../api/actions/watcher/ack_watch.rb | 3 +- .../api/actions/watcher/activate_watch.rb | 2 +- .../api/actions/watcher/deactivate_watch.rb | 2 +- .../api/actions/watcher/delete_watch.rb | 2 +- .../api/actions/watcher/execute_watch.rb | 3 +- .../api/actions/watcher/get_settings.rb | 2 +- .../api/actions/watcher/get_watch.rb | 2 +- .../api/actions/watcher/put_watch.rb | 2 +- .../api/actions/watcher/query_watches.rb | 2 +- .../api/actions/watcher/start.rb | 2 +- .../api/actions/watcher/stats.rb | 4 +- .../elasticsearch/api/actions/watcher/stop.rb | 2 +- .../api/actions/watcher/update_settings.rb | 2 +- .../elasticsearch/api/actions/xpack/info.rb | 2 +- .../elasticsearch/api/actions/xpack/usage.rb | 2 +- .../lib/elasticsearch/api/version.rb | 2 +- 512 files changed, 575 insertions(+), 783 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb index a95d83d529..03a15ee6eb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/delete.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :id A unique identifier for the async search. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb index 94f26d2d00..bba9f18e2a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/get.rb @@ -38,7 +38,7 @@ module Actions # By default no timeout is set meaning that the currently available results will be returned without any additional wait. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb index 17d86cf96e..2137b0e974 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/status.rb @@ -33,7 +33,7 @@ module Actions # Ongoing async searches and any saved search results are deleted after this period. Server default: 5d. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb index 8883b132dd..6e7b4327e0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/async_search/submit.rb @@ -74,10 +74,10 @@ module Actions # @option arguments [String] :q Query in the Lucene query string syntax # @option arguments [Integer] :size Number of hits to return (default: 10) # @option arguments [Integer] :from Starting offset (default: 0) - # @option arguments [String] :sort A comma-separated list of : pairs + # @option arguments [String, Array] :sort A comma-separated list of : pairs # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb b/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb index f8d6653cad..3a0091922f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb @@ -141,7 +141,7 @@ module Actions # @option arguments [Boolean] :require_data_stream If `true`, the request's actions must target a data stream (existing or to be created). # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb index 2688416877..9aeada9d8d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb index a4212487ad..7f07a393c8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb @@ -44,7 +44,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb index ec1fcc7505..4a9f7d1cad 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb @@ -47,7 +47,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb index c0db1bf646..08892ddaf0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb index ace8341bdc..286b10daee 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb @@ -41,7 +41,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb index 1bf3d07383..82a312faa2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb @@ -46,7 +46,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb index fa2fee45ce..f18a1c87dc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb @@ -55,7 +55,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb index 1a7ae26b28..24c7e73bac 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb index e4cd579e3c..885ddda57d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb index 73ec82e315..2892c1f817 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb @@ -49,7 +49,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb index 5001b4efbe..591db3b10d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_jobs.rb @@ -50,7 +50,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb index 45d47add2e..51c1bff7fc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_trained_models.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb index d6588c6945..55b48c7d80 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb index 79350b84ac..c5bb82c713 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb @@ -43,7 +43,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb index baaca81230..a88815532b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb @@ -43,7 +43,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb index 4355a9bcd1..b84bc683a4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb @@ -43,7 +43,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb index 76571a08f6..e69fc3348d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb index c36140e0aa..7e055cbb11 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/repositories.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb index 53e761b860..4fbeaac85b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb @@ -47,7 +47,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb index 2977fb9a72..d31da8ade7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb @@ -44,7 +44,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb index 97f5d749cd..7d8b3c20d2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb index 06f8da1b3a..9c9597f2f7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb @@ -49,7 +49,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb index fe9ea95b40..112ae65ac2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb index 60b6756f2e..3962af5cb8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb @@ -46,7 +46,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb index 1d037db06d..6b4963e7ba 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/transforms.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [Boolean] :v When set to `true` will enable verbose output. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb b/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb index 321e67fbae..40c7ea8b60 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb @@ -29,7 +29,7 @@ module Actions # IMPORTANT: Scroll IDs can be long. It is recommended to specify scroll IDs in the request body parameter. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb b/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb index 38b279ed74..70f109ce4c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/close_point_in_time.rb @@ -29,7 +29,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb index 8053b57717..c6933e3647 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/allocation_explain.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb index a5d49b88be..6fcb984a3d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_component_template.rb @@ -32,7 +32,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb index ddef1044c4..9b920c1573 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb @@ -34,7 +34,7 @@ module Actions # nodes are still in the cluster. Server default: true. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb index cefa11fdbc..de33f04612 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/exists_component_template.rb @@ -34,7 +34,7 @@ module Actions # Defaults to false, which means information is retrieved from the master node. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb index 83999486ae..7e64db0de6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb @@ -35,7 +35,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb index 6f54abc874..aa262c7d05 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_settings.rb @@ -33,7 +33,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb index ce6c9ac588..279064c8bd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/health.rb @@ -45,7 +45,7 @@ module Actions # @option arguments [String] :wait_for_status One of green, yellow or red. Will wait (until the timeout provided) until the status of the cluster changes to the one provided or better, i.e. green > yellow > red. By default, will not wait for any status. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb index 2286b3134f..d90e7a5f20 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/info.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String, Array] :target Limits the information returned to the specific target. Supports a comma-separated list, such as http,ingest. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb index 7e8519f3c7..58239f28b2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb @@ -34,7 +34,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb index 98415cf426..8acf112429 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb @@ -49,7 +49,7 @@ module Actions # is satisfied, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb index 5586022fd1..de794b43a5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb @@ -47,7 +47,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb index 991eea45eb..d314331c50 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_settings.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Time] :timeout Explicit operation timeout Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb index 04e49233d2..2479373e1f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/remote_info.rb @@ -28,7 +28,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb index 945f260151..028dbe02a9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/reroute.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb index 7eb5433562..7d8b521b93 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/state.rb @@ -49,7 +49,7 @@ module Actions # @option arguments [Time] :wait_for_timeout The maximum time to wait for wait_for_metadata_version before timing out # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb index 20ba3a5b51..596882b57b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/stats.rb @@ -32,7 +32,7 @@ module Actions # However, timed out nodes are included in the response’s `_nodes.failed` property. Defaults to no timeout. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb index a2d89381f0..73696d48e7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/check_in.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be checked in (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb index 77a1f409ec..c79595925d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/delete.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [Boolean] :hard A flag indicating if the connector should be hard deleted. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb index 8eff95d6df..4c04f4a86f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/get.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Boolean] :include_deleted A flag to indicate if the desired connector should be fetched, even if it was soft-deleted. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb index f02b825578..531dc56d0a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/list.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [String] :query A wildcard query string that filters connectors with matching name, description or index name # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb index 27d114d46a..fc41b1ebf5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/post.rb @@ -33,7 +33,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb index f06642897c..78ac3452f3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/put.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be created or updated. ID is auto-generated if not provided. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb index 0732c0554b..4655fdb013 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_cancel.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb index 53a1fc0026..0019715262 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job to be checked in. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb index f65389c6b3..a6a827494b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_claim.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb index 0157d26c7a..1d9f342d57 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_delete.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job to be deleted (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb index 6d7eec12d9..42ff4de588 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_error.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [String] :connector_sync_job_id The unique identifier for the connector sync job. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb index daa0e15bf0..51ffcbd2ae 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_get.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb index 3e856017b8..2d3d719112 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_list.rb @@ -33,10 +33,10 @@ module Actions # @option arguments [Integer] :size Specifies a max number of results to get # @option arguments [String] :status A sync job status to fetch connector sync jobs for # @option arguments [String] :connector_id A connector id to fetch connector sync jobs for - # @option arguments [Syncjobtype] :job_type A comma-separated list of job types to fetch the sync jobs for + # @option arguments [String, Array] :job_type A comma-separated list of job types to fetch the sync jobs for # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb index 5bdf4fa1b9..930ca1632e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_post.rb @@ -31,7 +31,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb index 0812965fd8..f24168474b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [String] :connector_sync_job_id The unique identifier of the connector sync job. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb index 5722cbab20..ab2559d908 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_active_filtering.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb index 7ac651f3ba..80ddbcda23 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_api_key_id.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb index 5bf832b231..2baa827e1a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_configuration.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb index ff3e04ac9b..22497d6ced 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_error.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb index 7b6610f273..0a7ca121ef 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_features.rb @@ -41,7 +41,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be updated. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb index 04a792481d..e6a12ea190 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb index a291ef0827..e71ecebfe2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb index 3f83881710..cc86a85df9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_index_name.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb index 58763761bf..94a37d7069 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_name.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb index 4c5b7044eb..ea945bc1c4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_native.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb index a1550c2089..216cac32e1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_pipeline.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb index ef80338ac2..9eed44bc63 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_scheduling.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb index f25fae8ef4..94afbe781a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_service_type.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb index b9c1d85569..f9d0fb852f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/connector/update_status.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/count.rb b/elasticsearch-api/lib/elasticsearch/api/actions/count.rb index 194e8616b8..a2ec54703a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/count.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/count.rb @@ -64,7 +64,7 @@ module Actions # @option arguments [String] :q The query in Lucene query string syntax. This parameter cannot be used with a request body. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/create.rb index 8ac7021de9..4caa9a0ca4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/create.rb @@ -109,7 +109,7 @@ module Actions # The default value of `1` means it waits for each primary shard to be active. Server default: 1. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb index 6bf3db5517..7700e36746 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb @@ -31,7 +31,7 @@ module Actions # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb index 1adfbea0f1..67d672897d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb @@ -34,7 +34,7 @@ module Actions # remote Lucene segment files to the follower index. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb index 00beb118fd..1482c5912c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb @@ -32,7 +32,7 @@ module Actions # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb index 18681bde53..0b3a59a515 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb @@ -31,7 +31,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb index 1258db9871..c24b8fb83b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb index 237a7d55fb..37817ba302 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb @@ -32,7 +32,7 @@ module Actions # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb index 6ae943a702..829de8ac1f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb @@ -36,7 +36,7 @@ module Actions # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb index 3ae78b81ac..881117a1e5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb @@ -34,7 +34,7 @@ module Actions # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb index 6de9e24443..9fc2f9f207 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb index 4cdf26351d..971a4ae9da 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb @@ -33,7 +33,7 @@ module Actions # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb index 3928ce3ebd..a899220d12 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb index ab1931b104..5a765d5b51 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Time] :timeout The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb index 603191112b..6cc0261e9e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb @@ -33,7 +33,7 @@ module Actions # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb index 1b3abd5639..97a8a692eb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Time] :timeout Explicit operation timeout # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb index 33fa80aead..9f2c9c8c29 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Time] :timeout Explicit operation timeout # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb index 4d2ef3bafc..69c6665636 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb @@ -29,7 +29,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb index 1fce676e57..3367b19256 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete.rb @@ -68,7 +68,7 @@ module Actions # The default value of `1` means it waits for each primary shard to be active. Server default: 1. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb index 15477ee32b..334cf50b62 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb @@ -141,7 +141,7 @@ module Actions # If `false`, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. Elasticsearch creates a record of this task as a document at `.tasks/task/${taskId}`. When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. Server default: true. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb index 34967e255c..701cd43976 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb @@ -30,7 +30,7 @@ module Actions # To disable throttling, set it to `-1`. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb b/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb index ada441ff9a..f30038e347 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/delete_script.rb @@ -33,7 +33,7 @@ module Actions # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb index a0171ac159..fbb7d0d97c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/delete_policy.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb index 31b259422d..f3603b666b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Boolean] :wait_for_completion If `true`, the request blocks other enrich policy execution requests until complete. Server default: true. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb index 0fb2935ad8..ef40296739 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/get_policy.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb index 7f5e8d1c47..4e159cbba5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/put_policy.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb index 3ed5669a1d..2dcb395969 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/enrich/stats.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb index 8dff6b8869..6e62454139 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/delete.rb @@ -31,7 +31,7 @@ module Actions # A search ID is also provided if the request’s `keep_on_completion` parameter is `true`. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb index 3ebf099880..4ff635f0cd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get.rb @@ -32,7 +32,7 @@ module Actions # Defaults to no timeout, meaning the request waits for complete search results. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb index 3697616a5d..d4023fd242 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/get_status.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :id Identifier for the search. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb index 6d2b882161..0ae93b7fd5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [Time] :wait_for_completion_timeout Timeout duration to wait for the request to finish. Defaults to no timeout, meaning the request waits for complete search results. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb index 3d397f4401..892310f9b1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb @@ -31,19 +31,9 @@ module Actions # @option arguments [Boolean] :drop_null_columns Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results. # If `true`, the response will include an extra section under the name `all_columns` which has the name of all the columns. # @option arguments [String] :format A short version of the Accept header, for example `json` or `yaml`. - # @option arguments [Time] :keep_alive The period for which the query and its results are stored in the cluster. - # The default period is five days. - # When this period expires, the query and its results are deleted, even if the query is still ongoing. - # If the `keep_on_completion` parameter is false, Elasticsearch only stores async queries that do not complete within the period set by the `wait_for_completion_timeout` parameter, regardless of this value. Server default: 5d. - # @option arguments [Boolean] :keep_on_completion Indicates whether the query and its results are stored in the cluster. - # If false, the query and its results are stored in the cluster only if the request does not complete during the period set by the `wait_for_completion_timeout` parameter. - # @option arguments [Time] :wait_for_completion_timeout The period to wait for the request to finish. - # By default, the request waits for 1 second for the query results. - # If the query completes during this period, results are returned - # Otherwise, a query ID is returned that can later be used to retrieve the results. Server default: 1s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb index 1f9226cd90..67806a5d97 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_delete.rb @@ -34,7 +34,7 @@ module Actions # A query ID is also provided when the request was submitted with the `keep_on_completion` parameter set to `true`. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb index 31fdec3f37..c710573bb2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_get.rb @@ -31,6 +31,7 @@ module Actions # A query ID is also provided when the request was submitted with the `keep_on_completion` parameter set to `true`. (*Required*) # @option arguments [Boolean] :drop_null_columns Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results. # If `true`, the response will include an extra section under the name `all_columns` which has the name of all the columns. + # @option arguments [String] :format A short version of the Accept header, for example `json` or `yaml`. # @option arguments [Time] :keep_alive The period for which the query and its results are stored in the cluster. # When this period expires, the query and its results are deleted, even if the query is still ongoing. # @option arguments [Time] :wait_for_completion_timeout The period to wait for the request to finish. @@ -39,7 +40,7 @@ module Actions # Otherwise, the response returns an `is_running` value of `true` and no results. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb index 3114fbcb70..d26bc64890 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query_stop.rb @@ -33,7 +33,7 @@ module Actions # If `true`, the response will include an extra section under the name `all_columns` which has the name of all the columns. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb index 564f364f0a..ac9cc06f39 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb @@ -34,7 +34,7 @@ module Actions # Defaults to `false`. If `true` then the response will include an extra section under the name `all_columns` which has the name of all columns. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb b/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb index 2b3a984537..2a22611e49 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/exists.rb @@ -65,7 +65,7 @@ module Actions # @option arguments [String] :version_type The version type. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb b/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb index 19be1d6c2c..cf7909553c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/exists_source.rb @@ -48,7 +48,7 @@ module Actions # @option arguments [String] :version_type The version type. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb b/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb index e3960496e1..e11ca4a8af 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/explain.rb @@ -53,7 +53,7 @@ module Actions # @option arguments [String] :q The query in the Lucene query string syntax. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb b/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb index 7e7667c72d..0c0a41f502 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/features/get_features.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb b/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb index 28da2bfc85..9b0637634a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/features/reset_features.rb @@ -41,7 +41,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb b/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb index 4d67a3fe37..debb179af3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/field_caps.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Boolean] :include_empty_fields If false, empty fields are not included in the response. Server default: true. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb index 4cf0cecef0..c72aa9edc2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb @@ -26,7 +26,7 @@ module Actions # Get the current global checkpoints for an index. # This API is designed for internal use by the Fleet server project. # - # @option arguments [Indexname, Indexalias] :index A single index or index alias that resolves to a single index. (*Required*) + # @option arguments [String] :index A single index or index alias that resolves to a single index. (*Required*) # @option arguments [Boolean] :wait_for_advance A boolean value which controls whether to wait (until the timeout) for the global checkpoints # to advance past the provided `checkpoints`. # @option arguments [Boolean] :wait_for_index A boolean value which controls whether to wait (until the timeout) for the target index to exist @@ -37,7 +37,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a global checkpoints to advance past `checkpoints`. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb index 2d1181a4fb..970c4cf6d9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb @@ -31,7 +31,7 @@ module Actions # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [Indexname, Indexalias] :index A single target to search. If the target is an index alias, it must resolve to a single index. + # @option arguments [String] :index A single target to search. If the target is an index alias, it must resolve to a single index. # @option arguments [Boolean] :allow_no_indices If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. # @option arguments [Boolean] :ccs_minimize_roundtrips If true, network roundtrips between the coordinating node and remote clusters are minimized for cross-cluster search requests. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard expressions can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. @@ -51,7 +51,7 @@ module Actions # Defaults to the configured cluster setting `search.default_allow_partial_results`, which is true by default. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb index 9fdabb1c89..b772d54bb4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/search.rb @@ -30,7 +30,7 @@ module Actions # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [Indexname, Indexalias] :index A single target to search. If the target is an index alias, it must resolve to a single index. (*Required*) + # @option arguments [String] :index A single target to search. If the target is an index alias, it must resolve to a single index. (*Required*) # @option arguments [Boolean] :allow_no_indices [TODO] # @option arguments [String] :analyzer [TODO] # @option arguments [Boolean] :analyze_wildcard [TODO] @@ -71,7 +71,7 @@ module Actions # @option arguments [String] :q [TODO] # @option arguments [Integer] :size [TODO] # @option arguments [Integer] :from [TODO] - # @option arguments [String] :sort [TODO] + # @option arguments [String, Array] :sort [TODO] # @option arguments [Array] :wait_for_checkpoints A comma separated list of checkpoints. When configured, the search API will only be executed on a shard # after the relevant checkpoint has become visible for search. Defaults to an empty list which will cause # Elasticsearch to immediately execute the search. Server default: []. @@ -80,7 +80,7 @@ module Actions # Defaults to the configured cluster setting `search.default_allow_partial_results`, which is true by default. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get.rb index 96b9bd6073..8bd30be5ef 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get.rb @@ -73,7 +73,7 @@ module Actions # @option arguments [String] :id A unique document identifier. (*Required*) # @option arguments [String] :index The name of the index that contains the document. (*Required*) # @option arguments [Boolean] :force_synthetic_source Indicates whether the request forces synthetic `_source`. - # Use this paramater to test if the mapping supports synthetic `_source` and to get a sense of the worst case performance. + # Use this parameter to test if the mapping supports synthetic `_source` and to get a sense of the worst case performance. # Fetches with this parameter enabled will be slower than enabling synthetic source natively in the index. # @option arguments [String] :preference The node or shard the operation should be performed on. # By default, the operation is randomized between the shard replicas.If it is set to `_local`, the operation will prefer to be run on a local allocated shard when possible. @@ -95,14 +95,14 @@ module Actions # @option arguments [String, Array] :stored_fields A comma-separated list of stored fields to return as part of a hit. # If no fields are specified, no stored fields are included in the response. # If this field is specified, the `_source` parameter defaults to `false`. - # Only leaf fields can be retrieved with the `stored_field` option. - # Object fields can't be returned;​if specified, the request fails. + # Only leaf fields can be retrieved with the `stored_fields` option. + # Object fields can't be returned; if specified, the request fails. # @option arguments [Integer] :version The version number for concurrency control. # It must match the current version of the document for the request to succeed. # @option arguments [String] :version_type The version type. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb index ddd816172f..fb2e101205 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_script.rb @@ -30,7 +30,7 @@ module Actions # It can also be set to `-1` to indicate that the request should never timeout. Server default: . # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb index 537ada530c..354e1e3685 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_context.rb @@ -26,7 +26,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb index 9bb85d2e17..9e631981ac 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_script_languages.rb @@ -26,7 +26,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb index 3e2acad79a..4c59c9ae99 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb @@ -52,7 +52,7 @@ module Actions # @option arguments [String] :version_type The version type. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb b/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb index b49446b832..d56ea8e5c6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/graph/explore.rb @@ -36,7 +36,7 @@ module Actions # Defaults to no timeout. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb b/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb index f176eaa43a..d01d2f00bd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/health_report.rb @@ -35,13 +35,13 @@ module Actions # NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. # When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. # - # @option arguments [String] :feature A feature of the cluster, as returned by the top-level health report API. + # @option arguments [String, Array] :feature A feature of the cluster, as returned by the top-level health report API. # @option arguments [Time] :timeout Explicit operation timeout. # @option arguments [Boolean] :verbose Opt-in for more information about the health of the system. Server default: true. # @option arguments [Integer] :size Limit the number of affected resources the health report API returns. Server default: 1000. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index.rb index 6be49d2d66..efdc0f293b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index.rb @@ -140,7 +140,7 @@ module Actions # @option arguments [Boolean] :require_alias If `true`, the destination must be an index alias. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb index 8aed98e1c0..5c62446bae 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb index d567662060..c1e4f0a8ce 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb index df22791f73..f2de8b601c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb index ac017a3193..a62ba78b49 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb @@ -27,7 +27,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb index 173424c569..3faaede439 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb @@ -41,7 +41,7 @@ module Actions # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb index e2cbb3fcda..6e7aa33bcb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [String] :index The name of the index whose lifecycle step is to change (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb index 3d1be8f914..fe4f331cf8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb index 14dd9e21fa..6f5134feb0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :index The name of the index to remove policy on (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb index bef5f16c84..58e5ac4687 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :index The name of the indices (comma-separated) whose failed lifecycle step is to be retry (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb index de21cfc076..18f71d3320 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb index 782756746e..3c3037e7eb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb index 97102bb844..9677cd3e01 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/add_block.rb @@ -46,7 +46,7 @@ module Actions # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb index 64ed929f9b..61fdd702d2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/analyze.rb @@ -34,7 +34,7 @@ module Actions # If no index is specified or the index does not have a default analyzer, the analyze API uses the standard analyzer. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb index c9c6557825..62317ec961 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String, Array] :index The index or data stream name (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb index 4dc10ef84e..1254bd7503 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clear_cache.rb @@ -36,8 +36,7 @@ module Actions # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :fielddata If `true`, clears the fields cache. # Use the `fields` parameter to clear the cache of specific fields only. # @option arguments [String, Array] :fields Comma-separated list of field names used to limit the `fielddata` parameter. @@ -46,7 +45,7 @@ module Actions # @option arguments [Boolean] :request If `true`, clears the request cache. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb index 2ee438bcc4..209bdee050 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/clone.rb @@ -64,7 +64,7 @@ module Actions # Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). Server default: 1. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb index e83b446b37..596b09ced8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/close.rb @@ -42,8 +42,7 @@ module Actions # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. @@ -53,7 +52,7 @@ module Actions # Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). Server default: 1. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb index 625068f163..e30e88edd1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create.rb @@ -56,7 +56,7 @@ module Actions # Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). Server default: 1. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb index d66fd10299..4b910def2c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_data_stream.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb index fe50668b87..bd06905d43 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [String] :dest The destination index or data stream name (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb index f93583bf1d..30e385d7db 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/data_streams_stats.rb @@ -32,7 +32,7 @@ module Actions # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb index 27a0ba4a2a..4bf575e161 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete.rb @@ -37,8 +37,7 @@ module Actions # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. @@ -46,7 +45,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb index 3229046dde..5275e8d369 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_alias.rb @@ -35,7 +35,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb index b500c4415e..1fa325fa8d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Time] :timeout Explicit timestamp for the document # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb index 920ebb64b0..b3417376db 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_data_stream.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String, Array] :expand_wildcards Type of data stream that wildcard patterns can match. Supports comma-separated values,such as `open,hidden`. Server default: open. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb index b56023b8ff..150bf439a3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_index_template.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb index ccc0260578..c235ea40d3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/delete_template.rb @@ -33,7 +33,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb index c09e8915a2..677b445f7e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb @@ -49,7 +49,7 @@ module Actions # To use the API, this parameter must be set to `true`. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb index e960ba87f1..c1fe6df29e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [String] :target_index Name of the index to create. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb index 2c96527227..9ba65463b3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists.rb @@ -30,15 +30,14 @@ module Actions # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :flat_settings If `true`, returns settings in flat format. # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Boolean] :include_defaults If `true`, return all default settings in the response. # @option arguments [Boolean] :local If `true`, the request retrieves information from the local node only. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb index d2090923a3..97bf9231ef 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_alias.rb @@ -32,14 +32,13 @@ module Actions # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :ignore_unavailable If `false`, requests that include a missing data stream or index in the target indices or data streams return an error. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb index 3c38a372a1..ee67b7b231 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_index_template.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb index d1f2081bc3..121747f78d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/exists_template.rb @@ -36,7 +36,7 @@ module Actions # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb index e611468d8f..8c81a4f2f3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Time] :master_timeout Specify timeout for connection to master # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb index 3aed52c6e9..25c5027147 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb @@ -44,7 +44,7 @@ module Actions # @option arguments [String, Array] :fields Comma-separated list or wildcard expressions of fields to include in the statistics. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb index 2d879c6154..274a20a321 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/flush.rb @@ -39,15 +39,14 @@ module Actions # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :force If `true`, the request forces a flush even if there are no changes to commit to the index. Server default: true. # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Boolean] :wait_if_ongoing If `true`, the flush operation blocks until execution when another flush operation is running. # If `false`, Elasticsearch returns an error if you request a flush when another flush operation is running. Server default: true. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb index db5a288ed5..f957a80d92 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/forcemerge.rb @@ -73,7 +73,7 @@ module Actions # @option arguments [Boolean] :wait_for_completion Should the request wait until the force merge is completed. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb index f527ae9aff..99d0fef379 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [String, Array] :features Return only information on specified index features Server default: ['aliases', 'mappings', 'settings']. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb index 738ae2f81a..269a1b8393 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_alias.rb @@ -35,14 +35,13 @@ module Actions # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb index afb058143f..4a5f3a8917 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb @@ -29,13 +29,12 @@ module Actions # Supports wildcards (`*`). # To target all data streams, omit this parameter or use `*` or `_all`. (*Required*) # @option arguments [String, Array] :expand_wildcards Type of data stream that wildcard patterns can match. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :include_defaults If `true`, return all default settings in the response. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb index b569f60fa8..cd49bfbe0c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb @@ -27,7 +27,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb index 6d1fd934fb..2c1ab085f6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Boolean] :verbose Whether the maximum timestamp for each data stream should be calculated and returned. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb index 0d0805105e..cae3ab55b1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_field_mapping.rb @@ -36,14 +36,13 @@ module Actions # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Boolean] :include_defaults If `true`, return all default settings in the response. # @option arguments [Boolean] :local If `true`, the request retrieves information from the local node only. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb index 072248f1fd..3155f2c1c0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_index_template.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb index aba5182590..97d3e9fa3b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_mapping.rb @@ -32,15 +32,14 @@ module Actions # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Boolean] :local If `true`, the request retrieves information from the local node only. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb index ba10edd141..be605768e8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String, Array] :index The index or data stream name. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb index db107ea0b4..5fefeac991 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_settings.rb @@ -48,7 +48,7 @@ module Actions # error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb index a94eaa9735..750adb9567 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/get_template.rb @@ -35,7 +35,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb index 00d414cfa3..41dab6fe5d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_reindex.rb @@ -33,7 +33,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb index bbe156eed7..d8dafb41a7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb @@ -39,7 +39,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb index 81c1daa85b..8663477ffc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/modify_data_stream.rb @@ -27,7 +27,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb index 0e9af19557..8ad0db3e11 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/open.rb @@ -49,8 +49,7 @@ module Actions # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. @@ -60,7 +59,7 @@ module Actions # Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). Server default: 1. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb index f78f5ee8cb..e7eae8c8d3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/promote_data_stream.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb index f7c83b4ae4..d5b5e865e2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_alias.rb @@ -37,7 +37,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb index 4abaf6dd01..b287211455 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb @@ -29,8 +29,7 @@ module Actions # Supports wildcards (`*`). # To target all data streams use `*` or `_all`. (*Required*) # @option arguments [String, Array] :expand_wildcards Type of data stream that wildcard patterns can match. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `hidden`, `open`, `closed`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is # received before the timeout expires, the request fails and returns an # error. Server default: 30s. @@ -38,7 +37,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb index 5643ce6f34..3792d6ac6a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_index_template.rb @@ -51,7 +51,7 @@ module Actions # @option arguments [String] :cause User defined reason for creating/updating the index template # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb index cb6990e63f..78d03e0f49 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb @@ -24,32 +24,22 @@ module Indices module Actions # Update field mappings. # Add new fields to an existing data stream or index. - # You can also use this API to change the search settings of existing fields and add new properties to existing object fields. - # For data streams, these changes are applied to all backing indices by default. - # **Add multi-fields to an existing field** - # Multi-fields let you index the same field in different ways. - # You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. - # WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. - # You can populate the new multi-field with the update by query API. - # **Change supported mapping parameters for an existing field** - # The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. - # For example, you can use the update mapping API to update the `ignore_above` parameter. - # **Change the mapping of an existing field** - # Except for supported mapping parameters, you can't change the mapping or field type of an existing field. - # Changing an existing field could invalidate data that's already indexed. - # If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. - # If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. - # **Rename a field** - # Renaming a field would invalidate data already indexed under the old field name. - # Instead, add an alias field to create an alternate field name. + # You can use the update mapping API to: + # - Add a new field to an existing index + # - Update mappings for multiple indices in a single request + # - Add new properties to an object field + # - Enable multi-fields for an existing field + # - Update supported mapping parameters + # - Change a field's mapping using reindexing + # - Rename a field using a field alias + # Learn how to use the update mapping API with practical examples in the {https://www.elastic.co/docs//manage-data/data-store/mapping/update-mappings-examples Update mapping API examples} guide. # # @option arguments [String, Array] :index A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. (*Required*) # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. @@ -58,7 +48,7 @@ module Actions # @option arguments [Boolean] :write_index_only If `true`, the mappings are applied only to the current write index for the target. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb index 5e46e10d9a..f0ee35cb5e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_settings.rb @@ -103,7 +103,7 @@ module Actions # timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb index fb54e75e60..fe0395cba3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_template.rb @@ -48,7 +48,7 @@ module Actions # @option arguments [String] :cause User defined reason for creating/updating the index template # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb index 1ef7656ce0..0d61cc9d0e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb @@ -47,7 +47,7 @@ module Actions # @option arguments [Boolean] :detailed If `true`, the response includes detailed information about shard recoveries. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb index ef5e06b706..6825ecfbf4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/refresh.rb @@ -40,12 +40,11 @@ module Actions # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb index 4bd2411186..37253276cb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb @@ -41,7 +41,7 @@ module Actions # @option arguments [String] :resource Changed resource to reload analyzers from if applicable # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb index 091a4e3ebe..e31945866b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_cluster.rb @@ -63,7 +63,6 @@ module Actions # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. # NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index # options to the `_resolve/cluster` API endpoint that takes no index expression. Server default: open. # @option arguments [Boolean] :ignore_throttled If true, concrete, expanded, or aliased indices are ignored when frozen. @@ -80,7 +79,7 @@ module Actions # not responding (typically 30 seconds). # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb index b6a2ae1c09..d12dea882e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/resolve_index.rb @@ -30,15 +30,14 @@ module Actions # Resources on remote clusters can be specified using the ``:`` syntax. (*Required*) # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. # This behavior applies even if the request targets other open indices. # For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. Server default: true. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb index 950c45371b..9789dc0919 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb @@ -64,7 +64,7 @@ module Actions # Only allowed on data streams. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb index afd7dff080..e79651387b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/segments.rb @@ -33,12 +33,11 @@ module Actions # This behavior applies even if the request targets other open indices. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb index ebeaa695e4..3395663db9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shard_stores.rb @@ -39,10 +39,10 @@ module Actions # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. If the request can target data streams, # this argument determines whether wildcard expressions match hidden data streams. Server default: open. # @option arguments [Boolean] :ignore_unavailable If true, missing or closed indices are not included in the response. - # @option arguments [Shardstorestatus] :status List of shard health statuses used to limit the request. + # @option arguments [String, Array] :status List of shard health statuses used to limit the request. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb index 1feab79508..6676f6ccec 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/shrink.rb @@ -56,7 +56,7 @@ module Actions # Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). Server default: 1. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb index 45cb0f977b..2961a03639 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb index c4cbe06a5f..8f4f1a6f62 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_template.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb index 856d9e3709..15d5c3f213 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/split.rb @@ -59,7 +59,7 @@ module Actions # Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). Server default: 1. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb index 3d3aa015f2..98cb618f52 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/stats.rb @@ -40,13 +40,13 @@ module Actions # @option arguments [String, Array] :fielddata_fields Comma-separated list or wildcard expressions of fields to include in fielddata statistics. # @option arguments [String, Array] :fields Comma-separated list or wildcard expressions of fields to include in the statistics. # @option arguments [Boolean] :forbid_closed_indices If true, statistics are not collected from closed indices. Server default: true. - # @option arguments [String] :groups Comma-separated list of search groups to include in the search statistics. + # @option arguments [String, Array] :groups Comma-separated list of search groups to include in the search statistics. # @option arguments [Boolean] :include_segment_file_sizes If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested). # @option arguments [Boolean] :include_unloaded_segments If true, the response includes information from segments that are not loaded into memory. # @option arguments [String] :level Indicates whether statistics are aggregated at the cluster, index, or shard level. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb index 052f6808d8..c4e2d86d38 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/update_aliases.rb @@ -31,7 +31,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb index 42336649d7..9c9b9bae32 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/validate_query.rb @@ -39,8 +39,7 @@ module Actions # This parameter can only be used when the `q` query string parameter is specified. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :explain If `true`, the response returns detailed information if an error has occurred. # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Boolean] :lenient If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. @@ -48,7 +47,7 @@ module Actions # @option arguments [String] :q Query in the Lucene query string syntax. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb index 0fe91dcbc1..4c2d4d2ecc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference request to complete. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb index 97a20f26d7..5eb5758a00 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/completion.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference request to complete. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb index 6c5b27cd97..f8483de6f4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/delete.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Boolean] :force When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb index d288f51b55..2756bd64d8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/get.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :inference_id The inference Id # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb index 9be8603f00..da9a234aa5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/inference.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Time] :timeout The amount of time to wait for the inference request to complete. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb index de805f6fbb..be80fb4220 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb @@ -48,7 +48,7 @@ module Actions # @option arguments [String] :inference_id The inference Id (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb index 7d1f2ca9b7..edab9d0ece 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :alibabacloud_inference_id The unique identifier of the inference endpoint. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb index d9ff77cdb4..64d1cf1fef 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :amazonbedrock_inference_id The unique identifier of the inference endpoint. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb index 0a8f51c988..eecfacdf8d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :anthropic_inference_id The unique identifier of the inference endpoint. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb index 965cce81e0..b7d7465ee2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :azureaistudio_inference_id The unique identifier of the inference endpoint. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb index ce34edbd4d..e07ecc3845 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [String] :azureopenai_inference_id The unique identifier of the inference endpoint. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb index 3504b95d7f..0e4e01db16 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :cohere_inference_id The unique identifier of the inference endpoint. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb index a5bf884b90..806bc55af3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb @@ -30,7 +30,7 @@ module Actions # The must not match the `model_id`. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb index eaf53490f1..07548ca172 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :elser_inference_id The unique identifier of the inference endpoint. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb index 0554e1a463..82a751dba3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :googleaistudio_inference_id The unique identifier of the inference endpoint. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb index 1d1bd066de..f9b37d1710 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :googlevertexai_inference_id The unique identifier of the inference endpoint. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb index 974ad78a31..940cabc8e3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb @@ -40,7 +40,7 @@ module Actions # @option arguments [String] :huggingface_inference_id The unique identifier of the inference endpoint. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb index 28e20aee46..fcf737f287 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :jinaai_inference_id The unique identifier of the inference endpoint. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb index 84f5d63055..b582f5ddac 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :mistral_inference_id The unique identifier of the inference endpoint. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb index fb6fb127f2..a6f3114bef 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :openai_inference_id The unique identifier of the inference endpoint. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb index fdde9cc055..4002abe43e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :voyageai_inference_id The unique identifier of the inference endpoint. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb index 73276fc845..5543cc6172 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :watsonx_inference_id The unique identifier of the inference endpoint. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb index e1b6bf9caa..3eed6b0ed3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [Time] :timeout The amount of time to wait for the inference request to complete. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb index fde51c6e8c..cb8899802d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/sparse_embedding.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference request to complete. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb index f4f854cabc..dc97c489f8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :inference_id The unique identifier for the inference endpoint. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb index 929072e993..b5dd02127f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/text_embedding.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference request to complete. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb index 66e941f31d..b6e4fad195 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :task_type The type of inference task that the model performs. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/info.rb index e6abffcb88..f6c1ae836e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/info.rb @@ -26,7 +26,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb index 11a0dc7958..c38fe6dedc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Time] :timeout The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb index 468ba5bd57..1eb8c28b0e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb @@ -33,7 +33,7 @@ module Actions # A value of `-1` indicates that the request should never time out. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb index ad12018c61..3a03daaa20 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb @@ -33,7 +33,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb index ca8e793fbc..ae1eacf756 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb @@ -27,7 +27,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb index 72e874c73b..6aff3d7108 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_geoip_database.rb @@ -30,7 +30,7 @@ module Actions # To get all database configurations, omit this parameter or use `*`. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb index ca4d0724fc..731d47e511 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb @@ -32,7 +32,7 @@ module Actions # A value of `-1` indicates that the request should never time out. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb index 3983241db9..5cce725431 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_pipeline.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Boolean] :summary Return pipelines without their definitions (default: false) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb index 9a50e0ed05..d095731eeb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/processor_grok.rb @@ -29,7 +29,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb index 5b883d0c65..34276247bc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb index 114f0e92b8..a4fca9aa6b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb @@ -33,7 +33,7 @@ module Actions # A value of `-1` indicates that the request should never time out. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb index de0f0bea17..7cc6e1ed25 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Integer] :if_version Required version for optimistic concurrency control for pipeline updates # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb index a03260b337..6e3976b184 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/simulate.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Boolean] :verbose If `true`, the response includes output data for each processor in the executed pipeline. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb index 04ee6cd922..d625d5f513 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/delete.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Time] :timeout The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb index a47c08eec2..96628fdfa6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Boolean] :local Specifies whether to retrieve local information. The default value is `false`, which means the information is retrieved from the master node. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb index b4c331cce7..b6823e5353 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_basic_status.rb @@ -26,7 +26,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb index 240b932ea2..ee251073f5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/get_trial_status.rb @@ -26,7 +26,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb index 19a424f20b..015e91606b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/post.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Time] :timeout The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb index 4a9bf2aead..9c14e722d8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_basic.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb index 609f1e9f92..b6e75fa1c6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb index e100e5e12a..0ced1ca546 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :id An identifier for the pipeline. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb index edb0c6b653..a6578386dc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/get_pipeline.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String, Array] :id A comma-separated list of pipeline identifiers. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb index 5512e2c34d..68ed5fbded 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/logstash/put_pipeline.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :id An identifier for the pipeline. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb index 7401b9d6b5..01f1132a99 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb index 8778980a83..4edcc0f69b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/close_job.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Time] :timeout Controls the time to wait until a job has closed. Server default: 30m. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb index b984d56511..74da1f5f59 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb index 4f6bc4bc0e..85924cd9e7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb @@ -29,7 +29,7 @@ module Actions # You can obtain this identifier by using the get calendar events API. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb index c2894ef734..d4cef50c3e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb @@ -29,7 +29,7 @@ module Actions # comma-separated list of jobs or groups. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb index e2009b3320..d7342cd1bf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Time] :timeout The time to wait for the job to be deleted. Server default: 1m. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb index 4cf51a90ee..2dd36e03b9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb @@ -32,7 +32,7 @@ module Actions # stopping and deleting the datafeed. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb index ab715c501e..2b4bd4bb87 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb @@ -39,7 +39,7 @@ module Actions # @option arguments [Time] :timeout How long can the underlying delete processes run until they are canceled. Server default: 8h. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb index e3b741827e..25c6ac8b36 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :filter_id A string that uniquely identifies a filter. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb index dc3820f80f..e2efd704dc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb @@ -41,7 +41,7 @@ module Actions # error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb index 81f1a39e96..727b039e40 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_job.rb @@ -40,7 +40,7 @@ module Actions # job deletion completes. Server default: true. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb index eafc36ff42..fdd951a145 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :snapshot_id Identifier for the model snapshot. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb index 064089f3c9..b1343b926d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb index 2f2bc3a115..bc2b16ef09 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :model_id The trained model ID to which the model alias refers. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb index eae189aa09..7b337e6487 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb @@ -29,7 +29,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb index 2131c3e8d3..15f094cc4b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb @@ -30,7 +30,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb index 438c3a738f..9b022e7358 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb @@ -35,7 +35,7 @@ module Actions # underscores. It must start and end with alphanumeric characters. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb index c2bb56e963..c11f195a44 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/flush_job.rb @@ -45,7 +45,7 @@ module Actions # buckets on which to calculate interim results. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb index c5ee072188..321e6f7527 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/forecast.rb @@ -43,7 +43,7 @@ module Actions # amount. Server default: 20mb. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb index cf0f1c2678..97a80db73f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb @@ -41,7 +41,7 @@ module Actions # and results are not limited to specific timestamps. Server default: -1. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb index 0188cacd81..ef7dac8861 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String, Time] :start Specifies to get events with timestamps after this time. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb index c7c9ccc73e..352fc9dd8d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Integer] :size Specifies the maximum number of calendars to obtain. This parameter is supported only when you omit the calendar identifier. Server default: 10000. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb index 015324da3c..05b94ca9c2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_categories.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [Integer] :size Specifies the maximum number of categories to obtain. Server default: 100. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb index c56420119d..e0687e3c8d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb @@ -46,7 +46,7 @@ module Actions # be retrieved and then added to another cluster. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb index 65cc30b17f..ae8961d4ba 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb @@ -41,7 +41,7 @@ module Actions # @option arguments [Boolean] :verbose Defines whether the stats response should be verbose. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb index b16b882cd9..b8ed04ec99 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb @@ -43,7 +43,7 @@ module Actions # `404` status code when there are no matches or only partial matches. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb index 1211843abd..3c4511f9ae 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb @@ -45,7 +45,7 @@ module Actions # be retrieved and then added to another cluster. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb index 67b773b7cd..f7b3014056 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_filters.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [Integer] :size Specifies the maximum number of filters to obtain. Server default: 100. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb index d2878cfc4c..8d05808511 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb @@ -44,7 +44,7 @@ module Actions # means it is unset and results are not limited to specific timestamps. Server default: -1. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb index 5d90193318..31785a2b58 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb @@ -38,7 +38,7 @@ module Actions # code when there are no matches or only partial matches. Server default: true. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb index ed755b3a9d..db83f82f56 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb @@ -44,7 +44,7 @@ module Actions # be retrieved and then added to another cluster. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb index 419743e107..f504a6c499 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb @@ -34,7 +34,7 @@ module Actions # fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb index 3d7de195b1..8fb36898fc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb @@ -37,7 +37,7 @@ module Actions # no matches or only partial matches. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb index d20b7b7d6a..2df7f960f1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [String, Time] :start Returns snapshots with timestamps after this time. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb index 6f981b5fab..c56e33ab46 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb @@ -59,14 +59,14 @@ module Actions # the optional `bucket_span` parameter. # @option arguments [String, Time] :end Returns overall buckets with timestamps earlier than this time. # @option arguments [Boolean] :exclude_interim If `true`, the output excludes interim results. - # @option arguments [Double, String] :overall_score Returns overall buckets with overall scores greater than or equal to this + # @option arguments [Float, String] :overall_score Returns overall buckets with overall scores greater than or equal to this # value. # @option arguments [String, Time] :start Returns overall buckets with timestamps after this time. # @option arguments [Integer] :top_n The number of top anomaly detection job bucket scores to be used in the # `overall_score` calculation. Server default: 1. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb index de266d44c2..b191358d47 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_records.rb @@ -47,7 +47,7 @@ module Actions # results are not limited to specific timestamps. Server default: -1. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb index 3281a783c1..2ce6b52f52 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb @@ -42,12 +42,12 @@ module Actions # @option arguments [String] :include A comma delimited string of optional fields to include in the response # body. # @option arguments [Integer] :size Specifies the maximum number of models to obtain. Server default: 100. - # @option arguments [String] :tags A comma delimited string of tags. A trained model can have many tags, or + # @option arguments [String, Array] :tags A comma delimited string of tags. A trained model can have many tags, or # none. When supplied, only trained models that contain all the supplied # tags are returned. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb index a741aa7fdc..40d7a8a954 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [Integer] :size Specifies the maximum number of models to obtain. Server default: 100. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb index 517a157f5d..380d790809 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [Time] :timeout Controls the amount of time to wait for inference results. Server default: 10s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb index 26f8586f06..cabecd558d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/info.rb @@ -33,7 +33,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb index b88b0bc379..e8b8d7efd8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/open_job.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Time] :timeout Controls the time to wait until a job has opened. Server default: 30m. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb index dbb644f4c4..b4c1bc9a12 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb @@ -27,7 +27,7 @@ module Actions # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb index 87cc1fcfda..a3dc788910 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/post_data.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String, Time] :reset_start Specifies the start of the bucket resetting range. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb index c15e33e4f7..35e410959f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :id Identifier for the data frame analytics job. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb index 061a0b4534..60785c77c0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb @@ -40,7 +40,7 @@ module Actions # @option arguments [String, Time] :end The end time when the datafeed preview should stop # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb index f8b09bad81..0c137557c0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb @@ -27,7 +27,7 @@ module Actions # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb index 506d2c3359..e7d07e2f13 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String, Array] :job_id An identifier for the anomaly detection jobs. It can be a job identifier, a group name, or a comma-separated list of jobs or groups. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb index 0bd1fc9c7e..2d76868031 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb @@ -34,7 +34,7 @@ module Actions # underscores. It must start and end with alphanumeric characters. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb index 9a4ba03c43..66aae435aa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb @@ -26,21 +26,13 @@ module Actions # Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. # You can associate only one datafeed with each anomaly detection job. # The datafeed contains a query that runs at a defined interval (`frequency`). - # If you are concerned about delayed data, you can add a delay ( - # ``` - # query_delay') at each interval. - # By default, the datafeed uses the following query: - # ``` - # {"match_all": {"boost": 1}} - # ``` - # . + # If you are concerned about delayed data, you can add a delay (`query_delay`) at each interval. + # By default, the datafeed uses the following query: `{"match_all": {"boost": 1}}`. # When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had # at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, # those credentials are used instead. # You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed - # directly to the - # ``` - # .ml-config`index. Do not give users`write`privileges on the`.ml-config` index. + # directly to the `.ml-config` index. Do not give users `write` privileges on the `.ml-config` index. # # @option arguments [String] :datafeed_id A numerical character string that uniquely identifies the datafeed. # This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. @@ -53,7 +45,7 @@ module Actions # @option arguments [Boolean] :ignore_unavailable If true, unavailable indices (missing or closed) are ignored. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb index cf43f6bf90..eaef9498d8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_filter.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :filter_id A string that uniquely identifies a filter. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb index e610d1945c..9047dc5cf4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_job.rb @@ -30,17 +30,12 @@ module Actions # @option arguments [Boolean] :allow_no_indices If `true`, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the # `_all` string or when no indices are specified. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. If the request can target data streams, this argument determines - # whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are: - # - `all`: Match any data stream or index, including hidden ones. - # - `closed`: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed. - # - `hidden`: Match hidden data streams and hidden indices. Must be combined with `open`, `closed`, or both. - # - `none`: Wildcard patterns are not accepted. - # - `open`: Match open, non-hidden indices. Also matches any non-hidden data stream. Server default: open. + # whether wildcard expressions match hidden data streams. Supports comma-separated values. Server default: open. # @option arguments [Boolean] :ignore_throttled If `true`, concrete, expanded or aliased indices are ignored when frozen. Server default: true. # @option arguments [Boolean] :ignore_unavailable If `true`, unavailable indices (missing or closed) are ignored. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb index 2594bb90af..101075a409 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb @@ -33,7 +33,7 @@ module Actions # to complete. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb index 9f729ea519..5d7b5a70f2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb @@ -47,7 +47,7 @@ module Actions # already assigned and this parameter is false, the API returns an error. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb index 21c5cfaef6..bd2309f475 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb @@ -29,7 +29,7 @@ module Actions # order of their part number. The first part must be `0` and the final part must be `total_parts - 1`. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb index a71f1afe2d..16a1c915f5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb index c8428a63e1..4e34f5b6b0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/reset_job.rb @@ -36,7 +36,7 @@ module Actions # reset. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb index c803beff4b..e5938e6ed4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb @@ -43,7 +43,7 @@ module Actions # data, then delete the intervening results. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb index dbb6ac92c9..ae288b22a1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [Time] :timeout The time to wait for the request to be completed. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb index 2ae1ae8083..ece1e2937f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb @@ -42,7 +42,7 @@ module Actions # starts. Server default: 20s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb index 4526d03034..372a9a0e8a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb @@ -53,7 +53,7 @@ module Actions # @option arguments [Time] :timeout Specifies the amount of time to wait until a datafeed starts. Server default: 20s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb index 122903acc7..9673fded56 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb @@ -49,7 +49,7 @@ module Actions # @option arguments [String] :wait_for Specifies the allocation status to wait for before returning. Server default: started. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb index 4216ff6ea0..739a6e89db 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb @@ -43,7 +43,7 @@ module Actions # stops. Defaults to 20 seconds. Server default: 20s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb index 838d086e6d..d902d6196e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb @@ -40,7 +40,7 @@ module Actions # @option arguments [Time] :timeout Specifies the amount of time to wait until a datafeed stops. Server default: 20s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb index ec34f116ea..d96a138948 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb @@ -33,7 +33,7 @@ module Actions # restart the model deployment. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb index c369f6d487..75baf7dd34 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb @@ -29,7 +29,7 @@ module Actions # underscores. It must start and end with alphanumeric characters. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb index 192a94c0c9..5235c582eb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb @@ -34,17 +34,12 @@ module Actions # @option arguments [Boolean] :allow_no_indices If `true`, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the # `_all` string or when no indices are specified. Server default: true. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. If the request can target data streams, this argument determines - # whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are: - # - `all`: Match any data stream or index, including hidden ones. - # - `closed`: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed. - # - `hidden`: Match hidden data streams and hidden indices. Must be combined with `open`, `closed`, or both. - # - `none`: Wildcard patterns are not accepted. - # - `open`: Match open, non-hidden indices. Also matches any non-hidden data stream. Server default: open. + # whether wildcard expressions match hidden data streams. Supports comma-separated values. Server default: open. # @option arguments [Boolean] :ignore_throttled If `true`, concrete, expanded or aliased indices are ignored when frozen. Server default: true. # @option arguments [Boolean] :ignore_unavailable If `true`, unavailable indices (missing or closed) are ignored. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb index b626e8a5d0..598212874a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_filter.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :filter_id A string that uniquely identifies a filter. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb index 7f5b36a945..0f67b82a10 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_job.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :job_id Identifier for the job. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb index 943425c943..ea54fa188f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :snapshot_id Identifier for the model snapshot. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb index e85b3404e6..2a6f7c1faf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb @@ -33,7 +33,7 @@ module Actions # it will automatically be changed to a value less than the number of hardware threads. Server default: 1. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb index e6da7d92ef..d192284132 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb @@ -40,7 +40,7 @@ module Actions # @option arguments [Time] :timeout Controls the time to wait for the request to complete. Server default: 30m. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb b/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb index d27633555d..ce91475a27 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/mget.rb @@ -51,7 +51,7 @@ module Actions # @option arguments [String, Array] :stored_fields If `true`, retrieves the document fields stored in the index rather than the document `_source`. Server default: false. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb b/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb index 762a3014d1..97767c915a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/migration/deprecations.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :index Comma-separate list of data streams or indices to check. Wildcard (*) expressions are supported. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb index ac3b03725e..1a93dc1295 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb @@ -30,7 +30,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb b/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb index 20578a36bb..3bdde2a111 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb @@ -30,7 +30,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb index b291687a31..e7051cf000 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb @@ -63,7 +63,7 @@ module Actions # @option arguments [Boolean] :typed_keys Specifies whether aggregation and suggester names should be prefixed by their respective types in the response. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb index 6e4ebca9d4..9efc7e245d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb @@ -46,7 +46,7 @@ module Actions # @option arguments [Boolean] :typed_keys If `true`, the response prefixes aggregation and suggester names with their respective types. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb b/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb index 590147683e..7b3e85aebf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/mtermvectors.rb @@ -48,7 +48,7 @@ module Actions # @option arguments [String] :version_type The version type. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb index 2b97ffb70e..6316fffc40 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Integer] :max_archive_version Specifies the maximum `archive_version` to be cleared from the archive. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb index 43117d7544..464e721380 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [String, Array] :node_id Comma-separated list of node IDs or names used to limit returned information. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb index 9add690da7..059e255ef1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [String] :sort The sort order for 'cpu' type (default: total) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb index 416b02f956..ea9a40b7b0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/info.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb index 91c1e44cfe..a60a79dc87 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb @@ -35,7 +35,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb index 7ffbaf03b7..f8e6fbb099 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/stats.rb @@ -40,7 +40,7 @@ module Actions # @option arguments [Boolean] :include_unloaded_segments If `true`, the response includes information from segments that are not loaded into memory. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb index a3005224f1..c5072b16df 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/nodes/usage.rb @@ -31,7 +31,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb b/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb index 93d57b597b..49d9ec2196 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/open_point_in_time.rb @@ -56,14 +56,14 @@ module Actions # @option arguments [String] :routing A custom value that is used to route operations to a specific shard. # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # It supports comma-separated values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # It supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :allow_partial_search_results Indicates whether the point in time tolerates unavailable shards or shard failures when initially creating the PIT. # If `false`, creating a point in time request when a shard is missing or unavailable will throw an exception. # If `true`, the point in time will contain all the shards that are available at the time of the request. # @option arguments [Integer] :max_concurrent_shard_requests Maximum number of concurrent shard requests that each sub-search request executes per node. Server default: 5. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb index 0b22d6ab62..dec95d7b19 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ping.rb @@ -26,7 +26,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb b/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb index 060d38cf76..96a7d6ed92 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/put_script.rb @@ -36,7 +36,7 @@ module Actions # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb index ecc2e110ff..39919c5ad8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_rule.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :rule_id The unique identifier of the query rule within the specified ruleset to delete (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb index ef8976b20e..be9dde5941 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :ruleset_id The unique identifier of the query ruleset to delete (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb index 7222f9e37d..2e97e5effc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_rule.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :rule_id The unique identifier of the query rule within the specified ruleset to retrieve (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb index a3d40af77e..3bba6796b0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/get_ruleset.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :ruleset_id The unique identifier of the query ruleset (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb index 6d15c3daf7..a010b79a84 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Integer] :size The maximum number of results to retrieve. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb index 3637e6f67d..442adbd27e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_rule.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [String] :rule_id The unique identifier of the query rule within the specified ruleset to be created or updated. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb index 3b18028200..b2da9bd10d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/put_ruleset.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [String] :ruleset_id The unique identifier of the query ruleset to be created or updated. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb index a61dbc9b40..4c3dd7bcae 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/query_rules/test.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :ruleset_id The unique identifier of the query ruleset to be created or updated (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb b/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb index 9ab8e7572f..b5c350f027 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/rank_eval.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [String] :search_type Search operation type # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb index 2b1a9cf0fa..5f50cfb11f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb @@ -51,115 +51,7 @@ module Actions # In this case, the response includes a count of the version conflicts that were encountered. # Note that the handling of other error types is unaffected by the `conflicts` property. # Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than `max_docs` until it has successfully indexed `max_docs` documents into the target or it has gone through every document in the source query. - # NOTE: The reindex API makes no effort to handle ID collisions. - # The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. - # Instead, make sure that IDs are unique by using a script. - # **Running reindex asynchronously** - # If the request contains `wait_for_completion=false`, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. - # Elasticsearch creates a record of this task as a document at `_tasks/`. - # **Reindex from multiple sources** - # If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. - # That way you can resume the process if there are any errors by removing the partially completed source and starting over. - # It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. - # For example, you can use a bash script like this: - # - # ``` - # for index in i1 i2 i3 i4 i5; do - # curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ - # "source": { - # "index": "'$index'" - # }, - # "dest": { - # "index": "'$index'-reindexed" - # } - # }' - # done - # ``` - # - # **Throttling** - # Set `requests_per_second` to any positive decimal number (`1.4`, `6`, `1000`, for example) to throttle the rate at which reindex issues batches of index operations. - # Requests are throttled by padding each batch with a wait time. - # To turn off throttling, set `requests_per_second` to `-1`. - # The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. - # The padding time is the difference between the batch size divided by the `requests_per_second` and the time spent writing. - # By default the batch size is `1000`, so if `requests_per_second` is set to `500`: - # - # ``` - # target_time = 1000 / 500 per second = 2 seconds - # wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds - # ``` - # - # Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. - # This is "bursty" instead of "smooth". - # **Slicing** - # Reindex supports sliced scroll to parallelize the reindexing process. - # This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. - # NOTE: Reindexing from remote clusters does not support manual or automatic slicing. - # You can slice a reindex request manually by providing a slice ID and total number of slices to each request. - # You can also let reindex automatically parallelize by using sliced scroll to slice on `_id`. - # The `slices` parameter specifies the number of slices to use. - # Adding `slices` to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: - # * You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. - # * Fetching the status of the task for the request with `slices` only contains the status of completed slices. - # * These sub-requests are individually addressable for things like cancellation and rethrottling. - # * Rethrottling the request with `slices` will rethrottle the unfinished sub-request proportionally. - # * Canceling the request with `slices` will cancel each sub-request. - # * Due to the nature of `slices`, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. - # * Parameters like `requests_per_second` and `max_docs` on a request with `slices` are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using `max_docs` with `slices` might not result in exactly `max_docs` documents being reindexed. - # * Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. - # If slicing automatically, setting `slices` to `auto` will choose a reasonable number for most indices. - # If slicing manually or otherwise tuning automatic slicing, use the following guidelines. - # Query performance is most efficient when the number of slices is equal to the number of shards in the index. - # If that number is large (for example, `500`), choose a lower number as too many slices will hurt performance. - # Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. - # Indexing performance scales linearly across available resources with the number of slices. - # Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. - # **Modify documents during reindexing** - # Like `_update_by_query`, reindex operations support a script that modifies the document. - # Unlike `_update_by_query`, the script is allowed to modify the document's metadata. - # Just as in `_update_by_query`, you can set `ctx.op` to change the operation that is run on the destination. - # For example, set `ctx.op` to `noop` if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the `noop` counter in the response body. - # Set `ctx.op` to `delete` if your script decides that the document must be deleted from the destination. - # The deletion will be reported in the `deleted` counter in the response body. - # Setting `ctx.op` to anything else will return an error, as will setting any other field in `ctx`. - # Think of the possibilities! Just be careful; you are able to change: - # * `_id` - # * `_index` - # * `_version` - # * `_routing` - # Setting `_version` to `null` or clearing it from the `ctx` map is just like not sending the version in an indexing request. - # It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. - # **Reindex from remote** - # Reindex supports reindexing from a remote Elasticsearch cluster. - # The `host` parameter must contain a scheme, host, port, and optional path. - # The `username` and `password` parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. - # Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. - # There are a range of settings available to configure the behavior of the HTTPS connection. - # When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. - # Remote hosts must be explicitly allowed with the `reindex.remote.whitelist` setting. - # It can be set to a comma delimited list of allowed remote host and port combinations. - # Scheme is ignored; only the host and port are used. - # For example: - # - # ``` - # reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] - # ``` - # - # The list of allowed hosts must be configured on any nodes that will coordinate the reindex. - # This feature should work with remote clusters of any version of Elasticsearch. - # This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. - # WARNING: Elasticsearch does not support forward compatibility across major versions. - # For example, you cannot reindex from a 7.x cluster into a 6.x cluster. - # To enable queries sent to older versions of Elasticsearch, the `query` parameter is sent directly to the remote host without validation or modification. - # NOTE: Reindexing from remote clusters does not support manual or automatic slicing. - # Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. - # If the remote index includes very large documents you'll need to use a smaller batch size. - # It is also possible to set the socket read timeout on the remote connection with the `socket_timeout` field and the connection timeout with the `connect_timeout` field. - # Both default to 30 seconds. - # **Configuring SSL parameters** - # Reindex from remote supports configurable SSL settings. - # These must be specified in the `elasticsearch.yml` file, with the exception of the secure settings, which you add in the Elasticsearch keystore. - # It is not possible to configure SSL in the body of the reindex request. + # Refer to the linked documentation for examples of how to reindex documents. # # @option arguments [Boolean] :refresh If `true`, the request refreshes affected shards to make this operation visible to search. # @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second. @@ -180,7 +72,7 @@ module Actions # @option arguments [Boolean] :require_alias If `true`, the destination must be an index alias. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb index e38cb1ca88..8939e9c03c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/reindex_rethrottle.rb @@ -38,7 +38,7 @@ module Actions # It can be either `-1` to turn off throttling or any decimal number like `1.7` or `12` to throttle to that level. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb index e9405ef31a..bcb00a4c01 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/render_search_template.rb @@ -28,7 +28,7 @@ module Actions # If no `source` is specified, this or the `id` request body parameter is required. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb b/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb index 048ddfe3f6..03eea42c38 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/scripts_painless_execute.rb @@ -34,7 +34,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb b/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb index b30d1a67b3..02607f5673 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/scroll.rb @@ -37,7 +37,7 @@ module Actions # @option arguments [Boolean] :rest_total_hits_as_int If true, the API response’s hit.total property is returned as an integer. If false, the API response’s hit.total property is returned as an object. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search.rb index 64bef0624b..db10f0e4cf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search.rb @@ -143,13 +143,13 @@ module Actions # @option arguments [Integer] :from The starting document offset, which must be non-negative. # By default, you cannot page through more than 10,000 hits using the `from` and `size` parameters. # To page through more hits, use the `search_after` parameter. Server default: 0. - # @option arguments [String] :sort A comma-separated list of `:` pairs. + # @option arguments [String, Array] :sort A comma-separated list of `:` pairs. # @option arguments [Boolean] :force_synthetic_source Should this request force synthetic _source? # Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. # Fetches with this enabled will be slower the enabling synthetic source natively in the index. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb index 18cb1a4939..518e4d09ba 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :name The name of the search application to delete. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb index 7b4d3fb755..85776778c4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :name The name of the analytics collection to be deleted (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb index 0e34467c3b..392cc9314d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :name The name of the search application (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb index 44cc4493f5..9d58fbcf32 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Array] :name A list of analytics collections to limit the returned information # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb index 0b8c651a28..6ed256b8cb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/list.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Integer] :size Specifies a max number of results to get. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb index 5c5ff012fa..781fdef2fa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Boolean] :debug Whether the response type has to include more details # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb index 0512b9afd5..5697f563af 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Boolean] :create If `true`, this request cannot replace or update existing Search Applications. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb index 5c80387fd8..ca3ac25c86 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :name The name of the analytics collection to be created or updated. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb index dfd543c93a..420a8c7373 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/render_query.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [String] :name The name of the search application to render teh query for. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb index 12a03a9079..ecf076d37b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_application/search.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Boolean] :typed_keys Determines whether aggregation names are prefixed by their respective types in the response. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb index 80b0101a57..357cf66775 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb @@ -30,54 +30,6 @@ module Actions # * A `geotile_grid` or `geohex_grid` aggregation on the ``. The `grid_agg` parameter determines the aggregation type. The aggregation uses the `//` tile as a bounding box. # * Optionally, a `geo_bounds` aggregation on the ``. The search only includes this aggregation if the `exact_bounds` parameter is `true`. # * If the optional parameter `with_labels` is `true`, the internal search will include a dynamic runtime field that calls the `getLabelPosition` function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. - # For example, Elasticsearch may translate a vector tile search API request with a `grid_agg` argument of `geotile` and an `exact_bounds` argument of `true` into the following search - # - # ``` - # GET my-index/_search - # { - # "size": 10000, - # "query": { - # "geo_bounding_box": { - # "my-geo-field": { - # "top_left": { - # "lat": -40.979898069620134, - # "lon": -45 - # }, - # "bottom_right": { - # "lat": -66.51326044311186, - # "lon": 0 - # } - # } - # } - # }, - # "aggregations": { - # "grid": { - # "geotile_grid": { - # "field": "my-geo-field", - # "precision": 11, - # "size": 65536, - # "bounds": { - # "top_left": { - # "lat": -40.979898069620134, - # "lon": -45 - # }, - # "bottom_right": { - # "lat": -66.51326044311186, - # "lon": 0 - # } - # } - # } - # }, - # "bounds": { - # "geo_bounds": { - # "field": "my-geo-field", - # "wrap_longitude": false - # } - # } - # } - # } - # ``` - # # The API returns results as a binary Mapbox vector tile. # Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: # * A `hits` layer containing a feature for each `` value matching the `geo_bounding_box` query. @@ -142,6 +94,7 @@ module Actions # Some cells may intersect more than one vector tile. # To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. # Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. + # Learn how to use the vector tile search API with practical examples in the {https://www.elastic.co/docs/reference/elasticsearch/rest-apis/vector-tile-search Vector tile search examples} guide. # # @option arguments [String, Array] :index Comma-separated list of data streams, indices, or aliases to search (*Required*) # @option arguments [String] :field Field containing geospatial data to return (*Required*) @@ -174,7 +127,7 @@ module Actions # In addition, the new features will be distinguishable using the tag `_mvt_label_position`. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb index f5c77389f2..65306c2191 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_shards.rb @@ -35,8 +35,7 @@ module Actions # For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`. # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. Server default: open. + # Supports comma-separated values, such as `open,hidden`. Server default: open. # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Boolean] :local If `true`, the request retrieves information from the local node only. # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. @@ -47,7 +46,7 @@ module Actions # @option arguments [String] :routing A custom value used to route operations to a specific shard. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb index cfb8231c65..69c93a4b0d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_template.rb @@ -32,7 +32,6 @@ module Actions # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. # Supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. # @option arguments [Boolean] :explain If `true`, the response includes additional details about score computation as part of a hit. # @option arguments [Boolean] :ignore_throttled If `true`, specified concrete, expanded, or aliased indices are not included in the response when throttled. Server default: true. # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. @@ -48,7 +47,7 @@ module Actions # @option arguments [Boolean] :typed_keys If `true`, the response prefixes aggregation and suggester names with their respective types. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb index e512f70c1c..2a5033f328 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Time] :master_timeout [TODO] # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb index af3b9b958e..a777feee1d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb index 4c4cb7b7ad..22e17946fa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [String] :storage The mount option for the searchable snapshot index. Server default: full_copy. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb index 1d5cf1d741..9b0c47b238 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :level Return stats aggregated at cluster, index or shard level # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb index 37956bce27..ba9d872321 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/activate_user_profile.rb @@ -35,7 +35,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb index 2ed859157f..2030cad4ec 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/authenticate.rb @@ -30,7 +30,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb index 45d8bbbffe..c7c4d2edfc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_delete_role.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb index 2e20c2b337..7e4121f725 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_put_role.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb index 98e3260304..18121a51e7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb @@ -35,7 +35,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb index 14fb68ce8d..37ade27c16 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/change_password.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb index ba19b8e66c..e4200fe478 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb @@ -31,7 +31,7 @@ module Actions # Does not support other wildcard patterns. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb index aa08b80269..58dea38664 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb @@ -31,7 +31,7 @@ module Actions # It does not support other wildcard patterns. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb index 6265fb2ccb..70f2365278 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_realms.rb @@ -36,7 +36,7 @@ module Actions # If you do not specify this parameter, the API evicts all users from the user cache. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb index f4f291d61c..041f66ab55 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_roles.rb @@ -30,7 +30,7 @@ module Actions # It does not support other wildcard patterns. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb index d1c3176530..e6d0392d8c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb @@ -36,7 +36,7 @@ module Actions # It does not support other wildcard patterns. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb index 66ea5fe323..b0f5243994 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_api_key.rb @@ -35,7 +35,7 @@ module Actions # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb index fe3caa4694..5ef9dfbbd0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb @@ -35,7 +35,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb index 85dab1e0e9..a9d3557430 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/create_service_token.rb @@ -36,7 +36,7 @@ module Actions # @option arguments [String] :refresh If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb index 6fb7c08798..9e1a3f0756 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delegate_pki.rb @@ -33,7 +33,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb index 929a55fdb8..faf6a4c5c4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_privileges.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb index 22e39efc3f..fce4229c0d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb index 9aef2aa44b..7bf6337676 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_role_mapping.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb index 7a5b5832ef..a8b0933dd4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_service_token.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :refresh If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb index 4f7cbf104e..44379324aa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/delete_user.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb index 3c0127c85a..6bd8518adf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb index 16e49bf081..1b5c63a290 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/disable_user_profile.rb @@ -36,7 +36,7 @@ module Actions # If 'false', it does nothing with refreshes. Server default: false. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb index f865456e92..3d38aeeb17 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb index 3220f86e51..4e62cfda41 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enable_user_profile.rb @@ -37,7 +37,7 @@ module Actions # If 'false', nothing is done with refreshes. Server default: false. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb index d970c75513..5110894326 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_kibana.rb @@ -29,7 +29,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb index 7c1d116855..f4ef66d16d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/enroll_node.rb @@ -29,7 +29,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb index 845f825b09..ad4153e9bb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_api_key.rb @@ -46,7 +46,7 @@ module Actions # @option arguments [Boolean] :with_profile_uid Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb index 6b192a9b5a..0df49aa864 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb @@ -27,7 +27,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb index 254536ef9f..91e6889131 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_privileges.rb @@ -34,7 +34,7 @@ module Actions # If you do not specify this parameter, the API returns information about all privileges for the requested application. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb index 077d3b91d7..34231946f6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role.rb @@ -32,7 +32,7 @@ module Actions # If you do not specify this parameter, the API returns information about all roles. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb index b6f896673f..342a35a18a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_role_mapping.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String, Array] :name The distinct name that identifies the role mapping. The name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way. You can specify multiple mapping names as a comma-separated list. If you do not specify this parameter, the API returns information about all role mappings. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb index 786ca9d1c4..d2305b7e4e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_accounts.rb @@ -33,7 +33,7 @@ module Actions # Omit this parameter to retrieve information about all service accounts that belong to the specified `namespace`. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb index c8e7293900..6885b34fa3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_service_credentials.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :service The service name. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb index 86fddf3042..37da781bd5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_settings.rb @@ -33,7 +33,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb index c2c70f98ed..0b992e6c69 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_token.rb @@ -35,7 +35,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb index fe7cb9a531..184f01963e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user.rb @@ -25,11 +25,11 @@ module Actions # Get users. # Get information about users in the native realm and built-in users. # - # @option arguments [Username] :username An identifier for the user. You can specify multiple usernames as a comma-separated list. If you omit this parameter, the API retrieves information about all users. + # @option arguments [String, Array] :username An identifier for the user. You can specify multiple usernames as a comma-separated list. If you omit this parameter, the API retrieves information about all users. # @option arguments [Boolean] :with_profile_uid Determines whether to retrieve the user profile UID, if it exists, for the users. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb index 024c381111..4b05553c99 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb @@ -30,10 +30,10 @@ module Actions # # @option arguments [String] :application The name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, the API returns information about all privileges for all applications. # @option arguments [String] :priviledge The name of the privilege. If you do not specify this parameter, the API returns information about all privileges for the requested application. - # @option arguments [Name, Null] :username [TODO] + # @option arguments [String, nil] :username [TODO] # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb index c8e0fad628..4c8575ed7f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_profile.rb @@ -28,14 +28,14 @@ module Actions # Individual users and external applications should not call this API directly. # Elastic reserves the right to change or remove this feature in future releases without prior notice. # - # @option arguments [Userprofileid] :uid A unique identifier for the user profile. (*Required*) - # @option arguments [String] :data A comma-separated list of filters for the `data` field of the profile document. + # @option arguments [String, Array] :uid A unique identifier for the user profile. (*Required*) + # @option arguments [String, Array] :data A comma-separated list of filters for the `data` field of the profile document. # To return all content use `data=*`. # To return a subset of content use `data=` to retrieve content nested under the specified ``. # By default returns no `data` content. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb index 11fbaf5bed..bd54d17c8d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb @@ -41,7 +41,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb index 50399e647a..bd6c9d66d9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :user Username # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb index 4b9aa4db7e..d9d9e6159f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb @@ -29,7 +29,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb index 58161f7fbf..4074b73785 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_api_key.rb @@ -36,7 +36,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb index 4810bc07c2..c540c24d00 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/invalidate_token.rb @@ -35,7 +35,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb index ebf6f9ccb7..93bfef8e7f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_authenticate.rb @@ -29,7 +29,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb index c9f928510d..c7be2fc762 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_logout.rb @@ -30,7 +30,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb index e498547f38..6d44eb434c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb @@ -30,7 +30,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb index 81bec87b4a..3582b5a5ff 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_privileges.rb @@ -39,7 +39,7 @@ module Actions # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb index 40ed13d292..2d283ae404 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb index e505beead3..7f0e41bb63 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_role_mapping.rb @@ -46,7 +46,7 @@ module Actions # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb index 3be8350a6f..462e9b0341 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/put_user.rb @@ -34,7 +34,7 @@ module Actions # These values have the same meaning as in the index API, but the default value for this API is true. Server default: true. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb index 4df9364033..90290d67ae 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_api_keys.rb @@ -28,6 +28,7 @@ module Actions # To use this API, you must have at least the `manage_own_api_key` or the `read_security` cluster privileges. # If you have only the `manage_own_api_key` privilege, this API returns only the API keys that you own. # If you have the `read_security`, `manage_api_key`, or greater privileges (including `manage_security`), this API returns all API keys regardless of ownership. + # Refer to the linked documentation for examples of how to find API keys: # # @option arguments [Boolean] :with_limited_by Return the snapshot of the owner user's role descriptors associated with the API key. # An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors (effectively limited by it). @@ -37,7 +38,7 @@ module Actions # @option arguments [Boolean] :typed_keys Determines whether aggregation names are prefixed by their respective types in the response. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb index a8ea62f583..b4009fa6e5 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_role.rb @@ -31,7 +31,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb index 83998e81f2..2d6747e20d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/query_user.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [Boolean] :with_profile_uid Determines whether to retrieve the user profile UID, if it exists, for the users. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb index 9285002d13..7f6cd297dc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_authenticate.rb @@ -35,7 +35,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb index 25b72d158b..bb9f129f9f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_complete_logout.rb @@ -34,7 +34,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb index ad8acc11f1..1a529d9e1d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_invalidate.rb @@ -33,7 +33,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb index 15cefdd9c2..b30dc30453 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_logout.rb @@ -31,7 +31,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb index 75fd4396cb..94d6ad03d6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb @@ -36,7 +36,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb index 9f6e34cd11..8afa9af211 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String] :realm_name The name of the SAML realm in Elasticsearch. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb index 139d94639a..feaa40cd93 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb @@ -28,14 +28,14 @@ module Actions # Individual users and external applications should not call this API directly. # Elastic reserves the right to change or remove this feature in future releases without prior notice. # - # @option arguments [String] :data A comma-separated list of filters for the `data` field of the profile document. + # @option arguments [String, Array] :data A comma-separated list of filters for the `data` field of the profile document. # To return all content use `data=*`. # To return a subset of content, use `data=` to retrieve content nested under the specified ``. # By default, the API returns no `data` content. # It is an error to specify `data` as both the query parameter and the request body field. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb index afadfed551..aaa5467af4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_api_key.rb @@ -40,7 +40,7 @@ module Actions # @option arguments [String] :id The ID of the API key to update. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb index 1c1f3c9072..3210ac126a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb @@ -33,11 +33,12 @@ module Actions # This API supports updates to an API key's access scope, metadata, and expiration. # The owner user's information, such as the `username` and `realm`, is also updated automatically on every call. # NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. + # To learn more about how to use this API, refer to the {https://www.elastic.co/docs/reference/elasticsearch/rest-apis/update-cc-api-key-examples Update cross cluter API key API examples page}. # # @option arguments [String] :id The ID of the cross-cluster API key to update. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb index 5b25a6ff44..3808e5eaaa 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_settings.rb @@ -34,7 +34,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb index 02d0805ae4..7a31731c03 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/update_user_profile_data.rb @@ -44,7 +44,7 @@ module Actions # If 'false', nothing is done with refreshes. Server default: false. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb b/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb index 8914c355bd..49289b286a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/simulate/ingest.rb @@ -47,7 +47,7 @@ module Actions # This value can be used to override the default pipeline of the index. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb index fbc6c5ddfb..a4e0f9b230 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb @@ -34,7 +34,7 @@ module Actions # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb index a8257feabd..8c8ff4768b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/clone.rb @@ -33,7 +33,7 @@ module Actions # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb index 604935aa49..4ebd6711b1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create.rb @@ -35,7 +35,7 @@ module Actions # If `false`, the request returns a response when the snapshot initializes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb index ab79bf1a47..bbf84f6a7d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/create_repository.rb @@ -41,7 +41,7 @@ module Actions # You can also perform this verification with the verify snapshot repository API. Server default: true. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb index 9413dff25b..1dc390c590 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb @@ -32,7 +32,7 @@ module Actions # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb index c877d68d44..b9254b17ac 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete_repository.rb @@ -36,7 +36,7 @@ module Actions # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb index 2f0c2a81cf..79e8d2c81a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb @@ -59,7 +59,7 @@ module Actions # @option arguments [Boolean] :verbose If `true`, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.NOTE: The parameters `size`, `order`, `after`, `from_sort_value`, `offset`, `slm_policy_filter`, and `sort` are not supported when you set `verbose=false` and the sort order for requests with `verbose=false` is undefined. Server default: true. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb index fb90bf82ea..b557285812 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get_repository.rb @@ -33,7 +33,7 @@ module Actions # To indicate that the request should never timeout, set it to `-1`. Server default: to 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb index 20568d60d3..f46df4240a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb @@ -119,7 +119,7 @@ module Actions # If no response is received before the timeout expires, the test is cancelled and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb index 82110c0d07..7f7c947e10 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/restore.rb @@ -47,7 +47,7 @@ module Actions # This applies even if one or more of the recovery attempts fail.If `false`, the request returns a response when the restore operation initializes. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb index 840a6a659a..81c5bc4a52 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/status.rb @@ -47,7 +47,7 @@ module Actions # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb index 341b65e9c4..95085b5df1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/verify_repository.rb @@ -34,7 +34,7 @@ module Actions # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb index 326d6cec64..3da24ea788 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb @@ -33,7 +33,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb index a801a392dd..515b45c3b1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb @@ -33,7 +33,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb index 957de72f5c..acfd9a04eb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb @@ -32,7 +32,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb index fcf4231e82..7acea89d98 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb @@ -32,7 +32,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb index b935c70462..f0f4b2461c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb index b936867a14..a0d8a8f016 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb @@ -32,7 +32,7 @@ module Actions # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb index da4c749690..0475721e29 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb @@ -36,7 +36,7 @@ module Actions # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb index b964446113..2b9a482cba 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb @@ -34,7 +34,7 @@ module Actions # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb index f4c39c3b18..daa3f39b9b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb @@ -38,7 +38,7 @@ module Actions # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb index 8317b4ed32..101a9e9730 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/clear_cursor.rb @@ -26,7 +26,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb index b974d979c6..3530269720 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/delete_async.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :id The identifier for the search. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb index f56d5680ce..3c0885b5bd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async.rb @@ -38,7 +38,7 @@ module Actions # It defaults to no timeout, meaning the request waits for complete search results. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb index 5cfcc8de6a..6797798d9c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/get_async_status.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :id The identifier for the search. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb index 1b2114e54d..c8c3266074 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/query.rb @@ -30,7 +30,7 @@ module Actions # If you specify both this parameter and the `Accept` HTTP header, this parameter takes precedence. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb b/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb index d6476e2719..0701f5c0c0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/sql/translate.rb @@ -28,7 +28,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb index 05c54d0de8..5cbf4b2857 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ssl/certificates.rb @@ -36,7 +36,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb index 49d242b297..0041feb0e2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb @@ -39,7 +39,7 @@ module Actions # @option arguments [String] :id The synonyms set identifier to delete. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb index 1b7ff8aa57..8a0ea527f9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :rule_id The ID of the synonym rule to delete. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb index 608ac39387..d3dacd6bf4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Integer] :size The max number of query rules to retrieve. Server default: 10. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb index 4b7c1c7b01..6bcca41e5e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [String] :rule_id The ID of the synonym rule to retrieve. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb index aeaec9db75..1c49a27122 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb @@ -29,7 +29,7 @@ module Actions # @option arguments [Integer] :size The maximum number of synonyms sets to retrieve. Server default: 10. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb index fec02e9f97..9454b12313 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :id The ID of the synonyms set to be created or updated. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb index cc43e8cc21..6378e937cf 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :rule_id The ID of the synonym rule to be updated or created. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb index 21c88d85c5..7f0b641e12 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/cancel.rb @@ -37,13 +37,13 @@ module Actions # support SLA of official GA features. # # @option arguments [String, Integer] :task_id The task identifier. - # @option arguments [String] :actions A comma-separated list or wildcard expression of actions that is used to limit the request. + # @option arguments [String, Array] :actions A comma-separated list or wildcard expression of actions that is used to limit the request. # @option arguments [Array] :nodes A comma-separated list of node IDs or names that is used to limit the request. # @option arguments [String] :parent_task_id A parent task ID that is used to limit the tasks. # @option arguments [Boolean] :wait_for_completion If true, the request blocks until all found tasks are complete. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb index 66b31419cf..ee73ed63db 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/get.rb @@ -38,7 +38,7 @@ module Actions # @option arguments [Boolean] :wait_for_completion If `true`, the request blocks until the task has completed. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb index 236b1057df..431af7ad65 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/tasks/list.rb @@ -83,7 +83,7 @@ module Actions # to fix any issues, but experimental features are not subject to the # support SLA of official GA features. # - # @option arguments [String] :actions A comma-separated list or wildcard expression of actions used to limit the request. + # @option arguments [String, Array] :actions A comma-separated list or wildcard expression of actions used to limit the request. # For example, you can use `cluser:*` to retrieve all cluster-related tasks. # @option arguments [Boolean] :detailed If `true`, the response includes detailed information about the running tasks. # This information is useful to distinguish tasks from each other but is more costly to run. @@ -99,7 +99,7 @@ module Actions # @option arguments [Boolean] :wait_for_completion If `true`, the request blocks until the operation is complete. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb b/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb index 8cc7f5f4e3..cc21f90ae1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb @@ -30,7 +30,7 @@ module Actions # To search all data streams or indices, omit this parameter or use `*` or `_all`. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb b/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb index 99426ef000..aa60dd6c1e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/termvectors.rb @@ -67,7 +67,7 @@ module Actions # @option arguments [String] :version_type The version type. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb index 8444eb6647..ae3616c065 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb @@ -103,7 +103,7 @@ module Actions # When the format is semi-structured text, this will result in the structure finder treating the text as single-line messages. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb index a29171ee76..5bb86bc75d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb @@ -99,7 +99,7 @@ module Actions # When the format is semi-structured text, this will result in the structure finder treating the text as single-line messages. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb index b70e29000d..da4a862e79 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb @@ -31,7 +31,7 @@ module Actions # Valid values are `disabled` and `v1`. Server default: disabled. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb index 9b198987a8..51d458e5fd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/delete_transform.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb index 5a8e122e6a..7796418bdd 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform.rb @@ -42,7 +42,7 @@ module Actions # be retrieved and then added to another cluster. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb index d5f799d0c0..020e55a9e2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_transform_stats.rb @@ -40,7 +40,7 @@ module Actions # @option arguments [Time] :timeout Controls the time to wait for the stats # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb index 0919720ce5..077ff06911 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/preview_transform.rb @@ -34,7 +34,7 @@ module Actions # timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb index a2a514f3b4..2b51958fe9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/put_transform.rb @@ -51,7 +51,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb index ac7adf6347..2cb8e26228 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/reset_transform.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb index 08bb70a2cb..dd78d9f9e8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb @@ -33,7 +33,7 @@ module Actions # @option arguments [Time] :timeout Controls the time to wait for the scheduling to take place Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb index 9a9ff9dddb..03e7a65e25 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/start_transform.rb @@ -42,7 +42,7 @@ module Actions # @option arguments [String] :from Restricts the set of transformed entities to those changed after this time. Relative times like now-30d are supported. Only applicable for continuous transforms. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb index 38f57fe3c4..020c3471c8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/stop_transform.rb @@ -41,7 +41,7 @@ module Actions # immediately and the indexer is stopped asynchronously in the background. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb index cb552892e9..5d85f6ac82 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/update_transform.rb @@ -38,7 +38,7 @@ module Actions # timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb index a77b3cca7f..5f8137718d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb @@ -40,7 +40,7 @@ module Actions # returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update.rb index d6ee427869..d095974469 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update.rb @@ -60,7 +60,7 @@ module Actions # @option arguments [String, Array] :_source_includes The source fields you want to retrieve. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb index 4a16d27836..9888c19320 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb @@ -102,7 +102,6 @@ module Actions # @option arguments [String, Array] :expand_wildcards The type of index that wildcard patterns can match. # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. # It supports comma-separated values, such as `open,hidden`. - # Valid values are: `all`, `open`, `closed`, `hidden`, `none`. # @option arguments [Integer] :from Skips the specified number of documents. Server default: 0. # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Boolean] :lenient If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. @@ -151,7 +150,7 @@ module Actions # Elasticsearch creates a record of this task as a document at `.tasks/task/${taskId}`. Server default: true. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb index 587d4afd34..b7414b54a1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb @@ -30,7 +30,7 @@ module Actions # To turn off throttling, set it to `-1`. Server default: -1. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb index 2a55bca9a9..4a8664af64 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/ack_watch.rb @@ -29,13 +29,14 @@ module Actions # The reason for this behavior is to prevent overwriting the watch status from a watch execution. # Acknowledging an action throttles further executions of that action until its `ack.state` is reset to `awaits_successful_execution`. # This happens when the condition of the watch is not met (the condition evaluates to false). + # To demonstrate how throttling works in practice and how it can be configured for individual actions within a watch, refer to External documentation. # # @option arguments [String] :watch_id The watch identifier. (*Required*) # @option arguments [String, Array] :action_id A comma-separated list of the action identifiers to acknowledge. # If you omit this parameter, all of the actions of the watch are acknowledged. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb index b0a6ac6570..3207cfa2b6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :watch_id The watch identifier. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb index dd0cc61c5e..2d8d560619 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [String] :watch_id The watch identifier. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb index a40fdabf13..b5c289bc94 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb @@ -32,7 +32,7 @@ module Actions # @option arguments [String] :id The watch identifier. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb index 5367a53a66..bad1741e89 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb @@ -32,12 +32,13 @@ module Actions # When Elasticsearch security features are enabled on your cluster, watches are run with the privileges of the user that stored the watches. # If your user is allowed to read index `a`, but not index `b`, then the exact same set of rules will apply during execution of a watch. # When using the run watch API, the authorization data of the user that called the API will be used as a base, instead of the information who stored the watch. + # Refer to the external documentation for examples of watch execution requests, including existing, customized, and inline watches. # # @option arguments [String] :id The watch identifier. # @option arguments [Boolean] :debug Defines whether the watch runs in debug mode. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb index 3752485bf6..38a032cfdc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_settings.rb @@ -30,7 +30,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb index 04c26ab3dd..781d01c9b2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/get_watch.rb @@ -27,7 +27,7 @@ module Actions # @option arguments [String] :id The watch identifier. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb index 8756ca5842..a2a1c77aa0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/put_watch.rb @@ -40,7 +40,7 @@ module Actions # @option arguments [Integer] :version Explicit version number for concurrency control # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb index adb606b902..e7f2c23fce 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/query_watches.rb @@ -28,7 +28,7 @@ module Actions # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb index 56232f12d5..125744fb89 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/start.rb @@ -28,7 +28,7 @@ module Actions # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb index c783bd31cf..18c88727b2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stats.rb @@ -26,11 +26,11 @@ module Actions # This API always returns basic metrics. # You retrieve more metrics by using the metric parameter. # - # @option arguments [Watchermetric] :metric Defines which additional metrics are included in the response. + # @option arguments [String, Array] :metric Defines which additional metrics are included in the response. # @option arguments [Boolean] :emit_stacktraces Defines whether stack traces are generated for each watch that is running. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb index 304aa9a695..dba184e7de 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/stop.rb @@ -30,7 +30,7 @@ module Actions # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb index 497d06b392..95cc9cbcac 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/watcher/update_settings.rb @@ -36,7 +36,7 @@ module Actions # If no response is received before the timeout expires, the request fails and returns an error. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb index 278a2eedc3..ece2cda8ab 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/info.rb @@ -35,7 +35,7 @@ module Actions # In particular, it adds descriptions and a tag line. Server default: true. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb index 6957c1ee5a..ba802d91ee 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/xpack/usage.rb @@ -31,7 +31,7 @@ module Actions # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. - # @option arguments [String] :filter_path Comma-separated list of filters in dot notation which reduce the response + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response # returned by Elasticsearch. # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. # For example `"exists_time": "1h"` for humans and diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index 7342a5308e..18203a33c4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.3'.freeze - ES_SPECIFICATION_COMMIT = 'bd6d2e5d2b8c470c576b72489b20a49fa95b6212'.freeze + ES_SPECIFICATION_COMMIT = '6daaab336f97d5660f10ddd7a5bb7b7ea5c477c0'.freeze end end From 515eac217747d0eb9c595e82df869f5d3b4e4345 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 23 Jul 2025 16:28:24 +0100 Subject: [PATCH 61/75] [API] Updates source code docs, spec commit 896e37f76add4e8878e9f04205dd8628c7263219 --- .../elasticsearch/api/actions/cat/recovery.rb | 7 +++-- .../elasticsearch/api/actions/cat/segments.rb | 5 ++-- .../elasticsearch/api/actions/cat/shards.rb | 6 ++-- .../api/actions/cat/snapshots.rb | 3 +- .../api/actions/cat/thread_pool.rb | 4 +-- .../actions/cluster/get_component_template.rb | 1 + .../actions/cluster/put_component_template.rb | 1 + .../lib/elasticsearch/api/actions/create.rb | 8 ----- .../elasticsearch/api/actions/eql/search.rb | 5 ++-- .../elasticsearch/api/actions/get_source.rb | 1 - .../lib/elasticsearch/api/actions/index.rb | 1 + .../api/actions/indices/recovery.rb | 6 ++++ .../api/actions/inference/put.rb | 1 + .../api/actions/inference/put_alibabacloud.rb | 1 + .../actions/inference/put_amazonbedrock.rb | 1 + .../api/actions/inference/put_anthropic.rb | 1 + .../actions/inference/put_azureaistudio.rb | 1 + .../api/actions/inference/put_azureopenai.rb | 1 + .../api/actions/inference/put_cohere.rb | 1 + .../actions/inference/put_elasticsearch.rb | 1 + .../api/actions/inference/put_elser.rb | 1 + .../actions/inference/put_googleaistudio.rb | 1 + .../actions/inference/put_googlevertexai.rb | 1 + .../api/actions/inference/put_hugging_face.rb | 1 + .../api/actions/inference/put_jinaai.rb | 1 + .../api/actions/inference/put_mistral.rb | 1 + .../api/actions/inference/put_openai.rb | 1 + .../api/actions/inference/put_voyageai.rb | 1 + .../api/actions/inference/put_watsonx.rb | 1 + .../api/actions/inference/rerank.rb | 2 +- .../actions/inference/stream_completion.rb | 1 + .../ingest/get_ip_location_database.rb | 3 -- .../api/actions/license/post_start_trial.rb | 2 +- .../update_data_frame_analytics.rb | 2 +- .../lib/elasticsearch/api/actions/reindex.rb | 3 ++ .../elasticsearch/api/actions/search_mvt.rb | 3 ++ .../actions/security/get_user_privileges.rb | 3 -- .../api/actions/security/grant_api_key.rb | 4 +++ .../api/actions/snapshot/delete.rb | 2 ++ .../api/actions/synonyms/put_synonym.rb | 1 + .../lib/elasticsearch/api/actions/update.rb | 1 + .../api/actions/update_by_query.rb | 30 ++++++++++++------- .../lib/elasticsearch/api/version.rb | 2 +- 43 files changed, 81 insertions(+), 43 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb index e69fc3348d..b5f1672346 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/recovery.rb @@ -33,11 +33,12 @@ module Actions # @option arguments [Boolean] :active_only If `true`, the response only includes ongoing shard recoveries. # @option arguments [String] :bytes The unit used to display byte values. # @option arguments [Boolean] :detailed If `true`, the response includes detailed information about shard recoveries. - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. - # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. + # It supports simple wildcards. Server default: ip,hp,rp,r,m,n,cpu,l. + # @option arguments [String, Array] :s A comma-separated list of column names or aliases that determines the sort order. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. - # @option arguments [String] :time Unit used to display time values. + # @option arguments [String] :time The unit used to display time values. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. # @option arguments [Boolean] :help When set to `true` will output available columns. This option diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb index 4fbeaac85b..7c446237ae 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/segments.rb @@ -31,8 +31,9 @@ module Actions # Supports wildcards (`*`). # To target all data streams and indices, omit this parameter or use `*` or `_all`. # @option arguments [String] :bytes The unit used to display byte values. - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. - # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. + # It supports simple wildcards. Server default: ip,hp,rp,r,m,n,cpu,l. + # @option arguments [String, Array] :s A comma-separated list of column names or aliases that determines the sort order. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. # @option arguments [Boolean] :local If `true`, the request computes the list of selected nodes from the diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb index d31da8ade7..4ee2e2196d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/shards.rb @@ -32,11 +32,11 @@ module Actions # To target all data streams and indices, omit this parameter or use `*` or `_all`. # @option arguments [String] :bytes The unit used to display byte values. # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. - # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # @option arguments [String, Array] :s A comma-separated list of column names or aliases that determines the sort order. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. - # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. - # @option arguments [String] :time Unit used to display time values. + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. Server default: 30s. + # @option arguments [String] :time The unit used to display time values. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. # @option arguments [Boolean] :help When set to `true` will output available columns. This option diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb index 7d8b3c20d2..d5b83ead0c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/snapshots.rb @@ -32,7 +32,8 @@ module Actions # `_all` returns all repositories. # If any repository fails during the request, Elasticsearch returns an error. # @option arguments [Boolean] :ignore_unavailable If `true`, the response does not include information from unavailable snapshots. - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. + # It supports simple wildcards. Server default: ip,hp,rp,r,m,n,cpu,l. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb index 3962af5cb8..bbe195c06b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String, Array] :thread_pool_patterns A comma-separated list of thread pool names used to limit the request. # Accepts wildcard expressions. # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. - # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. + # @option arguments [String, Array] :s A comma-separated list of column names or aliases that determines the sort order. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. # @option arguments [String] :time The unit used to display time values. @@ -38,7 +38,7 @@ module Actions # local cluster state. If `false` the list of selected nodes are computed # from the cluster state of the master node. In both cases the coordinating # node will send requests for further information to each selected node. - # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. + # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. Server default: 30s. # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text. # @option arguments [Boolean] :help When set to `true` will output available columns. This option diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb index 7e64db0de6..7c55d33324 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb @@ -28,6 +28,7 @@ module Actions # @option arguments [String] :name Comma-separated list of component template names used to limit the request. # Wildcard (`*`) expressions are supported. # @option arguments [Boolean] :flat_settings If `true`, returns settings in flat format. + # @option arguments [String, Array] :settings_filter Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys # @option arguments [Boolean] :include_defaults Return all default configurations for the component template (default: false) # @option arguments [Boolean] :local If `true`, the request retrieves information from the local node only. # If `false`, information is retrieved from the master node. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb index de794b43a5..7253562369 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb @@ -43,6 +43,7 @@ module Actions # If you use Elastic Agent and want to overwrite one of these templates, set the `version` for your replacement template higher than the current version. # If you don’t use Elastic Agent and want to disable all built-in component and index templates, set `stack.templates.enabled` to `false` using the cluster update settings API. (*Required*) # @option arguments [Boolean] :create If `true`, this request cannot replace or update existing component templates. + # @option arguments [String] :cause User defined reason for create the component template. Server default: api. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/create.rb b/elasticsearch-api/lib/elasticsearch/api/actions/create.rb index 4caa9a0ca4..d2b996b1ff 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/create.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/create.rb @@ -77,15 +77,7 @@ module Actions # @option arguments [String] :index The name of the data stream or index to target. # If the target doesn't exist and matches the name or wildcard (`*`) pattern of an index template with a `data_stream` definition, this request creates the data stream. # If the target doesn't exist and doesn’t match a data stream template, this request creates the index. (*Required*) - # @option arguments [Integer] :if_primary_term Only perform the operation if the document has this primary term. - # @option arguments [Integer] :if_seq_no Only perform the operation if the document has this sequence number. # @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Server default: true. - # @option arguments [String] :op_type Set to `create` to only index the document if it does not already exist (put if absent). - # If a document with the specified `_id` already exists, the indexing operation will fail. - # The behavior is the same as using the `/_create` endpoint. - # If a document ID is specified, this paramater defaults to `index`. - # Otherwise, it defaults to `create`. - # If the request targets a data stream, an `op_type` of `create` is required. # @option arguments [String] :pipeline The ID of the pipeline to use to preprocess incoming documents. # If the index has a default ingest pipeline specified, setting the value to `_none` turns off the default ingest pipeline for this request. # If a final pipeline is configured, it will always run regardless of the value of this parameter. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb b/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb index 0ae93b7fd5..9307680c64 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb @@ -27,11 +27,12 @@ module Actions # EQL assumes each document in a data stream or index corresponds to an event. # # @option arguments [String, Array] :index The name of the index to scope the operation (*Required*) - # @option arguments [Boolean] :allow_no_indices [TODO] Server default: true. + # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) Server default: true. # @option arguments [Boolean] :allow_partial_search_results If true, returns partial results if there are shard failures. If false, returns an error with no partial results. Server default: true. # @option arguments [Boolean] :allow_partial_sequence_results If true, sequence queries will return partial results in case of shard failures. If false, they will return no results at all. # This flag has effect only if allow_partial_search_results is true. - # @option arguments [String, Array] :expand_wildcards [TODO] Server default: open. + # @option arguments [String, Array] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. Server default: open. + # @option arguments [Boolean] :ccs_minimize_roundtrips Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution Server default: true. # @option arguments [Boolean] :ignore_unavailable If true, missing or closed indices are not included in the response. Server default: true. # @option arguments [Time] :keep_alive Period for which the search and its results are stored on the cluster. Server default: 5d. # @option arguments [Boolean] :keep_on_completion If true, the search and its results are stored on the cluster. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb b/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb index 4c59c9ae99..e309490810 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/get_source.rb @@ -46,7 +46,6 @@ module Actions # @option arguments [Boolean, String, Array] :_source Indicates whether to return the `_source` field (`true` or `false`) or lists the fields to return. # @option arguments [String, Array] :_source_excludes A comma-separated list of source fields to exclude in the response. # @option arguments [String, Array] :_source_includes A comma-separated list of source fields to include in the response. - # @option arguments [String, Array] :stored_fields A comma-separated list of stored fields to return as part of a hit. # @option arguments [Integer] :version The version number for concurrency control. # It must match the current version of the document for the request to succeed. # @option arguments [String] :version_type The version type. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/index.rb b/elasticsearch-api/lib/elasticsearch/api/actions/index.rb index efdc0f293b..8f73eb51f0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/index.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/index.rb @@ -138,6 +138,7 @@ module Actions # You can set it to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`). # The default value of `1` means it waits for each primary shard to be active. Server default: 1. # @option arguments [Boolean] :require_alias If `true`, the destination must be an index alias. + # @option arguments [Boolean] :require_data_stream If `true`, the request's actions must target a data stream (existing or to be created). # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb index 0d61cc9d0e..936848c450 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/recovery.rb @@ -45,6 +45,12 @@ module Actions # To target all data streams and indices, omit this parameter or use `*` or `_all`. # @option arguments [Boolean] :active_only If `true`, the response only includes ongoing shard recoveries. # @option arguments [Boolean] :detailed If `true`, the response includes detailed information about shard recoveries. + # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. + # This behavior applies even if the request targets other open indices. Server default: true. + # @option arguments [String, Array] :expand_wildcards Type of index that wildcard patterns can match. + # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. + # Supports comma-separated values, such as `open,hidden`. Server default: open. + # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb index be80fb4220..44b374b5b9 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put.rb @@ -46,6 +46,7 @@ module Actions # # @option arguments [String] :task_type The task type. Refer to the integration list in the API description for the available task types. # @option arguments [String] :inference_id The inference Id (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb index edab9d0ece..1eedcfa206 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb @@ -27,6 +27,7 @@ module Actions # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :alibabacloud_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb index 64d1cf1fef..9910568755 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb @@ -27,6 +27,7 @@ module Actions # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :amazonbedrock_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb index eecfacdf8d..91d58a6015 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_anthropic.rb @@ -28,6 +28,7 @@ module Actions # @option arguments [String] :task_type The task type. # The only valid task type for the model to perform is `completion`. (*Required*) # @option arguments [String] :anthropic_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb index b7d7465ee2..7cb06dee8f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb @@ -27,6 +27,7 @@ module Actions # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :azureaistudio_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb index e07ecc3845..0cd5e073fc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_azureopenai.rb @@ -32,6 +32,7 @@ module Actions # @option arguments [String] :task_type The type of the inference task that the model will perform. # NOTE: The `chat_completion` task type only supports streaming and only through the _stream API. (*Required*) # @option arguments [String] :azureopenai_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb index 0e4e01db16..cee5cdf5a2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_cohere.rb @@ -27,6 +27,7 @@ module Actions # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :cohere_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb index 806bc55af3..4ea12f6907 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb @@ -28,6 +28,7 @@ module Actions # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :elasticsearch_inference_id The unique identifier of the inference endpoint. # The must not match the `model_id`. (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb index 07548ca172..00e4af60d4 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_elser.rb @@ -28,6 +28,7 @@ module Actions # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :elser_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb index 82a751dba3..840bf4e7c3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb @@ -27,6 +27,7 @@ module Actions # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :googleaistudio_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb index f9b37d1710..7fec9214e7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb @@ -27,6 +27,7 @@ module Actions # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :googlevertexai_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb index 940cabc8e3..e4928013da 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_hugging_face.rb @@ -38,6 +38,7 @@ module Actions # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :huggingface_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb index fcf737f287..e36d666394 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_jinaai.rb @@ -29,6 +29,7 @@ module Actions # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :jinaai_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb index b582f5ddac..c551b8df82 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_mistral.rb @@ -28,6 +28,7 @@ module Actions # @option arguments [String] :task_type The task type. # The only valid task type for the model to perform is `text_embedding`. (*Required*) # @option arguments [String] :mistral_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb index a6f3114bef..a4c73acd61 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_openai.rb @@ -28,6 +28,7 @@ module Actions # @option arguments [String] :task_type The type of the inference task that the model will perform. # NOTE: The `chat_completion` task type only supports streaming and only through the _stream API. (*Required*) # @option arguments [String] :openai_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb index 4002abe43e..e00b049734 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_voyageai.rb @@ -28,6 +28,7 @@ module Actions # # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) # @option arguments [String] :voyageai_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb index 5543cc6172..9fca1baff7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_watsonx.rb @@ -30,6 +30,7 @@ module Actions # @option arguments [String] :task_type The task type. # The only valid task type for the model to perform is `text_embedding`. (*Required*) # @option arguments [String] :watsonx_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Time] :timeout Specifies the amount of time to wait for the inference endpoint to be created. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb index 3eed6b0ed3..bdf90ef57a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/rerank.rb @@ -22,7 +22,7 @@ module Elasticsearch module API module Inference module Actions - # Perform rereanking inference on the service + # Perform reranking inference on the service # # @option arguments [String] :inference_id The unique identifier for the inference endpoint. (*Required*) # @option arguments [Time] :timeout The amount of time to wait for the inference request to complete. Server default: 30s. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb index dc97c489f8..715360042e 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/stream_completion.rb @@ -29,6 +29,7 @@ module Actions # This API requires the `monitor_inference` cluster privilege (the built-in `inference_admin` and `inference_user` roles grant this privilege). You must use a client that supports streaming. # # @option arguments [String] :inference_id The unique identifier for the inference endpoint. (*Required*) + # @option arguments [Time] :timeout The amount of time to wait for the inference request to complete. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb index 731d47e511..4124fc079f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/ingest/get_ip_location_database.rb @@ -27,9 +27,6 @@ module Actions # @option arguments [String, Array] :id Comma-separated list of database configuration IDs to retrieve. # Wildcard (`*`) expressions are supported. # To get all database configurations, omit this parameter or use `*`. - # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. - # If no response is received before the timeout expires, the request fails and returns an error. - # A value of `-1` indicates that the request should never time out. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb index b6e75fa1c6..f0ae40da9c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/license/post_start_trial.rb @@ -29,7 +29,7 @@ module Actions # To check the status of your trial, use the get trial status API. # # @option arguments [Boolean] :acknowledge whether the user has acknowledged acknowledge messages (default: false) - # @option arguments [String] :type_query_string [TODO] + # @option arguments [String] :type The type of trial license to generate (default: "trial") # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb index 75baf7dd34..3c1f82ac03 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb @@ -41,7 +41,7 @@ module Actions # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body request body # - # @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-update-data-frame-analytics + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-update-data-frame-analytics # def update_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.update_data_frame_analytics' } diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb index 5f50cfb11f..192c1ce780 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb @@ -62,6 +62,9 @@ module Actions # This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts.NOTE: Reindexing from remote clusters does not support manual or automatic slicing.If set to `auto`, Elasticsearch chooses the number of slices to use. # This setting will use one slice per shard, up to a certain limit. # If there are multiple sources, it will choose the number of slices based on the index or backing index with the smallest number of shards. Server default: 1. + # @option arguments [Integer] :max_docs The maximum number of documents to reindex. + # By default, all documents are reindexed. + # If it is a value less then or equal to `scroll_size`, a scroll will not be used to retrieve the results for the operation.If `conflicts` is set to `proceed`, the reindex operation could attempt to reindex more documents from the source than `max_docs` until it has successfully indexed `max_docs` documents into the target or it has gone through every document in the source query. # @option arguments [Time] :timeout The period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards. # By default, Elasticsearch waits for at least one minute before failing. # The actual wait time could be longer, particularly when multiple waits occur. Server default: 1m. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb b/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb index 357cf66775..f2ebc99452 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb @@ -117,6 +117,9 @@ module Actions # of the cell. Server default: grid. # @option arguments [Integer] :size Maximum number of features to return in the hits layer. Accepts 0-10000. # If 0, results don't include the hits layer. Server default: 10000. + # @option arguments [Boolean, Integer] :track_total_hits The number of hits matching the query to count accurately. + # If `true`, the exact number of hits is returned at the cost of some performance. + # If `false`, the response does not include the total number of hits matching the query. Server default: 10000. # @option arguments [Boolean] :with_labels If `true`, the hits and aggs layers will contain additional point features representing # suggested label positions for the original features. # - `Point` and `MultiPoint` features will have one of the points selected. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb index 4b05553c99..ed86b30af0 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/get_user_privileges.rb @@ -28,9 +28,6 @@ module Actions # To check the privileges of other users, you must use the run as feature. # To check whether a user has a specific list of privileges, use the has privileges API. # - # @option arguments [String] :application The name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, the API returns information about all privileges for all applications. - # @option arguments [String] :priviledge The name of the privilege. If you do not specify this parameter, the API returns information about all privileges for the requested application. - # @option arguments [String, nil] :username [TODO] # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb b/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb index bd54d17c8d..f5bf7d4bf2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/security/grant_api_key.rb @@ -39,6 +39,10 @@ module Actions # If applicable, it also returns expiration information for the API key in milliseconds. # By default, API keys never expire. You can specify expiration information when you create the API keys. # + # @option arguments [String] :refresh If 'true', Elasticsearch refreshes the affected shards to make this operation + # visible to search. + # If 'wait_for', it waits for a refresh to make this operation visible to search. + # If 'false', nothing is done with refreshes. Server default: false. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb index 1dc390c590..3cdea51341 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/snapshot/delete.rb @@ -30,6 +30,8 @@ module Actions # @option arguments [Time] :master_timeout The period to wait for the master node. # If the master node is not available before the timeout expires, the request fails and returns an error. # To indicate that the request should never timeout, set it to `-1`. Server default: 30s. + # @option arguments [Boolean] :wait_for_completion If `true`, the request returns a response when the matching snapshots are all deleted. + # If `false`, the request returns a response as soon as the deletes are scheduled. Server default: true. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb index 9454b12313..3785feca87 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/synonyms/put_synonym.rb @@ -27,6 +27,7 @@ module Actions # If you need to manage more synonym rules, you can create multiple synonym sets. # When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. # This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. + # For practical examples of how to create or update a synonyms set, refer to the External documentation. # # @option arguments [String] :id The ID of the synonyms set to be created or updated. (*Required*) # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update.rb index d095974469..bfb99599c3 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update.rb @@ -34,6 +34,7 @@ module Actions # The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. # The `_source` field must be enabled to use this API. # In addition to `_source`, you can access the following variables through the `ctx` map: `_index`, `_type`, `_id`, `_version`, `_routing`, and `_now` (the current timestamp). + # For usage examples such as partial updates, upserts, and scripted updates, see the External documentation. # # @option arguments [String] :id A unique identifier for the document to be updated. (*Required*) # @option arguments [String] :index The name of the target index. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb index 9888c19320..25ceae015a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/update_by_query.rb @@ -38,6 +38,24 @@ module Actions # A bulk update request is performed for each batch of matching documents. # Any query or update failures cause the update by query request to fail and the failures are shown in the response. # Any update requests that completed successfully still stick, they are not rolled back. + # **Refreshing shards** + # Specifying the `refresh` parameter refreshes all shards once the request completes. + # This is different to the update API's `refresh` parameter, which causes only the shard + # that received the request to be refreshed. Unlike the update API, it does not support + # `wait_for`. + # **Running update by query asynchronously** + # If the request contains `wait_for_completion=false`, Elasticsearch + # performs some preflight checks, launches the request, and returns a + # {https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-tasks task} you can use to cancel or get the status of the task. + # Elasticsearch creates a record of this task as a document at `.tasks/task/${taskId}`. + # **Waiting for active shards** + # `wait_for_active_shards` controls how many copies of a shard must be active + # before proceeding with the request. See {https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-create#operation-create-wait_for_active_shards `wait_for_active_shards`} + # for details. `timeout` controls how long each write request waits for unavailable + # shards to become available. Both work exactly the way they work in the + # {https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-bulk Bulk API}. Update by query uses scrolled searches, so you can also + # specify the `scroll` parameter to control how long it keeps the search context + # alive, for example `?scroll=10m`. The default is 5 minutes. # **Throttling update requests** # To control the rate at which update by query issues batches of update operations, you can set `requests_per_second` to any positive decimal number. # This pads each batch with a wait time to throttle the rate. @@ -72,17 +90,7 @@ module Actions # * Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. # * Update performance scales linearly across available resources with the number of slices. # Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. - # **Update the document source** - # Update by query supports scripts to update the document source. - # As with the update API, you can set `ctx.op` to change the operation that is performed. - # Set `ctx.op = "noop"` if your script decides that it doesn't have to make any changes. - # The update by query operation skips updating the document and increments the `noop` counter. - # Set `ctx.op = "delete"` if your script decides that the document should be deleted. - # The update by query operation deletes the document and increments the `deleted` counter. - # Update by query supports only `index`, `noop`, and `delete`. - # Setting `ctx.op` to anything else is an error. - # Setting any other field in `ctx` is an error. - # This API enables you to only modify the source of matching documents; you cannot move them. + # Refer to the linked documentation for examples of how to update documents using the `_update_by_query` API: # # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases to search. # It supports wildcards (`*`). diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index 18203a33c4..c116efbc72 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.3'.freeze - ES_SPECIFICATION_COMMIT = '6daaab336f97d5660f10ddd7a5bb7b7ea5c477c0'.freeze + ES_SPECIFICATION_COMMIT = '896e37f76add4e8878e9f04205dd8628c7263219'.freeze end end From 4423a864c4b11f840096d5aca287e6977ae53a24 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 23 Jul 2025 16:46:24 +0100 Subject: [PATCH 62/75] [CI] Updates STACK_VERSION to 9.0.3-SNAPSHOT --- .buildkite/pipeline.yml | 2 +- .github/workflows/9.0.yml | 4 ++-- .github/workflows/otel.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 13009e2f80..5d6e59e7fc 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -25,7 +25,7 @@ steps: transport: main env: RUBY_VERSION: '{{ matrix.ruby }}' - STACK_VERSION: 9.0.2-SNAPSHOT + STACK_VERSION: 9.0.3-SNAPSHOT ES_YAML_TESTS_BRANCH: '9.0' TRANSPORT_VERSION: '{{ matrix.transport }}' RUBY_SOURCE: '{{ matrix.ruby_source }}' diff --git a/.github/workflows/9.0.yml b/.github/workflows/9.0.yml index 492c154439..79370cd40f 100644 --- a/.github/workflows/9.0.yml +++ b/.github/workflows/9.0.yml @@ -26,7 +26,7 @@ jobs: sudo sysctl -w vm.max_map_count=262144 - uses: elastic/elastic-github-actions/elasticsearch@master with: - stack-version: 9.0.2-SNAPSHOT + stack-version: 9.0.3-SNAPSHOT - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} @@ -39,4 +39,4 @@ jobs: - name: elasticsearch run: cd elasticsearch && bundle exec rake test:all - name: elasticsearch-api - run: rake es:download_artifacts[9.0.2-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:all + run: rake es:download_artifacts[9.0.3-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:all diff --git a/.github/workflows/otel.yml b/.github/workflows/otel.yml index 1d7e4f927f..a34ee1f4d6 100644 --- a/.github/workflows/otel.yml +++ b/.github/workflows/otel.yml @@ -28,7 +28,7 @@ jobs: sudo sysctl -w vm.max_map_count=262144 - uses: elastic/elastic-github-actions/elasticsearch@master with: - stack-version: 9.0.2-SNAPSHOT + stack-version: 9.0.3-SNAPSHOT - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} @@ -41,4 +41,4 @@ jobs: - name: elasticsearch run: cd elasticsearch && bundle exec rake test:all - name: elasticsearch-api - run: rake es:download_artifacts[9.0.2-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:all + run: rake es:download_artifacts[9.0.3-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:all From e78150c85cc2f86fa5c7b65b5dd6cb38db2568c3 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 29 Jul 2025 11:13:58 +0100 Subject: [PATCH 63/75] [API] Updates source code docs to 6a749236ec86e65b50e31dc888c727c0aede67a3 --- elasticsearch-api/lib/elasticsearch/api/actions/info.rb | 1 + elasticsearch-api/lib/elasticsearch/api/version.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/info.rb b/elasticsearch-api/lib/elasticsearch/api/actions/info.rb index f6c1ae836e..e166b68c8d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/info.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/info.rb @@ -23,6 +23,7 @@ module API module Actions # Get cluster info. # Get basic build, version, and cluster information. + # ::: In Serverless, this API is retained for backward compatibility only. Some response fields, such as the version number, should be ignored. # # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index c116efbc72..db97226258 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.3'.freeze - ES_SPECIFICATION_COMMIT = '896e37f76add4e8878e9f04205dd8628c7263219'.freeze + ES_SPECIFICATION_COMMIT = '6a749236ec86e65b50e31dc888c727c0aede67a3'.freeze end end From a86e3d74a0b4f13e5c01c52bd146e9282cd4ba3c Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 29 Jul 2025 11:18:22 +0100 Subject: [PATCH 64/75] [CI] Updates STACK_VERSION to 9.0.5-SNAPSHOT --- .buildkite/pipeline.yml | 2 +- .github/workflows/9.0.yml | 4 ++-- .github/workflows/otel.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 5d6e59e7fc..d0cf267dfa 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -25,7 +25,7 @@ steps: transport: main env: RUBY_VERSION: '{{ matrix.ruby }}' - STACK_VERSION: 9.0.3-SNAPSHOT + STACK_VERSION: 9.0.5-SNAPSHOT ES_YAML_TESTS_BRANCH: '9.0' TRANSPORT_VERSION: '{{ matrix.transport }}' RUBY_SOURCE: '{{ matrix.ruby_source }}' diff --git a/.github/workflows/9.0.yml b/.github/workflows/9.0.yml index 79370cd40f..23577f5188 100644 --- a/.github/workflows/9.0.yml +++ b/.github/workflows/9.0.yml @@ -26,7 +26,7 @@ jobs: sudo sysctl -w vm.max_map_count=262144 - uses: elastic/elastic-github-actions/elasticsearch@master with: - stack-version: 9.0.3-SNAPSHOT + stack-version: 9.0.5-SNAPSHOT - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} @@ -39,4 +39,4 @@ jobs: - name: elasticsearch run: cd elasticsearch && bundle exec rake test:all - name: elasticsearch-api - run: rake es:download_artifacts[9.0.3-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:all + run: rake es:download_artifacts[9.0.5-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:all diff --git a/.github/workflows/otel.yml b/.github/workflows/otel.yml index a34ee1f4d6..6be79e1cd4 100644 --- a/.github/workflows/otel.yml +++ b/.github/workflows/otel.yml @@ -28,7 +28,7 @@ jobs: sudo sysctl -w vm.max_map_count=262144 - uses: elastic/elastic-github-actions/elasticsearch@master with: - stack-version: 9.0.3-SNAPSHOT + stack-version: 9.0.5-SNAPSHOT - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} @@ -41,4 +41,4 @@ jobs: - name: elasticsearch run: cd elasticsearch && bundle exec rake test:all - name: elasticsearch-api - run: rake es:download_artifacts[9.0.3-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:all + run: rake es:download_artifacts[9.0.5-SNAPSHOT] && cd elasticsearch-api && bundle exec rake test:all From ee4dca56197231cebaaa513c0e2a8e01155843ec Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Wed, 23 Jul 2025 16:39:45 +0100 Subject: [PATCH 65/75] [API] Adds inference.put_custom --- .../api/actions/inference/put_custom.rb | 112 ++++++++++++++++++ .../unit/actions/inference/put_custom_spec.rb | 36 ++++++ 2 files changed, 148 insertions(+) create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/inference/put_custom.rb create mode 100644 elasticsearch-api/spec/unit/actions/inference/put_custom_spec.rb diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_custom.rb b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_custom.rb new file mode 100644 index 0000000000..a8937cbb55 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/inference/put_custom.rb @@ -0,0 +1,112 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. +module Elasticsearch + module API + module Inference + module Actions + # Create a custom inference endpoint. + # The custom service gives more control over how to interact with external inference services that aren't explicitly supported through dedicated integrations. + # The custom service gives you the ability to define the headers, url, query parameters, request body, and secrets. + # The custom service supports the template replacement functionality, which enables you to define a template that can be replaced with the value associated with that key. + # Templates are portions of a string that start with `${` and end with `}`. + # The parameters `secret_parameters` and `task_settings` are checked for keys for template replacement. Template replacement is supported in the `request`, `headers`, `url`, and `query_parameters`. + # If the definition (key) is not found for a template, an error message is returned. + # In case of an endpoint definition like the following: + # + # ``` + # PUT _inference/text_embedding/test-text-embedding + # { + # "service": "custom", + # "service_settings": { + # "secret_parameters": { + # "api_key": "" + # }, + # "url": "...endpoints.huggingface.cloud/v1/embeddings", + # "headers": { + # "Authorization": "Bearer ${api_key}", + # "Content-Type": "application/json" + # }, + # "request": "{\"input\": ${input}}", + # "response": { + # "json_parser": { + # "text_embeddings":"$.data[*].embedding[*]" + # } + # } + # } + # } + # ``` + # + # To replace `${api_key}` the `secret_parameters` and `task_settings` are checked for a key named `api_key`. + # + # @option arguments [String] :task_type The type of the inference task that the model will perform. (*Required*) + # @option arguments [String] :custom_inference_id The unique identifier of the inference endpoint. (*Required*) + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"exists_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. + # @option arguments [Hash] :headers Custom HTTP headers + # @option arguments [Hash] :body request body + # + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-custom + # + def put_custom(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'inference.put_custom' } + + defined_params = [:task_type, :custom_inference_id].each_with_object({}) do |variable, set_variables| + set_variables[variable] = arguments[variable] if arguments.key?(variable) + end + request_opts[:defined_params] = defined_params unless defined_params.empty? + + raise ArgumentError, "Required argument 'task_type' missing" unless arguments[:task_type] + + unless arguments[:custom_inference_id] + raise ArgumentError, + "Required argument 'custom_inference_id' missing" + end + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = arguments.delete(:body) + + _task_type = arguments.delete(:task_type) + + _custom_inference_id = arguments.delete(:custom_inference_id) + + method = Elasticsearch::API::HTTP_PUT + path = "_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_custom_inference_id)}" + params = Utils.process_params(arguments) + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/spec/unit/actions/inference/put_custom_spec.rb b/elasticsearch-api/spec/unit/actions/inference/put_custom_spec.rb new file mode 100644 index 0000000000..a409676f1b --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/inference/put_custom_spec.rb @@ -0,0 +1,36 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client#inference.put_custom' do + let(:expected_args) do + [ + 'PUT', + '_inference/foo/baz', + {}, + nil, + {}, + { defined_params: { custom_inference_id: 'baz', task_type: 'foo' }, + endpoint: 'inference.put_custom' } + ] + end + + it 'performs the request' do + expect(client_double.inference.put_custom(task_type: 'foo', custom_inference_id: 'baz')).to be_a Elasticsearch::API::Response + end +end From d8acfb628fb56c8b9d73078ede534b4ec106c9e9 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 29 Jul 2025 16:43:06 +0100 Subject: [PATCH 66/75] Bumps version to 9.0.4 and updates CHANGELOG --- CHANGELOG.md | 5 +++++ elasticsearch-api/lib/elasticsearch/api/version.rb | 2 +- elasticsearch/elasticsearch.gemspec | 2 +- elasticsearch/lib/elasticsearch/version.rb | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 739bacd157..aa7b204d58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ **See the full release notes on the official documentation website: https://www.elastic.co/docs/release-notes/elasticsearch/clients/ruby** +# 9.0.4 + +- Source code documentation and code has been updated to support common parameters and common cat parameters in APIs that support it (`error_trace`, `filter_path`, `human`, `pretty`). The API reference documentation can be generated with `rake doc`. +- New API: `inference.put_custom` + # 9.0.3 - Adds `ccr` alias for `cross_cluster_replication` and `slm` alias for `snapshot_lifecycle_management`. diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index db97226258..7a08318e1c 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -17,7 +17,7 @@ module Elasticsearch module API - VERSION = '9.0.3'.freeze + VERSION = '9.0.4'.freeze ES_SPECIFICATION_COMMIT = '6a749236ec86e65b50e31dc888c727c0aede67a3'.freeze end end diff --git a/elasticsearch/elasticsearch.gemspec b/elasticsearch/elasticsearch.gemspec index bd4ad89b7f..b483f9d6c8 100644 --- a/elasticsearch/elasticsearch.gemspec +++ b/elasticsearch/elasticsearch.gemspec @@ -46,7 +46,7 @@ Gem::Specification.new do |s| s.rdoc_options = ['--charset=UTF-8'] s.required_ruby_version = '>= 2.6' # For compatibility with JRuby 9.3 - s.add_dependency 'elasticsearch-api', '9.0.3' + s.add_dependency 'elasticsearch-api', '9.0.4' s.add_dependency 'elastic-transport', '~> 8.3' s.add_development_dependency 'base64' diff --git a/elasticsearch/lib/elasticsearch/version.rb b/elasticsearch/lib/elasticsearch/version.rb index dbd105bc62..d296d92992 100644 --- a/elasticsearch/lib/elasticsearch/version.rb +++ b/elasticsearch/lib/elasticsearch/version.rb @@ -16,5 +16,5 @@ # under the License. module Elasticsearch - VERSION = '9.0.3'.freeze + VERSION = '9.0.4'.freeze end From afb3e22a5dc6271aa3be4cea10f12f120049ed71 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Thu, 21 Aug 2025 16:00:31 +0100 Subject: [PATCH 67/75] [API] Updates generated code from 2115c3bd38dafbe1061a520046d6f0033dd52aa1 --- elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb | 1 + .../lib/elasticsearch/api/actions/cat/aliases.rb | 2 +- .../lib/elasticsearch/api/actions/cat/allocation.rb | 2 +- .../lib/elasticsearch/api/actions/cat/component_templates.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb | 2 +- .../lib/elasticsearch/api/actions/cat/fielddata.rb | 2 +- .../lib/elasticsearch/api/actions/esql/async_query.rb | 3 ++- .../lib/elasticsearch/api/actions/esql/query.rb | 2 +- .../lib/elasticsearch/api/actions/indices/put_mapping.rb | 2 +- elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb | 5 +++++ elasticsearch-api/lib/elasticsearch/api/version.rb | 2 +- 11 files changed, 16 insertions(+), 9 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb b/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb index 3a0091922f..9b38099c9d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb @@ -78,6 +78,7 @@ module Actions # * JavaScript: Check out `client.helpers.*` # * .NET: Check out `BulkAllObservable` # * PHP: Check out bulk indexing. + # * Ruby: Check out `Elasticsearch::Helpers::BulkHelper` # **Submitting bulk requests with cURL** # If you're providing text file input to `curl`, you must use the `--data-binary` flag instead of plain `-d`. # The latter doesn't preserve newlines. For example: diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb index 9aeada9d8d..b7ff709894 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/aliases.rb @@ -28,7 +28,7 @@ module Actions # IMPORTANT: CAT APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API. # # @option arguments [String, Array] :name A comma-separated list of aliases to retrieve. Supports wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`. - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. It supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb index 7f07a393c8..83e81de14d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/allocation.rb @@ -28,7 +28,7 @@ module Actions # # @option arguments [String, Array] :node_id A comma-separated list of node identifiers or names used to limit the returned information. # @option arguments [String] :bytes The unit used to display byte values. - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. It supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb index 4a9f7d1cad..62fb05455f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/component_templates.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String] :name The name of the component template. # It accepts wildcard expressions. # If it is omitted, all component templates are returned. - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. It supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb index 08892ddaf0..109e7c3f5f 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/count.rb @@ -31,7 +31,7 @@ module Actions # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases used to limit the request. # It supports wildcards (`*`). # To target all data streams and indices, omit this parameter or use `*` or `_all`. - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. It supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb index 286b10daee..a68d445155 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/fielddata.rb @@ -30,7 +30,7 @@ module Actions # @option arguments [String, Array] :fields Comma-separated list of fields used to limit returned information. # To retrieve all fields, omit this parameter. # @option arguments [String] :bytes The unit used to display byte values. - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. It supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb index 892310f9b1..63b08f7769 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/async_query.rb @@ -30,7 +30,8 @@ module Actions # It is valid only for the CSV format. # @option arguments [Boolean] :drop_null_columns Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results. # If `true`, the response will include an extra section under the name `all_columns` which has the name of all the columns. - # @option arguments [String] :format A short version of the Accept header, for example `json` or `yaml`. + # @option arguments [String] :format A short version of the Accept header, e.g. json, yaml.`csv`, `tsv`, and `txt` formats will return results in a tabular format, excluding other metadata fields from the response.For async requests, nothing will be returned if the async query doesn't finish within the timeout. + # The query ID and running status are available in the `X-Elasticsearch-Async-Id` and `X-Elasticsearch-Async-Is-Running` HTTP headers of the response, respectively. # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors # when they occur. # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb b/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb index ac9cc06f39..ebf3c17537 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/esql/query.rb @@ -28,7 +28,7 @@ module Actions # minor version, meaning that your referencing code may break when this # library is upgraded. # - # @option arguments [String] :format A short version of the Accept header, e.g. json, yaml. + # @option arguments [String] :format A short version of the Accept header, e.g. json, yaml.`csv`, `tsv`, and `txt` formats will return results in a tabular format, excluding other metadata fields from the response. # @option arguments [String] :delimiter The character to use between values within a CSV row. Only valid for the CSV format. # @option arguments [Boolean] :drop_null_columns Should columns that are entirely `null` be removed from the `columns` and `values` portion of the results? # Defaults to `false`. If `true` then the response will include an extra section under the name `all_columns` which has the name of all columns. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb index 78d03e0f49..d7532504e6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/put_mapping.rb @@ -32,7 +32,7 @@ module Actions # - Update supported mapping parameters # - Change a field's mapping using reindexing # - Rename a field using a field alias - # Learn how to use the update mapping API with practical examples in the {https://www.elastic.co/docs//manage-data/data-store/mapping/update-mappings-examples Update mapping API examples} guide. + # Learn how to use the update mapping API with practical examples in the {https://www.elastic.co/docs/manage-data/data-store/mapping/update-mappings-examples Update mapping API examples} guide. # # @option arguments [String, Array] :index A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. (*Required*) # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb index 192c1ce780..20e69a4e01 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb @@ -51,6 +51,11 @@ module Actions # In this case, the response includes a count of the version conflicts that were encountered. # Note that the handling of other error types is unaffected by the `conflicts` property. # Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than `max_docs` until it has successfully indexed `max_docs` documents into the target or it has gone through every document in the source query. + # It's recommended to reindex on indices with a green status. Reindexing can fail when a node shuts down or crashes. + # * When requested with `wait_for_completion=true` (default), the request fails if the node shuts down. + # * When requested with `wait_for_completion=false`, a task id is returned, which can be used via the task management API to monitor, debug, or cancel the task. The task may disappear or fail if the node shuts down. + # When retrying a failed reindex operation, it might be necessary to set `conflicts=proceed` or to first delete the partial destination index. + # Additionally, dry runs, checking disk space, and fetching index recovery information can help address the root cause. # Refer to the linked documentation for examples of how to reindex documents. # # @option arguments [Boolean] :refresh If `true`, the request refreshes affected shards to make this operation visible to search. diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index 7a08318e1c..8b4743ddb6 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.4'.freeze - ES_SPECIFICATION_COMMIT = '6a749236ec86e65b50e31dc888c727c0aede67a3'.freeze + ES_SPECIFICATION_COMMIT = '2115c3bd38dafbe1061a520046d6f0033dd52aa1'.freeze end end From 7ccb0a77d872c5886e34943a4e230d03ebdef39a Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 19 Aug 2025 16:55:33 +0100 Subject: [PATCH 68/75] [API] Adds transform.set_upgrade_mode --- .../api/actions/transform/set_upgrade_mode.rb | 50 +++++++++++++++++++ .../transform/set_upgrade_mode_spec.rb | 35 +++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 elasticsearch-api/lib/elasticsearch/api/actions/transform/set_upgrade_mode.rb create mode 100644 elasticsearch-api/spec/unit/actions/transform/set_upgrade_mode_spec.rb diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/set_upgrade_mode.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/set_upgrade_mode.rb new file mode 100644 index 0000000000..75c12bc322 --- /dev/null +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/set_upgrade_mode.rb @@ -0,0 +1,50 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +# This code was automatically generated from the Elasticsearch Specification +# See https://github.com/elastic/elasticsearch-specification +# See Elasticsearch::ES_SPECIFICATION_COMMIT for commit hash. +module Elasticsearch + module API + module Transform + module Actions + # Sets a cluster wide upgrade_mode setting that prepares transform indices for an upgrade. + # + # @option arguments [Hash] :headers Custom HTTP headers + # + # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/transform-set-upgrade-mode.html + # + def set_upgrade_mode(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || 'transform.set_upgrade_mode' } + + arguments = arguments.clone + headers = arguments.delete(:headers) || {} + + body = nil + + method = Elasticsearch::API::HTTP_POST + path = '_transform/set_upgrade_mode' + params = {} + + Elasticsearch::API::Response.new( + perform_request(method, path, params, body, headers, request_opts) + ) + end + end + end + end +end diff --git a/elasticsearch-api/spec/unit/actions/transform/set_upgrade_mode_spec.rb b/elasticsearch-api/spec/unit/actions/transform/set_upgrade_mode_spec.rb new file mode 100644 index 0000000000..9dd1b158c1 --- /dev/null +++ b/elasticsearch-api/spec/unit/actions/transform/set_upgrade_mode_spec.rb @@ -0,0 +1,35 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'client.transform#set_upgrade_mode' do + let(:expected_args) do + [ + 'POST', + '_transform/set_upgrade_mode', + {}, + nil, + {}, + { endpoint: 'transform.set_upgrade_mode' } + ] + end + + it 'performs the request' do + expect(client_double.transform.set_upgrade_mode).to be_a Elasticsearch::API::Response + end +end From f795d0eafac7da7ae95d552c09088258b7238a6b Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Thu, 21 Aug 2025 15:39:34 +0100 Subject: [PATCH 69/75] [API] Updates NDJSON endpoints headers to not override compatiblity headers --- .../lib/elasticsearch/api/actions/bulk.rb | 4 +- .../api/actions/fleet/msearch.rb | 4 +- .../lib/elasticsearch/api/actions/msearch.rb | 4 +- .../api/actions/msearch_template.rb | 4 +- .../actions/text_structure/find_structure.rb | 4 +- .../lib/elasticsearch/api/utils.rb | 16 +++ .../lib/elasticsearch/api/version.rb | 2 +- .../spec/unit/actions/bulk_spec.rb | 41 ++++-- .../spec/unit/actions/msearch_spec.rb | 28 ++-- elasticsearch-api/spec/unit/bulk_spec.rb | 124 ++++++++++++++++ elasticsearch-api/spec/unit/msearch_spec.rb | 133 ++++++++++++++++++ 11 files changed, 316 insertions(+), 48 deletions(-) create mode 100644 elasticsearch-api/spec/unit/bulk_spec.rb create mode 100644 elasticsearch-api/spec/unit/msearch_spec.rb diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb b/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb index 9b38099c9d..7dd50e21a2 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb @@ -187,9 +187,7 @@ def bulk(arguments = {}) body end - headers.merge!({ - 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' - }) + Utils.update_ndjson_headers!(headers, transport.options.dig(:transport_options, :headers)) Elasticsearch::API::Response.new( perform_request(method, path, params, payload, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb index 970c4cf6d9..cad1b972fc 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb @@ -108,9 +108,7 @@ def msearch(arguments = {}) payload = body end - headers.merge!({ - 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' - }) + Utils.update_ndjson_headers!(headers, client.transport.options.dig(:transport_options, :headers)) Elasticsearch::API::Response.new( perform_request(method, path, params, payload, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb b/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb index e7051cf000..bfdfd55fc8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb @@ -120,9 +120,7 @@ def msearch(arguments = {}) payload = body end - headers.merge!({ - 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' - }) + Utils.update_ndjson_headers!(headers, transport.options.dig(:transport_options, :headers)) Elasticsearch::API::Response.new( perform_request(method, path, params, payload, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb b/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb index 9efc7e245d..f480272ef1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/msearch_template.rb @@ -93,9 +93,7 @@ def msearch_template(arguments = {}) payload = body end - headers.merge!({ - 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' - }) + Utils.update_ndjson_headers!(headers, transport.options.dig(:transport_options, :headers)) Elasticsearch::API::Response.new( perform_request(method, path, params, payload, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb index bc56d5a84b..12f8f8f06d 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/text_structure/find_structure.rb @@ -136,9 +136,7 @@ def find_structure(arguments = {}) body end - headers.merge!({ - 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' - }) + Utils.update_ndjson_headers!(headers, client.transport.options.dig(:transport_options, :headers)) Elasticsearch::API::Response.new( perform_request(method, path, params, payload, headers, request_opts) ) diff --git a/elasticsearch-api/lib/elasticsearch/api/utils.rb b/elasticsearch-api/lib/elasticsearch/api/utils.rb index 128281a611..8209d179a1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/utils.rb +++ b/elasticsearch-api/lib/elasticsearch/api/utils.rb @@ -177,6 +177,22 @@ def rescue_from_not_found(&block) end end + # Updates ndjson headers for msearch, bulk, and others + # + def update_ndjson_headers!(headers, client_headers) + current_content = client_headers.keys.find { |c| c.match?(/content-?_?type/i) } || 'content-type' + current_accept = client_headers.keys.find { |c| c.match?(/accept/i) } || 'accept' + + version = client_headers[current_content].match(/compatible-with=([8-9]{1})/)[1] || 9 + + headers.merge!( + { + current_content => "application/vnd.elasticsearch+x-ndjson; compatible-with=#{version}", + current_accept => "application/vnd.elasticsearch+x-ndjson; compatible-with=#{version}" + } + ) + end + extend self end end diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index 8b4743ddb6..8b00477bdb 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.4'.freeze - ES_SPECIFICATION_COMMIT = '2115c3bd38dafbe1061a520046d6f0033dd52aa1'.freeze + ES_SPECIFICATION_COMMIT = '941744bd0826657988ca8f9a336795092b3dbb9b'.freeze end end diff --git a/elasticsearch-api/spec/unit/actions/bulk_spec.rb b/elasticsearch-api/spec/unit/actions/bulk_spec.rb index 25906f11c7..4709c48e66 100644 --- a/elasticsearch-api/spec/unit/actions/bulk_spec.rb +++ b/elasticsearch-api/spec/unit/actions/bulk_spec.rb @@ -29,11 +29,12 @@ ] end - let(:headers) { - { - 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' - } - } + let(:headers) { {} } + + # This test only cares about the body, there's another test for the ndjson headers. + before do + dummy_ndjson_headers + end let(:params) { {} } let(:url) { '_bulk' } @@ -53,12 +54,16 @@ end it 'performs the request' do - expect(client_double.bulk(:body => [ - { :index => { :_index => 'myindexA', :_id => '1', :data => { :title => 'Test' } } }, - { :update => { :_index => 'myindexB', :_id => '2', :data => { :doc => { :title => 'Update' } } } }, - { :delete => { :_index => 'myindexC', :_id => '3' } }, - { :index => { :_index => 'myindexD', :_id => '1', :data => { :data => 'MYDATA' } } }, - ])).to be_a Elasticsearch::API::Response + expect( + client_double.bulk( + body: [ + { index: { _index: 'myindexA', _id: '1', data: { title: 'Test' } } }, + { update: { _index: 'myindexB', _id: '2', data: { doc: { title: 'Update' } } } }, + { delete: { _index: 'myindexC', _id: '3' } }, + { index: { _index: 'myindexD', _id: '1', data: { data: 'MYDATA' } } } + ] + ) + ).to be_a Elasticsearch::API::Response end end @@ -72,7 +77,7 @@ params, body, headers, - { defined_params: { index: 'myindex' }, :endpoint=>"bulk"} + { defined_params: { index: 'myindex' }, endpoint: 'bulk' } ] end @@ -90,8 +95,14 @@ end it 'performs the request' do - expect(client_double.bulk(body:[ { :update => { :_index => 'myindex', :_id => '1' } }, - { :doc => { :data => { :title => 'Update' } } } ])).to be_a Elasticsearch::API::Response + expect( + client_double.bulk( + body: [ + { update: { _index: 'myindex', _id: '1' } }, + { doc: { data: { title: 'Update' } } } + ] + ) + ).to be_a Elasticsearch::API::Response end end @@ -137,7 +148,7 @@ params, body, headers, - { defined_params: { index: 'foo^bar' }, :endpoint=>"bulk"} + { defined_params: { index: 'foo^bar' }, endpoint: 'bulk'} ] end diff --git a/elasticsearch-api/spec/unit/actions/msearch_spec.rb b/elasticsearch-api/spec/unit/actions/msearch_spec.rb index a7b576e02c..3acebfa641 100644 --- a/elasticsearch-api/spec/unit/actions/msearch_spec.rb +++ b/elasticsearch-api/spec/unit/actions/msearch_spec.rb @@ -41,24 +41,21 @@ {} end - let(:headers) { - { - 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' - } - } - - let(:client) do - Class.new { include Elasticsearch::API }.new + let(:headers) do + {} end - it 'requires the :body argument' do - expect { - client.msearch - }.to raise_exception(ArgumentError) + let(:transport_double) do + Transport ||= Struct.new('Transport', :options) + Transport.new({ transport_options: { headers: {} } }) end - context 'when the body is an object' do + before do + allow(client_double).to receive(:transport).and_return transport_double + allow(Elasticsearch::API::Utils).to receive(:update_ndjson_headers!).and_return(headers) + end + context 'when the body is an object' do let(:body) do <<-PAYLOAD.gsub(/^\s+/, '') {"index":"foo"} @@ -72,7 +69,7 @@ it 'performs the request' do expect(client_double.msearch body: [ - { index: 'foo', search: { query: { match_all: {} } } }, + { index: 'foo', search: { query: { match_all: {} } } }, { index: 'bar', search: { query: { match: { foo: 'bar' } } } }, { search_type: 'count', search: { facets: { tags: {} } } } ]) @@ -80,7 +77,6 @@ end context 'when the body is a string' do - let(:body) do %Q|{"foo":"bar"}\n{"moo":"lam"}| end @@ -141,7 +137,6 @@ end context 'when the request needs to be URL-escaped' do - let(:url) do 'foo%5Ebar/_msearch' end @@ -167,7 +162,6 @@ end context 'when the URL params need to be URL-encoded' do - let(:url) do '_msearch' end diff --git a/elasticsearch-api/spec/unit/bulk_spec.rb b/elasticsearch-api/spec/unit/bulk_spec.rb new file mode 100644 index 0000000000..d775c4e12c --- /dev/null +++ b/elasticsearch-api/spec/unit/bulk_spec.rb @@ -0,0 +1,124 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'bulk headers test' do + context 'when not setting headers' do + let(:client) do + Elasticsearch::Client.new + end + + let(:expected_headers) do + { + 'accept' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9', + 'content-type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' + } + end + + it 'does not override headers' do + allow(client) + .to receive(:perform_request) + .with( + Elasticsearch::API::HTTP_POST, + '_bulk', + {}, + {}, + expected_headers, + { endpoint: 'bulk' } + ) + expect(client.bulk(body: {})).to be_a Elasticsearch::API::Response + end + end + + context 'when using compatibility headers for version 8' do + let(:client) do + Elasticsearch::Client.new( + transport_options: { + headers: custom_headers + } + ) + end + + let(:custom_headers) do + { + accept: 'application/vnd.elasticsearch+json; compatible-with=8', + content_type: 'application/vnd.elasticsearch+json; compatible-with=8' + } + end + + let(:expected_headers) do + { + accept: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8', + content_type: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8' + } + end + + it 'does not override version in headers' do + allow(client) + .to receive(:perform_request) + .with( + Elasticsearch::API::HTTP_POST, + '_bulk', + {}, + {}, + expected_headers, + { endpoint: 'bulk' } + ) + expect(client.bulk(body: {})).to be_a Elasticsearch::API::Response + end + end + + context 'when using custom headers in request' do + let(:client) do + Elasticsearch::Client.new( + transport_options: { + headers: custom_headers + } + ) + end + + let(:custom_headers) do + { + accept: 'application/vnd.elasticsearch+json; compatible-with=8', + content_type: 'application/vnd.elasticsearch+json; compatible-with=8' + } + end + + let(:expected_headers) do + { + accept: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8', + content_type: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8', + x_custom: 'Custom header' + } + end + + it 'does not override version in headers' do + allow(client) + .to receive(:perform_request) + .with( + Elasticsearch::API::HTTP_POST, + '_bulk', + {}, + {}, + expected_headers, + { endpoint: 'bulk' } + ) + expect(client.bulk(body: {}, headers: { x_custom: 'Custom header' })).to be_a Elasticsearch::API::Response + end + end +end diff --git a/elasticsearch-api/spec/unit/msearch_spec.rb b/elasticsearch-api/spec/unit/msearch_spec.rb new file mode 100644 index 0000000000..d8ddf92007 --- /dev/null +++ b/elasticsearch-api/spec/unit/msearch_spec.rb @@ -0,0 +1,133 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' +require 'elastic/transport' + +describe 'msearch custom' do + context 'raise exception' do + it 'requires the :body argument' do + expect do + Elasticsearch::Client.new.msearch + end.to raise_exception(ArgumentError) + end + end + + context 'when not setting headers' do + let(:client) do + Elasticsearch::Client.new + end + + let(:expected_headers) do + { + 'accept' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9', + 'content-type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' + } + end + + it 'does not override headers' do + allow(client) + .to receive(:perform_request) + .with( + Elasticsearch::API::HTTP_POST, + '_msearch', + {}, + {}, + expected_headers, + { endpoint: 'msearch' } + ) + expect(client.msearch(body: {})).to be_a Elasticsearch::API::Response + end + end + + context 'when using compatibility headers for version 8' do + let(:client) do + Elasticsearch::Client.new( + transport_options: { + headers: custom_headers + } + ) + end + + let(:custom_headers) do + { + accept: 'application/vnd.elasticsearch+json; compatible-with=8', + content_type: 'application/vnd.elasticsearch+json; compatible-with=8' + } + end + + let(:expected_headers) do + { + accept: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8', + content_type: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8' + } + end + + it 'does not override version in headers' do + allow(client) + .to receive(:perform_request) + .with( + Elasticsearch::API::HTTP_POST, + '_msearch', + {}, + {}, + expected_headers, + { endpoint: 'msearch' } + ) + expect(client.msearch(body: {})).to be_a Elasticsearch::API::Response + end + end + + context 'when using custom headers in request' do + let(:client) do + Elasticsearch::Client.new( + transport_options: { + headers: custom_headers + } + ) + end + + let(:custom_headers) do + { + accept: 'application/vnd.elasticsearch+json; compatible-with=8', + content_type: 'application/vnd.elasticsearch+json; compatible-with=8' + } + end + + let(:expected_headers) do + { + accept: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8', + content_type: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8', + x_custom: 'Custom header' + } + end + + it 'does not override version in headers' do + allow(client) + .to receive(:perform_request) + .with( + Elasticsearch::API::HTTP_POST, + '_msearch', + {}, + {}, + expected_headers, + { endpoint: 'msearch' } + ) + expect(client.msearch(body: {}, headers: { x_custom: 'Custom header' })).to be_a Elasticsearch::API::Response + end + end +end From 0bbf7158a004057caccad512192f7925920ee0fc Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Thu, 21 Aug 2025 16:55:32 +0100 Subject: [PATCH 70/75] [OTEL] Updates perform_request_spec --- elasticsearch-api/spec/unit/perform_request_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/elasticsearch-api/spec/unit/perform_request_spec.rb b/elasticsearch-api/spec/unit/perform_request_spec.rb index 8a9f98e0ae..9d1901c148 100644 --- a/elasticsearch-api/spec/unit/perform_request_spec.rb +++ b/elasticsearch-api/spec/unit/perform_request_spec.rb @@ -54,6 +54,16 @@ double('response', status: 200, body: {}, headers: {}) end + let(:transport_double) do + Transport ||= Struct.new('Transport', :options) + Transport.new({ transport_options: { headers: {} } }) + end + + before do + allow(client_double).to receive(:transport).and_return transport_double + allow(Elasticsearch::API::Utils).to receive(:update_ndjson_headers!).and_return({}) + end + context("'#{spec.endpoint_name}'") do # The expected hash passed to perform_request contains the endpoint name and any defined path parts let(:expected_perform_request_params) do From 1139ea811703a25920849d33756233ea7b1af772 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Fri, 22 Aug 2025 17:06:45 +0100 Subject: [PATCH 71/75] Update for wider version compatibility --- elasticsearch-api/lib/elasticsearch/api/utils.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/utils.rb b/elasticsearch-api/lib/elasticsearch/api/utils.rb index 8209d179a1..8414c82ec7 100644 --- a/elasticsearch-api/lib/elasticsearch/api/utils.rb +++ b/elasticsearch-api/lib/elasticsearch/api/utils.rb @@ -182,8 +182,7 @@ def rescue_from_not_found(&block) def update_ndjson_headers!(headers, client_headers) current_content = client_headers.keys.find { |c| c.match?(/content-?_?type/i) } || 'content-type' current_accept = client_headers.keys.find { |c| c.match?(/accept/i) } || 'accept' - - version = client_headers[current_content].match(/compatible-with=([8-9]{1})/)[1] || 9 + version = client_headers[current_content].match(/compatible-with=([0-9]+)/)[1] || 9 headers.merge!( { From 45c7f4db1a9af1f022ccdc91c1bbe5d95024c0af Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Fri, 22 Aug 2025 17:01:15 +0100 Subject: [PATCH 72/75] [API][TESTS] Updates tests for NDJSON headers endpoints - Refactors mocking transport stuff for headers --- elasticsearch-api/spec/spec_helper.rb | 7 + .../spec/unit/actions/fleet/msearch_spec.rb | 21 +-- .../spec/unit/actions/msearch_spec.rb | 9 +- .../unit/actions/msearch_template_spec.rb | 11 +- .../text_structure/find_structure_spec.rb | 14 +- .../unit/{ => ndjson_endpoints}/bulk_spec.rb | 0 .../ndjson_endpoints/find_structure_spec.rb | 124 ++++++++++++++++ .../ndjson_endpoints/fleet_msearch_spec.rb | 136 ++++++++++++++++++ .../{ => ndjson_endpoints}/msearch_spec.rb | 1 - .../ndjson_endpoints/msearch_template_spec.rb | 124 ++++++++++++++++ 10 files changed, 411 insertions(+), 36 deletions(-) rename elasticsearch-api/spec/unit/{ => ndjson_endpoints}/bulk_spec.rb (100%) create mode 100644 elasticsearch-api/spec/unit/ndjson_endpoints/find_structure_spec.rb create mode 100644 elasticsearch-api/spec/unit/ndjson_endpoints/fleet_msearch_spec.rb rename elasticsearch-api/spec/unit/{ => ndjson_endpoints}/msearch_spec.rb (99%) create mode 100644 elasticsearch-api/spec/unit/ndjson_endpoints/msearch_template_spec.rb diff --git a/elasticsearch-api/spec/spec_helper.rb b/elasticsearch-api/spec/spec_helper.rb index 420a4aecd3..426e70af6e 100644 --- a/elasticsearch-api/spec/spec_helper.rb +++ b/elasticsearch-api/spec/spec_helper.rb @@ -59,6 +59,13 @@ def self.included(context) end end +Transport ||= Struct.new('Transport', :options) + +def dummy_ndjson_headers + allow(client_double).to receive(:transport).and_return Transport.new({ transport_options: { headers: {} } }) + allow(Elasticsearch::API::Utils).to receive(:update_ndjson_headers!).and_return({}) +end + RSpec.configure do |config| config.include(HelperModule) config.filter_run_excluding skip: true diff --git a/elasticsearch-api/spec/unit/actions/fleet/msearch_spec.rb b/elasticsearch-api/spec/unit/actions/fleet/msearch_spec.rb index 40ef5f6584..5f786d969d 100644 --- a/elasticsearch-api/spec/unit/actions/fleet/msearch_spec.rb +++ b/elasticsearch-api/spec/unit/actions/fleet/msearch_spec.rb @@ -24,28 +24,17 @@ '_fleet/_fleet_msearch', {}, {}, - headers, + {}, { endpoint: 'fleet.msearch' } ] end - let(:headers) { - { - 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' - } - } + # This test only cares about the body, there's another test for the ndjson headers. + before do + dummy_ndjson_headers + end it 'performs the request' do expect(client_double.fleet.msearch(body: {})).to be_a Elasticsearch::API::Response end - - let(:client) do - Class.new { include Elasticsearch::API }.new - end - - it 'requires the :body argument' do - expect { - client.fleet.msearch - }.to raise_exception(ArgumentError) - end end diff --git a/elasticsearch-api/spec/unit/actions/msearch_spec.rb b/elasticsearch-api/spec/unit/actions/msearch_spec.rb index 3acebfa641..2be0a06272 100644 --- a/elasticsearch-api/spec/unit/actions/msearch_spec.rb +++ b/elasticsearch-api/spec/unit/actions/msearch_spec.rb @@ -45,14 +45,9 @@ {} end - let(:transport_double) do - Transport ||= Struct.new('Transport', :options) - Transport.new({ transport_options: { headers: {} } }) - end - + # This test only cares about the body, there's another test for the ndjson headers. before do - allow(client_double).to receive(:transport).and_return transport_double - allow(Elasticsearch::API::Utils).to receive(:update_ndjson_headers!).and_return(headers) + dummy_ndjson_headers end context 'when the body is an object' do diff --git a/elasticsearch-api/spec/unit/actions/msearch_template_spec.rb b/elasticsearch-api/spec/unit/actions/msearch_template_spec.rb index 8b30d7d189..b62af31b2e 100644 --- a/elasticsearch-api/spec/unit/actions/msearch_template_spec.rb +++ b/elasticsearch-api/spec/unit/actions/msearch_template_spec.rb @@ -37,11 +37,12 @@ {} end - let(:headers) { - { - 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' - } - } + let(:headers) {{}} + + # This test only cares about the body, there's another test for the ndjson headers. + before do + dummy_ndjson_headers + end let(:url) do '_msearch/template' diff --git a/elasticsearch-api/spec/unit/actions/text_structure/find_structure_spec.rb b/elasticsearch-api/spec/unit/actions/text_structure/find_structure_spec.rb index cd94e76348..3798068f35 100644 --- a/elasticsearch-api/spec/unit/actions/text_structure/find_structure_spec.rb +++ b/elasticsearch-api/spec/unit/actions/text_structure/find_structure_spec.rb @@ -17,23 +17,23 @@ require 'spec_helper' -describe 'client.text_structure#test_grok_pattern' do +describe 'client.text_structure#find_structure' do let(:expected_args) do [ 'POST', '_text_structure/find_structure', {}, {}, - headers, + {}, { endpoint: 'text_structure.find_structure' } ] end - let(:headers) { - { - 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' - } - } + # This test only cares about the body, there's another test for the ndjson headers. + before do + dummy_ndjson_headers + allow(client_double.text_structure.client).to receive(:transport).and_return Transport.new({ transport_options: { headers: {} } }) + end it 'performs the request' do expect(client_double.text_structure.find_structure(body: {})).to be_a Elasticsearch::API::Response diff --git a/elasticsearch-api/spec/unit/bulk_spec.rb b/elasticsearch-api/spec/unit/ndjson_endpoints/bulk_spec.rb similarity index 100% rename from elasticsearch-api/spec/unit/bulk_spec.rb rename to elasticsearch-api/spec/unit/ndjson_endpoints/bulk_spec.rb diff --git a/elasticsearch-api/spec/unit/ndjson_endpoints/find_structure_spec.rb b/elasticsearch-api/spec/unit/ndjson_endpoints/find_structure_spec.rb new file mode 100644 index 0000000000..3b49f059a2 --- /dev/null +++ b/elasticsearch-api/spec/unit/ndjson_endpoints/find_structure_spec.rb @@ -0,0 +1,124 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'text_structure.find_structure headers test' do + context 'when not setting headers' do + let(:client) do + Elasticsearch::Client.new + end + + let(:expected_headers) do + { + 'accept' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9', + 'content-type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' + } + end + + it 'does not override headers' do + allow(client) + .to receive(:perform_request) + .with( + Elasticsearch::API::HTTP_POST, + '_text_structure/find_structure', + {}, + {}, + expected_headers, + { endpoint: 'text_structure.find_structure' } + ) + expect(client.text_structure.find_structure(body: {})).to be_a Elasticsearch::API::Response + end + end + + context 'when using compatibility headers for version 8' do + let(:client) do + Elasticsearch::Client.new( + transport_options: { + headers: custom_headers + } + ) + end + + let(:custom_headers) do + { + accept: 'application/vnd.elasticsearch+json; compatible-with=8', + content_type: 'application/vnd.elasticsearch+json; compatible-with=8' + } + end + + let(:expected_headers) do + { + accept: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8', + content_type: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8' + } + end + + it 'does not override version in headers' do + allow(client) + .to receive(:perform_request) + .with( + Elasticsearch::API::HTTP_POST, + '_text_structure/find_structure', + {}, + {}, + expected_headers, + { endpoint: 'text_structure.find_structure' } + ) + expect(client.text_structure.find_structure(body: {})).to be_a Elasticsearch::API::Response + end + end + + context 'when using custom headers in request' do + let(:client) do + Elasticsearch::Client.new( + transport_options: { + headers: custom_headers + } + ) + end + + let(:custom_headers) do + { + accept: 'application/vnd.elasticsearch+json; compatible-with=8', + content_type: 'application/vnd.elasticsearch+json; compatible-with=8' + } + end + + let(:expected_headers) do + { + accept: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8', + content_type: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8', + x_custom: 'Custom header' + } + end + + it 'does not override version in headers' do + allow(client) + .to receive(:perform_request) + .with( + Elasticsearch::API::HTTP_POST, + '_text_structure/find_structure', + {}, + {}, + expected_headers, + { endpoint: 'text_structure.find_structure' } + ) + expect(client.text_structure.find_structure(body: {}, headers: { x_custom: 'Custom header' })).to be_a Elasticsearch::API::Response + end + end +end diff --git a/elasticsearch-api/spec/unit/ndjson_endpoints/fleet_msearch_spec.rb b/elasticsearch-api/spec/unit/ndjson_endpoints/fleet_msearch_spec.rb new file mode 100644 index 0000000000..ddd416a526 --- /dev/null +++ b/elasticsearch-api/spec/unit/ndjson_endpoints/fleet_msearch_spec.rb @@ -0,0 +1,136 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'fleet.msearch exception' do + let(:client) do + Class.new { include Elasticsearch::API }.new + end + + it 'requires the :body argument' do + expect { + client.fleet.msearch + }.to raise_exception(ArgumentError) + end +end + +describe 'fleet.msearch headers test' do + context 'when not setting headers' do + let(:client) do + Elasticsearch::Client.new + end + + let(:expected_headers) do + { + 'accept' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9', + 'content-type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' + } + end + + it 'does not override headers' do + allow(client) + .to receive(:perform_request) + .with( + Elasticsearch::API::HTTP_POST, + '_fleet/_fleet_msearch', + {}, + {}, + expected_headers, + { endpoint: 'fleet.msearch' } + ) + expect(client.fleet.msearch(body: {})).to be_a Elasticsearch::API::Response + end + end + + context 'when using compatibility headers for version 8' do + let(:client) do + Elasticsearch::Client.new( + transport_options: { + headers: custom_headers + } + ) + end + + let(:custom_headers) do + { + accept: 'application/vnd.elasticsearch+json; compatible-with=8', + content_type: 'application/vnd.elasticsearch+json; compatible-with=8' + } + end + + let(:expected_headers) do + { + accept: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8', + content_type: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8' + } + end + + it 'does not override version in headers' do + allow(client) + .to receive(:perform_request) + .with( + Elasticsearch::API::HTTP_POST, + '_fleet/_fleet_msearch', + {}, + {}, + expected_headers, + { endpoint: 'fleet.msearch' } + ) + expect(client.fleet.msearch(body: {})).to be_a Elasticsearch::API::Response + end + end + + context 'when using custom headers in request' do + let(:client) do + Elasticsearch::Client.new( + transport_options: { + headers: custom_headers + } + ) + end + + let(:custom_headers) do + { + accept: 'application/vnd.elasticsearch+json; compatible-with=8', + content_type: 'application/vnd.elasticsearch+json; compatible-with=8' + } + end + + let(:expected_headers) do + { + accept: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8', + content_type: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8', + x_custom: 'Custom header' + } + end + + it 'does not override version in headers' do + allow(client) + .to receive(:perform_request) + .with( + Elasticsearch::API::HTTP_POST, + '_fleet/_fleet_msearch', + {}, + {}, + expected_headers, + { endpoint: 'fleet.msearch' } + ) + expect(client.fleet.msearch(body: {}, headers: { x_custom: 'Custom header' })).to be_a Elasticsearch::API::Response + end + end +end diff --git a/elasticsearch-api/spec/unit/msearch_spec.rb b/elasticsearch-api/spec/unit/ndjson_endpoints/msearch_spec.rb similarity index 99% rename from elasticsearch-api/spec/unit/msearch_spec.rb rename to elasticsearch-api/spec/unit/ndjson_endpoints/msearch_spec.rb index d8ddf92007..d1d63c586c 100644 --- a/elasticsearch-api/spec/unit/msearch_spec.rb +++ b/elasticsearch-api/spec/unit/ndjson_endpoints/msearch_spec.rb @@ -16,7 +16,6 @@ # under the License. require 'spec_helper' -require 'elastic/transport' describe 'msearch custom' do context 'raise exception' do diff --git a/elasticsearch-api/spec/unit/ndjson_endpoints/msearch_template_spec.rb b/elasticsearch-api/spec/unit/ndjson_endpoints/msearch_template_spec.rb new file mode 100644 index 0000000000..915d906de7 --- /dev/null +++ b/elasticsearch-api/spec/unit/ndjson_endpoints/msearch_template_spec.rb @@ -0,0 +1,124 @@ +# Licensed to Elasticsearch B.V. under one or more contributor +# license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright +# ownership. Elasticsearch B.V. licenses this file to you under +# the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +require 'spec_helper' + +describe 'msearrch_template headers test' do + context 'when not setting headers' do + let(:client) do + Elasticsearch::Client.new + end + + let(:expected_headers) do + { + 'accept' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9', + 'content-type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9' + } + end + + it 'does not override headers' do + allow(client) + .to receive(:perform_request) + .with( + Elasticsearch::API::HTTP_POST, + '_msearch/template', + {}, + {}, + expected_headers, + { endpoint: 'msearch_template' } + ) + expect(client.msearch_template(body: {})).to be_a Elasticsearch::API::Response + end + end + + context 'when using compatibility headers for version 8' do + let(:client) do + Elasticsearch::Client.new( + transport_options: { + headers: custom_headers + } + ) + end + + let(:custom_headers) do + { + accept: 'application/vnd.elasticsearch+json; compatible-with=8', + content_type: 'application/vnd.elasticsearch+json; compatible-with=8' + } + end + + let(:expected_headers) do + { + accept: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8', + content_type: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8' + } + end + + it 'does not override version in headers' do + allow(client) + .to receive(:perform_request) + .with( + Elasticsearch::API::HTTP_POST, + '_msearch/template', + {}, + {}, + expected_headers, + { endpoint: 'msearch_template' } + ) + expect(client.msearch_template(body: {})).to be_a Elasticsearch::API::Response + end + end + + context 'when using custom headers in request' do + let(:client) do + Elasticsearch::Client.new( + transport_options: { + headers: custom_headers + } + ) + end + + let(:custom_headers) do + { + accept: 'application/vnd.elasticsearch+json; compatible-with=8', + content_type: 'application/vnd.elasticsearch+json; compatible-with=8' + } + end + + let(:expected_headers) do + { + accept: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8', + content_type: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8', + x_custom: 'Custom header' + } + end + + it 'does not override version in headers' do + allow(client) + .to receive(:perform_request) + .with( + Elasticsearch::API::HTTP_POST, + '_msearch/template', + {}, + {}, + expected_headers, + { endpoint: 'msearch_template' } + ) + expect(client.msearch_template(body: {}, headers: { x_custom: 'Custom header' })).to be_a Elasticsearch::API::Response + end + end +end From d2a5ffd61bbdbe28ae6a63e9384fb9d8cf19ccf3 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 2 Sep 2025 11:11:09 +0100 Subject: [PATCH 73/75] Bumps version to 9.0.5 --- elasticsearch-api/lib/elasticsearch/api/version.rb | 2 +- elasticsearch/elasticsearch.gemspec | 2 +- elasticsearch/lib/elasticsearch/version.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index 8b00477bdb..9eea9056ec 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -17,7 +17,7 @@ module Elasticsearch module API - VERSION = '9.0.4'.freeze + VERSION = '9.0.5'.freeze ES_SPECIFICATION_COMMIT = '941744bd0826657988ca8f9a336795092b3dbb9b'.freeze end end diff --git a/elasticsearch/elasticsearch.gemspec b/elasticsearch/elasticsearch.gemspec index b483f9d6c8..b8ebddda45 100644 --- a/elasticsearch/elasticsearch.gemspec +++ b/elasticsearch/elasticsearch.gemspec @@ -46,7 +46,7 @@ Gem::Specification.new do |s| s.rdoc_options = ['--charset=UTF-8'] s.required_ruby_version = '>= 2.6' # For compatibility with JRuby 9.3 - s.add_dependency 'elasticsearch-api', '9.0.4' + s.add_dependency 'elasticsearch-api', '9.0.5' s.add_dependency 'elastic-transport', '~> 8.3' s.add_development_dependency 'base64' diff --git a/elasticsearch/lib/elasticsearch/version.rb b/elasticsearch/lib/elasticsearch/version.rb index d296d92992..177e3239a8 100644 --- a/elasticsearch/lib/elasticsearch/version.rb +++ b/elasticsearch/lib/elasticsearch/version.rb @@ -16,5 +16,5 @@ # under the License. module Elasticsearch - VERSION = '9.0.4'.freeze + VERSION = '9.0.5'.freeze end From a2679f33a270a4883911ca25ff89c7b80c3d7eaa Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Tue, 2 Sep 2025 11:12:41 +0100 Subject: [PATCH 74/75] [DOCS] Updates CHANGELOG for 9.0.5 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa7b204d58..9d7b1b2b49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ **See the full release notes on the official documentation website: https://www.elastic.co/docs/release-notes/elasticsearch/clients/ruby** +# 9.0.5 + +- Fixes [2758](https://github.com/elastic/elasticsearch-ruby/issues/2758) - `msearch`, `bulk` and other NDJSON endpoints overriding headers for `content-type` and `accept`. [Pull Request](https://github.com/elastic/elasticsearch-ruby/pull/2759) + # 9.0.4 - Source code documentation and code has been updated to support common parameters and common cat parameters in APIs that support it (`error_trace`, `filter_path`, `human`, `pretty`). The API reference documentation can be generated with `rake doc`. From bd5486b61fc29a47f77d028c7939cae9feb6044a Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Thu, 11 Sep 2025 15:44:19 +0100 Subject: [PATCH 75/75] [API] Generates e194c704d2949312ed19e0582c29a873beee68db --- .../elasticsearch/api/actions/cat/health.rb | 2 +- .../elasticsearch/api/actions/cat/indices.rb | 2 +- .../elasticsearch/api/actions/cat/master.rb | 2 +- .../api/actions/cat/nodeattrs.rb | 2 +- .../api/actions/cat/pending_tasks.rb | 2 +- .../elasticsearch/api/actions/cat/plugins.rb | 2 +- .../elasticsearch/api/actions/cat/tasks.rb | 2 +- .../api/actions/cat/templates.rb | 2 +- .../api/actions/indices/rollover.rb | 2 +- .../lib/elasticsearch/api/actions/reindex.rb | 2 +- .../api/actions/transform/get_node_stats.rb | 2 +- .../api/actions/transform/set_upgrade_mode.rb | 33 +++++++++++++++++-- .../lib/elasticsearch/api/version.rb | 2 +- 13 files changed, 42 insertions(+), 15 deletions(-) diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb index 82a312faa2..d0b4b83b84 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb @@ -35,7 +35,7 @@ module Actions # # @option arguments [String] :time The unit used to display time values. # @option arguments [Boolean] :ts If true, returns `HH:MM:SS` and Unix epoch timestamps. Server default: true. - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. It supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb index f18a1c87dc..3d64ac82be 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/indices.rb @@ -44,7 +44,7 @@ module Actions # @option arguments [Boolean] :pri If true, the response only includes information from primary shards. # @option arguments [String] :time The unit used to display time values. # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s. - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. It supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb index 24c7e73bac..bab7a71a5b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/master.rb @@ -26,7 +26,7 @@ module Actions # Get information about the master node, including the ID, bound IP address, and name. # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API. # - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. It supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb index 55b48c7d80..b8a66fe596 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/nodeattrs.rb @@ -26,7 +26,7 @@ module Actions # Get information about custom node attributes. # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API. # - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. It supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb index a88815532b..8a536c501b 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb @@ -26,7 +26,7 @@ module Actions # Get information about cluster-level changes that have not yet taken effect. # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the pending cluster tasks API. # - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. It supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb index b84bc683a4..c47fecbf32 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/plugins.rb @@ -26,7 +26,7 @@ module Actions # Get a list of plugins running on each node of a cluster. # IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API. # - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. It supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb index 9c9597f2f7..5e12fcecd8 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb @@ -34,7 +34,7 @@ module Actions # @option arguments [Boolean] :detailed If `true`, the response includes detailed information about shard recoveries. # @option arguments [Array] :nodes Unique node identifiers, which are used to limit the response. # @option arguments [String] :parent_task_id The parent task identifier, which is used to limit the response. - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. It supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb b/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb index 112ae65ac2..89a74aacf1 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/cat/templates.rb @@ -29,7 +29,7 @@ module Actions # # @option arguments [String] :name The name of the template to return. # Accepts wildcard expressions. If omitted, all templates are returned. - # @option arguments [String, Array] :h List of columns to appear in the response. Supports simple wildcards. + # @option arguments [String, Array] :h A comma-separated list of columns names to display. It supports simple wildcards. # @option arguments [String, Array] :s List of columns that determine how the table should be sorted. # Sorting defaults to ascending and can be changed by setting `:asc` # or `:desc` as a suffix to the column name. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb b/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb index 9789dc0919..2ac0d72b11 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/indices/rollover.rb @@ -23,7 +23,7 @@ module API module Indices module Actions # Roll over to a new index. - # TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + # TIP: We recommend using the index lifecycle rollover action to automate rollovers. However, Serverless does not support Index Lifecycle Management (ILM), so don't use this approach in the Serverless context. # The rollover API creates a new index for a data stream or index alias. # The API behavior depends on the rollover target. # **Roll over a data stream** diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb index 20e69a4e01..4c0e24bd60 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/reindex.rb @@ -53,7 +53,7 @@ module Actions # Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than `max_docs` until it has successfully indexed `max_docs` documents into the target or it has gone through every document in the source query. # It's recommended to reindex on indices with a green status. Reindexing can fail when a node shuts down or crashes. # * When requested with `wait_for_completion=true` (default), the request fails if the node shuts down. - # * When requested with `wait_for_completion=false`, a task id is returned, which can be used via the task management API to monitor, debug, or cancel the task. The task may disappear or fail if the node shuts down. + # * When requested with `wait_for_completion=false`, a task id is returned, for use with the task management APIs. The task may disappear or fail if the node shuts down. # When retrying a failed reindex operation, it might be necessary to set `conflicts=proceed` or to first delete the partial destination index. # Additionally, dry runs, checking disk space, and fetching index recovery information can help address the root cause. # Refer to the linked documentation for examples of how to reindex documents. diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb index b5629cd085..b87f76f425 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/get_node_stats.rb @@ -22,7 +22,7 @@ module Elasticsearch module API module Transform module Actions - # Retrieves transform usage information for transform nodes. + # Retrieves transform usage information for transform nodes # # @option arguments [Hash] :headers Custom HTTP headers # diff --git a/elasticsearch-api/lib/elasticsearch/api/actions/transform/set_upgrade_mode.rb b/elasticsearch-api/lib/elasticsearch/api/actions/transform/set_upgrade_mode.rb index 75c12bc322..a44651f67a 100644 --- a/elasticsearch-api/lib/elasticsearch/api/actions/transform/set_upgrade_mode.rb +++ b/elasticsearch-api/lib/elasticsearch/api/actions/transform/set_upgrade_mode.rb @@ -22,11 +22,38 @@ module Elasticsearch module API module Transform module Actions - # Sets a cluster wide upgrade_mode setting that prepares transform indices for an upgrade. + # Set upgrade_mode for transform indices. + # Sets a cluster wide upgrade_mode setting that prepares transform + # indices for an upgrade. + # When upgrading your cluster, in some circumstances you must restart your + # nodes and reindex your transform indices. In those circumstances, + # there must be no transforms running. You can close the transforms, + # do the upgrade, then open all the transforms again. Alternatively, + # you can use this API to temporarily halt tasks associated with the transforms + # and prevent new transforms from opening. You can also use this API + # during upgrades that do not require you to reindex your transform + # indices, though stopping transforms is not a requirement in that case. + # You can see the current value for the upgrade_mode setting by using the get + # transform info API. # + # @option arguments [Boolean] :enabled When `true`, it enables `upgrade_mode` which temporarily halts all + # transform tasks and prohibits new transform tasks from + # starting. + # @option arguments [Time] :timeout The time to wait for the request to be completed. Server default: 30s. + # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors + # when they occur. + # @option arguments [String, Array] :filter_path Comma-separated list of filters in dot notation which reduce the response + # returned by Elasticsearch. + # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans. + # For example `"exists_time": "1h"` for humans and + # `"eixsts_time_in_millis": 3600000` for computers. When disabled the human + # readable values will be omitted. This makes sense for responses being consumed + # only by machines. + # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use + # this option for debugging only. # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/transform-set-upgrade-mode.html + # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-set-upgrade-mode # def set_upgrade_mode(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'transform.set_upgrade_mode' } @@ -38,7 +65,7 @@ def set_upgrade_mode(arguments = {}) method = Elasticsearch::API::HTTP_POST path = '_transform/set_upgrade_mode' - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) diff --git a/elasticsearch-api/lib/elasticsearch/api/version.rb b/elasticsearch-api/lib/elasticsearch/api/version.rb index 9eea9056ec..b527ec2564 100644 --- a/elasticsearch-api/lib/elasticsearch/api/version.rb +++ b/elasticsearch-api/lib/elasticsearch/api/version.rb @@ -18,6 +18,6 @@ module Elasticsearch module API VERSION = '9.0.5'.freeze - ES_SPECIFICATION_COMMIT = '941744bd0826657988ca8f9a336795092b3dbb9b'.freeze + ES_SPECIFICATION_COMMIT = 'e194c704d2949312ed19e0582c29a873beee68db'.freeze end end